[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20221122-mt8365-i2c-support-v4-2-885ad3301d5a@baylibre.com>
Date: Tue, 07 Mar 2023 13:41:08 +0100
From: Alexandre Mergnat <amergnat@...libre.com>
To: Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Qii Wang <qii.wang@...iatek.com>,
Matthias Brugger <matthias.bgg@...il.com>
Cc: linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>,
devicetree@...r.kernel.org,
Alexandre Mergnat <amergnat@...libre.com>,
Fabien Parent <fparent@...libre.com>,
Rob Herring <robh@...nel.org>, linux-kernel@...r.kernel.org,
linux-i2c@...r.kernel.org
Subject: [PATCH v4 2/2] 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@...libre.com>
---
arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts
index 4683704ea235..bfaee9a4a38b 100644
--- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts
@@ -87,6 +87,13 @@ optee_reserved: optee@...00000 {
};
};
+&i2c0 {
+ clock-frequency = <100000>;
+ pinctrl-0 = <&i2c0_pins>;
+ pinctrl-names = "default";
+ status = "okay";
+};
+
&pio {
gpio_keys: gpio-keys-pins {
pins {
@@ -96,6 +103,16 @@ pins {
};
};
+ i2c0_pins: i2c0-pins {
+ pins {
+ bias-pull-up;
+ mediatek,drive-strength-adv = <0>;
+ mediatek,pull-up-adv = <3>;
+ pinmux = <MT8365_PIN_57_SDA0__FUNC_SDA0_0>,
+ <MT8365_PIN_58_SCL0__FUNC_SCL0_0>;
+ };
+ };
+
uart0_pins: uart0-pins {
pins {
pinmux = <MT8365_PIN_35_URXD0__FUNC_URXD0>,
--
b4 0.10.1
Powered by blists - more mailing lists