Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[cris-mirror.git] / Documentation / devicetree / bindings / i2c / i2c-aspeed.txt
blobe7106bfc1f138dddd7ce6830a5a4b8d951fed7eb
1 Device tree configuration for the I2C busses on the AST24XX and AST25XX SoCs.
3 Required Properties:
4 - #address-cells        : should be 1
5 - #size-cells           : should be 0
6 - reg                   : address offset and range of bus
7 - compatible            : should be "aspeed,ast2400-i2c-bus"
8                           or "aspeed,ast2500-i2c-bus"
9 - clocks                : root clock of bus, should reference the APB
10                           clock in the second cell
11 - resets                : phandle to reset controller with the reset number in
12                           the second cell
13 - interrupts            : interrupt number
14 - interrupt-parent      : interrupt controller for bus, should reference a
15                           aspeed,ast2400-i2c-ic or aspeed,ast2500-i2c-ic
16                           interrupt controller
18 Optional Properties:
19 - bus-frequency : frequency of the bus clock in Hz defaults to 100 kHz when not
20                   specified
21 - multi-master  : states that there is another master active on this bus.
23 Example:
25 i2c {
26         compatible = "simple-bus";
27         #address-cells = <1>;
28         #size-cells = <1>;
29         ranges = <0 0x1e78a000 0x1000>;
31         i2c_ic: interrupt-controller@0 {
32                 #interrupt-cells = <1>;
33                 compatible = "aspeed,ast2400-i2c-ic";
34                 reg = <0x0 0x40>;
35                 interrupts = <12>;
36                 interrupt-controller;
37         };
39         i2c0: i2c-bus@40 {
40                 #address-cells = <1>;
41                 #size-cells = <0>;
42                 #interrupt-cells = <1>;
43                 reg = <0x40 0x40>;
44                 compatible = "aspeed,ast2400-i2c-bus";
45                 clocks = <&syscon ASPEED_CLK_APB>;
46                 resets = <&syscon ASPEED_RESET_I2C>;
47                 bus-frequency = <100000>;
48                 interrupts = <0>;
49                 interrupt-parent = <&i2c_ic>;
50         };