]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - Documentation/devicetree/bindings/i2c/i2c-ocores.txt
i2c: i2c-ocores: DT bindings and minor fixes.
[mirror_ubuntu-bionic-kernel.git] / Documentation / devicetree / bindings / i2c / i2c-ocores.txt
1 Device tree configuration for i2c-ocores
2
3 Required properties:
4 - compatible : "opencores,i2c-ocores"
5 - reg : bus address start and address range size of device
6 - interrupts : interrupt number
7 - regstep : size of device registers in bytes
8 - clock-frequency : frequency of bus clock in Hz
9 - #address-cells : should be <1>
10 - #size-cells : should be <0>
11
12 Example:
13
14 i2c0: ocores@a0000000 {
15 #address-cells = <1>;
16 #size-cells = <0>;
17 compatible = "opencores,i2c-ocores";
18 reg = <0xa0000000 0x8>;
19 interrupts = <10>;
20 regstep = <1>;
21 clock-frequency = <20000000>;
22
23 dummy@60 {
24 compatible = "dummy";
25 reg = <0x60>;
26 };
27 };