0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/display/allwinner,sun6i-a31-mipi-dsi.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Allwinner A31 MIPI-DSI Controller Device Tree Bindings
0008
0009 maintainers:
0010 - Chen-Yu Tsai <wens@csie.org>
0011 - Maxime Ripard <mripard@kernel.org>
0012
0013 properties:
0014 compatible:
0015 enum:
0016 - allwinner,sun6i-a31-mipi-dsi
0017 - allwinner,sun50i-a64-mipi-dsi
0018
0019 reg:
0020 maxItems: 1
0021
0022 interrupts:
0023 maxItems: 1
0024
0025 clocks:
0026 minItems: 1
0027 items:
0028 - description: Bus Clock
0029 - description: Module Clock
0030
0031 clock-names:
0032 items:
0033 - const: bus
0034 - const: mod
0035
0036 resets:
0037 maxItems: 1
0038
0039 vcc-dsi-supply:
0040 description: VCC-DSI power supply of the DSI encoder
0041
0042 phys:
0043 maxItems: 1
0044
0045 phy-names:
0046 const: dphy
0047
0048 port:
0049 $ref: /schemas/graph.yaml#/properties/port
0050 description:
0051 The port should be the input endpoint, usually coming from the
0052 associated TCON.
0053
0054 required:
0055 - compatible
0056 - reg
0057 - interrupts
0058 - clocks
0059 - phys
0060 - phy-names
0061 - resets
0062 - vcc-dsi-supply
0063 - port
0064
0065 allOf:
0066 - $ref: dsi-controller.yaml#
0067 - if:
0068 properties:
0069 compatible:
0070 contains:
0071 const: allwinner,sun6i-a31-mipi-dsi
0072
0073 then:
0074 properties:
0075 clocks:
0076 minItems: 2
0077
0078 required:
0079 - clock-names
0080
0081 - if:
0082 properties:
0083 compatible:
0084 contains:
0085 const: allwinner,sun50i-a64-mipi-dsi
0086
0087 then:
0088 properties:
0089 clocks:
0090 minItems: 1
0091
0092 unevaluatedProperties: false
0093
0094 examples:
0095 - |
0096 dsi0: dsi@1ca0000 {
0097 compatible = "allwinner,sun6i-a31-mipi-dsi";
0098 reg = <0x01ca0000 0x1000>;
0099 interrupts = <0 89 4>;
0100 clocks = <&ccu 23>, <&ccu 96>;
0101 clock-names = "bus", "mod";
0102 resets = <&ccu 4>;
0103 phys = <&dphy0>;
0104 phy-names = "dphy";
0105 vcc-dsi-supply = <®_dcdc1>;
0106 #address-cells = <1>;
0107 #size-cells = <0>;
0108
0109 panel@0 {
0110 compatible = "bananapi,lhr050h41", "ilitek,ili9881c";
0111 reg = <0>;
0112 power-supply = <®_display>;
0113 reset-gpios = <&r_pio 0 5 1>; /* PL05 */
0114 backlight = <&pwm_bl>;
0115 };
0116
0117 port {
0118 dsi0_in_tcon0: endpoint {
0119 remote-endpoint = <&tcon0_out_dsi0>;
0120 };
0121 };
0122 };
0123
0124 ...