Thread (7 messages) 7 messages, 3 authors, 2023-03-31

Re: [PATCH v6 2/2] arm64: dts: mediatek: enable i2c0 for mt8365-evk board

From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Date: 2023-03-28 10:05:50
Also in: linux-devicetree, linux-i2c, linux-mediatek, lkml

Il 28/03/23 11:04, Alexandre Mergnat ha scritto:
quoted hunk ↗ jump to hunk
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 <redacted>
---
  arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 15 +++++++++++++++
  1 file changed, 15 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts
index 4683704ea235..adc79ba14b33 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@43200000 {
  	};
  };
  
+&i2c0 {
+	clock-frequency = <100000>;
+	pinctrl-0 = <&i2c0_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
  &pio {
  	gpio_keys: gpio-keys-pins {
  		pins {
@@ -96,6 +103,14 @@ pins {
  		};
  	};
  
+	i2c0_pins: i2c0-pins {
+		pins {
+			bias-pull-up;
I prefer seeing pinmux first, any other properties last....
If Matthias can please fix that while applying...

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help