Commit 73088dfe authored by Samuel Holland's avatar Samuel Holland Committed by Chen-Yu Tsai

arm64: dts: allwinner: Use the new r_intc binding

The binding of R_INTC was updated to allow specifying interrupts other
than the external NMI, since routing those interrupts through the R_INTC
driver allows using them for wakeup.

Update the device trees to use the new binding.
Acked-by: default avatarMaxime Ripard <mripard@kernel.org>
Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
parent 994e5818
...@@ -173,7 +173,7 @@ axp803: pmic@3a3 { ...@@ -173,7 +173,7 @@ axp803: pmic@3a3 {
compatible = "x-powers,axp803"; compatible = "x-powers,axp803";
reg = <0x3a3>; reg = <0x3a3>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */ x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */
}; };
}; };
......
...@@ -191,7 +191,7 @@ axp803: pmic@3a3 { ...@@ -191,7 +191,7 @@ axp803: pmic@3a3 {
compatible = "x-powers,axp803"; compatible = "x-powers,axp803";
reg = <0x3a3>; reg = <0x3a3>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */ x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */
}; };
}; };
......
...@@ -152,7 +152,7 @@ axp803: pmic@3a3 { ...@@ -152,7 +152,7 @@ axp803: pmic@3a3 {
compatible = "x-powers,axp803"; compatible = "x-powers,axp803";
reg = <0x3a3>; reg = <0x3a3>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
}; };
}; };
......
...@@ -185,7 +185,7 @@ axp803: pmic@3a3 { ...@@ -185,7 +185,7 @@ axp803: pmic@3a3 {
compatible = "x-powers,axp803"; compatible = "x-powers,axp803";
reg = <0x3a3>; reg = <0x3a3>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */ x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */
}; };
}; };
......
...@@ -192,7 +192,7 @@ axp803: pmic@3a3 { ...@@ -192,7 +192,7 @@ axp803: pmic@3a3 {
compatible = "x-powers,axp803"; compatible = "x-powers,axp803";
reg = <0x3a3>; reg = <0x3a3>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */ x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */
}; };
}; };
......
...@@ -139,7 +139,7 @@ axp803: pmic@3a3 { ...@@ -139,7 +139,7 @@ axp803: pmic@3a3 {
compatible = "x-powers,axp803"; compatible = "x-powers,axp803";
reg = <0x3a3>; reg = <0x3a3>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
}; };
}; };
......
...@@ -245,7 +245,7 @@ axp803: pmic@3a3 { ...@@ -245,7 +245,7 @@ axp803: pmic@3a3 {
compatible = "x-powers,axp803"; compatible = "x-powers,axp803";
reg = <0x3a3>; reg = <0x3a3>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
}; };
}; };
......
...@@ -296,7 +296,7 @@ axp803: pmic@3a3 { ...@@ -296,7 +296,7 @@ axp803: pmic@3a3 {
compatible = "x-powers,axp803"; compatible = "x-powers,axp803";
reg = <0x3a3>; reg = <0x3a3>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
}; };
}; };
......
...@@ -266,7 +266,7 @@ axp803: pmic@3a3 { ...@@ -266,7 +266,7 @@ axp803: pmic@3a3 {
compatible = "x-powers,axp803"; compatible = "x-powers,axp803";
reg = <0x3a3>; reg = <0x3a3>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
x-powers,drive-vbus-en; x-powers,drive-vbus-en;
}; };
}; };
......
...@@ -45,7 +45,7 @@ axp803: pmic@3a3 { ...@@ -45,7 +45,7 @@ axp803: pmic@3a3 {
compatible = "x-powers,axp803"; compatible = "x-powers,axp803";
reg = <0x3a3>; reg = <0x3a3>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
}; };
}; };
......
...@@ -205,7 +205,7 @@ axp803: pmic@3a3 { ...@@ -205,7 +205,7 @@ axp803: pmic@3a3 {
compatible = "x-powers,axp803"; compatible = "x-powers,axp803";
reg = <0x3a3>; reg = <0x3a3>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
wakeup-source; wakeup-source;
}; };
}; };
......
...@@ -1219,7 +1219,7 @@ r_intc: interrupt-controller@1f00c00 { ...@@ -1219,7 +1219,7 @@ r_intc: interrupt-controller@1f00c00 {
compatible = "allwinner,sun50i-a64-r-intc", compatible = "allwinner,sun50i-a64-r-intc",
"allwinner,sun6i-a31-r-intc"; "allwinner,sun6i-a31-r-intc";
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <3>;
reg = <0x01f00c00 0x400>; reg = <0x01f00c00 0x400>;
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
}; };
......
...@@ -157,7 +157,7 @@ axp805: pmic@36 { ...@@ -157,7 +157,7 @@ axp805: pmic@36 {
compatible = "x-powers,axp805", "x-powers,axp806"; compatible = "x-powers,axp805", "x-powers,axp806";
reg = <0x36>; reg = <0x36>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <1>; #interrupt-cells = <1>;
x-powers,self-working-mode; x-powers,self-working-mode;
......
...@@ -182,7 +182,7 @@ axp805: pmic@36 { ...@@ -182,7 +182,7 @@ axp805: pmic@36 {
compatible = "x-powers,axp805", "x-powers,axp806"; compatible = "x-powers,axp805", "x-powers,axp806";
reg = <0x36>; reg = <0x36>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <1>; #interrupt-cells = <1>;
x-powers,self-working-mode; x-powers,self-working-mode;
......
...@@ -119,7 +119,7 @@ axp805: pmic@36 { ...@@ -119,7 +119,7 @@ axp805: pmic@36 {
compatible = "x-powers,axp805", "x-powers,axp806"; compatible = "x-powers,axp805", "x-powers,axp806";
reg = <0x36>; reg = <0x36>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <1>; #interrupt-cells = <1>;
x-powers,self-working-mode; x-powers,self-working-mode;
......
...@@ -168,7 +168,7 @@ axp805: pmic@36 { ...@@ -168,7 +168,7 @@ axp805: pmic@36 {
compatible = "x-powers,axp805", "x-powers,axp806"; compatible = "x-powers,axp805", "x-powers,axp806";
reg = <0x36>; reg = <0x36>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <1>; #interrupt-cells = <1>;
x-powers,self-working-mode; x-powers,self-working-mode;
...@@ -281,7 +281,7 @@ pcf8563: rtc@51 { ...@@ -281,7 +281,7 @@ pcf8563: rtc@51 {
compatible = "nxp,pcf8563"; compatible = "nxp,pcf8563";
reg = <0x51>; reg = <0x51>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
#clock-cells = <0>; #clock-cells = <0>;
}; };
}; };
......
...@@ -927,10 +927,9 @@ r_watchdog: watchdog@7020400 { ...@@ -927,10 +927,9 @@ r_watchdog: watchdog@7020400 {
}; };
r_intc: interrupt-controller@7021000 { r_intc: interrupt-controller@7021000 {
compatible = "allwinner,sun50i-h6-r-intc", compatible = "allwinner,sun50i-h6-r-intc";
"allwinner,sun6i-a31-r-intc";
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <3>;
reg = <0x07021000 0x400>; reg = <0x07021000 0x400>;
interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment