svn commit: r287419 - head/sys/boot/fdt/dts/arm

Oleksandr Tymoshenko gonzo at FreeBSD.org
Thu Sep 3 02:28:19 UTC 2015


Author: gonzo
Date: Thu Sep  3 02:28:18 2015
New Revision: 287419
URL: https://svnweb.freebsd.org/changeset/base/287419

Log:
  Enable both i2c1 and i2c2. These devices are disabled in TI's DTS
  so they were disabled during DTS transition. Though there are
  no standard devices/drivers on them people might use iic(4) userland
  interface to access these buses.

Modified:
  head/sys/boot/fdt/dts/arm/beaglebone-black.dts

Modified: head/sys/boot/fdt/dts/arm/beaglebone-black.dts
==============================================================================
--- head/sys/boot/fdt/dts/arm/beaglebone-black.dts	Thu Sep  3 01:38:15 2015	(r287418)
+++ head/sys/boot/fdt/dts/arm/beaglebone-black.dts	Thu Sep  3 02:28:18 2015	(r287419)
@@ -30,6 +30,22 @@
 #include "am335x-boneblack.dts"
 #include "beaglebone-common.dtsi"
 
+&am33xx_pinmux {
+	i2c1_pins: pinmux_i2c1_pins {
+		pinctrl-single,pins = <
+			0x158 (PIN_INPUT_PULLUP | MUX_MODE2)	/* spi0_d1.i2c1_sda */
+			0x15c (PIN_INPUT_PULLUP | MUX_MODE2)	/* spi0_cs0.i2c1_scl */
+		>;
+	};
+
+	i2c2_pins: pinmux_i2c2_pins {
+		pinctrl-single,pins = <
+			0x178 (PIN_INPUT_PULLUP | MUX_MODE3)	/* uart1_ctsn.i2c2_sda */
+			0x17c (PIN_INPUT_PULLUP | MUX_MODE3)	/* uart1_rtsn.i2c2_scl */
+		>;
+	};
+};
+
 &i2c0 {
 	tda998x: hdmi-encoder {
 		compatible = "nxp,tda998x";
@@ -42,6 +58,20 @@
  	};
 };
 
+&i2c1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c1_pins>;
+
+	status = "okay";
+};
+
+&i2c2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c2_pins>;
+
+	status = "okay";
+};
+
 &lcdc {
 	hdmi = <&tda998x>;
 };


More information about the svn-src-all mailing list