1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/i2c/i2c-rk3x.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Rockchip RK3xxx I2C controller
10 This driver interfaces with the native I2C controller present in Rockchip
14 - $ref: /schemas/i2c/i2c-controller.yaml#
17 - Heiko Stuebner <heiko@sntech.de>
19 # Everything else is described in the common file
23 - const: rockchip,rv1108-i2c
24 - const: rockchip,rk3066-i2c
25 - const: rockchip,rk3188-i2c
26 - const: rockchip,rk3228-i2c
27 - const: rockchip,rk3288-i2c
28 - const: rockchip,rk3399-i2c
33 - const: rockchip,rk3288-i2c
39 - const: rockchip,rk3399-i2c
51 For older hardware (rk3066, rk3188, rk3228, rk3288)
52 there is one clock that is used both to derive the functional clock
53 for the device and as the bus clock.
54 For newer hardware (rk3399) this clock is used to derive
57 For newer hardware (rk3399) this is the bus clock
66 $ref: /schemas/types.yaml#/definitions/phandle
68 Required on RK3066, RK3188 the phandle of the syscon node for
69 the general register file (GRF)
70 On those SoCs an alias with the correct I2C bus ID
71 (bit offset in the GRF) is also required.
76 SCL frequency to use (in Hz). If omitted, 100kHz is used.
78 i2c-scl-rising-time-ns:
81 Number of nanoseconds the SCL signal takes to rise
82 (t(r) in I2C specification). If not specified this is assumed to be
83 the maximum the specification allows(1000 ns for Standard-mode,
84 300 ns for Fast-mode) which might cause slightly slower communication.
86 i2c-scl-falling-time-ns:
89 Number of nanoseconds the SCL signal takes to fall
90 (t(f) in the I2C specification). If not specified this is assumed to
91 be the maximum the specification allows (300 ns) which might cause
92 slightly slower communication.
94 i2c-sda-falling-time-ns:
97 Number of nanoseconds the SDA signal takes to fall
98 (t(f) in the I2C specification). If not specified we will use the SCL
99 value since they are the same in nearly all cases.
113 - rockchip,rk3066-i2c
114 - rockchip,rk3188-i2c
120 unevaluatedProperties: false
124 #include <dt-bindings/clock/rk3188-cru-common.h>
125 #include <dt-bindings/interrupt-controller/arm-gic.h>
126 #include <dt-bindings/interrupt-controller/irq.h>
128 compatible = "rockchip,rk3188-i2c";
129 reg = <0x2002d000 0x1000>;
130 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
131 clocks = <&cru PCLK_I2C0>;
133 rockchip,grf = <&grf>;
134 i2c-scl-falling-time-ns = <100>;
135 i2c-scl-rising-time-ns = <800>;
136 #address-cells = <1>;