]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: ast2600: Add PWM to device tree
authorBilly Tsai <billy_tsai@aspeedtech.com>
Tue, 8 Mar 2022 03:04:07 +0000 (11:04 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 25 Mar 2022 17:35:50 +0000 (13:35 -0400)
Add the PWM node and enable it for AST2600 EVB

Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
arch/arm/dts/ast2600-evb.dts
arch/arm/dts/ast2600.dtsi

index c17988ec3cca1d68dd851ee81b459267795b5e5d..0d650543134ac7fee96667ecf3c342643195e090 100644 (file)
        };
 };
 
+&pwm {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pwm0_default
+                       &pinctrl_pwm1_default
+                       &pinctrl_pwm2_default
+                       &pinctrl_pwm3_default
+                       &pinctrl_pwm4_default
+                       &pinctrl_pwm5_default
+                       &pinctrl_pwm6_default
+                       &pinctrl_pwm7_default
+                       &pinctrl_pwm8g1_default
+                       &pinctrl_pwm9g1_default
+                       &pinctrl_pwm10g1_default
+                       &pinctrl_pwm11g1_default
+                       &pinctrl_pwm12g1_default
+                       &pinctrl_pwm13g1_default
+                       &pinctrl_pwm14g1_default>;
+};
+
 &uart5 {
        u-boot,dm-pre-reloc;
        status = "okay";
index ce006a375923848ebcb4d61800d872c58291c1e2..64074309b7b2393d7b39ab8168eaabb0b73194ee 100644 (file)
                        reg = < 0x1e600000 0x100>;
                };
 
+               pwm_tach: pwm_tach@1e610000 {
+                       compatible = "aspeed,ast2600-pwm-tach", "simple-mfd", "syscon";
+                       reg = <0x1e610000 0x100>;
+                       clocks = <&scu ASPEED_CLK_AHB>;
+                       resets = <&rst ASPEED_RESET_PWM>;
+
+                       pwm: pwm {
+                               compatible = "aspeed,ast2600-pwm";
+                               #pwm-cells = <3>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               status = "disabled";
+                       };
+               };
+
                fmc: flash-controller@1e620000 {
                        reg = < 0x1e620000 0xc4
                                0x20000000 0x10000000 >;