* [PATCH 1/3] arm64: dts: mediatek: mt8173-elm: Drop pmic's #address-cells and #size-cells
@ 2025-01-08 8:34 Chen-Yu Tsai
2025-01-08 8:34 ` [PATCH 2/3] arm64: dts: mediatek: mt8173: Fix disp-pwm compatible string Chen-Yu Tsai
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Chen-Yu Tsai @ 2025-01-08 8:34 UTC (permalink / raw)
To: Matthias Brugger, AngeloGioacchino Del Regno
Cc: Chen-Yu Tsai, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, kernel test robot
The PMIC has child nodes for each of its functions. It is not an actual
bus and no addressing is involved.
Dropping the bogus properties fixes a DT validation error:
arch/arm64/boot/dts/mediatek/mt8173-elm.dtb: pmic: '#address-cells', '#size-cells' do not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml#
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202412212322.JTFpRD7X-lkp@intel.com/
Fixes: 689b937bedde ("arm64: dts: mediatek: add mt8173 elm and hana board")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
---
arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi
index b5d4b5baf478..0d995b342d46 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi
@@ -925,8 +925,6 @@ &pwm0 {
&pwrap {
pmic: pmic {
compatible = "mediatek,mt6397";
- #address-cells = <1>;
- #size-cells = <1>;
interrupts-extended = <&pio 11 IRQ_TYPE_LEVEL_HIGH>;
interrupt-controller;
#interrupt-cells = <2>;
--
2.47.1.613.gc27f4b7a9f-goog
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH 2/3] arm64: dts: mediatek: mt8173: Fix disp-pwm compatible string 2025-01-08 8:34 [PATCH 1/3] arm64: dts: mediatek: mt8173-elm: Drop pmic's #address-cells and #size-cells Chen-Yu Tsai @ 2025-01-08 8:34 ` Chen-Yu Tsai 2025-01-09 11:12 ` AngeloGioacchino Del Regno 2025-01-08 8:34 ` [PATCH 3/3] arm64: dts: mediatek: mt8173: Fix some node names Chen-Yu Tsai ` (2 subsequent siblings) 3 siblings, 1 reply; 7+ messages in thread From: Chen-Yu Tsai @ 2025-01-08 8:34 UTC (permalink / raw) To: Matthias Brugger, AngeloGioacchino Del Regno Cc: Chen-Yu Tsai, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek, YH Huang, stable The MT8173 disp-pwm device should have only one compatible string, based on the following DT validation error: arch/arm64/boot/dts/mediatek/mt8173-elm.dtb: pwm@1401e000: compatible: 'oneOf' conditional failed, one must be fixed: ['mediatek,mt8173-disp-pwm', 'mediatek,mt6595-disp-pwm'] is too long 'mediatek,mt8173-disp-pwm' is not one of ['mediatek,mt6795-disp-pwm', 'mediatek,mt8167-disp-pwm'] 'mediatek,mt8173-disp-pwm' is not one of ['mediatek,mt8186-disp-pwm', 'mediatek,mt8188-disp-pwm', 'mediatek,mt8192-disp-pwm', 'mediatek,mt8195-disp-pwm', 'mediatek,mt8365-disp-pwm'] 'mediatek,mt8173-disp-pwm' was expected 'mediatek,mt8183-disp-pwm' was expected from schema $id: http://devicetree.org/schemas/pwm/mediatek,pwm-disp.yaml# arch/arm64/boot/dts/mediatek/mt8173-elm.dtb: pwm@1401f000: compatible: 'oneOf' conditional failed, one must be fixed: ['mediatek,mt8173-disp-pwm', 'mediatek,mt6595-disp-pwm'] is too long 'mediatek,mt8173-disp-pwm' is not one of ['mediatek,mt6795-disp-pwm', 'mediatek,mt8167-disp-pwm'] 'mediatek,mt8173-disp-pwm' is not one of ['mediatek,mt8186-disp-pwm', 'mediatek,mt8188-disp-pwm', 'mediatek,mt8192-disp-pwm', 'mediatek,mt8195-disp-pwm', 'mediatek,mt8365-disp-pwm'] 'mediatek,mt8173-disp-pwm' was expected 'mediatek,mt8183-disp-pwm' was expected from schema $id: http://devicetree.org/schemas/pwm/mediatek,pwm-disp.yaml# Drop the extra "mediatek,mt6595-disp-pwm" compatible string. Fixes: 61aee9342514 ("arm64: dts: mt8173: add MT8173 display PWM driver support node") Cc: YH Huang <yh.huang@mediatek.com> Cc: <stable@vger.kernel.org> # v4.5+ Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 3458be7f7f61..f49ec7495906 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -1255,8 +1255,7 @@ dpi0_out: endpoint { }; pwm0: pwm@1401e000 { - compatible = "mediatek,mt8173-disp-pwm", - "mediatek,mt6595-disp-pwm"; + compatible = "mediatek,mt8173-disp-pwm"; reg = <0 0x1401e000 0 0x1000>; #pwm-cells = <2>; clocks = <&mmsys CLK_MM_DISP_PWM026M>, @@ -1266,8 +1265,7 @@ pwm0: pwm@1401e000 { }; pwm1: pwm@1401f000 { - compatible = "mediatek,mt8173-disp-pwm", - "mediatek,mt6595-disp-pwm"; + compatible = "mediatek,mt8173-disp-pwm"; reg = <0 0x1401f000 0 0x1000>; #pwm-cells = <2>; clocks = <&mmsys CLK_MM_DISP_PWM126M>, -- 2.47.1.613.gc27f4b7a9f-goog ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] arm64: dts: mediatek: mt8173: Fix disp-pwm compatible string 2025-01-08 8:34 ` [PATCH 2/3] arm64: dts: mediatek: mt8173: Fix disp-pwm compatible string Chen-Yu Tsai @ 2025-01-09 11:12 ` AngeloGioacchino Del Regno 0 siblings, 0 replies; 7+ messages in thread From: AngeloGioacchino Del Regno @ 2025-01-09 11:12 UTC (permalink / raw) To: Chen-Yu Tsai, Matthias Brugger Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek, YH Huang, stable Il 08/01/25 09:34, Chen-Yu Tsai ha scritto: > The MT8173 disp-pwm device should have only one compatible string, based > on the following DT validation error: > > arch/arm64/boot/dts/mediatek/mt8173-elm.dtb: pwm@1401e000: compatible: 'oneOf' conditional failed, one must be fixed: > ['mediatek,mt8173-disp-pwm', 'mediatek,mt6595-disp-pwm'] is too long > 'mediatek,mt8173-disp-pwm' is not one of ['mediatek,mt6795-disp-pwm', 'mediatek,mt8167-disp-pwm'] > 'mediatek,mt8173-disp-pwm' is not one of ['mediatek,mt8186-disp-pwm', 'mediatek,mt8188-disp-pwm', 'mediatek,mt8192-disp-pwm', 'mediatek,mt8195-disp-pwm', 'mediatek,mt8365-disp-pwm'] > 'mediatek,mt8173-disp-pwm' was expected > 'mediatek,mt8183-disp-pwm' was expected > from schema $id: http://devicetree.org/schemas/pwm/mediatek,pwm-disp.yaml# > arch/arm64/boot/dts/mediatek/mt8173-elm.dtb: pwm@1401f000: compatible: 'oneOf' conditional failed, one must be fixed: > ['mediatek,mt8173-disp-pwm', 'mediatek,mt6595-disp-pwm'] is too long > 'mediatek,mt8173-disp-pwm' is not one of ['mediatek,mt6795-disp-pwm', 'mediatek,mt8167-disp-pwm'] > 'mediatek,mt8173-disp-pwm' is not one of ['mediatek,mt8186-disp-pwm', 'mediatek,mt8188-disp-pwm', 'mediatek,mt8192-disp-pwm', 'mediatek,mt8195-disp-pwm', 'mediatek,mt8365-disp-pwm'] > 'mediatek,mt8173-disp-pwm' was expected > 'mediatek,mt8183-disp-pwm' was expected > from schema $id: http://devicetree.org/schemas/pwm/mediatek,pwm-disp.yaml# > > Drop the extra "mediatek,mt6595-disp-pwm" compatible string. > > Fixes: 61aee9342514 ("arm64: dts: mt8173: add MT8173 display PWM driver support node") > Cc: YH Huang <yh.huang@mediatek.com> > Cc: <stable@vger.kernel.org> # v4.5+ > Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 3/3] arm64: dts: mediatek: mt8173: Fix some node names 2025-01-08 8:34 [PATCH 1/3] arm64: dts: mediatek: mt8173-elm: Drop pmic's #address-cells and #size-cells Chen-Yu Tsai 2025-01-08 8:34 ` [PATCH 2/3] arm64: dts: mediatek: mt8173: Fix disp-pwm compatible string Chen-Yu Tsai @ 2025-01-08 8:34 ` Chen-Yu Tsai 2025-01-09 11:12 ` AngeloGioacchino Del Regno 2025-01-09 11:12 ` [PATCH 1/3] arm64: dts: mediatek: mt8173-elm: Drop pmic's #address-cells and #size-cells AngeloGioacchino Del Regno 2025-02-06 11:08 ` AngeloGioacchino Del Regno 3 siblings, 1 reply; 7+ messages in thread From: Chen-Yu Tsai @ 2025-01-08 8:34 UTC (permalink / raw) To: Matthias Brugger, AngeloGioacchino Del Regno Cc: Chen-Yu Tsai, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek, Eddie Huang, Sascha Hauer Some node names are incorrect, causing DT validations due to mismatches. Fixes: b3a372484157 ("arm64: dts: Add mediatek MT8173 SoC and evaluation board dts and Makefile") Fixes: f2ce70149568 ("arm64: dts: mt8173: Add clock controller device nodes") Cc: Eddie Huang <eddie.huang@mediatek.com> Cc: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index f49ec7495906..6d1d8877b43f 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -352,14 +352,14 @@ topckgen: clock-controller@10000000 { #clock-cells = <1>; }; - infracfg: power-controller@10001000 { + infracfg: clock-controller@10001000 { compatible = "mediatek,mt8173-infracfg", "syscon"; reg = <0 0x10001000 0 0x1000>; #clock-cells = <1>; #reset-cells = <1>; }; - pericfg: power-controller@10003000 { + pericfg: clock-controller@10003000 { compatible = "mediatek,mt8173-pericfg", "syscon"; reg = <0 0x10003000 0 0x1000>; #clock-cells = <1>; @@ -564,7 +564,7 @@ vpu: vpu@10020000 { memory-region = <&vpu_dma_reserved>; }; - sysirq: intpol-controller@10200620 { + sysirq: interrupt-controller@10200620 { compatible = "mediatek,mt8173-sysirq", "mediatek,mt6577-sysirq"; interrupt-controller; -- 2.47.1.613.gc27f4b7a9f-goog ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 3/3] arm64: dts: mediatek: mt8173: Fix some node names 2025-01-08 8:34 ` [PATCH 3/3] arm64: dts: mediatek: mt8173: Fix some node names Chen-Yu Tsai @ 2025-01-09 11:12 ` AngeloGioacchino Del Regno 0 siblings, 0 replies; 7+ messages in thread From: AngeloGioacchino Del Regno @ 2025-01-09 11:12 UTC (permalink / raw) To: Chen-Yu Tsai, Matthias Brugger Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek, Eddie Huang, Sascha Hauer Il 08/01/25 09:34, Chen-Yu Tsai ha scritto: > Some node names are incorrect, causing DT validations due to mismatches. > > Fixes: b3a372484157 ("arm64: dts: Add mediatek MT8173 SoC and evaluation board dts and Makefile") > Fixes: f2ce70149568 ("arm64: dts: mt8173: Add clock controller device nodes") > Cc: Eddie Huang <eddie.huang@mediatek.com> > Cc: Sascha Hauer <s.hauer@pengutronix.de> > Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] arm64: dts: mediatek: mt8173-elm: Drop pmic's #address-cells and #size-cells 2025-01-08 8:34 [PATCH 1/3] arm64: dts: mediatek: mt8173-elm: Drop pmic's #address-cells and #size-cells Chen-Yu Tsai 2025-01-08 8:34 ` [PATCH 2/3] arm64: dts: mediatek: mt8173: Fix disp-pwm compatible string Chen-Yu Tsai 2025-01-08 8:34 ` [PATCH 3/3] arm64: dts: mediatek: mt8173: Fix some node names Chen-Yu Tsai @ 2025-01-09 11:12 ` AngeloGioacchino Del Regno 2025-02-06 11:08 ` AngeloGioacchino Del Regno 3 siblings, 0 replies; 7+ messages in thread From: AngeloGioacchino Del Regno @ 2025-01-09 11:12 UTC (permalink / raw) To: Chen-Yu Tsai, Matthias Brugger Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek, kernel test robot Il 08/01/25 09:34, Chen-Yu Tsai ha scritto: > The PMIC has child nodes for each of its functions. It is not an actual > bus and no addressing is involved. > > Dropping the bogus properties fixes a DT validation error: > > arch/arm64/boot/dts/mediatek/mt8173-elm.dtb: pmic: '#address-cells', '#size-cells' do not match any of the regexes: 'pinctrl-[0-9]+' > from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml# > > Reported-by: kernel test robot <lkp@intel.com> > Closes: https://lore.kernel.org/oe-kbuild-all/202412212322.JTFpRD7X-lkp@intel.com/ > Fixes: 689b937bedde ("arm64: dts: mediatek: add mt8173 elm and hana board") > Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] arm64: dts: mediatek: mt8173-elm: Drop pmic's #address-cells and #size-cells 2025-01-08 8:34 [PATCH 1/3] arm64: dts: mediatek: mt8173-elm: Drop pmic's #address-cells and #size-cells Chen-Yu Tsai ` (2 preceding siblings ...) 2025-01-09 11:12 ` [PATCH 1/3] arm64: dts: mediatek: mt8173-elm: Drop pmic's #address-cells and #size-cells AngeloGioacchino Del Regno @ 2025-02-06 11:08 ` AngeloGioacchino Del Regno 3 siblings, 0 replies; 7+ messages in thread From: AngeloGioacchino Del Regno @ 2025-02-06 11:08 UTC (permalink / raw) To: Matthias Brugger, Chen-Yu Tsai Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek, kernel test robot On Wed, 08 Jan 2025 16:34:21 +0800, Chen-Yu Tsai wrote: > The PMIC has child nodes for each of its functions. It is not an actual > bus and no addressing is involved. > > Dropping the bogus properties fixes a DT validation error: > > arch/arm64/boot/dts/mediatek/mt8173-elm.dtb: pmic: '#address-cells', '#size-cells' do not match any of the regexes: 'pinctrl-[0-9]+' > from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml# > > [...] Applied to v6.14-next/dts64, thanks! [1/3] arm64: dts: mediatek: mt8173-elm: Drop pmic's #address-cells and #size-cells commit: aaa0b40e157c65aaa5e0ad903675f245333381bb [2/3] arm64: dts: mediatek: mt8173: Fix disp-pwm compatible string commit: 46ad36002088eff8fc5cae200aa42ae9f9310ddd [3/3] arm64: dts: mediatek: mt8173: Fix some node names commit: be035e4a26edf8fdcbc4fe95d16c28deade13bb0 Cheers, Angelo ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-02-06 11:08 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2025-01-08 8:34 [PATCH 1/3] arm64: dts: mediatek: mt8173-elm: Drop pmic's #address-cells and #size-cells Chen-Yu Tsai 2025-01-08 8:34 ` [PATCH 2/3] arm64: dts: mediatek: mt8173: Fix disp-pwm compatible string Chen-Yu Tsai 2025-01-09 11:12 ` AngeloGioacchino Del Regno 2025-01-08 8:34 ` [PATCH 3/3] arm64: dts: mediatek: mt8173: Fix some node names Chen-Yu Tsai 2025-01-09 11:12 ` AngeloGioacchino Del Regno 2025-01-09 11:12 ` [PATCH 1/3] arm64: dts: mediatek: mt8173-elm: Drop pmic's #address-cells and #size-cells AngeloGioacchino Del Regno 2025-02-06 11:08 ` AngeloGioacchino Del Regno
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®