^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) NXP I2C controller for LPC2xxx/178x/18xx/43xx
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) - compatible: must be "nxp,lpc1788-i2c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) - reg: physical address and length of the device registers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) - interrupts: a single interrupt specifier
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) - clocks: clock for the device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) - #address-cells: should be <1>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) - #size-cells: should be <0>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) - clock-frequency: the desired I2C bus clock frequency in Hz; in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) absence of this property the default value is used (100 kHz).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) i2c0: i2c@400a1000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) compatible = "nxp,lpc1788-i2c";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) reg = <0x400a1000 0x1000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) interrupts = <18>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) clocks = <&ccu1 CLK_APB1_I2C0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) &i2c0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) clock-frequency = <400000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) lm75@48 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) compatible = "nxp,lm75";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) reg = <0x48>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)