[PATCH FOR TESTING ONLY RFC 4/4] sunxi-d1s-t113: Add D1 and T113 PWM node

Sumit Garg sumit.garg at linaro.org
Mon May 20 12:28:12 CEST 2024


On Sat, 18 May 2024 at 09:25, John Watts <contact at jookia.org> wrote:
>
> This is based on the binding from the as yet unmerged kernel series:
>
> https://lore.kernel.org/linux-kernel/20240131125920.2879433-2-privatesub2@gmail.com/
>
> Signed-off-by: John Watts <contact at jookia.org>
> ---
>  arch/riscv/dts/sunxi-d1s-t113.dtsi                   | 12 ++++++++++++
>  dts/upstream/src/riscv/allwinner/sunxi-d1s-t113.dtsi | 12 ++++++++++++
>  2 files changed, 24 insertions(+)
>
> diff --git a/arch/riscv/dts/sunxi-d1s-t113.dtsi b/arch/riscv/dts/sunxi-d1s-t113.dtsi
> index 822f022eec..92b6432f77 100644
> --- a/arch/riscv/dts/sunxi-d1s-t113.dtsi
> +++ b/arch/riscv/dts/sunxi-d1s-t113.dtsi
> @@ -145,6 +145,18 @@
>                         };
>                 };
>
> +               pwm: pwm at 2000c00 {
> +                       compatible = "allwinner,sun20i-d1-pwm";
> +                       reg = <0x02000c00 0x400>;
> +                       clocks = <&ccu CLK_BUS_PWM>,
> +                                <&dcxo>,
> +                                <&ccu CLK_APB0>;
> +                       clock-names = "bus", "hosc", "apb0";
> +                       resets = <&ccu RST_BUS_PWM>;
> +                       status = "disabled";
> +                       #pwm-cells = <0x3>;
> +               };
> +
>                 ccu: clock-controller at 2001000 {
>                         compatible = "allwinner,sun20i-d1-ccu";
>                         reg = <0x2001000 0x1000>;
> diff --git a/dts/upstream/src/riscv/allwinner/sunxi-d1s-t113.dtsi b/dts/upstream/src/riscv/allwinner/sunxi-d1s-t113.dtsi
> index 5a9d7f5a75..435a1e66aa 100644
> --- a/dts/upstream/src/riscv/allwinner/sunxi-d1s-t113.dtsi
> +++ b/dts/upstream/src/riscv/allwinner/sunxi-d1s-t113.dtsi
> @@ -145,6 +145,18 @@
>                         };
>                 };
>
> +               pwm: pwm at 2000c00 {
> +                       compatible = "allwinner,sun20i-d1-pwm";
> +                       reg = <0x02000c00 0x400>;
> +                       clocks = <&ccu CLK_BUS_PWM>,
> +                                <&dcxo>,
> +                                <&ccu CLK_APB0>;
> +                       clock-names = "bus", "hosc", "apb0";
> +                       resets = <&ccu RST_BUS_PWM>;
> +                       status = "disabled";
> +                       #pwm-cells = <0x3>;
> +               };
> +

This change shouldn't be needed for your testing purposes too. It only
comes into picture once you enable OF_UPSTREAM. BTW, DT source files
in dts/upstream are strictly following/syncing against Linux kernel DT
sources. So all the custom U-Boot specific DT stuff belongs to
arch/${ARCH}/dts/.

-Sumit

>                 ccu: clock-controller at 2001000 {
>                         compatible = "allwinner,sun20i-d1-ccu";
>                         reg = <0x2001000 0x1000>;
>
> --
> 2.45.1
>


More information about the U-Boot mailing list