Skip to content

Commit 6a68078

Browse files
committed
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: Gregory CLEMENT <[email protected]>
1 parent afda007 commit 6a68078

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

arch/arm64/boot/dts/marvell/armada-3720-db.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@
7979
};
8080

8181
&i2c0 {
82+
pinctrl-names = "default";
83+
pinctrl-0 = <&i2c1_pins>;
8284
status = "okay";
8385

8486
gpio_exp: pca9555@22 {
@@ -113,6 +115,8 @@
113115

114116
&spi0 {
115117
status = "okay";
118+
pinctrl-names = "default";
119+
pinctrl-0 = <&spi_quad_pins>;
116120

117121
m25p80@0 {
118122
compatible = "jedec,spi-nor";
@@ -143,6 +147,8 @@
143147

144148
/* Exported on the micro USB connector CON32 through an FTDI */
145149
&uart0 {
150+
pinctrl-names = "default";
151+
pinctrl-0 = <&uart1_pins>;
146152
status = "okay";
147153
};
148154

@@ -178,6 +184,8 @@
178184
};
179185

180186
&eth0 {
187+
pinctrl-names = "default";
188+
pinctrl-0 = <&rgmii_pins>;
181189
phy-mode = "rgmii-id";
182190
phy = <&phy0>;
183191
status = "okay";

arch/arm64/boot/dts/marvell/armada-37xx.dtsi

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,31 @@
190190
clock-output-names = "xtal";
191191
#clock-cells = <0>;
192192
};
193+
194+
spi_quad_pins: spi-quad-pins {
195+
groups = "spi_quad";
196+
function = "spi";
197+
};
198+
199+
i2c1_pins: i2c1-pins {
200+
groups = "i2c1";
201+
function = "i2c";
202+
};
203+
204+
i2c2_pins: i2c2-pins {
205+
groups = "i2c2";
206+
function = "i2c";
207+
};
208+
209+
uart1_pins: uart1-pins {
210+
groups = "uart1";
211+
function = "uart";
212+
};
213+
214+
uart2_pins: uart2-pins {
215+
groups = "uart2";
216+
function = "uart";
217+
};
193218
};
194219

195220
pinctrl_sb: pinctrl@18800 {
@@ -207,6 +232,12 @@
207232
<GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
208233
<GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
209234
};
235+
236+
rgmii_pins: mii-pins {
237+
groups = "rgmii";
238+
function = "mii";
239+
};
240+
210241
};
211242

212243
eth0: ethernet@30000 {

0 commit comments

Comments
 (0)