166651867SMarek Vasut# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 266651867SMarek Vasut%YAML 1.2 366651867SMarek Vasut--- 466651867SMarek Vasut$id: http://devicetree.org/schemas/display/bridge/fsl,ldb.yaml# 566651867SMarek Vasut$schema: http://devicetree.org/meta-schemas/core.yaml# 666651867SMarek Vasut 766651867SMarek Vasuttitle: Freescale i.MX8MP DPI to LVDS bridge chip 866651867SMarek Vasut 966651867SMarek Vasutmaintainers: 1066651867SMarek Vasut - Marek Vasut <marex@denx.de> 1166651867SMarek Vasut 1266651867SMarek Vasutdescription: | 1366651867SMarek Vasut The i.MX8MP mediamix contains two registers which are responsible 1466651867SMarek Vasut for configuring the on-SoC DPI-to-LVDS serializer. This describes 1566651867SMarek Vasut those registers as bridge within the DT. 1666651867SMarek Vasut 1766651867SMarek Vasutproperties: 1866651867SMarek Vasut compatible: 1966651867SMarek Vasut const: fsl,imx8mp-ldb 2066651867SMarek Vasut 2166651867SMarek Vasut clocks: 2266651867SMarek Vasut maxItems: 1 2366651867SMarek Vasut 2466651867SMarek Vasut clock-names: 2566651867SMarek Vasut const: ldb 2666651867SMarek Vasut 27*16c8d76aSMarek Vasut reg: 28*16c8d76aSMarek Vasut minItems: 2 29*16c8d76aSMarek Vasut maxItems: 2 30*16c8d76aSMarek Vasut 31*16c8d76aSMarek Vasut reg-names: 32*16c8d76aSMarek Vasut items: 33*16c8d76aSMarek Vasut - const: ldb 34*16c8d76aSMarek Vasut - const: lvds 35*16c8d76aSMarek Vasut 3666651867SMarek Vasut ports: 3766651867SMarek Vasut $ref: /schemas/graph.yaml#/properties/ports 3866651867SMarek Vasut 3966651867SMarek Vasut properties: 4066651867SMarek Vasut port@0: 4166651867SMarek Vasut $ref: /schemas/graph.yaml#/properties/port 4266651867SMarek Vasut description: Video port for DPI input. 4366651867SMarek Vasut 4466651867SMarek Vasut port@1: 4566651867SMarek Vasut $ref: /schemas/graph.yaml#/properties/port 4666651867SMarek Vasut description: Video port for LVDS Channel-A output (panel or bridge). 4766651867SMarek Vasut 4866651867SMarek Vasut port@2: 4966651867SMarek Vasut $ref: /schemas/graph.yaml#/properties/port 5066651867SMarek Vasut description: Video port for LVDS Channel-B output (panel or bridge). 5166651867SMarek Vasut 5266651867SMarek Vasut required: 5366651867SMarek Vasut - port@0 5466651867SMarek Vasut - port@1 5566651867SMarek Vasut 5666651867SMarek Vasutrequired: 5766651867SMarek Vasut - compatible 5866651867SMarek Vasut - clocks 5966651867SMarek Vasut - ports 6066651867SMarek Vasut 6166651867SMarek VasutadditionalProperties: false 6266651867SMarek Vasut 6366651867SMarek Vasutexamples: 6466651867SMarek Vasut - | 6566651867SMarek Vasut #include <dt-bindings/clock/imx8mp-clock.h> 6666651867SMarek Vasut 6766651867SMarek Vasut blk-ctrl { 68*16c8d76aSMarek Vasut #address-cells = <1>; 69*16c8d76aSMarek Vasut #size-cells = <1>; 70*16c8d76aSMarek Vasut 71*16c8d76aSMarek Vasut bridge@5c { 7266651867SMarek Vasut compatible = "fsl,imx8mp-ldb"; 7366651867SMarek Vasut clocks = <&clk IMX8MP_CLK_MEDIA_LDB>; 7466651867SMarek Vasut clock-names = "ldb"; 75*16c8d76aSMarek Vasut reg = <0x5c 0x4>, <0x128 0x4>; 76*16c8d76aSMarek Vasut reg-names = "ldb", "lvds"; 7766651867SMarek Vasut 7866651867SMarek Vasut ports { 7966651867SMarek Vasut #address-cells = <1>; 8066651867SMarek Vasut #size-cells = <0>; 8166651867SMarek Vasut 8266651867SMarek Vasut port@0 { 8366651867SMarek Vasut reg = <0>; 8466651867SMarek Vasut 8566651867SMarek Vasut ldb_from_lcdif2: endpoint { 8666651867SMarek Vasut remote-endpoint = <&lcdif2_to_ldb>; 8766651867SMarek Vasut }; 8866651867SMarek Vasut }; 8966651867SMarek Vasut 9066651867SMarek Vasut port@1 { 9166651867SMarek Vasut reg = <1>; 9266651867SMarek Vasut 9366651867SMarek Vasut ldb_lvds_ch0: endpoint { 9466651867SMarek Vasut remote-endpoint = <&ldb_to_lvdsx4panel>; 9566651867SMarek Vasut }; 9666651867SMarek Vasut }; 9766651867SMarek Vasut 9866651867SMarek Vasut port@2 { 9966651867SMarek Vasut reg = <2>; 10066651867SMarek Vasut 10166651867SMarek Vasut ldb_lvds_ch1: endpoint { 10266651867SMarek Vasut }; 10366651867SMarek Vasut }; 10466651867SMarek Vasut }; 10566651867SMarek Vasut }; 10666651867SMarek Vasut }; 107