Merge branch 'nohz/printk-v8' into irq/core
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / i2c / i2c-ocores.txt
1 Device tree configuration for i2c-ocores
2
3 Required properties:
4 - compatible      : "opencores,i2c-ocores" or "aeroflexgaisler,i2cmst"
5 - reg             : bus address start and address range size of device
6 - interrupts      : interrupt number
7 - clock-frequency : frequency of bus clock in Hz
8 - #address-cells  : should be <1>
9 - #size-cells     : should be <0>
10
11 Optional properties:
12 - reg-shift       : device register offsets are shifted by this value
13 - reg-io-width    : io register width in bytes (1, 2 or 4)
14 - regstep         : deprecated, use reg-shift above
15
16 Example:
17
18         i2c0: ocores@a0000000 {
19                 #address-cells = <1>;
20                 #size-cells = <0>;
21                 compatible = "opencores,i2c-ocores";
22                 reg = <0xa0000000 0x8>;
23                 interrupts = <10>;
24                 clock-frequency = <20000000>;
25
26                 reg-shift = <0>;        /* 8 bit registers */
27                 reg-io-width = <1>;     /* 8 bit read/write */
28
29                 dummy@60 {
30                         compatible = "dummy";
31                         reg = <0x60>;
32                 };
33         };