brintos

brintos / linux-shallow public Read only

0
0
Text · 3.3 KiB · 03b002a Raw
171 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/display/rockchip/rockchip,lvds.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Rockchip low-voltage differential signal (LVDS) transmitter8 9maintainers:10  - Sandy Huang <hjc@rock-chips.com>11  - Heiko Stuebner <heiko@sntech.de>12 13properties:14  compatible:15    enum:16      - rockchip,px30-lvds17      - rockchip,rk3288-lvds18 19  reg:20    maxItems: 121 22  clocks:23    maxItems: 124 25  clock-names:26    const: pclk_lvds27 28  avdd1v0-supply:29    description: 1.0V analog power.30 31  avdd1v8-supply:32    description: 1.8V analog power.33 34  avdd3v3-supply:35    description: 3.3V analog power.36 37  rockchip,grf:38    $ref: /schemas/types.yaml#/definitions/phandle39    description: Phandle to the general register files syscon.40 41  rockchip,output:42    $ref: /schemas/types.yaml#/definitions/string43    enum: [rgb, lvds, duallvds]44    description: This describes the output interface.45 46  phys:47    maxItems: 148 49  phy-names:50    const: dphy51 52  pinctrl-names:53    const: lcdc54 55  pinctrl-0: true56 57  power-domains:58    maxItems: 159 60  ports:61    $ref: /schemas/graph.yaml#/properties/ports62 63    properties:64      port@0:65        $ref: /schemas/graph.yaml#/properties/port66        description:67          Video port 0 for the VOP input.68          The remote endpoint maybe vopb or vopl.69 70      port@1:71        $ref: /schemas/graph.yaml#/properties/port72        description:73          Video port 1 for either a panel or subsequent encoder.74 75    required:76      - port@077      - port@178 79required:80  - compatible81  - rockchip,grf82  - rockchip,output83  - ports84 85allOf:86  - if:87      properties:88        compatible:89          contains:90            const: rockchip,px30-lvds91 92    then:93      properties:94        reg: false95        clocks: false96        clock-names: false97        avdd1v0-supply: false98        avdd1v8-supply: false99        avdd3v3-supply: false100 101      required:102        - phys103        - phy-names104 105  - if:106      properties:107        compatible:108          contains:109            const: rockchip,rk3288-lvds110 111    then:112      properties:113        phys: false114        phy-names: false115 116      required:117        - reg118        - clocks119        - clock-names120        - avdd1v0-supply121        - avdd1v8-supply122        - avdd3v3-supply123 124additionalProperties: false125 126examples:127  - |128    #include <dt-bindings/clock/rk3288-cru.h>129 130    lvds: lvds@ff96c000 {131      compatible = "rockchip,rk3288-lvds";132      reg = <0xff96c000 0x4000>;133      clocks = <&cru PCLK_LVDS_PHY>;134      clock-names = "pclk_lvds";135      avdd1v0-supply = <&vdd10_lcd>;136      avdd1v8-supply = <&vcc18_lcd>;137      avdd3v3-supply = <&vcca_33>;138      pinctrl-names = "lcdc";139      pinctrl-0 = <&lcdc_ctl>;140      rockchip,grf = <&grf>;141      rockchip,output = "rgb";142 143      ports {144        #address-cells = <1>;145        #size-cells = <0>;146 147        lvds_in: port@0 {148          reg = <0>;149          #address-cells = <1>;150          #size-cells = <0>;151 152          lvds_in_vopb: endpoint@0 {153            reg = <0>;154            remote-endpoint = <&vopb_out_lvds>;155          };156          lvds_in_vopl: endpoint@1 {157            reg = <1>;158            remote-endpoint = <&vopl_out_lvds>;159          };160        };161 162        lvds_out: port@1 {163          reg = <1>;164 165          lvds_out_panel: endpoint {166            remote-endpoint = <&panel_in_lvds>;167          };168        };169      };170    };171