Skip to content

Commit 31ec18e

Browse files
Russell Kinggclement
authored andcommitted
arm64: dts: marvell: mcbin: add pinctrl nodes
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>
1 parent 2188b39 commit 31ec18e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,37 @@
112112

113113
&cpm_i2c0 {
114114
clock-frequency = <100000>;
115+
pinctrl-names = "default";
116+
pinctrl-0 = <&cpm_i2c0_pins>;
115117
status = "okay";
116118
};
117119

118120
&cpm_mdio {
121+
pinctrl-names = "default";
122+
pinctrl-0 = <&cpm_ge_mdio_pins>;
119123
status = "okay";
120124

121125
ge_phy: ethernet-phy@0 {
122126
reg = <0>;
123127
};
124128
};
125129

130+
&cpm_pinctrl {
131+
cpm_ge_mdio_pins: ge-mdio-pins {
132+
marvell,pins = "mpp32", "mpp34";
133+
marvell,function = "ge";
134+
};
135+
cpm_i2c0_pins: i2c0-pins {
136+
marvell,pins = "mpp37", "mpp38";
137+
marvell,function = "i2c0";
138+
};
139+
cpm_sdhci_pins: sdhci-pins {
140+
marvell,pins = "mpp55", "mpp56", "mpp57", "mpp58", "mpp59",
141+
"mpp60", "mpp61";
142+
marvell,function = "sdio";
143+
};
144+
};
145+
126146
&cpm_sata0 {
127147
/* CPM Lane 0 - U29 */
128148
status = "okay";
@@ -132,6 +152,8 @@
132152
/* U6 */
133153
broken-cd;
134154
bus-width = <4>;
155+
pinctrl-names = "default";
156+
pinctrl-0 = <&cpm_sdhci_pins>;
135157
status = "okay";
136158
vqmmc-supply = <&v_3_3>;
137159
};
@@ -157,13 +179,22 @@
157179
phy-mode = "sgmii";
158180
};
159181

182+
&cps_pinctrl {
183+
cps_spi1_pins: spi1-pins {
184+
marvell,pins = "mpp12", "mpp13", "mpp14", "mpp15", "mpp16";
185+
marvell,function = "spi1";
186+
};
187+
};
188+
160189
&cps_sata0 {
161190
/* CPS Lane 1 - U32 */
162191
/* CPS Lane 3 - U31 */
163192
status = "okay";
164193
};
165194

166195
&cps_spi1 {
196+
pinctrl-names = "default";
197+
pinctrl-0 = <&cps_spi1_pins>;
167198
status = "okay";
168199

169200
spi-flash@0 {

0 commit comments

Comments
 (0)