xref: /freebsd/sys/contrib/device-tree/Bindings/i2c/sprd,sc9860-i2c.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*b2d2a78aSEmmanuel Vadot%YAML 1.2
3*b2d2a78aSEmmanuel Vadot---
4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/i2c/sprd,sc9860-i2c.yaml#
5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*b2d2a78aSEmmanuel Vadot
7*b2d2a78aSEmmanuel Vadottitle: Spreadtrum SC9860 I2C controller
8*b2d2a78aSEmmanuel Vadot
9*b2d2a78aSEmmanuel Vadotmaintainers:
10*b2d2a78aSEmmanuel Vadot  - Orson Zhai <orsonzhai@gmail.com>
11*b2d2a78aSEmmanuel Vadot  - Baolin Wang <baolin.wang7@gmail.com>
12*b2d2a78aSEmmanuel Vadot  - Chunyan Zhang <zhang.lyra@gmail.com>
13*b2d2a78aSEmmanuel Vadot
14*b2d2a78aSEmmanuel VadotallOf:
15*b2d2a78aSEmmanuel Vadot  - $ref: /schemas/i2c/i2c-controller.yaml#
16*b2d2a78aSEmmanuel Vadot
17*b2d2a78aSEmmanuel Vadotproperties:
18*b2d2a78aSEmmanuel Vadot  compatible:
19*b2d2a78aSEmmanuel Vadot    const: sprd,sc9860-i2c
20*b2d2a78aSEmmanuel Vadot
21*b2d2a78aSEmmanuel Vadot  reg:
22*b2d2a78aSEmmanuel Vadot    maxItems: 1
23*b2d2a78aSEmmanuel Vadot
24*b2d2a78aSEmmanuel Vadot  interrupts:
25*b2d2a78aSEmmanuel Vadot    maxItems: 1
26*b2d2a78aSEmmanuel Vadot
27*b2d2a78aSEmmanuel Vadot  clocks:
28*b2d2a78aSEmmanuel Vadot    items:
29*b2d2a78aSEmmanuel Vadot      - description: I2C clock
30*b2d2a78aSEmmanuel Vadot      - description: I2C source (parent) clock
31*b2d2a78aSEmmanuel Vadot      - description: I2C module enable clock
32*b2d2a78aSEmmanuel Vadot
33*b2d2a78aSEmmanuel Vadot  clock-names:
34*b2d2a78aSEmmanuel Vadot    items:
35*b2d2a78aSEmmanuel Vadot      - const: i2c
36*b2d2a78aSEmmanuel Vadot      - const: source
37*b2d2a78aSEmmanuel Vadot      - const: enable
38*b2d2a78aSEmmanuel Vadot
39*b2d2a78aSEmmanuel Vadot  clock-frequency: true
40*b2d2a78aSEmmanuel Vadot
41*b2d2a78aSEmmanuel Vadotrequired:
42*b2d2a78aSEmmanuel Vadot  - compatible
43*b2d2a78aSEmmanuel Vadot  - reg
44*b2d2a78aSEmmanuel Vadot  - interrupts
45*b2d2a78aSEmmanuel Vadot  - clocks
46*b2d2a78aSEmmanuel Vadot  - clock-names
47*b2d2a78aSEmmanuel Vadot  - clock-frequency
48*b2d2a78aSEmmanuel Vadot
49*b2d2a78aSEmmanuel VadotunevaluatedProperties: false
50*b2d2a78aSEmmanuel Vadot
51*b2d2a78aSEmmanuel Vadotexamples:
52*b2d2a78aSEmmanuel Vadot  - |
53*b2d2a78aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
54*b2d2a78aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
55*b2d2a78aSEmmanuel Vadot
56*b2d2a78aSEmmanuel Vadot    i2c@70500000 {
57*b2d2a78aSEmmanuel Vadot      compatible = "sprd,sc9860-i2c";
58*b2d2a78aSEmmanuel Vadot      reg = <0x70500000 0x1000>;
59*b2d2a78aSEmmanuel Vadot      interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
60*b2d2a78aSEmmanuel Vadot      clocks = <&clk_i2c3>, <&ext_26m>, <&clk_ap_apb_gates 11>;
61*b2d2a78aSEmmanuel Vadot      clock-names = "i2c", "source", "enable";
62*b2d2a78aSEmmanuel Vadot      clock-frequency = <400000>;
63*b2d2a78aSEmmanuel Vadot      #address-cells = <1>;
64*b2d2a78aSEmmanuel Vadot      #size-cells = <0>;
65*b2d2a78aSEmmanuel Vadot    };
66