]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: marvell: mcbin: add pinctrl nodes
authorRussell King <rmk+kernel@armlinux.org.uk>
Sat, 8 Jul 2017 19:16:39 +0000 (20:16 +0100)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Wed, 2 Aug 2017 14:07:38 +0000 (16:07 +0200)
Add pinctrl nodes to describe the CPM I2C0 and CPS SPI1 settings.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts

index 4968e731de612e3f781bed2760a0131cb5b42d55..fe91433d6fcd3221455f2115400f485dd1c81c93 100644 (file)
@@ -112,10 +112,14 @@ &ap_sdhci0 {
 
 &cpm_i2c0 {
        clock-frequency = <100000>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&cpm_i2c0_pins>;
        status = "okay";
 };
 
 &cpm_mdio {
+       pinctrl-names = "default";
+       pinctrl-0 = <&cpm_ge_mdio_pins>;
        status = "okay";
 
        ge_phy: ethernet-phy@0 {
@@ -123,6 +127,22 @@ ge_phy: ethernet-phy@0 {
        };
 };
 
+&cpm_pinctrl {
+       cpm_ge_mdio_pins: ge-mdio-pins {
+               marvell,pins = "mpp32", "mpp34";
+               marvell,function = "ge";
+       };
+       cpm_i2c0_pins: i2c0-pins {
+               marvell,pins = "mpp37", "mpp38";
+               marvell,function = "i2c0";
+       };
+       cpm_sdhci_pins: sdhci-pins {
+               marvell,pins = "mpp55", "mpp56", "mpp57", "mpp58", "mpp59",
+                              "mpp60", "mpp61";
+               marvell,function = "sdio";
+       };
+};
+
 &cpm_sata0 {
        /* CPM Lane 0 - U29 */
        status = "okay";
@@ -132,6 +152,8 @@ &cpm_sdhci0 {
        /* U6 */
        broken-cd;
        bus-width = <4>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&cpm_sdhci_pins>;
        status = "okay";
        vqmmc-supply = <&v_3_3>;
 };
@@ -157,6 +179,13 @@ &cps_eth1 {
        phy-mode = "sgmii";
 };
 
+&cps_pinctrl {
+       cps_spi1_pins: spi1-pins {
+               marvell,pins = "mpp12", "mpp13", "mpp14", "mpp15", "mpp16";
+               marvell,function = "spi1";
+       };
+};
+
 &cps_sata0 {
        /* CPS Lane 1 - U32 */
        /* CPS Lane 3 - U31 */
@@ -164,6 +193,8 @@ &cps_sata0 {
 };
 
 &cps_spi1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&cps_spi1_pins>;
        status = "okay";
 
        spi-flash@0 {