summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/i2c/i2c-sc18is600.txt
blob: d6d77061ca22b12682e5eeceb01e4678d01fd572 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
NXP SC18IS600 and Silabs CP2120 - SPI to I2C bus bridge

Required properties:
  - compatible: Should contain one of
      * "nxp,sc18is600"
      * "nxp,sc18is601"
      * "silabs,cp2120"
  - reg: address of the chip on SPI bus
  - interrupts: Interrupt specifier. Refer to interrupt bindings.
  - #address-cells: Should be 1.
  - #size-cells: Should be 0.

Required properties for sc18is601:
  - clkin: Clock specifier for CLKIN pin

Optional properties:
  - clock-frequency:
    Desired I2C bus frequency in Hz, otherwise defaults to 100000
  - wakeup-gpios (sc18is60x only):
    GPIO specifier for SC18IS600's WAKEUP/IO4 pin, which can be used
    to wakeup the sc18is600 from power down mode. It's active low.
  - reset-gpios
    GPIO specifier for reset pin, which is active low.
  - vdd-supply
    Regulator specifier for VDD supply.
  - Child nodes conforming to i2c bus binding

Example:

&spi_controller {
	sc18is600: i2c@0 {
		compatible = "nxp,sc18is600";
		clock-frequency = <100000>;
		reg = <0>;

		vdd-supply = <&regulator_v33>;
		wakeup-gpios = <&gpio_controller 0 GPIO_ACTIVE_LOW>;
		reset-gpios = <&gpio_controller 1 GPIO_ACTIVE_LOW>;

		i2c_device@42 {
			compatible = "some,i2c-device";
			reg = <0x42>;
		};
	};
}