xref: /openbmc/linux/Documentation/devicetree/bindings/i2c/i2c-owl.yaml (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
1*730f2051SCristian Ciocaltea# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*730f2051SCristian Ciocaltea%YAML 1.2
3*730f2051SCristian Ciocaltea---
4*730f2051SCristian Ciocaltea$id: http://devicetree.org/schemas/i2c/i2c-owl.yaml#
5*730f2051SCristian Ciocaltea$schema: http://devicetree.org/meta-schemas/core.yaml#
6*730f2051SCristian Ciocaltea
7*730f2051SCristian Ciocalteatitle: Actions Semi Owl I2C Controller
8*730f2051SCristian Ciocaltea
9*730f2051SCristian Ciocalteamaintainers:
10*730f2051SCristian Ciocaltea  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
11*730f2051SCristian Ciocaltea
12*730f2051SCristian Ciocalteadescription: |
13*730f2051SCristian Ciocaltea  This I2C controller is found in the Actions Semi Owl SoCs:
14*730f2051SCristian Ciocaltea  S500, S700 and S900.
15*730f2051SCristian Ciocaltea
16*730f2051SCristian CiocalteaallOf:
17*730f2051SCristian Ciocaltea  - $ref: /schemas/i2c/i2c-controller.yaml#
18*730f2051SCristian Ciocaltea
19*730f2051SCristian Ciocalteaproperties:
20*730f2051SCristian Ciocaltea  compatible:
21*730f2051SCristian Ciocaltea    enum:
22*730f2051SCristian Ciocaltea      - actions,s500-i2c # Actions Semi S500 compatible SoCs
23*730f2051SCristian Ciocaltea      - actions,s700-i2c # Actions Semi S700 compatible SoCs
24*730f2051SCristian Ciocaltea      - actions,s900-i2c # Actions Semi S900 compatible SoCs
25*730f2051SCristian Ciocaltea
26*730f2051SCristian Ciocaltea  reg:
27*730f2051SCristian Ciocaltea    maxItems: 1
28*730f2051SCristian Ciocaltea
29*730f2051SCristian Ciocaltea  interrupts:
30*730f2051SCristian Ciocaltea    maxItems: 1
31*730f2051SCristian Ciocaltea
32*730f2051SCristian Ciocaltea  clocks:
33*730f2051SCristian Ciocaltea    description: Phandle of the clock feeding the I2C controller.
34*730f2051SCristian Ciocaltea    minItems: 1
35*730f2051SCristian Ciocaltea
36*730f2051SCristian Ciocaltea  clock-frequency:
37*730f2051SCristian Ciocaltea    description: |
38*730f2051SCristian Ciocaltea      Desired I2C bus clock frequency in Hz. As only Standard and Fast
39*730f2051SCristian Ciocaltea      modes are supported, possible values are 100000 and 400000.
40*730f2051SCristian Ciocaltea    enum: [100000, 400000]
41*730f2051SCristian Ciocaltea
42*730f2051SCristian Ciocaltearequired:
43*730f2051SCristian Ciocaltea  - compatible
44*730f2051SCristian Ciocaltea  - reg
45*730f2051SCristian Ciocaltea  - interrupts
46*730f2051SCristian Ciocaltea  - clocks
47*730f2051SCristian Ciocaltea
48*730f2051SCristian CiocalteaunevaluatedProperties: false
49*730f2051SCristian Ciocaltea
50*730f2051SCristian Ciocalteaexamples:
51*730f2051SCristian Ciocaltea  - |
52*730f2051SCristian Ciocaltea    #include <dt-bindings/clock/actions,s900-cmu.h>
53*730f2051SCristian Ciocaltea    #include <dt-bindings/interrupt-controller/arm-gic.h>
54*730f2051SCristian Ciocaltea    i2c@e0170000 {
55*730f2051SCristian Ciocaltea        compatible = "actions,s900-i2c";
56*730f2051SCristian Ciocaltea        reg = <0xe0170000 0x1000>;
57*730f2051SCristian Ciocaltea        interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
58*730f2051SCristian Ciocaltea        clocks = <&cmu CLK_I2C0>;
59*730f2051SCristian Ciocaltea        clock-frequency = <100000>;
60*730f2051SCristian Ciocaltea    };
61*730f2051SCristian Ciocaltea
62*730f2051SCristian Ciocaltea...
63