Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

DT: i2c: Add binding document for IMG I2C SCB

Introduce a devicetree binding for Imagination Technologies
I2C SCB controller.

Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

authored by

James Hogan and committed by
Wolfram Sang
039e60ed 48ef3ca9

+26
+26
Documentation/devicetree/bindings/i2c/i2c-img-scb.txt
··· 1 + IMG Serial Control Bus (SCB) I2C Controller 2 + 3 + Required Properties: 4 + - compatible: "img,scb-i2c" 5 + - reg: Physical base address and length of controller registers 6 + - interrupts: Interrupt number used by the controller 7 + - clocks : Should contain a clock specifier for each entry in clock-names 8 + - clock-names : Should contain the following entries: 9 + "scb", for the SCB core clock. 10 + "sys", for the system clock. 11 + - clock-frequency: The I2C bus frequency in Hz 12 + - #address-cells: Should be <1> 13 + - #size-cells: Should be <0> 14 + 15 + Example: 16 + 17 + i2c@18100000 { 18 + compatible = "img,scb-i2c"; 19 + reg = <0x18100000 0x200>; 20 + interrupts = <GIC_SHARED 2 IRQ_TYPE_LEVEL_HIGH>; 21 + clocks = <&i2c0_clk>, <&system_clk>; 22 + clock-names = "scb", "sys"; 23 + clock-frequency = <400000>; 24 + #address-cells = <1>; 25 + #size-cells = <0>; 26 + };