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