提交 6a680783 编写于 作者: G Gregory CLEMENT

ARM64: dts: marvell: armada37xx: add pinctrl definition

Start to populate the device tree of the Armada 37xx with the pincontrol
configuration used on the board providing a dts.
Signed-off-by: NGregory CLEMENT <gregory.clement@free-electrons.com>
上级 afda007f
...@@ -79,6 +79,8 @@ ...@@ -79,6 +79,8 @@
}; };
&i2c0 { &i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
status = "okay"; status = "okay";
gpio_exp: pca9555@22 { gpio_exp: pca9555@22 {
...@@ -113,6 +115,8 @@ ...@@ -113,6 +115,8 @@
&spi0 { &spi0 {
status = "okay"; status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi_quad_pins>;
m25p80@0 { m25p80@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
...@@ -143,6 +147,8 @@ ...@@ -143,6 +147,8 @@
/* Exported on the micro USB connector CON32 through an FTDI */ /* Exported on the micro USB connector CON32 through an FTDI */
&uart0 { &uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins>;
status = "okay"; status = "okay";
}; };
...@@ -178,6 +184,8 @@ ...@@ -178,6 +184,8 @@
}; };
&eth0 { &eth0 {
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins>;
phy-mode = "rgmii-id"; phy-mode = "rgmii-id";
phy = <&phy0>; phy = <&phy0>;
status = "okay"; status = "okay";
......
...@@ -190,6 +190,31 @@ ...@@ -190,6 +190,31 @@
clock-output-names = "xtal"; clock-output-names = "xtal";
#clock-cells = <0>; #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 { pinctrl_sb: pinctrl@18800 {
...@@ -207,6 +232,12 @@ ...@@ -207,6 +232,12 @@
<GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>; <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
}; };
rgmii_pins: mii-pins {
groups = "rgmii";
function = "mii";
};
}; };
eth0: ethernet@30000 { eth0: ethernet@30000 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册