xref: /linux/Documentation/devicetree/bindings/media/samsung,s5pv210-jpeg.yaml (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*57020a3eSKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*57020a3eSKrzysztof Kozlowski%YAML 1.2
3*57020a3eSKrzysztof Kozlowski---
4*57020a3eSKrzysztof Kozlowski$id: http://devicetree.org/schemas/media/samsung,s5pv210-jpeg.yaml#
5*57020a3eSKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6*57020a3eSKrzysztof Kozlowski
7*57020a3eSKrzysztof Kozlowskititle: Samsung S5PV210 and Exynos SoC JPEG codec
8*57020a3eSKrzysztof Kozlowski
9*57020a3eSKrzysztof Kozlowskimaintainers:
10*57020a3eSKrzysztof Kozlowski  - Jacek Anaszewski <jacek.anaszewski@gmail.com>
11*57020a3eSKrzysztof Kozlowski  - Krzysztof Kozlowski <krzk@kernel.org>
12*57020a3eSKrzysztof Kozlowski  - Sylwester Nawrocki <s.nawrocki@samsung.com>
13*57020a3eSKrzysztof Kozlowski  - Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>
14*57020a3eSKrzysztof Kozlowski
15*57020a3eSKrzysztof Kozlowskiproperties:
16*57020a3eSKrzysztof Kozlowski  compatible:
17*57020a3eSKrzysztof Kozlowski    enum:
18*57020a3eSKrzysztof Kozlowski      - samsung,s5pv210-jpeg
19*57020a3eSKrzysztof Kozlowski      - samsung,exynos3250-jpeg
20*57020a3eSKrzysztof Kozlowski      - samsung,exynos4210-jpeg
21*57020a3eSKrzysztof Kozlowski      - samsung,exynos4212-jpeg
22*57020a3eSKrzysztof Kozlowski      - samsung,exynos5420-jpeg
23*57020a3eSKrzysztof Kozlowski      - samsung,exynos5433-jpeg
24*57020a3eSKrzysztof Kozlowski
25*57020a3eSKrzysztof Kozlowski  clocks:
26*57020a3eSKrzysztof Kozlowski    minItems: 1
27*57020a3eSKrzysztof Kozlowski    maxItems: 4
28*57020a3eSKrzysztof Kozlowski
29*57020a3eSKrzysztof Kozlowski  clock-names:
30*57020a3eSKrzysztof Kozlowski    minItems: 1
31*57020a3eSKrzysztof Kozlowski    maxItems: 4
32*57020a3eSKrzysztof Kozlowski
33*57020a3eSKrzysztof Kozlowski  interrupts:
34*57020a3eSKrzysztof Kozlowski    maxItems: 1
35*57020a3eSKrzysztof Kozlowski
36*57020a3eSKrzysztof Kozlowski  iommus:
37*57020a3eSKrzysztof Kozlowski    maxItems: 1
38*57020a3eSKrzysztof Kozlowski
39*57020a3eSKrzysztof Kozlowski  power-domains:
40*57020a3eSKrzysztof Kozlowski    maxItems: 1
41*57020a3eSKrzysztof Kozlowski
42*57020a3eSKrzysztof Kozlowski  reg:
43*57020a3eSKrzysztof Kozlowski    maxItems: 1
44*57020a3eSKrzysztof Kozlowski
45*57020a3eSKrzysztof Kozlowski
46*57020a3eSKrzysztof Kozlowskirequired:
47*57020a3eSKrzysztof Kozlowski  - compatible
48*57020a3eSKrzysztof Kozlowski  - clocks
49*57020a3eSKrzysztof Kozlowski  - clock-names
50*57020a3eSKrzysztof Kozlowski  - interrupts
51*57020a3eSKrzysztof Kozlowski  - reg
52*57020a3eSKrzysztof Kozlowski
53*57020a3eSKrzysztof KozlowskiallOf:
54*57020a3eSKrzysztof Kozlowski  - if:
55*57020a3eSKrzysztof Kozlowski      properties:
56*57020a3eSKrzysztof Kozlowski        compatible:
57*57020a3eSKrzysztof Kozlowski          contains:
58*57020a3eSKrzysztof Kozlowski            enum:
59*57020a3eSKrzysztof Kozlowski              - samsung,s5pv210-jpeg
60*57020a3eSKrzysztof Kozlowski              - samsung,exynos4210-jpeg
61*57020a3eSKrzysztof Kozlowski              - samsung,exynos4212-jpeg
62*57020a3eSKrzysztof Kozlowski              - samsung,exynos5420-jpeg
63*57020a3eSKrzysztof Kozlowski    then:
64*57020a3eSKrzysztof Kozlowski      properties:
65*57020a3eSKrzysztof Kozlowski        clocks:
66*57020a3eSKrzysztof Kozlowski          maxItems: 1
67*57020a3eSKrzysztof Kozlowski        clock-names:
68*57020a3eSKrzysztof Kozlowski          items:
69*57020a3eSKrzysztof Kozlowski            - const: jpeg
70*57020a3eSKrzysztof Kozlowski
71*57020a3eSKrzysztof Kozlowski  - if:
72*57020a3eSKrzysztof Kozlowski      properties:
73*57020a3eSKrzysztof Kozlowski        compatible:
74*57020a3eSKrzysztof Kozlowski          contains:
75*57020a3eSKrzysztof Kozlowski            enum:
76*57020a3eSKrzysztof Kozlowski              - samsung,exynos3250-jpeg
77*57020a3eSKrzysztof Kozlowski    then:
78*57020a3eSKrzysztof Kozlowski      properties:
79*57020a3eSKrzysztof Kozlowski        clocks:
80*57020a3eSKrzysztof Kozlowski          minItems: 2
81*57020a3eSKrzysztof Kozlowski          maxItems: 2
82*57020a3eSKrzysztof Kozlowski        clock-names:
83*57020a3eSKrzysztof Kozlowski          items:
84*57020a3eSKrzysztof Kozlowski            - const: jpeg
85*57020a3eSKrzysztof Kozlowski            - const: sclk
86*57020a3eSKrzysztof Kozlowski
87*57020a3eSKrzysztof Kozlowski  - if:
88*57020a3eSKrzysztof Kozlowski      properties:
89*57020a3eSKrzysztof Kozlowski        compatible:
90*57020a3eSKrzysztof Kozlowski          contains:
91*57020a3eSKrzysztof Kozlowski            enum:
92*57020a3eSKrzysztof Kozlowski              - samsung,exynos5433-jpeg
93*57020a3eSKrzysztof Kozlowski    then:
94*57020a3eSKrzysztof Kozlowski      properties:
95*57020a3eSKrzysztof Kozlowski        clocks:
96*57020a3eSKrzysztof Kozlowski          minItems: 4
97*57020a3eSKrzysztof Kozlowski          maxItems: 4
98*57020a3eSKrzysztof Kozlowski        clock-names:
99*57020a3eSKrzysztof Kozlowski          items:
100*57020a3eSKrzysztof Kozlowski            - const: pclk
101*57020a3eSKrzysztof Kozlowski            - const: aclk
102*57020a3eSKrzysztof Kozlowski            - const: aclk_xiu
103*57020a3eSKrzysztof Kozlowski            - const: sclk
104*57020a3eSKrzysztof Kozlowski
105*57020a3eSKrzysztof KozlowskiadditionalProperties: false
106*57020a3eSKrzysztof Kozlowski
107*57020a3eSKrzysztof Kozlowskiexamples:
108*57020a3eSKrzysztof Kozlowski  - |
109*57020a3eSKrzysztof Kozlowski    #include <dt-bindings/clock/exynos5433.h>
110*57020a3eSKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/arm-gic.h>
111*57020a3eSKrzysztof Kozlowski
112*57020a3eSKrzysztof Kozlowski    codec@15020000 {
113*57020a3eSKrzysztof Kozlowski        compatible = "samsung,exynos5433-jpeg";
114*57020a3eSKrzysztof Kozlowski        reg = <0x15020000 0x10000>;
115*57020a3eSKrzysztof Kozlowski        interrupts = <GIC_SPI 411 IRQ_TYPE_LEVEL_HIGH>;
116*57020a3eSKrzysztof Kozlowski        clock-names = "pclk", "aclk", "aclk_xiu", "sclk";
117*57020a3eSKrzysztof Kozlowski        clocks = <&cmu_mscl CLK_PCLK_JPEG>,
118*57020a3eSKrzysztof Kozlowski                 <&cmu_mscl CLK_ACLK_JPEG>,
119*57020a3eSKrzysztof Kozlowski                 <&cmu_mscl CLK_ACLK_XIU_MSCLX>,
120*57020a3eSKrzysztof Kozlowski                 <&cmu_mscl CLK_SCLK_JPEG>;
121*57020a3eSKrzysztof Kozlowski        iommus = <&sysmmu_jpeg>;
122*57020a3eSKrzysztof Kozlowski        power-domains = <&pd_mscl>;
123*57020a3eSKrzysztof Kozlowski    };
124