Skip to contentSkip to conversation

arm64: dts: allwinner: h6: tanix-tx6: Add I2C node

PATCH Applied Jernej Skrabec 2 participants 2 messages Nov 21, 2021 – Nov 22, 2021

Subsystems (2)
lore
Share & tools
lore

Jernej Skrabec

author maintainer
#0 lore raw

PATCH 1/1 arm64: dts: allwinner: h6: tanix-tx6: Add I2C node

Tanix TX6 has a LED display driven by FD650.

Currently there is no Linux driver nor any binding for it. However, we can at least provide I2C node in DT, so user space scripts or programs can manually control it.

---
 arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts +8 -0
index 6c10ff7f4b1c..7c37aa4c60cb 100644
@@ -32,6 +32,14 @@ hdmi_con_in: endpoint {
 		};
 	};
 
+	/* used for FD650 LED display driver */
+	i2c {
+		compatible = "i2c-gpio";
+		sda-gpios = <&pio 7 6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; /* PH6 */
+		scl-gpios = <&pio 7 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; /* PH5 */
+		i2c-gpio,delay-us = <5>;
+	};
+
 	reg_vcc1v8: regulator-vcc1v8 {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc1v8";
Signature · 1 line
2.34.0
#1 lore raw
Quoted 8 lines · Jernej Skrabec

Tanix TX6 has a LED display driven by FD650.

Currently there is no Linux driver nor any binding for it. However, we can at least provide I2C node in DT, so user space scripts or programs can manually control it.

[...]

Applied to sunxi/linux.git (sunxi/dt-for-5.17).

Thanks!
Maxime