0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/display/ste,mcde.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: ST-Ericsson Multi Channel Display Engine MCDE
0008
0009 maintainers:
0010 - Linus Walleij <linus.walleij@linaro.org>
0011
0012 properties:
0013 compatible:
0014 const: ste,mcde
0015
0016 reg:
0017 maxItems: 1
0018
0019 interrupts:
0020 maxItems: 1
0021
0022 clocks:
0023 description: an array of the MCDE clocks
0024 items:
0025 - description: MCDECLK (main MCDE clock)
0026 - description: LCDCLK (LCD clock)
0027 - description: PLLDSI (HDMI clock)
0028
0029 clock-names:
0030 items:
0031 - const: mcde
0032 - const: lcd
0033 - const: hdmi
0034
0035 resets:
0036 maxItems: 1
0037
0038 epod-supply:
0039 description: a phandle to the EPOD regulator
0040
0041 vana-supply:
0042 description: a phandle to the analog voltage regulator
0043
0044 port:
0045 $ref: /schemas/graph.yaml#/properties/port
0046 description:
0047 A DPI port node
0048
0049 "#address-cells":
0050 const: 1
0051
0052 "#size-cells":
0053 const: 1
0054
0055 ranges: true
0056
0057 patternProperties:
0058 "^dsi@[0-9a-f]+$":
0059 description: subnodes for the three DSI host adapters
0060 type: object
0061 $ref: dsi-controller.yaml#
0062
0063 properties:
0064 compatible:
0065 const: ste,mcde-dsi
0066
0067 reg:
0068 maxItems: 1
0069
0070 vana-supply:
0071 description: a phandle to the analog voltage regulator
0072
0073 clocks:
0074 description: phandles to the high speed and low power (energy save) clocks
0075 the high speed clock is not present on the third (dsi2) block, so it
0076 should only have the "lp" clock
0077 minItems: 1
0078 maxItems: 2
0079
0080 clock-names:
0081 oneOf:
0082 - items:
0083 - const: hs
0084 - const: lp
0085 - items:
0086 - const: lp
0087
0088 required:
0089 - compatible
0090 - reg
0091 - vana-supply
0092 - clocks
0093 - clock-names
0094
0095 unevaluatedProperties: false
0096
0097 required:
0098 - compatible
0099 - reg
0100 - interrupts
0101 - clocks
0102 - clock-names
0103 - epod-supply
0104 - vana-supply
0105
0106 additionalProperties: false
0107
0108 examples:
0109 - |
0110 #include <dt-bindings/interrupt-controller/irq.h>
0111 #include <dt-bindings/interrupt-controller/arm-gic.h>
0112 #include <dt-bindings/mfd/dbx500-prcmu.h>
0113 #include <dt-bindings/gpio/gpio.h>
0114
0115 mcde@a0350000 {
0116 compatible = "ste,mcde";
0117 reg = <0xa0350000 0x1000>;
0118 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
0119 epod-supply = <&db8500_b2r2_mcde_reg>;
0120 vana-supply = <&ab8500_ldo_ana_reg>;
0121 clocks = <&prcmu_clk PRCMU_MCDECLK>,
0122 <&prcmu_clk PRCMU_LCDCLK>,
0123 <&prcmu_clk PRCMU_PLLDSI>;
0124 clock-names = "mcde", "lcd", "hdmi";
0125 #address-cells = <1>;
0126 #size-cells = <1>;
0127 ranges;
0128
0129 dsi0: dsi@a0351000 {
0130 compatible = "ste,mcde-dsi";
0131 reg = <0xa0351000 0x1000>;
0132 vana-supply = <&ab8500_ldo_ana_reg>;
0133 clocks = <&prcmu_clk PRCMU_DSI0CLK>, <&prcmu_clk PRCMU_DSI0ESCCLK>;
0134 clock-names = "hs", "lp";
0135 #address-cells = <1>;
0136 #size-cells = <0>;
0137
0138 panel@0 {
0139 compatible = "samsung,s6d16d0";
0140 reg = <0>;
0141 vdd1-supply = <&ab8500_ldo_aux1_reg>;
0142 reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
0143 };
0144 };
0145
0146 dsi1: dsi@a0352000 {
0147 compatible = "ste,mcde-dsi";
0148 reg = <0xa0352000 0x1000>;
0149 vana-supply = <&ab8500_ldo_ana_reg>;
0150 clocks = <&prcmu_clk PRCMU_DSI1CLK>, <&prcmu_clk PRCMU_DSI1ESCCLK>;
0151 clock-names = "hs", "lp";
0152 #address-cells = <1>;
0153 #size-cells = <0>;
0154 };
0155
0156 dsi2: dsi@a0353000 {
0157 compatible = "ste,mcde-dsi";
0158 reg = <0xa0353000 0x1000>;
0159 vana-supply = <&ab8500_ldo_ana_reg>;
0160 /* This DSI port only has the Low Power / Energy Save clock */
0161 clocks = <&prcmu_clk PRCMU_DSI2ESCCLK>;
0162 clock-names = "lp";
0163 #address-cells = <1>;
0164 #size-cells = <0>;
0165 };
0166 };
0167
0168 ...