1f16fe2d3SKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2f16fe2d3SKrzysztof Kozlowski%YAML 1.2
3f16fe2d3SKrzysztof Kozlowski---
4f16fe2d3SKrzysztof Kozlowski$id: http://devicetree.org/schemas/display/samsung/samsung,exynos5433-decon.yaml#
5f16fe2d3SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6f16fe2d3SKrzysztof Kozlowski
7f16fe2d3SKrzysztof Kozlowskititle: Samsung Exynos5433 SoC Display and Enhancement Controller (DECON)
8f16fe2d3SKrzysztof Kozlowski
9f16fe2d3SKrzysztof Kozlowskimaintainers:
10f16fe2d3SKrzysztof Kozlowski  - Inki Dae <inki.dae@samsung.com>
11f16fe2d3SKrzysztof Kozlowski  - Seung-Woo Kim <sw0312.kim@samsung.com>
12f16fe2d3SKrzysztof Kozlowski  - Kyungmin Park <kyungmin.park@samsung.com>
13*8a1e6bb3SKrzysztof Kozlowski  - Krzysztof Kozlowski <krzk@kernel.org>
14f16fe2d3SKrzysztof Kozlowski
15f16fe2d3SKrzysztof Kozlowskidescription: |
16f16fe2d3SKrzysztof Kozlowski  DECON (Display and Enhancement Controller) is the Display Controller for the
17f16fe2d3SKrzysztof Kozlowski  Exynos5433 series of SoCs which transfers the image data from a video memory
18f16fe2d3SKrzysztof Kozlowski  buffer to an external LCD interface.
19f16fe2d3SKrzysztof Kozlowski
20f16fe2d3SKrzysztof Kozlowskiproperties:
21f16fe2d3SKrzysztof Kozlowski  compatible:
22f16fe2d3SKrzysztof Kozlowski    enum:
23f16fe2d3SKrzysztof Kozlowski      - samsung,exynos5433-decon
24f16fe2d3SKrzysztof Kozlowski      - samsung,exynos5433-decon-tv
25f16fe2d3SKrzysztof Kozlowski
26f16fe2d3SKrzysztof Kozlowski  clocks:
27f16fe2d3SKrzysztof Kozlowski    maxItems: 11
28f16fe2d3SKrzysztof Kozlowski
29f16fe2d3SKrzysztof Kozlowski  clock-names:
30f16fe2d3SKrzysztof Kozlowski    items:
31f16fe2d3SKrzysztof Kozlowski      - const: pclk
32f16fe2d3SKrzysztof Kozlowski      - const: aclk_decon
33f16fe2d3SKrzysztof Kozlowski      - const: aclk_smmu_decon0x
34f16fe2d3SKrzysztof Kozlowski      - const: aclk_xiu_decon0x
35f16fe2d3SKrzysztof Kozlowski      - const: pclk_smmu_decon0x
36f16fe2d3SKrzysztof Kozlowski      - const: aclk_smmu_decon1x
37f16fe2d3SKrzysztof Kozlowski      - const: aclk_xiu_decon1x
38f16fe2d3SKrzysztof Kozlowski      - const: pclk_smmu_decon1x
39f16fe2d3SKrzysztof Kozlowski      - const: sclk_decon_vclk
40f16fe2d3SKrzysztof Kozlowski      - const: sclk_decon_eclk
41f16fe2d3SKrzysztof Kozlowski      - const: dsd
42f16fe2d3SKrzysztof Kozlowski
43f16fe2d3SKrzysztof Kozlowski  interrupts:
44f16fe2d3SKrzysztof Kozlowski    minItems: 3
45f16fe2d3SKrzysztof Kozlowski    maxItems: 4
46f16fe2d3SKrzysztof Kozlowski    description: |
47f16fe2d3SKrzysztof Kozlowski      Interrupts depend on mode of work:
48f16fe2d3SKrzysztof Kozlowski       - video mode: vsync
49f16fe2d3SKrzysztof Kozlowski       - command mode: lcd_sys
50f16fe2d3SKrzysztof Kozlowski       - command mode with software trigger: lcd_sys, te
51f16fe2d3SKrzysztof Kozlowski
52f16fe2d3SKrzysztof Kozlowski  interrupt-names:
53f16fe2d3SKrzysztof Kozlowski    minItems: 3
54f16fe2d3SKrzysztof Kozlowski    items:
55f16fe2d3SKrzysztof Kozlowski      - const: fifo
56f16fe2d3SKrzysztof Kozlowski      - const: vsync
57f16fe2d3SKrzysztof Kozlowski      - const: lcd_sys
58f16fe2d3SKrzysztof Kozlowski      - const: te
59f16fe2d3SKrzysztof Kozlowski
60f16fe2d3SKrzysztof Kozlowski  iommus:
61f16fe2d3SKrzysztof Kozlowski    maxItems: 2
62f16fe2d3SKrzysztof Kozlowski
63f16fe2d3SKrzysztof Kozlowski  iommu-names:
64f16fe2d3SKrzysztof Kozlowski    items:
65f16fe2d3SKrzysztof Kozlowski      - const: m0
66f16fe2d3SKrzysztof Kozlowski      - const: m1
67f16fe2d3SKrzysztof Kozlowski
68f16fe2d3SKrzysztof Kozlowski  ports:
69f16fe2d3SKrzysztof Kozlowski    $ref: /schemas/graph.yaml#/properties/ports
70f16fe2d3SKrzysztof Kozlowski    description:
71f16fe2d3SKrzysztof Kozlowski      Contains a port which is connected to mic node.
72f16fe2d3SKrzysztof Kozlowski
73f16fe2d3SKrzysztof Kozlowski  power-domains:
74f16fe2d3SKrzysztof Kozlowski    maxItems: 1
75f16fe2d3SKrzysztof Kozlowski
76f16fe2d3SKrzysztof Kozlowski  reg:
77f16fe2d3SKrzysztof Kozlowski    maxItems: 1
78f16fe2d3SKrzysztof Kozlowski
79f16fe2d3SKrzysztof Kozlowski  samsung,disp-sysreg:
80f16fe2d3SKrzysztof Kozlowski    $ref: /schemas/types.yaml#/definitions/phandle
81f16fe2d3SKrzysztof Kozlowski    description:
82f16fe2d3SKrzysztof Kozlowski      Phandle to DISP system controller interface.
83f16fe2d3SKrzysztof Kozlowski
84f16fe2d3SKrzysztof Kozlowskirequired:
85f16fe2d3SKrzysztof Kozlowski  - compatible
86f16fe2d3SKrzysztof Kozlowski  - clocks
87f16fe2d3SKrzysztof Kozlowski  - clock-names
88f16fe2d3SKrzysztof Kozlowski  - interrupts
89f16fe2d3SKrzysztof Kozlowski  - interrupt-names
90f16fe2d3SKrzysztof Kozlowski  - ports
91f16fe2d3SKrzysztof Kozlowski  - reg
92f16fe2d3SKrzysztof Kozlowski
93f16fe2d3SKrzysztof KozlowskiadditionalProperties: false
94f16fe2d3SKrzysztof Kozlowski
95f16fe2d3SKrzysztof Kozlowskiexamples:
96f16fe2d3SKrzysztof Kozlowski  - |
97f16fe2d3SKrzysztof Kozlowski    #include <dt-bindings/clock/exynos5433.h>
98f16fe2d3SKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/arm-gic.h>
99f16fe2d3SKrzysztof Kozlowski
100f16fe2d3SKrzysztof Kozlowski    display-controller@13800000 {
101f16fe2d3SKrzysztof Kozlowski        compatible = "samsung,exynos5433-decon";
102f16fe2d3SKrzysztof Kozlowski        reg = <0x13800000 0x2104>;
103f16fe2d3SKrzysztof Kozlowski        clocks = <&cmu_disp CLK_PCLK_DECON>,
104f16fe2d3SKrzysztof Kozlowski                 <&cmu_disp CLK_ACLK_DECON>,
105f16fe2d3SKrzysztof Kozlowski                 <&cmu_disp CLK_ACLK_SMMU_DECON0X>,
106f16fe2d3SKrzysztof Kozlowski                 <&cmu_disp CLK_ACLK_XIU_DECON0X>,
107f16fe2d3SKrzysztof Kozlowski                 <&cmu_disp CLK_PCLK_SMMU_DECON0X>,
108f16fe2d3SKrzysztof Kozlowski                 <&cmu_disp CLK_ACLK_SMMU_DECON1X>,
109f16fe2d3SKrzysztof Kozlowski                 <&cmu_disp CLK_ACLK_XIU_DECON1X>,
110f16fe2d3SKrzysztof Kozlowski                 <&cmu_disp CLK_PCLK_SMMU_DECON1X>,
111f16fe2d3SKrzysztof Kozlowski                 <&cmu_disp CLK_SCLK_DECON_VCLK>,
112f16fe2d3SKrzysztof Kozlowski                 <&cmu_disp CLK_SCLK_DECON_ECLK>,
113f16fe2d3SKrzysztof Kozlowski                 <&cmu_disp CLK_SCLK_DSD>;
114f16fe2d3SKrzysztof Kozlowski        clock-names = "pclk",
115f16fe2d3SKrzysztof Kozlowski                      "aclk_decon",
116f16fe2d3SKrzysztof Kozlowski                      "aclk_smmu_decon0x",
117f16fe2d3SKrzysztof Kozlowski                      "aclk_xiu_decon0x",
118f16fe2d3SKrzysztof Kozlowski                      "pclk_smmu_decon0x",
119f16fe2d3SKrzysztof Kozlowski                      "aclk_smmu_decon1x",
120f16fe2d3SKrzysztof Kozlowski                      "aclk_xiu_decon1x",
121f16fe2d3SKrzysztof Kozlowski                      "pclk_smmu_decon1x",
122f16fe2d3SKrzysztof Kozlowski                      "sclk_decon_vclk",
123f16fe2d3SKrzysztof Kozlowski                      "sclk_decon_eclk",
124f16fe2d3SKrzysztof Kozlowski                      "dsd";
125f16fe2d3SKrzysztof Kozlowski        power-domains = <&pd_disp>;
126f16fe2d3SKrzysztof Kozlowski        interrupt-names = "fifo", "vsync", "lcd_sys";
127f16fe2d3SKrzysztof Kozlowski        interrupts = <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>,
128f16fe2d3SKrzysztof Kozlowski                     <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>,
129f16fe2d3SKrzysztof Kozlowski                     <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>;
130f16fe2d3SKrzysztof Kozlowski        samsung,disp-sysreg = <&syscon_disp>;
131f16fe2d3SKrzysztof Kozlowski        iommus = <&sysmmu_decon0x>, <&sysmmu_decon1x>;
132f16fe2d3SKrzysztof Kozlowski        iommu-names = "m0", "m1";
133f16fe2d3SKrzysztof Kozlowski
134f16fe2d3SKrzysztof Kozlowski        ports {
135f16fe2d3SKrzysztof Kozlowski            #address-cells = <1>;
136f16fe2d3SKrzysztof Kozlowski            #size-cells = <0>;
137f16fe2d3SKrzysztof Kozlowski
138f16fe2d3SKrzysztof Kozlowski            port@0 {
139f16fe2d3SKrzysztof Kozlowski                reg = <0>;
140f16fe2d3SKrzysztof Kozlowski                decon_to_mic: endpoint {
141f16fe2d3SKrzysztof Kozlowski                    remote-endpoint = <&mic_to_decon>;
142f16fe2d3SKrzysztof Kozlowski                };
143f16fe2d3SKrzysztof Kozlowski            };
144f16fe2d3SKrzysztof Kozlowski        };
145f16fe2d3SKrzysztof Kozlowski    };
146