Browse Source

ARM64: dts: gxbb: add i2c bus

Add nodes for i2c bus on gxbb based platforms.
On the OdroidC2 (I2C A) and P200 (I2C B), the pull-up resistor are
present directly on the board. This indicates that these pins are
dedicated to i2c.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Jerome Brunet 9 years ago
parent
commit
cb700f4935

+ 6 - 0
arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts

@@ -92,3 +92,9 @@
 	pinctrl-0 = <&remote_input_ao_pins>;
 	pinctrl-0 = <&remote_input_ao_pins>;
 	pinctrl-names = "default";
 	pinctrl-names = "default";
 };
 };
+
+&i2c_A {
+	status = "okay";
+	pinctrl-0 = <&i2c_a_pins>;
+	pinctrl-names = "default";
+};

+ 6 - 0
arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts

@@ -50,3 +50,9 @@
 	compatible = "amlogic,p200", "amlogic,meson-gxbb";
 	compatible = "amlogic,p200", "amlogic,meson-gxbb";
 	model = "Amlogic Meson GXBB P200 Development Board";
 	model = "Amlogic Meson GXBB P200 Development Board";
 };
 };
+
+&i2c_B {
+	status = "okay";
+	pinctrl-0 = <&i2c_b_pins>;
+	pinctrl-names = "default";
+};