unstick r262440

Revision 262440

Date:
2014/02/24 12:45:03
Author:
loos
Revision Log:
Enable the second and the third I2C controllers on Beaglebone-black.

The first I2C controller is only used to manage the on-board devices (PMIC
and HDMI framer) and its bus is not exposed on the expasion headers.

With this change the following pins on the P9 expansion headers are now
reserved as I2C pins:

Pin 17 - I2C1 SCL
Pin 18 - I2C1 SDA
Pin 19 - I2C2 SCL
Pin 20 - I2C2 SDA

The I2C2 is the bus that should be used to read the contents of cape
eeproms.

Approved by: adrian (mentor, implicit)
Files:

Legend:

 
Added
 
Removed
 
Modified
  • head/sys/boot/fdt/dts/am335x.dtsi

     
    210 210 i2c-device-id = <0>;
    211 211 };
    212 212
    213 i2c1: i2c@4802a000 {
    214 #address-cells = <1>;
    215 #size-cells = <0>;
    216 compatible = "ti,i2c";
    217 reg =< 0x4802a000 0x1000 >;
    218 interrupts = <71>;
    219 interrupt-parent = <&AINTC>;
    220 i2c-device-id = <1>;
    221 };
    222
    223 i2c2: i2c@4819c000 {
    224 #address-cells = <1>;
    225 #size-cells = <0>;
    226 compatible = "ti,i2c";
    227 reg =< 0x4819c000 0x1000 >;
    228 interrupts = <30>;
    229 interrupt-parent = <&AINTC>;
    230 i2c-device-id = <2>;
    231 };
    232
    213 233 pwm@48300000 {
    214 234 compatible = "ti,am335x-pwm";
    215 235 #address-cells = <1>;
  • head/sys/boot/fdt/dts/beaglebone-black.dts

     
    52 52 /* I2C0 */
    53 53 "I2C0_SDA", "I2C0_SDA","i2c",
    54 54 "I2C0_SCL", "I2C0_SCL","i2c",
    55 /* I2C1 */
    56 "SPI0_D1", "I2C1_SDA", "i2c",
    57 "SPI0_CS0", "I2C1_SCL", "i2c",
    58 /* I2C2 */
    59 "UART1_CTSn", "I2C2_SDA", "i2c",
    60 "UART1_RTSn", "I2C2_SCL", "i2c",
    55 61 /* Ethernet */
    56 62 "MII1_RX_ER", "gmii1_rxerr", "input_pulldown",
    57 63 "MII1_TX_EN", "gmii1_txen", "output",