xref: /freebsd/sys/contrib/device-tree/Bindings/display/renesas,cmm.yaml (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only
2*c66ec88fSEmmanuel Vadot%YAML 1.2
3*c66ec88fSEmmanuel Vadot---
4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/renesas,cmm.yaml#
5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadottitle: Renesas R-Car Color Management Module (CMM)
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadotmaintainers:
10*c66ec88fSEmmanuel Vadot  - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
11*c66ec88fSEmmanuel Vadot  - Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
12*c66ec88fSEmmanuel Vadot  - Jacopo Mondi <jacopo+renesas@jmondi.org>
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel Vadotdescription: |+
15*c66ec88fSEmmanuel Vadot  Renesas R-Car color management module connected to R-Car DU video channels.
16*c66ec88fSEmmanuel Vadot  It provides image enhancement functions such as 1-D look-up tables (LUT),
17*c66ec88fSEmmanuel Vadot  3-D look-up tables (CLU), 1D-histogram generation (HGO), and color
18*c66ec88fSEmmanuel Vadot  space conversion (CSC).
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel Vadotproperties:
21*c66ec88fSEmmanuel Vadot  compatible:
22*c66ec88fSEmmanuel Vadot    oneOf:
23*c66ec88fSEmmanuel Vadot      - items:
24*c66ec88fSEmmanuel Vadot          - enum:
25*c66ec88fSEmmanuel Vadot              - renesas,r8a7795-cmm
26*c66ec88fSEmmanuel Vadot              - renesas,r8a7796-cmm
27*c66ec88fSEmmanuel Vadot              - renesas,r8a77965-cmm
28*c66ec88fSEmmanuel Vadot              - renesas,r8a77990-cmm
29*c66ec88fSEmmanuel Vadot              - renesas,r8a77995-cmm
30*c66ec88fSEmmanuel Vadot          - const: renesas,rcar-gen3-cmm
31*c66ec88fSEmmanuel Vadot      - items:
32*c66ec88fSEmmanuel Vadot          - const: renesas,rcar-gen2-cmm
33*c66ec88fSEmmanuel Vadot
34*c66ec88fSEmmanuel Vadot  reg:
35*c66ec88fSEmmanuel Vadot    maxItems: 1
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel Vadot  clocks:
38*c66ec88fSEmmanuel Vadot    maxItems: 1
39*c66ec88fSEmmanuel Vadot
40*c66ec88fSEmmanuel Vadot  resets:
41*c66ec88fSEmmanuel Vadot    maxItems: 1
42*c66ec88fSEmmanuel Vadot
43*c66ec88fSEmmanuel Vadot  power-domains:
44*c66ec88fSEmmanuel Vadot    maxItems: 1
45*c66ec88fSEmmanuel Vadot
46*c66ec88fSEmmanuel Vadotrequired:
47*c66ec88fSEmmanuel Vadot  - compatible
48*c66ec88fSEmmanuel Vadot  - reg
49*c66ec88fSEmmanuel Vadot  - clocks
50*c66ec88fSEmmanuel Vadot  - resets
51*c66ec88fSEmmanuel Vadot  - power-domains
52*c66ec88fSEmmanuel Vadot
53*c66ec88fSEmmanuel VadotadditionalProperties: false
54*c66ec88fSEmmanuel Vadot
55*c66ec88fSEmmanuel Vadotexamples:
56*c66ec88fSEmmanuel Vadot  - |
57*c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/r8a7796-cpg-mssr.h>
58*c66ec88fSEmmanuel Vadot    #include <dt-bindings/power/r8a7796-sysc.h>
59*c66ec88fSEmmanuel Vadot
60*c66ec88fSEmmanuel Vadot    cmm0: cmm@fea40000 {
61*c66ec88fSEmmanuel Vadot         compatible = "renesas,r8a7796-cmm",
62*c66ec88fSEmmanuel Vadot                      "renesas,rcar-gen3-cmm";
63*c66ec88fSEmmanuel Vadot         reg = <0xfea40000 0x1000>;
64*c66ec88fSEmmanuel Vadot         power-domains = <&sysc R8A7796_PD_ALWAYS_ON>;
65*c66ec88fSEmmanuel Vadot         clocks = <&cpg CPG_MOD 711>;
66*c66ec88fSEmmanuel Vadot         resets = <&cpg 711>;
67*c66ec88fSEmmanuel Vadot    };
68