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