xref: /linux/Documentation/devicetree/bindings/i2c/allwinner,sun6i-a31-p2wi.yaml (revision 6c8c1406a6d6a3f2e61ac590f5c0994231bc6be7)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/i2c/allwinner,sun6i-a31-p2wi.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A31 P2WI (Push/Pull 2 Wires Interface)
8
9maintainers:
10  - Chen-Yu Tsai <wens@csie.org>
11  - Maxime Ripard <mripard@kernel.org>
12
13allOf:
14  - $ref: /schemas/i2c/i2c-controller.yaml#
15
16properties:
17  compatible:
18    const: allwinner,sun6i-a31-p2wi
19
20  reg:
21    maxItems: 1
22
23  interrupts:
24    maxItems: 1
25
26  clocks:
27    maxItems: 1
28
29  resets:
30    maxItems: 1
31
32  clock-frequency:
33    minimum: 1
34    maximum: 6000000
35
36required:
37  - compatible
38  - reg
39  - interrupts
40  - clocks
41  - resets
42
43unevaluatedProperties: false
44
45examples:
46  - |
47    i2c@1f03400 {
48        compatible = "allwinner,sun6i-a31-p2wi";
49        reg = <0x01f03400 0x400>;
50        interrupts = <0 39 4>;
51        clocks = <&apb0_gates 3>;
52        clock-frequency = <100000>;
53        resets = <&apb0_rst 3>;
54        #address-cells = <1>;
55        #size-cells = <0>;
56
57        axp221: pmic@68 {
58            /* compatible = "x-powers,axp221"; */
59            reg = <0x68>;
60        };
61    };
62
63...
64