xref: /freebsd-src/sys/contrib/device-tree/Bindings/i2c/i2c-lpc2k.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotNXP I2C controller for LPC2xxx/178x/18xx/43xx
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot - compatible: must be "nxp,lpc1788-i2c"
5*c66ec88fSEmmanuel Vadot - reg: physical address and length of the device registers
6*c66ec88fSEmmanuel Vadot - interrupts: a single interrupt specifier
7*c66ec88fSEmmanuel Vadot - clocks: clock for the device
8*c66ec88fSEmmanuel Vadot - #address-cells: should be <1>
9*c66ec88fSEmmanuel Vadot - #size-cells: should be <0>
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel VadotOptional properties:
12*c66ec88fSEmmanuel Vadot- clock-frequency: the desired I2C bus clock frequency in Hz; in
13*c66ec88fSEmmanuel Vadot  absence of this property the default value is used (100 kHz).
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotExample:
16*c66ec88fSEmmanuel Vadoti2c0: i2c@400a1000 {
17*c66ec88fSEmmanuel Vadot	compatible = "nxp,lpc1788-i2c";
18*c66ec88fSEmmanuel Vadot	reg = <0x400a1000 0x1000>;
19*c66ec88fSEmmanuel Vadot	interrupts = <18>;
20*c66ec88fSEmmanuel Vadot	clocks = <&ccu1 CLK_APB1_I2C0>;
21*c66ec88fSEmmanuel Vadot	#address-cells = <1>;
22*c66ec88fSEmmanuel Vadot	#size-cells = <0>;
23*c66ec88fSEmmanuel Vadot};
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadot&i2c0 {
26*c66ec88fSEmmanuel Vadot	clock-frequency = <400000>;
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot	lm75@48 {
29*c66ec88fSEmmanuel Vadot		compatible = "nxp,lm75";
30*c66ec88fSEmmanuel Vadot		reg = <0x48>;
31*c66ec88fSEmmanuel Vadot	};
32*c66ec88fSEmmanuel Vadot};
33*c66ec88fSEmmanuel Vadot
34