[PATCH 00/38] MediaTek devicetree/bindings warnings sanitization
Rob Herring
robh at kernel.org
Fri Jul 25 06:52:49 PDT 2025
On Thu, Jul 24, 2025 at 3:39 AM AngeloGioacchino Del Regno
<angelogioacchino.delregno at collabora.com> wrote:
>
> As Rob pointed out, MediaTek devicetrees are *poor* in the dtbs_check
> tests, and got an infinite load of warnings.
>
> This series starts attacking this situation.
>
> I didn't really count how many warnings I have resolved - it's a lot
> of them anyway - and I think that this is a good start in any case.
40 out of 125 (on arm64) fixed! Thanks! FYI, here's the ones that
remain (first number is number of times the warning occurs):
29 (mediatek,mt8183-mfgcfg): 'power-domains' does not match any
of the regexes: '^pinctrl-[0-9]+$'
29 failed to match any schema with compatible:
['mediatek,mt8183-audiosys', 'syscon']
29 failed to match any schema with compatible: ['mediatek,mt8183-audio']
27 (mediatek,mt8183-pinctrl): 'gpio-line-names' does not match
any of the regexes: '-pins(-[a-z]+)?$', '^pinctrl-[0-9]+$'
22 (mediatek,mt6359): '#sound-dai-cells' does not match any of
the regexes: '^pinctrl-[0-9]+$'
14 failed to match any schema with compatible:
['mediatek,mt8183_mt6358_ts3a227_max98357']
12 (mediatek,mt8186-mt6366-rt1019-rt5682s-sound): 'model' is a
required property
12 failed to match any schema with compatible: ['mediatek,mt8173-mdp-rsz']
9 (mediatek,mt8195-iommu-infra): interrupts: [[0, 795, 4, 0],
[0, 796, 4, 0], [0, 797, 4, 0], [0, 798, 4, 0], [0, 799, 4, 0]] is too
long
8 failed to match any schema with compatible: ['mediatek,mt8173-mdp-wrot']
8 failed to match any schema with compatible:
['mediatek,mt8173-mdp-rdma', 'mediatek,mt8173-mdp']
6 failed to match any schema with compatible:
['mediatek,mt8183_da7219_rt1015p']
5 (mediatek,mt7986-eth): interrupts: [[0, 196, 4], [0, 197, 4],
[0, 198, 4], [0, 199, 4]] is too short
5 failed to match any schema with compatible:
['mediatek,mt8183_mt6358_ts3a227_rt1015p']
4 (mediatek,mt8173-mmsys): 'assigned-clock-rates',
'assigned-clocks' do not match any of the regexes: '^pinctrl-[0-9]+$'
4 (mediatek,mt8173-disp-ufoe): 'mediatek,gce-client-reg' does
not match any of the regexes: '^pinctrl-[0-9]+$'
4 (mediatek,mt8173-disp-od): 'mediatek,gce-client-reg' does not
match any of the regexes: '^pinctrl-[0-9]+$'
4 (mediatek,mt6360): #interrupt-cells: 1 was expected
4 failed to match any schema with compatible: ['mediatek,mt8173-vpu']
4 failed to match any schema with compatible: ['mediatek,mt8173-mdp-wdma']
4 failed to match any schema with compatible: ['mediatek,mt8173-mdp-rdma']
4 failed to match any schema with compatible: ['mediatek,mt7622-pcie']
3 (mediatek,mt8192-audsys): 'mt8192-afe-pcm' does not match any
of the regexes: '^pinctrl-[0-9]+$'
3 (mediatek,mt8173-thermal): Unevaluated properties are not
allowed ('bank0-supply', 'bank1-supply' were unexpected)
3 (mediatek,mt8173-pinctrl): 'gpio-line-names' does not match
any of the regexes: '^pinctrl-[0-9]+$', 'pins$'
3 (mediatek,mt8173-dsi): Unevaluated properties are not allowed
('ports' was unexpected)
3 (mediatek,mt8173-dsi): ports: 'port at 1' is a required property
3 (mediatek,mt8173-dsi): ports: 'port at 0' is a required property
3 failed to match any schema with compatible: ['mediatek,mt8173-rt5650']
2 (mediatek,mt8192_mt6359_rt1015p_rt5682): 'model' is a required property
2 (mediatek,mt8192-i2c): Unevaluated properties are not allowed
('clock-stretch-ns' was unexpected)
2 (mediatek,mt8186-spmi): Unevaluated properties are not allowed
('interrupts' was unexpected)
2 (mediatek,mt7986-tphy): usb-phy at 700:reg: [[0, 1792], [0,
2304]] is too long
2 (mediatek,mt7622-pwrap): 'regulators' does not match any of
the regexes: '^pinctrl-[0-9]+$'
2 (mediatek,mt7622-pciesys): compatible: 'oneOf' conditional
failed, one must be fixed:
2 (mediatek,mt7622-audsys): audio-controller: 'power-domains' is
a required property
2 (mediatek,mt7622-audsys): audio-controller:clock-names:
['infra_sys_audio_clk', 'top_audio_mux1_sel
', 'top_audio_mux2_sel', 'top_audio_a1sys_hp', 'top_audio_a2sys_hp',
'i2s0_src_sel', 'i2s1_src_sel', 'i2s2_
src_sel', 'i2s3_src_sel', 'i2s0_src_div', 'i2s1_src_div',
'i2s2_src_div', 'i2s3_src_div', 'i2s0_mclk_en', '
i2s1_mclk_en', 'i2s2_mclk_en', 'i2s3_mclk_en', 'i2so0_hop_ck',
'i2so1_hop_ck', 'i2so2_hop_ck', 'i2so3_hop_c
k', 'i2si0_hop_ck', 'i2si1_hop_ck', 'i2si2_hop_ck', 'i2si3_hop_ck',
'asrc0_out_ck', 'asrc1_out_ck', 'asrc2_
out_ck', 'asrc3_out_ck', 'audio_afe_pd', 'audio_afe_conn_pd',
'audio_a1sys_pd', 'audio_a2sys_pd'] is too sh
ort
2 (mediatek,mt7622-audio): 'power-domains' is a required property
2 (mediatek,mt7622-audio): clock-names: ['infra_sys_audio_clk',
'top_audio_mux1_sel', 'top_audio_mux2
_sel', 'top_audio_a1sys_hp', 'top_audio_a2sys_hp', 'i2s0_src_sel',
'i2s1_src_sel', 'i2s2_src_sel', 'i2s3_sr
c_sel', 'i2s0_src_div', 'i2s1_src_div', 'i2s2_src_div',
'i2s3_src_div', 'i2s0_mclk_en', 'i2s1_mclk_en', 'i2
s2_mclk_en', 'i2s3_mclk_en', 'i2so0_hop_ck', 'i2so1_hop_ck',
'i2so2_hop_ck', 'i2so3_hop_ck', 'i2si0_hop_ck'
, 'i2si1_hop_ck', 'i2si2_hop_ck', 'i2si3_hop_ck', 'asrc0_out_ck',
'asrc1_out_ck', 'asrc2_out_ck', 'asrc3_ou
t_ck', 'audio_afe_pd', 'audio_afe_conn_pd', 'audio_a1sys_pd',
'audio_a2sys_pd'] is too short
2 (mediatek,mt6795-mmsys): 'assigned-clock-rates',
'assigned-clocks' do not match any of the regexes: '^pinctrl-[0-9]+$'
2 (mediatek,mt6795-mmc): Unevaluated properties are not allowed
('pinctrl-names' was unexpected)
2 (mediatek,mt6795-mmc): pinctrl-names: ['default'] is too short
2 (mediatek,mt6795-mmc): 'pinctrl-1' is a required property
2 (mediatek,mt6795-disp-ufoe): 'mediatek,gce-client-reg' does
not match any of the regexes: '^pinctrl-[0-9]+$'
2 (mediatek,mt6795-disp-od): 'mediatek,gce-client-reg' does not
match any of the regexes: '^pinctrl-[0-9]+$'
2 failed to match any schema with compatible:
['mediatek,mt8183_da7219_max98357']
2 failed to match any schema with compatible:
['mediatek,mt7622-scpsys', 'syscon']
2 failed to match any schema with compatible: ['mediatek,mt6797-scpsys']
2 failed to match any schema with compatible:
['mediatek,mt6380-regulator']
2 failed to match any schema with compatible: ['mediatek,mt2712-pcie']
1 (mediatek,mt8516-topckgen): compatible: 'oneOf' conditional
failed, one must be fixed:
1 (mediatek,mt8516-apmixedsys): compatible: 'oneOf' conditional
failed, one must be fixed:
1 (mediatek,mt8186-mt6366-rt5682s-max98360-sound): 'model' is a
required property
1 (mediatek,mt8186-cci): 'proc-supply' is a required property
1 (mediatek,mt8183-pinctrl): 'i2c0', 'i2c1', 'i2c2', 'i2c3',
'i2c4', 'i2c5', 'mmc0', 'mmc0default', 'mmc1', 'mmc1default', 'pwm1',
'spi0', 'spi1', 'spi2', 'spi3', 'spi4', 'spi5' do not match any of the
regexes: '-pins(-[a-z]+)?$', '^pinctrl-[0-9]+$'
1 (mediatek,mt8183-pinctrl): 'i2c0', 'i2c1', 'i2c2', 'i2c3',
'i2c4', 'i2c5', 'i2c6', 'keyboard' do not match any of the regexes:
'-pins(-[a-z]+)?$', '^pinctrl-[0-9]+$'
1 (mediatek,mt8183-pinctrl): bt-pins-wakeup: 'piins-bt-wakeup'
does not match any of the regexes: '^pinctrl-[0-9]+$', '^pins'
1 (mediatek,mt8173-pwrap): 'power-domains' does not match any of
the regexes: '^pinctrl-[0-9]+$'
1 (mediatek,mt7622-pinctrl): 'asm-sel-hog' does not match any of
the regexes: '-pins(-[a-z]+)?$', '^pinctrl-[0-9]+$'
1 (mediatek,mt7622-audsys): audio-controller:clocks: [[2, 2],
[18, 80], [18, 81], [18, 107], [18, 108], [18, 89], [18, 90], [18,
91], [18, 92], [18, 95], [18, 96], [18, 97], [18, 98], [18, 103], [18,
104], [18, 105], [18, 106], [38, 8], [38, 9], [38, 10], [38, 11], [38,
4], [38, 5], [38, 6], [38, 7], [38, 14], [38, 15], [38, 39], [38, 40],
[38, 0], [38, 46], [38, 17], [38, 18]] is too short
1 (mediatek,mt7622-audsys): audio-controller:clocks: [[2, 2],
[18, 80], [18, 81], [18, 107], [18, 108], [18, 89], [18, 90], [18,
91], [18, 92], [18, 95], [18, 96], [18, 97], [18, 98], [18, 103], [18,
104], [18, 105], [18, 106], [37, 8], [37, 9], [37, 10], [37, 11], [37,
4], [37, 5], [37, 6], [37, 7], [37, 14], [37, 15], [37, 39], [37, 40],
[37, 0], [37, 46], [37, 17], [37, 18]] is too short
1 (mediatek,mt7622-audio): clocks: [[2, 2], [18, 80], [18, 81],
[18, 107], [18, 108], [18, 89], [18, 90], [18, 91], [18, 92], [18,
95], [18, 96], [18, 97], [18, 98], [18, 103], [18, 104], [18, 105],
[18, 106], [38, 8], [38, 9], [38, 10], [38, 11], [38, 4], [38, 5],
[38, 6], [38, 7], [38, 14], [38, 15], [38, 39], [38, 40], [38, 0],
[38, 46], [38, 17], [38, 18]] is too short
1 (mediatek,mt7622-audio): clocks: [[2, 2], [18, 80], [18, 81],
[18, 107], [18, 108], [18, 89], [18, 90], [18, 91], [18, 92], [18,
95], [18, 96], [18, 97], [18, 98], [18, 103], [18, 104], [18, 105],
[18, 106], [37, 8], [37, 9], [37, 10], [37, 11], [37, 4], [37, 5],
[37, 6], [37, 7], [37, 14], [37, 15], [37, 39], [37, 40], [37, 0],
[37, 46], [37, 17], [37, 18]] is too short
1 (mediatek,mt7531): 'interrupts' is a dependency of
'interrupt-controller'
1 (mediatek,mt6357): 'adc' does not match any of the regexes:
'^pinctrl-[0-9]+$'
1 (mediatek,mt6331): regulators:compatible: 'oneOf' conditional
failed, one must be fixed:
1 (mediatek,mt6331-regulator): 'ldo-vio28' does not match any of
the regexes: '^buck-v(core2|io18|dvfs11|dvfs12|dvfs13|dvfs14)$',
'^ldo-(avdd32aud|vauxa32)$',
'^ldo-v(dig18|emc33|ibr|mc|mch|mipi|rtc|sim1|sim2|sram|usb10)$',
'^ldo-vcam(a|af|d|io)$', '^ldo-vgp[1234]$', '^ldo-vtcxo[12]$',
'^pinctrl-[0-9]+$'
1 (mediatek,mt6331-regulator): ldo-vcamio:regulator-name:0:
'vcam_io' does not match '^vcam(a|_af|d|io)$'
1 (mediatek,mt6331): 'mt6332-led' does not match any of the
regexes: '^pinctrl-[0-9]+$'
1 failed to match any schema with compatible:
['mediatek,mt6779-audio', 'syscon']
1 failed to match any schema with compatible:
['mediatek,mt2712-scpsys', 'syscon']
More information about the linux-phy
mailing list