arm64: mvebu: armada37xx: add pinctrl definition
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Tue, 9 May 2017 11:35:22 +0000 (13:35 +0200)
committerStefan Roese <sr@denx.de>
Wed, 31 May 2017 05:33:49 +0000 (07:33 +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>
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
Cc: Konstantin Porotchkin <kostap@marvell.com>
Cc: Nadav Haklai <nadavh@marvell.com>
arch/arm/dts/armada-3720-db.dts
arch/arm/dts/armada-37xx.dtsi

index 85761afb748ab1279d51264d7d876ebcca27ddec..5f06252e4e24a55207b0801bc3c6d9e643362675 100644 (file)
 };
 
 &eth0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&rgmii_pins>;
        status = "okay";
        phy-mode = "rgmii";
 };
 
 &i2c0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c1_pins>;
        status = "okay";
 };
 
 
 &spi0 {
        status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&spi_quad_pins>;
 
        spi-flash@0 {
                #address-cells = <1>;
 
 /* Exported on the micro USB connector CON32 through an FTDI */
 &uart0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&uart1_pins>;
        status = "okay";
 };
 
index 810bf3476c5765d7a85aee2fe73949a99f5c006d..690234234b5e3e47ab5173e2bd744131d727a8c0 100644 (file)
                                        <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
 
                                };
+
+                               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-sb@18800 {
                                        <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
                                        <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
                                };
+
+                               rgmii_pins: mii-pins {
+                                       groups = "rgmii";
+                                       function = "mii";
+                               };
+
                        };
 
                        usb3: usb@58000 {