Skip to content

Commit 9415e24

Browse files
AngeloGioacchino Del Regnombgg
authored andcommitted
arm64: dts: mediatek: mt6795-xperia-m5: Enable I2C 0-3 busses
Properly configure and enable the three i2c controllers that have devices attached on the Sony Xperia M5 smartphone. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Matthias Brugger <[email protected]>
1 parent 7eb1f2c commit 9415e24

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,71 @@
5555
status = "okay";
5656
};
5757

58+
&i2c0 {
59+
pinctrl-names = "default";
60+
pinctrl-0 = <&i2c0_pins>;
61+
status = "okay";
62+
};
63+
64+
&i2c1 {
65+
pinctrl-names = "default";
66+
pinctrl-0 = <&i2c1_pins>;
67+
status = "okay";
68+
};
69+
70+
&i2c2 {
71+
pinctrl-names = "default";
72+
pinctrl-0 = <&i2c2_pins>;
73+
status = "okay";
74+
};
75+
76+
&i2c3 {
77+
pinctrl-names = "default";
78+
pinctrl-0 = <&i2c3_pins>;
79+
status = "okay";
80+
};
81+
5882
&pio {
83+
i2c0_pins: i2c0-pins {
84+
pins-bus {
85+
pinmux = <PINMUX_GPIO45__FUNC_SDA0>,
86+
<PINMUX_GPIO46__FUNC_SCL0>;
87+
input-enable;
88+
};
89+
};
90+
91+
i2c1_pins: i2c1-pins {
92+
pins-bus {
93+
pinmux = <PINMUX_GPIO125__FUNC_SDA1>,
94+
<PINMUX_GPIO126__FUNC_SCL1>;
95+
bias-disable;
96+
};
97+
};
98+
99+
i2c2_pins: i2c2-pins {
100+
pins-bus {
101+
pinmux = <PINMUX_GPIO43__FUNC_SDA2>,
102+
<PINMUX_GPIO44__FUNC_SCL2>;
103+
bias-disable;
104+
};
105+
};
106+
107+
i2c3_pins: i2c3-pins {
108+
pins-bus {
109+
pinmux = <PINMUX_GPIO136__FUNC_SDA3>,
110+
<PINMUX_GPIO137__FUNC_SCL3>;
111+
bias-disable;
112+
};
113+
};
114+
115+
i2c4_pins: i2c4-pins {
116+
pins-bus {
117+
pinmux = <PINMUX_GPIO100__FUNC_SDA4>,
118+
<PINMUX_GPIO101__FUNC_SCL4>;
119+
bias-disable;
120+
};
121+
};
122+
59123
uart0_pins: uart0-pins {
60124
pins-rx {
61125
pinmux = <PINMUX_GPIO113__FUNC_URXD0>;

0 commit comments

Comments
 (0)