xref: /freebsd-src/sys/contrib/device-tree/Bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1e67e8565SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2e67e8565SEmmanuel Vadot%YAML 1.2
3e67e8565SEmmanuel Vadot---
4e67e8565SEmmanuel Vadot$id: http://devicetree.org/schemas/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml#
5e67e8565SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6e67e8565SEmmanuel Vadot
7e67e8565SEmmanuel Vadottitle: NXP i.MX8MN DISP blk-ctrl
8e67e8565SEmmanuel Vadot
9e67e8565SEmmanuel Vadotmaintainers:
10e67e8565SEmmanuel Vadot  - Lucas Stach <l.stach@pengutronix.de>
11e67e8565SEmmanuel Vadot
12e67e8565SEmmanuel Vadotdescription:
13e67e8565SEmmanuel Vadot  The i.MX8MN DISP blk-ctrl is a top-level peripheral providing access to
14e67e8565SEmmanuel Vadot  the NoC and ensuring proper power sequencing of the display and MIPI CSI
15e67e8565SEmmanuel Vadot  peripherals located in the DISP domain of the SoC.
16e67e8565SEmmanuel Vadot
17e67e8565SEmmanuel Vadotproperties:
18e67e8565SEmmanuel Vadot  compatible:
19e67e8565SEmmanuel Vadot    items:
20e67e8565SEmmanuel Vadot      - const: fsl,imx8mn-disp-blk-ctrl
21e67e8565SEmmanuel Vadot      - const: syscon
22e67e8565SEmmanuel Vadot
23e67e8565SEmmanuel Vadot  reg:
24e67e8565SEmmanuel Vadot    maxItems: 1
25e67e8565SEmmanuel Vadot
26e67e8565SEmmanuel Vadot  '#power-domain-cells':
27e67e8565SEmmanuel Vadot    const: 1
28e67e8565SEmmanuel Vadot
29e67e8565SEmmanuel Vadot  power-domains:
30e67e8565SEmmanuel Vadot    minItems: 5
31e67e8565SEmmanuel Vadot    maxItems: 5
32e67e8565SEmmanuel Vadot
33e67e8565SEmmanuel Vadot  power-domain-names:
34e67e8565SEmmanuel Vadot    items:
35e67e8565SEmmanuel Vadot      - const: bus
36e67e8565SEmmanuel Vadot      - const: isi
37e67e8565SEmmanuel Vadot      - const: lcdif
38e67e8565SEmmanuel Vadot      - const: mipi-dsi
39e67e8565SEmmanuel Vadot      - const: mipi-csi
40e67e8565SEmmanuel Vadot
41e67e8565SEmmanuel Vadot  clocks:
42e67e8565SEmmanuel Vadot    minItems: 11
43e67e8565SEmmanuel Vadot    maxItems: 11
44e67e8565SEmmanuel Vadot
45e67e8565SEmmanuel Vadot  clock-names:
46e67e8565SEmmanuel Vadot    items:
47e67e8565SEmmanuel Vadot      - const: disp_axi
48e67e8565SEmmanuel Vadot      - const: disp_apb
49e67e8565SEmmanuel Vadot      - const: disp_axi_root
50e67e8565SEmmanuel Vadot      - const: disp_apb_root
51e67e8565SEmmanuel Vadot      - const: lcdif-axi
52e67e8565SEmmanuel Vadot      - const: lcdif-apb
53e67e8565SEmmanuel Vadot      - const: lcdif-pix
54e67e8565SEmmanuel Vadot      - const: dsi-pclk
55e67e8565SEmmanuel Vadot      - const: dsi-ref
56e67e8565SEmmanuel Vadot      - const: csi-aclk
57e67e8565SEmmanuel Vadot      - const: csi-pclk
58e67e8565SEmmanuel Vadot
59e67e8565SEmmanuel Vadotrequired:
60e67e8565SEmmanuel Vadot  - compatible
61e67e8565SEmmanuel Vadot  - reg
62e67e8565SEmmanuel Vadot  - power-domains
63e67e8565SEmmanuel Vadot  - power-domain-names
64e67e8565SEmmanuel Vadot  - clocks
65e67e8565SEmmanuel Vadot  - clock-names
66e67e8565SEmmanuel Vadot
67e67e8565SEmmanuel VadotadditionalProperties: false
68e67e8565SEmmanuel Vadot
69e67e8565SEmmanuel Vadotexamples:
70e67e8565SEmmanuel Vadot  - |
71e67e8565SEmmanuel Vadot    #include <dt-bindings/clock/imx8mn-clock.h>
72e67e8565SEmmanuel Vadot    #include <dt-bindings/power/imx8mn-power.h>
73e67e8565SEmmanuel Vadot
74*fac71e4eSEmmanuel Vadot    blk-ctrl@32e28000 {
75e67e8565SEmmanuel Vadot      compatible = "fsl,imx8mn-disp-blk-ctrl", "syscon";
76e67e8565SEmmanuel Vadot      reg = <0x32e28000 0x100>;
77e67e8565SEmmanuel Vadot      power-domains = <&pgc_dispmix>, <&pgc_dispmix>,
78e67e8565SEmmanuel Vadot                      <&pgc_dispmix>, <&pgc_mipi>,
79e67e8565SEmmanuel Vadot                      <&pgc_mipi>;
80e67e8565SEmmanuel Vadot      power-domain-names = "bus", "isi", "lcdif", "mipi-dsi",
81e67e8565SEmmanuel Vadot                           "mipi-csi";
82e67e8565SEmmanuel Vadot      clocks = <&clk IMX8MN_CLK_DISP_AXI>,
83e67e8565SEmmanuel Vadot               <&clk IMX8MN_CLK_DISP_APB>,
84e67e8565SEmmanuel Vadot               <&clk IMX8MN_CLK_DISP_AXI_ROOT>,
85e67e8565SEmmanuel Vadot               <&clk IMX8MN_CLK_DISP_APB_ROOT>,
86e67e8565SEmmanuel Vadot               <&clk IMX8MN_CLK_DISP_AXI_ROOT>,
87e67e8565SEmmanuel Vadot               <&clk IMX8MN_CLK_DISP_APB_ROOT>,
88e67e8565SEmmanuel Vadot               <&clk IMX8MN_CLK_DISP_PIXEL_ROOT>,
89e67e8565SEmmanuel Vadot               <&clk IMX8MN_CLK_DSI_CORE>,
90e67e8565SEmmanuel Vadot               <&clk IMX8MN_CLK_DSI_PHY_REF>,
91e67e8565SEmmanuel Vadot               <&clk IMX8MN_CLK_CSI1_PHY_REF>,
92e67e8565SEmmanuel Vadot               <&clk IMX8MN_CLK_CAMERA_PIXEL_ROOT>;
93e67e8565SEmmanuel Vadot       clock-names = "disp_axi", "disp_apb", "disp_axi_root", "disp_apb_root",
94e67e8565SEmmanuel Vadot                     "lcdif-axi", "lcdif-apb", "lcdif-pix", "dsi-pclk",
95e67e8565SEmmanuel Vadot                     "dsi-ref", "csi-aclk", "csi-pclk";
96e67e8565SEmmanuel Vadot       #power-domain-cells = <1>;
97e67e8565SEmmanuel Vadot    };
98