Skip to contentSkip to conversation

ARM: sunxi: dt: declare the r_pio pin controller for A31 SoC

PATCH New Boris BREZILLON 2 participants 2 messages May 13, 2014 – May 15, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: sunxi: dt: declare the r_pio pin controller for A31 SoC

The A31 SoC has a different pin controller for PL and PM banks. Define this new controller in the device tree.

---
Hello,

Sorry for the noise, I forgot I had to keep DT nodes in address order.

This patch depends on the PRCM series ([1]) which provides apb0 related stuff (apb0 clks and apb0 gates).

Best Regards,

Boris

[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2014-May/254664.html

Changes since v1:
- move r_pio node in order to keep DT nodes ordered

 arch/arm/boot/dts/sun6i-a31.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/sun6i-a31.dtsi +14 -0
index 81119a3..355ddb2 100644
@@ -562,5 +562,19 @@
 			compatible = "allwinner,sun6i-a31-cpuconfig";
 			reg = <0x01f01c00 0x300>;
 		};
+
+		r_pio: pinctrl at 01f02c00 {
+			compatible = "allwinner,sun6i-a31-r-pinctrl";
+			reg = <0x01f02c00 0x400>;
+			interrupts = <0 45 4>,
+				     <0 46 4>;
+			clocks = <&apb0_gates 0>;
+			resets = <&apb0_rst 0>;
+			gpio-controller;
+			interrupt-controller;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			#gpio-cells = <3>;
+		};
 	};
 };
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH v2 1/1 ARM: sunxi: dt: declare the r_pio pin controller for A31 SoC

Quoted 4 lines · Boris BREZILLON

The A31 SoC has a different pin controller for PL and PM banks. Define this new controller in the device tree.

Merged, thanks!

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140515/4092f3dd/attachment.sig>