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