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