Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Sep 2015 02:28:18 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r287419 - head/sys/boot/fdt/dts/arm
Message-ID:  <201509030228.t832SIKZ068420@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>;
 };



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509030228.t832SIKZ068420>