Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions arch/arm/boot/dts/apple/s5l8945x-ipad3.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,18 @@
pins = "gpio86", "gpio87", "gpio88", "gpio89";
function = "periph";
};

/* ADT i2c1 function-iic_sda/scl: 0xc05 = 101, 0xc06 = 102. */
i2c1_pins: i2c1-pins {
pins = "gpio101", "gpio102";
function = "periph";
};

/* ADT i2c2 function-iic_sda/scl: 0xa00 = 80, 0xa01 = 81. */
i2c2_pins: i2c2-pins {
pins = "gpio80", "gpio81";
function = "periph";
};
};

/* SPI1's power-state switch. The pmgr node's device-clocks
Expand Down Expand Up @@ -498,6 +510,68 @@
};
};

/*
* ADT /arm-io/i2c1: i2c,s5l8945x, irq 19 (0x13), clock-gates 0x51
* (PMGR 0x3f101138, measured 0x2ff from boot). Carries the AK8975B
* compass (0x0e, WIA 0x48) and AD7147A proximity sensor (0x2c).
*/
i2c1: i2c@3300000 {
compatible = "apple,s5l8940x-i2c";
reg = <0x3300000 0x1000>;
clock-frequency = <100000>;
interrupts = <19>;
clocks = <&uart_clk>;
clock-names = "i2c";
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

compass@e {
compatible = "asahi-kasei,ak8975";
reg = <0x0e>;
};
};

/*
* ADT /arm-io/i2c2: i2c,s5l8945x, irq 20 (0x14), clock-gates 0x52
* (PMGR 0x3f10113c, measured 0x2ff from boot). Carries the motion
* sensors and ambient light sensor:
* - accelerometer,lis331dlh at 0x19 (WHO_AM_I 0x32)
* - als,tsl2581 at 0x39 (ID 0x93)
* - gyro,ap3gdl at 0x68 (WHO_AM_I 0xd3, ST L3G4200D; ADT also
* lists gyro1 at 0x6a, unpopulated on the tested J2A unit)
*/
i2c2: i2c@3400000 {
compatible = "apple,s5l8940x-i2c";
reg = <0x3400000 0x1000>;
clock-frequency = <100000>;
interrupts = <20>;
clocks = <&uart_clk>;
clock-names = "i2c";
pinctrl-names = "default";
pinctrl-0 = <&i2c2_pins>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

accelerometer@19 {
compatible = "st,lis331dlh-accel";
reg = <0x19>;
};

als@39 {
compatible = "amstaos,tsl2581";
reg = <0x39>;
};

gyro@68 {
compatible = "st,l3g4200d-gyro";
reg = <0x68>;
};
};

/* ADT /arm-io/spi1: spi-1,samsung, irq 29, clock-gates 68. */
spi1: spi@2100000 {
compatible = "apple,s5l8940x-spi";
Expand Down
Loading