ARM64: dts: marvell: armada37xx: add pinctrl definition
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Wed, 14 Dec 2016 16:43:48 +0000 (17:43 +0100)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Fri, 28 Apr 2017 14:08:12 +0000 (16:08 +0200)
Start to populate the device tree of the Armada 37xx with the pincontrol
configuration used on the board providing a dts.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm64/boot/dts/marvell/armada-3720-db.dts
arch/arm64/boot/dts/marvell/armada-37xx.dtsi

index 950cbd23a5bdff5b7c3bf7ab7bd47436cb08816b..01cdcb98416f3412ae2c81b0ecb452d8fad0eb7f 100644 (file)
@@ -79,6 +79,8 @@
 };
 
 &i2c0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c1_pins>;
        status = "okay";
 
        gpio_exp: pca9555@22 {
 
 &spi0 {
        status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&spi_quad_pins>;
 
        m25p80@0 {
                compatible = "jedec,spi-nor";
 
 /* Exported on the micro USB connector CON32 through an FTDI */
 &uart0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&uart1_pins>;
        status = "okay";
 };
 
 };
 
 &eth0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&rgmii_pins>;
        phy-mode = "rgmii-id";
        phy = <&phy0>;
        status = "okay";
index e6216cbd4b385e0bd9567e1d7d864616dbbe30f7..f581c74c0bb2bf709ebaa65d1143c6086e09ee0f 100644 (file)
                                        clock-output-names = "xtal";
                                        #clock-cells = <0>;
                                };
+
+                               spi_quad_pins: spi-quad-pins {
+                                       groups = "spi_quad";
+                                       function = "spi";
+                               };
+
+                               i2c1_pins: i2c1-pins {
+                                       groups = "i2c1";
+                                       function = "i2c";
+                               };
+
+                               i2c2_pins: i2c2-pins {
+                                       groups = "i2c2";
+                                       function = "i2c";
+                               };
+
+                               uart1_pins: uart1-pins {
+                                       groups = "uart1";
+                                       function = "uart";
+                               };
+
+                               uart2_pins: uart2-pins {
+                                       groups = "uart2";
+                                       function = "uart";
+                               };
                        };
 
                        pinctrl_sb: pinctrl@18800 {
                                        <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
                                        <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
                                };
+
+                               rgmii_pins: mii-pins {
+                                       groups = "rgmii";
+                                       function = "mii";
+                               };
+
                        };
 
                        eth0: ethernet@30000 {