Skip to content

Commit 988eff6

Browse files
amergnatmbgg
authored andcommitted
arm64: dts: mediatek: enable i2c0 for mt8365-evk board
Enable the I2C0 bus provides communication with: - The integrated RT9466 Switching Battery Charger. - The integrated MT6691 LP4X buck for VDDQ. - The integrated MT6691 LP4X buck for VDD2. - The pin header, to plug external I2C devices. Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20221122-mt8365-i2c-support-v6-2-e1009c8afd53@baylibre.com [mb: move bias-pull-up below pinmux] Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
1 parent dbf17e1 commit 988eff6

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

arch/arm64/boot/dts/mediatek/mt8365-evk.dts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@
8787
};
8888
};
8989

90+
&i2c0 {
91+
clock-frequency = <100000>;
92+
pinctrl-0 = <&i2c0_pins>;
93+
pinctrl-names = "default";
94+
status = "okay";
95+
};
96+
9097
&pio {
9198
gpio_keys: gpio-keys-pins {
9299
pins {
@@ -96,6 +103,14 @@
96103
};
97104
};
98105

106+
i2c0_pins: i2c0-pins {
107+
pins {
108+
pinmux = <MT8365_PIN_57_SDA0__FUNC_SDA0_0>,
109+
<MT8365_PIN_58_SCL0__FUNC_SCL0_0>;
110+
bias-pull-up;
111+
};
112+
};
113+
99114
uart0_pins: uart0-pins {
100115
pins {
101116
pinmux = <MT8365_PIN_35_URXD0__FUNC_URXD0>,

0 commit comments

Comments
 (0)