diff options
author | Warner Losh <imp@FreeBSD.org> | 2014-08-31 04:55:32 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2014-08-31 04:55:32 +0000 |
commit | 081ea6e2ce3778c71b9db86f0af1900ecfc266d6 (patch) | |
tree | 0da5ffd36c6ff57306e2c5ea07051924f2a35a35 /Bindings/i2c/i2c-rk3x.txt | |
parent | d1ca9b39dc9ec58a6b6169a48e5b229a33debaf0 (diff) |
Import from rebasing repo at b78b6b80 (new files)vendor/device-tree/ianc-b78b6b80
Notes
Notes:
svn path=/vendor/device-tree/dist/; revision=270866
svn path=/vendor/device-tree/ianc-b78b6b80/dist/; revision=270867; tag=vendor/device-tree/ianc-b78b6b80
Diffstat (limited to 'Bindings/i2c/i2c-rk3x.txt')
-rw-r--r-- | Bindings/i2c/i2c-rk3x.txt | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Bindings/i2c/i2c-rk3x.txt b/Bindings/i2c/i2c-rk3x.txt new file mode 100644 index 000000000000..dde6c22ce91a --- /dev/null +++ b/Bindings/i2c/i2c-rk3x.txt @@ -0,0 +1,42 @@ +* Rockchip RK3xxx I2C controller + +This driver interfaces with the native I2C controller present in Rockchip +RK3xxx SoCs. + +Required properties : + + - reg : Offset and length of the register set for the device + - compatible : should be "rockchip,rk3066-i2c", "rockchip,rk3188-i2c" or + "rockchip,rk3288-i2c". + - interrupts : interrupt number + - clocks : parent clock + +Required on RK3066, RK3188 : + + - rockchip,grf : the phandle of the syscon node for the general register + file (GRF) + - on those SoCs an alias with the correct I2C bus ID (bit offset in the GRF) + is also required. + +Optional properties : + + - clock-frequency : SCL frequency to use (in Hz). If omitted, 100kHz is used. + +Example: + +aliases { + i2c0 = &i2c0; +} + +i2c0: i2c@2002d000 { + compatible = "rockchip,rk3188-i2c"; + reg = <0x2002d000 0x1000>; + interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + + rockchip,grf = <&grf>; + + clock-names = "i2c"; + clocks = <&cru PCLK_I2C0>; +}; |