xref: /linux/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
18b3dd27bSPaul Elder# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28b3dd27bSPaul Elder%YAML 1.2
38b3dd27bSPaul Elder---
48b3dd27bSPaul Elder$id: http://devicetree.org/schemas/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml#
58b3dd27bSPaul Elder$schema: http://devicetree.org/meta-schemas/core.yaml#
68b3dd27bSPaul Elder
78b3dd27bSPaul Eldertitle: NXP i.MX8MP Media Block Control
88b3dd27bSPaul Elder
98b3dd27bSPaul Eldermaintainers:
108b3dd27bSPaul Elder  - Paul Elder <paul.elder@ideasonboard.com>
118b3dd27bSPaul Elder
128b3dd27bSPaul Elderdescription:
138b3dd27bSPaul Elder  The i.MX8MP Media Block Control (MEDIA BLK_CTRL) is a top-level peripheral
148b3dd27bSPaul Elder  providing access to the NoC and ensuring proper power sequencing of the
158b3dd27bSPaul Elder  peripherals within the MEDIAMIX domain.
168b3dd27bSPaul Elder
178b3dd27bSPaul Elderproperties:
188b3dd27bSPaul Elder  compatible:
198b3dd27bSPaul Elder    items:
208b3dd27bSPaul Elder      - const: fsl,imx8mp-media-blk-ctrl
218b3dd27bSPaul Elder      - const: syscon
228b3dd27bSPaul Elder
238b3dd27bSPaul Elder  reg:
248b3dd27bSPaul Elder    maxItems: 1
258b3dd27bSPaul Elder
26*1cb0c87dSMarek Vasut  '#address-cells':
27*1cb0c87dSMarek Vasut    const: 1
28*1cb0c87dSMarek Vasut
29*1cb0c87dSMarek Vasut  '#size-cells':
30*1cb0c87dSMarek Vasut    const: 1
31*1cb0c87dSMarek Vasut
328b3dd27bSPaul Elder  '#power-domain-cells':
338b3dd27bSPaul Elder    const: 1
348b3dd27bSPaul Elder
358b3dd27bSPaul Elder  power-domains:
368b3dd27bSPaul Elder    maxItems: 10
378b3dd27bSPaul Elder
388b3dd27bSPaul Elder  power-domain-names:
398b3dd27bSPaul Elder    items:
408b3dd27bSPaul Elder      - const: bus
418b3dd27bSPaul Elder      - const: mipi-dsi1
428b3dd27bSPaul Elder      - const: mipi-csi1
438b3dd27bSPaul Elder      - const: lcdif1
448b3dd27bSPaul Elder      - const: isi
458b3dd27bSPaul Elder      - const: mipi-csi2
468b3dd27bSPaul Elder      - const: lcdif2
478b3dd27bSPaul Elder      - const: isp
488b3dd27bSPaul Elder      - const: dwe
498b3dd27bSPaul Elder      - const: mipi-dsi2
508b3dd27bSPaul Elder
518b3dd27bSPaul Elder  clocks:
528b3dd27bSPaul Elder    items:
538b3dd27bSPaul Elder      - description: The APB clock
548b3dd27bSPaul Elder      - description: The AXI clock
558b3dd27bSPaul Elder      - description: The pixel clock for the first CSI2 receiver (aclk)
568b3dd27bSPaul Elder      - description: The pixel clock for the second CSI2 receiver (aclk)
578b3dd27bSPaul Elder      - description: The pixel clock for the first LCDIF (pix_clk)
588b3dd27bSPaul Elder      - description: The pixel clock for the second LCDIF (pix_clk)
598b3dd27bSPaul Elder      - description: The core clock for the ISP (clk)
608b3dd27bSPaul Elder      - description: The MIPI-PHY reference clock used by DSI
618b3dd27bSPaul Elder
628b3dd27bSPaul Elder  clock-names:
638b3dd27bSPaul Elder    items:
648b3dd27bSPaul Elder      - const: apb
658b3dd27bSPaul Elder      - const: axi
668b3dd27bSPaul Elder      - const: cam1
678b3dd27bSPaul Elder      - const: cam2
688b3dd27bSPaul Elder      - const: disp1
698b3dd27bSPaul Elder      - const: disp2
708b3dd27bSPaul Elder      - const: isp
718b3dd27bSPaul Elder      - const: phy
728b3dd27bSPaul Elder
736ad45d25SPeng Fan  interconnects:
746ad45d25SPeng Fan    maxItems: 8
756ad45d25SPeng Fan
766ad45d25SPeng Fan  interconnect-names:
776ad45d25SPeng Fan    items:
786ad45d25SPeng Fan      - const: lcdif-rd
796ad45d25SPeng Fan      - const: lcdif-wr
806ad45d25SPeng Fan      - const: isi0
816ad45d25SPeng Fan      - const: isi1
826ad45d25SPeng Fan      - const: isi2
836ad45d25SPeng Fan      - const: isp0
846ad45d25SPeng Fan      - const: isp1
856ad45d25SPeng Fan      - const: dwe
866ad45d25SPeng Fan
87*1cb0c87dSMarek Vasut  bridge@5c:
88*1cb0c87dSMarek Vasut    type: object
89*1cb0c87dSMarek Vasut    $ref: /schemas/display/bridge/fsl,ldb.yaml#
90*1cb0c87dSMarek Vasut    unevaluatedProperties: false
91*1cb0c87dSMarek Vasut
928b3dd27bSPaul Elderrequired:
938b3dd27bSPaul Elder  - compatible
948b3dd27bSPaul Elder  - reg
95*1cb0c87dSMarek Vasut  - '#address-cells'
96*1cb0c87dSMarek Vasut  - '#size-cells'
978b3dd27bSPaul Elder  - '#power-domain-cells'
988b3dd27bSPaul Elder  - power-domains
998b3dd27bSPaul Elder  - power-domain-names
1008b3dd27bSPaul Elder  - clocks
1018b3dd27bSPaul Elder  - clock-names
1028b3dd27bSPaul Elder
1038b3dd27bSPaul ElderadditionalProperties: false
1048b3dd27bSPaul Elder
1058b3dd27bSPaul Elderexamples:
1068b3dd27bSPaul Elder  - |
1078b3dd27bSPaul Elder    #include <dt-bindings/clock/imx8mp-clock.h>
1088b3dd27bSPaul Elder    #include <dt-bindings/power/imx8mp-power.h>
1098b3dd27bSPaul Elder
1100d2c843cSMarek Vasut    blk-ctrl@32ec0000 {
1118b3dd27bSPaul Elder        compatible = "fsl,imx8mp-media-blk-ctrl", "syscon";
1128b3dd27bSPaul Elder        reg = <0x32ec0000 0x138>;
1138b3dd27bSPaul Elder        power-domains = <&mediamix_pd>, <&mipi_phy1_pd>, <&mipi_phy1_pd>,
1148b3dd27bSPaul Elder                        <&mediamix_pd>, <&mediamix_pd>, <&mipi_phy2_pd>,
1158b3dd27bSPaul Elder                        <&mediamix_pd>, <&ispdwp_pd>, <&ispdwp_pd>,
1168b3dd27bSPaul Elder                        <&mipi_phy2_pd>;
1178b3dd27bSPaul Elder        power-domain-names = "bus", "mipi-dsi1", "mipi-csi1", "lcdif1", "isi",
11815e1a9bcSLaurent Pinchart                             "mipi-csi2", "lcdif2", "isp", "dwe", "mipi-dsi2";
1198b3dd27bSPaul Elder        clocks = <&clk IMX8MP_CLK_MEDIA_APB_ROOT>,
1208b3dd27bSPaul Elder                 <&clk IMX8MP_CLK_MEDIA_AXI_ROOT>,
1218b3dd27bSPaul Elder                 <&clk IMX8MP_CLK_MEDIA_CAM1_PIX_ROOT>,
1228b3dd27bSPaul Elder                 <&clk IMX8MP_CLK_MEDIA_CAM2_PIX_ROOT>,
1238b3dd27bSPaul Elder                 <&clk IMX8MP_CLK_MEDIA_DISP1_PIX_ROOT>,
1248b3dd27bSPaul Elder                 <&clk IMX8MP_CLK_MEDIA_DISP2_PIX_ROOT>,
1258b3dd27bSPaul Elder                 <&clk IMX8MP_CLK_MEDIA_ISP_ROOT>,
1268b3dd27bSPaul Elder                 <&clk IMX8MP_CLK_MEDIA_MIPI_PHY1_REF_ROOT>;
1278b3dd27bSPaul Elder        clock-names = "apb", "axi", "cam1", "cam2", "disp1", "disp2",
1288b3dd27bSPaul Elder                      "isp", "phy";
1298b3dd27bSPaul Elder        #power-domain-cells = <1>;
130*1cb0c87dSMarek Vasut        #address-cells = <1>;
131*1cb0c87dSMarek Vasut        #size-cells = <1>;
132*1cb0c87dSMarek Vasut
133*1cb0c87dSMarek Vasut        bridge@5c {
134*1cb0c87dSMarek Vasut            compatible = "fsl,imx8mp-ldb";
135*1cb0c87dSMarek Vasut            reg = <0x5c 0x4>, <0x128 0x4>;
136*1cb0c87dSMarek Vasut            reg-names = "ldb", "lvds";
137*1cb0c87dSMarek Vasut            clocks = <&clk IMX8MP_CLK_MEDIA_LDB>;
138*1cb0c87dSMarek Vasut            clock-names = "ldb";
139*1cb0c87dSMarek Vasut
140*1cb0c87dSMarek Vasut            ports {
141*1cb0c87dSMarek Vasut                #address-cells = <1>;
142*1cb0c87dSMarek Vasut                #size-cells = <0>;
143*1cb0c87dSMarek Vasut
144*1cb0c87dSMarek Vasut                port@0 {
145*1cb0c87dSMarek Vasut                    reg = <0>;
146*1cb0c87dSMarek Vasut
147*1cb0c87dSMarek Vasut                    ldb_from_lcdif2: endpoint {
148*1cb0c87dSMarek Vasut                        remote-endpoint = <&lcdif2_to_ldb>;
149*1cb0c87dSMarek Vasut                    };
150*1cb0c87dSMarek Vasut                };
151*1cb0c87dSMarek Vasut
152*1cb0c87dSMarek Vasut                port@1 {
153*1cb0c87dSMarek Vasut                    reg = <1>;
154*1cb0c87dSMarek Vasut
155*1cb0c87dSMarek Vasut                    ldb_lvds_ch0: endpoint {
156*1cb0c87dSMarek Vasut                        remote-endpoint = <&ldb_to_lvdsx4panel>;
157*1cb0c87dSMarek Vasut                    };
158*1cb0c87dSMarek Vasut                };
159*1cb0c87dSMarek Vasut
160*1cb0c87dSMarek Vasut                port@2 {
161*1cb0c87dSMarek Vasut                    reg = <2>;
162*1cb0c87dSMarek Vasut
163*1cb0c87dSMarek Vasut                    ldb_lvds_ch1: endpoint {
164*1cb0c87dSMarek Vasut                    };
165*1cb0c87dSMarek Vasut                };
166*1cb0c87dSMarek Vasut            };
167*1cb0c87dSMarek Vasut        };
1688b3dd27bSPaul Elder    };
1698b3dd27bSPaul Elder...
170