brintos

brintos / linux-shallow public Read only

0
0
Text · 2.7 KiB · c731fbd Raw
137 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/display/allwinner,sun6i-a31-mipi-dsi.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Allwinner A31 MIPI-DSI Controller8 9maintainers:10  - Chen-Yu Tsai <wens@csie.org>11  - Maxime Ripard <mripard@kernel.org>12 13properties:14  compatible:15    oneOf:16      - enum:17          - allwinner,sun6i-a31-mipi-dsi18          - allwinner,sun50i-a64-mipi-dsi19          - allwinner,sun50i-a100-mipi-dsi20      - items:21          - const: allwinner,sun20i-d1-mipi-dsi22          - const: allwinner,sun50i-a100-mipi-dsi23 24  reg:25    maxItems: 126 27  interrupts:28    maxItems: 129 30  clocks:31    minItems: 132    items:33      - description: Bus Clock34      - description: Module Clock35 36  clock-names:37    items:38      - const: bus39      - const: mod40 41  resets:42    maxItems: 143 44  vcc-dsi-supply:45    description: VCC-DSI power supply of the DSI encoder46 47  phys:48    maxItems: 149 50  phy-names:51    const: dphy52 53  port:54    $ref: /schemas/graph.yaml#/properties/port55    description:56      The port should be the input endpoint, usually coming from the57      associated TCON.58 59required:60  - compatible61  - reg62  - interrupts63  - clocks64  - phys65  - phy-names66  - resets67  - port68 69allOf:70  - $ref: dsi-controller.yaml#71  - if:72      properties:73        compatible:74          contains:75            enum:76              - allwinner,sun6i-a31-mipi-dsi77              - allwinner,sun50i-a100-mipi-dsi78 79    then:80      properties:81        clocks:82          minItems: 283 84      required:85        - clock-names86 87    else:88      properties:89        clocks:90          maxItems: 191 92  - if:93      properties:94        compatible:95          contains:96            enum:97              - allwinner,sun6i-a31-mipi-dsi98              - allwinner,sun50i-a64-mipi-dsi99 100    then:101      required:102        - vcc-dsi-supply103 104unevaluatedProperties: false105 106examples:107  - |108    dsi0: dsi@1ca0000 {109        compatible = "allwinner,sun6i-a31-mipi-dsi";110        reg = <0x01ca0000 0x1000>;111        interrupts = <0 89 4>;112        clocks = <&ccu 23>, <&ccu 96>;113        clock-names = "bus", "mod";114        resets = <&ccu 4>;115        phys = <&dphy0>;116        phy-names = "dphy";117        vcc-dsi-supply = <&reg_dcdc1>;118        #address-cells = <1>;119        #size-cells = <0>;120 121        panel@0 {122                compatible = "bananapi,lhr050h41", "ilitek,ili9881c";123                reg = <0>;124                power-supply = <&reg_display>;125                reset-gpios = <&r_pio 0 5 1>; /* PL05 */126                backlight = <&pwm_bl>;127        };128 129        port {130            dsi0_in_tcon0: endpoint {131                remote-endpoint = <&tcon0_out_dsi0>;132            };133        };134    };135 136...137