Message ID | 20200826183805.19369-3-andre.przywara@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | dt-bindings: Convert SP804 to Json-schema (and fix users) | expand |
On Wed, Aug 26, 2020 at 8:38 PM Andre Przywara <andre.przywara@arm.com> wrote: > The SP804 DT nodes for Realview, MPS2 and VExpress were not complying > with the binding: it requires either one or three clocks, but does not > allow exactly two clocks. > > Simply duplicate the first clock to satisfy the binding requirement. > For MPS2, we triple the clock, and add the clock-names property, as this > is required by the Linux primecell driver. > Try to make the clock-names more consistent on the way. > > Signed-off-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> This looks good to me, shall I simply apply this patch to my Versatile tree (I suppose Sudeep should ack it too) or are you sending it upstream to the soc tree? Yours, Linus Walleij
On 28/08/2020 15:03, Linus Walleij wrote: Hi, > On Wed, Aug 26, 2020 at 8:38 PM Andre Przywara <andre.przywara@arm.com> wrote: > >> The SP804 DT nodes for Realview, MPS2 and VExpress were not complying >> with the binding: it requires either one or three clocks, but does not >> allow exactly two clocks. >> >> Simply duplicate the first clock to satisfy the binding requirement. >> For MPS2, we triple the clock, and add the clock-names property, as this >> is required by the Linux primecell driver. >> Try to make the clock-names more consistent on the way. >> >> Signed-off-by: Andre Przywara <andre.przywara@arm.com> > > Acked-by: Linus Walleij <linus.walleij@linaro.org> Thanks! > > This looks good to me, shall I simply apply this patch to my > Versatile tree (I suppose Sudeep should ack it too) or are > you sending it upstream to the soc tree? If you want to take it (and Sudeep is OK with it), I am happy with that. The DTs should work either way, so there is no dependency or anything. One patch less to carry around for me ;-) Just sent a v2 with your ACK, so please pick this one. Thanks, Andre
diff --git a/arch/arm/boot/dts/arm-realview-pb11mp.dts b/arch/arm/boot/dts/arm-realview-pb11mp.dts index 9748e0fe800f..564e2eee2c24 100644 --- a/arch/arm/boot/dts/arm-realview-pb11mp.dts +++ b/arch/arm/boot/dts/arm-realview-pb11mp.dts @@ -568,8 +568,8 @@ clocks = <&sp810_syscon 0>, <&sp810_syscon 1>, <&pclk>; - clock-names = "timerclk0", - "timerclk1", + clock-names = "timer0clk", + "timer1clk", "apb_pclk"; }; @@ -582,8 +582,8 @@ clocks = <&sp810_syscon 2>, <&sp810_syscon 3>, <&pclk>; - clock-names = "timerclk2", - "timerclk3", + clock-names = "timer0clk", + "timer1clk", "apb_pclk"; }; @@ -645,16 +645,16 @@ timer45: timer@10018000 { compatible = "arm,sp804", "arm,primecell"; reg = <0x10018000 0x1000>; - clocks = <&timclk>, <&pclk>; - clock-names = "timer", "apb_pclk"; + clocks = <&timclk>, <&timclk>, <&pclk>; + clock-names = "timer0clk", "timer1clk", "apb_pclk"; status = "disabled"; }; timer67: timer@10019000 { compatible = "arm,sp804", "arm,primecell"; reg = <0x10019000 0x1000>; - clocks = <&timclk>, <&pclk>; - clock-names = "timer", "apb_pclk"; + clocks = <&timclk>, <&timclk>, <&pclk>; + clock-names = "timer0clk", "timer1clk", "apb_pclk"; status = "disabled"; }; diff --git a/arch/arm/boot/dts/mps2.dtsi b/arch/arm/boot/dts/mps2.dtsi index 96fb5a5cf4d3..48c34fa282af 100644 --- a/arch/arm/boot/dts/mps2.dtsi +++ b/arch/arm/boot/dts/mps2.dtsi @@ -161,9 +161,11 @@ }; timer2: dual-timer@2000 { - compatible = "arm,sp804"; + compatible = "arm,sp804", "arm,primecell"; reg = <0x2000 0x1000>; - clocks = <&sysclk>; + clocks = <&sysclk>, <&sysclk>, <&sysclk>; + clock-names = "timer0clk", "timer1clk", + "apb_pclk"; interrupts = <10>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/vexpress-v2p-ca9.dts b/arch/arm/boot/dts/vexpress-v2p-ca9.dts index 623246f37448..6cddea25a292 100644 --- a/arch/arm/boot/dts/vexpress-v2p-ca9.dts +++ b/arch/arm/boot/dts/vexpress-v2p-ca9.dts @@ -122,8 +122,8 @@ reg = <0x100e4000 0x1000>; interrupts = <0 48 4>, <0 49 4>; - clocks = <&oscclk2>, <&oscclk2>; - clock-names = "timclk", "apb_pclk"; + clocks = <&oscclk2>, <&oscclk2>, <&oscclk2>; + clock-names = "timer0clk", "timer1clk", "apb_pclk"; status = "disabled"; };
The SP804 DT nodes for Realview, MPS2 and VExpress were not complying with the binding: it requires either one or three clocks, but does not allow exactly two clocks. Simply duplicate the first clock to satisfy the binding requirement. For MPS2, we triple the clock, and add the clock-names property, as this is required by the Linux primecell driver. Try to make the clock-names more consistent on the way. Signed-off-by: Andre Przywara <andre.przywara@arm.com> --- arch/arm/boot/dts/arm-realview-pb11mp.dts | 16 ++++++++-------- arch/arm/boot/dts/mps2.dtsi | 6 ++++-- arch/arm/boot/dts/vexpress-v2p-ca9.dts | 4 ++-- 3 files changed, 14 insertions(+), 12 deletions(-)