IPQ40xx: Add reset controller support
authorRobert Marko <robert.marko@sartura.hr>
Thu, 10 Sep 2020 14:00:03 +0000 (16:00 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 18 Sep 2020 20:20:47 +0000 (16:20 -0400)
Since we have a driver for the reset controller, lets add the necessary node.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Cc: Luka Perkov <luka.perkov@sartura.hr>
arch/arm/Kconfig
arch/arm/dts/qcom-ipq4019.dtsi

index ee378f0..68d6d1a 100644 (file)
@@ -767,6 +767,7 @@ config ARCH_IPQ40XX
        select DM
        select DM_GPIO
        select DM_SERIAL
+       select DM_RESET
        select MSM_SMEM
        select PINCTRL
        select CLK
index dd69d0a..7b15df3 100644 (file)
@@ -11,6 +11,7 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/pinctrl/pinctrl-snapdragon.h>
 #include <dt-bindings/clock/qcom,ipq4019-gcc.h>
+#include <dt-bindings/reset/qcom,ipq4019-reset.h>
 
 / {
        #address-cells = <1>;
                        u-boot,dm-pre-reloc;
                };
 
+               reset: gcc-reset@1800000 {
+                       compatible = "qcom,gcc-reset-ipq4019";
+                       reg = <0x1800000 0x60000>;
+                       #clock-cells = <1>;
+                       #reset-cells = <1>;
+                       u-boot,dm-pre-reloc;
+               };
+
                pinctrl: qcom,tlmm@1000000 {
                        compatible = "qcom,tlmm-ipq4019";
                        reg = <0x1000000 0x300000>;