Skip to contentSkip to conversation

arm64: dts: meson-gxbb-odroidc2: enable I2C bus B

PATCH In review Stijn Tintel 2 participants 2 messages Feb 9, 2019 – Feb 10, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: meson-gxbb-odroidc2: enable I2C bus B

The ODROID C2 has 2 I2C buses, so enable both of them.

---
 arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +6 -0
index 1cc9dc68ef00..ee666471a580 100644
@@ -180,6 +180,12 @@
 	pinctrl-names = "default";
 };
 
+&i2c_B {
+	status = "okay";
+	pinctrl-0 = <&i2c_b_pins>;
+	pinctrl-names = "default";
+};
+
 &ir {
 	status = "okay";
 	pinctrl-0 = <&remote_input_ao_pins>;
Signature · 1 line
2.19.2
#1 lore raw

Hi,

Quoted 1 line · Stijn Tintel

The ODROID C2 has 2 I2C buses, so enable both of them.

Thanks for the change, but this I2C bus is on the 40-pin header, until we have a way to add support for HATs/CAPEs/<whatever hooks on the header> upstream, we prefer not enabling any functions on these pins by default.

You can, if you want add support for most functions, but "disabled" with a proper description of pins used by these functions.

You can also maintain a set of overlay files like it's done for the
libretech-cc boards https://github.com/libre-computer-project/libretech-overlays/tree/for-4.13.y/overlays
and use them with the Armbian mainline based latest image for example.

Neil

Quoted 24 lines
---
 arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +6 -0
index 1cc9dc68ef00..ee666471a580 100644
@@ -180,6 +180,12 @@
 	pinctrl-names = "default";
 };
 
+&i2c_B {
+	status = "okay";
+	pinctrl-0 = <&i2c_b_pins>;
+	pinctrl-names = "default";
+};
+
 &ir {
 	status = "okay";
 	pinctrl-0 = <&remote_input_ao_pins>;