Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/i2c/allwinner,sun6i-a31-p2wi.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Allwinner A31 P2WI (Push/Pull 2 Wires Interface) Device Tree Bindings
0008 
0009 maintainers:
0010   - Chen-Yu Tsai <wens@csie.org>
0011   - Maxime Ripard <mripard@kernel.org>
0012 
0013 allOf:
0014   - $ref: /schemas/i2c/i2c-controller.yaml#
0015 
0016 properties:
0017   compatible:
0018     const: allwinner,sun6i-a31-p2wi
0019 
0020   reg:
0021     maxItems: 1
0022 
0023   interrupts:
0024     maxItems: 1
0025 
0026   clocks:
0027     maxItems: 1
0028 
0029   resets:
0030     maxItems: 1
0031 
0032   clock-frequency:
0033     minimum: 1
0034     maximum: 6000000
0035 
0036 required:
0037   - compatible
0038   - reg
0039   - interrupts
0040   - clocks
0041   - resets
0042 
0043 unevaluatedProperties: false
0044 
0045 examples:
0046   - |
0047     i2c@1f03400 {
0048         compatible = "allwinner,sun6i-a31-p2wi";
0049         reg = <0x01f03400 0x400>;
0050         interrupts = <0 39 4>;
0051         clocks = <&apb0_gates 3>;
0052         clock-frequency = <100000>;
0053         resets = <&apb0_rst 3>;
0054         #address-cells = <1>;
0055         #size-cells = <0>;
0056 
0057         axp221: pmic@68 {
0058             /* compatible = "x-powers,axp221"; */
0059             reg = <0x68>;
0060         };
0061     };
0062 
0063 ...