1# SPDX-License-Identifier: GPL-2.0 2%YAML 1.2 3--- 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 Controller Device Tree Bindings 8 9maintainers: 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 12 13properties: 14 compatible: 15 enum: 16 - allwinner,sun6i-a31-mipi-dsi 17 - allwinner,sun50i-a64-mipi-dsi 18 19 reg: 20 maxItems: 1 21 22 interrupts: 23 maxItems: 1 24 25 clocks: 26 minItems: 1 27 items: 28 - description: Bus Clock 29 - description: Module Clock 30 31 clock-names: 32 items: 33 - const: bus 34 - const: mod 35 36 resets: 37 maxItems: 1 38 39 vcc-dsi-supply: 40 description: VCC-DSI power supply of the DSI encoder 41 42 phys: 43 maxItems: 1 44 45 phy-names: 46 const: dphy 47 48 port: 49 $ref: /schemas/graph.yaml#/properties/port 50 description: 51 The port should be the input endpoint, usually coming from the 52 associated TCON. 53 54required: 55 - compatible 56 - reg 57 - interrupts 58 - clocks 59 - phys 60 - phy-names 61 - resets 62 - vcc-dsi-supply 63 - port 64 65allOf: 66 - $ref: dsi-controller.yaml# 67 - if: 68 properties: 69 compatible: 70 contains: 71 const: allwinner,sun6i-a31-mipi-dsi 72 73 then: 74 properties: 75 clocks: 76 minItems: 2 77 78 required: 79 - clock-names 80 81 - if: 82 properties: 83 compatible: 84 contains: 85 const: allwinner,sun50i-a64-mipi-dsi 86 87 then: 88 properties: 89 clocks: 90 minItems: 1 91 92unevaluatedProperties: false 93 94examples: 95 - | 96 dsi0: dsi@1ca0000 { 97 compatible = "allwinner,sun6i-a31-mipi-dsi"; 98 reg = <0x01ca0000 0x1000>; 99 interrupts = <0 89 4>; 100 clocks = <&ccu 23>, <&ccu 96>; 101 clock-names = "bus", "mod"; 102 resets = <&ccu 4>; 103 phys = <&dphy0>; 104 phy-names = "dphy"; 105 vcc-dsi-supply = <®_dcdc1>; 106 #address-cells = <1>; 107 #size-cells = <0>; 108 109 panel@0 { 110 compatible = "bananapi,lhr050h41", "ilitek,ili9881c"; 111 reg = <0>; 112 power-supply = <®_display>; 113 reset-gpios = <&r_pio 0 5 1>; /* PL05 */ 114 backlight = <&pwm_bl>; 115 }; 116 117 port { 118 dsi0_in_tcon0: endpoint { 119 remote-endpoint = <&tcon0_out_dsi0>; 120 }; 121 }; 122 }; 123 124... 125