Skip to content

Commit 8a91e15

Browse files
Russell Kinggclement
authored andcommitted
arm64: dts: marvell: mcbin: add support for i2c mux
The MACCHIATOBin board has a PCA9548 I2C mux for the SFP ports on CP100 master I2C bus 1. Add the DT description for it. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
1 parent 45df70c commit 8a91e15

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,36 @@
121121
status = "okay";
122122
};
123123

124+
&cpm_i2c1 {
125+
clock-frequency = <100000>;
126+
pinctrl-names = "default";
127+
pinctrl-0 = <&cpm_i2c1_pins>;
128+
status = "okay";
129+
130+
i2c-switch@70 {
131+
compatible = "nxp,pca9548";
132+
#address-cells = <1>;
133+
#size-cells = <0>;
134+
reg = <0x70>;
135+
136+
sfpp0_i2c: i2c@0 {
137+
#address-cells = <1>;
138+
#size-cells = <0>;
139+
reg = <0>;
140+
};
141+
sfpp1_i2c: i2c@1 {
142+
#address-cells = <1>;
143+
#size-cells = <0>;
144+
reg = <1>;
145+
};
146+
sfp_1g_i2c: i2c@2 {
147+
#address-cells = <1>;
148+
#size-cells = <0>;
149+
reg = <2>;
150+
};
151+
};
152+
};
153+
124154
&cpm_mdio {
125155
pinctrl-names = "default";
126156
pinctrl-0 = <&cpm_ge_mdio_pins>;
@@ -136,6 +166,10 @@
136166
marvell,pins = "mpp32", "mpp34";
137167
marvell,function = "ge";
138168
};
169+
cpm_i2c1_pins: i2c1-pins {
170+
marvell,pins = "mpp35", "mpp36";
171+
marvell,function = "i2c1";
172+
};
139173
cpm_i2c0_pins: i2c0-pins {
140174
marvell,pins = "mpp37", "mpp38";
141175
marvell,function = "i2c0";

0 commit comments

Comments
 (0)