Message ID | 20230209160357.19307-4-matthias.bgg@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v1,1/4] arm64: dts: mt8195: Update vdosys compatible | expand |
On Fri, Feb 10, 2023 at 12:05 AM <matthias.bgg@kernel.org> wrote: > > From: Matthias Brugger <matthias.bgg@gmail.com> > > This reverts commit fc6634ac0e5380aeb1063275a2e9a583d41b2306. > > The mmsys is a clock provider but does not have any clocks connected to > it. Therefore assigned-clock properties should be applied to the users of mmsys. If there are multiple users that need this, then it should be moved to the clock provider node topckgen. > This fixes the DT schema check: > mediatek/mt8173-elm.dtb: syscon@14000000: 'assigned-clock-rates', 'assigned-clocks' do not match any of the regexes: 'pinctrl-[0-9]+' > > Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> > --- > > arch/arm64/boot/dts/mediatek/mt8173.dtsi | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi > index c47d7d900f283..b753547e250fe 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi > @@ -988,8 +988,6 @@ mmsys: syscon@14000000 { > compatible = "mediatek,mt8173-mmsys", "syscon"; > reg = <0 0x14000000 0 0x1000>; > power-domains = <&spm MT8173_POWER_DOMAIN_MM>; > - assigned-clocks = <&topckgen CLK_TOP_MM_SEL>; > - assigned-clock-rates = <400000000>; > #clock-cells = <1>; > #reset-cells = <1>; > mboxes = <&gce 0 CMDQ_THR_PRIO_HIGHEST>, > -- > 2.39.0 > >
Il 09/02/23 17:03, matthias.bgg@kernel.org ha scritto: > From: Matthias Brugger <matthias.bgg@gmail.com> > > This reverts commit fc6634ac0e5380aeb1063275a2e9a583d41b2306. > > The mmsys is a clock provider but does not have any clocks connected to > it. Therefore assigned-clock properties should be applied to the users of mmsys. > > This fixes the DT schema check: > mediatek/mt8173-elm.dtb: syscon@14000000: 'assigned-clock-rates', 'assigned-clocks' do not match any of the regexes: 'pinctrl-[0-9]+' > > Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> About solving schema checks: agreed. Since this is impacting on multiple subsystems (display, vdec, venc), can we instead move this to the topckgen node? I didn't check if that would trigger another schema check, but I remember doing that on Qualcomm DTs a bit of time ago. The alternative would be to copy that over more than 10 nodes, which would be a bit ... ugly. Cheers, Angelo > --- > > arch/arm64/boot/dts/mediatek/mt8173.dtsi | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi > index c47d7d900f283..b753547e250fe 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi > @@ -988,8 +988,6 @@ mmsys: syscon@14000000 { > compatible = "mediatek,mt8173-mmsys", "syscon"; > reg = <0 0x14000000 0 0x1000>; > power-domains = <&spm MT8173_POWER_DOMAIN_MM>; > - assigned-clocks = <&topckgen CLK_TOP_MM_SEL>; > - assigned-clock-rates = <400000000>; > #clock-cells = <1>; > #reset-cells = <1>; > mboxes = <&gce 0 CMDQ_THR_PRIO_HIGHEST>,
On 10/02/2023 12:59, AngeloGioacchino Del Regno wrote: > Il 09/02/23 17:03, matthias.bgg@kernel.org ha scritto: >> From: Matthias Brugger <matthias.bgg@gmail.com> >> >> This reverts commit fc6634ac0e5380aeb1063275a2e9a583d41b2306. >> >> The mmsys is a clock provider but does not have any clocks connected to >> it. Therefore assigned-clock properties should be applied to the users of mmsys. >> >> This fixes the DT schema check: >> mediatek/mt8173-elm.dtb: syscon@14000000: 'assigned-clock-rates', >> 'assigned-clocks' do not match any of the regexes: 'pinctrl-[0-9]+' >> >> Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> > > About solving schema checks: agreed. > > Since this is impacting on multiple subsystems (display, vdec, venc), can we > instead move this to the topckgen node? > I didn't check if that would trigger another schema check, but I remember > doing that on Qualcomm DTs a bit of time ago. > > The alternative would be to copy that over more than 10 nodes, which would > be a bit ... ugly. > Thanks Angelo and Chen-Yu for your feedback. I'm not able to reproduce that problem right now, so I'll drop this patch from the series. Regards, Matthias
diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index c47d7d900f283..b753547e250fe 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -988,8 +988,6 @@ mmsys: syscon@14000000 { compatible = "mediatek,mt8173-mmsys", "syscon"; reg = <0 0x14000000 0 0x1000>; power-domains = <&spm MT8173_POWER_DOMAIN_MM>; - assigned-clocks = <&topckgen CLK_TOP_MM_SEL>; - assigned-clock-rates = <400000000>; #clock-cells = <1>; #reset-cells = <1>; mboxes = <&gce 0 CMDQ_THR_PRIO_HIGHEST>,