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