|
| 1 | +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | +%YAML 1.2 |
| 3 | +--- |
| 4 | +$id: http://devicetree.org/schemas/display/bridge/microchip,sam9x75-mipi-dsi.yaml# |
| 5 | +$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | + |
| 7 | +title: Microchip SAM9X75 MIPI DSI Controller |
| 8 | + |
| 9 | +maintainers: |
| 10 | + - Manikandan Muralidharan <[email protected]> |
| 11 | + |
| 12 | +description: |
| 13 | + Microchip specific extensions or wrapper to the Synopsys Designware MIPI DSI. |
| 14 | + The MIPI Display Serial Interface (DSI) Host Controller implements all |
| 15 | + protocol functions defined in the MIPI DSI Specification. The DSI Host |
| 16 | + provides an interface between the LCD Controller (LCDC) and the MIPI D-PHY, |
| 17 | + allowing communication with a DSI-compliant display. |
| 18 | + |
| 19 | +allOf: |
| 20 | + - $ref: /schemas/display/dsi-controller.yaml# |
| 21 | + |
| 22 | +properties: |
| 23 | + compatible: |
| 24 | + const: microchip,sam9x75-mipi-dsi |
| 25 | + |
| 26 | + reg: |
| 27 | + maxItems: 1 |
| 28 | + |
| 29 | + clocks: |
| 30 | + description: |
| 31 | + MIPI DSI must have two clocks to function correctly.Peripheral clock |
| 32 | + 'pclk' for the hardware block functionality and Generic clock 'refclk' to |
| 33 | + drive the D-PHY PLL block. |
| 34 | + minItems: 2 |
| 35 | + |
| 36 | + clock-names: |
| 37 | + items: |
| 38 | + - const: pclk |
| 39 | + - const: refclk |
| 40 | + |
| 41 | + microchip,sfr: |
| 42 | + $ref: /schemas/types.yaml#/definitions/phandle |
| 43 | + description: |
| 44 | + phandle to Special Function Register (SFR) node.To enable the DSI/CSI |
| 45 | + selection bit in SFR's ISS Configuration Register. |
| 46 | + |
| 47 | + ports: |
| 48 | + $ref: /schemas/graph.yaml#/properties/ports |
| 49 | + |
| 50 | + properties: |
| 51 | + port@0: |
| 52 | + $ref: /schemas/graph.yaml#/$defs/port-base |
| 53 | + unevaluatedProperties: false |
| 54 | + description: |
| 55 | + DSI Input port node, connected to the LCDC RGB output port. |
| 56 | + |
| 57 | + properties: |
| 58 | + endpoint: |
| 59 | + $ref: /schemas/media/video-interfaces.yaml# |
| 60 | + unevaluatedProperties: false |
| 61 | + properties: |
| 62 | + remote-endpoint: true |
| 63 | + |
| 64 | + port@1: |
| 65 | + $ref: /schemas/graph.yaml#/$defs/port-base |
| 66 | + unevaluatedProperties: false |
| 67 | + description: |
| 68 | + DSI Output port node, connected to a panel or a bridge input port. |
| 69 | + |
| 70 | + properties: |
| 71 | + endpoint: |
| 72 | + $ref: /schemas/media/video-interfaces.yaml# |
| 73 | + unevaluatedProperties: false |
| 74 | + properties: |
| 75 | + remote-endpoint: true |
| 76 | + |
| 77 | +required: |
| 78 | + - compatible |
| 79 | + - reg |
| 80 | + - clocks |
| 81 | + - clock-names |
| 82 | + - ports |
| 83 | + |
| 84 | +unevaluatedProperties: false |
| 85 | + |
| 86 | +examples: |
| 87 | + - | |
| 88 | + #include <dt-bindings/clock/at91.h> |
| 89 | + #include <dt-bindings/gpio/gpio.h> |
| 90 | +
|
| 91 | + dsi: dsi@f8054000 { |
| 92 | + compatible = "microchip,sam9x75-mipi-dsi"; |
| 93 | + reg = <0xf8054000 0x200>; |
| 94 | + clocks = <&pmc PMC_TYPE_PERIPHERAL 54>, <&pmc PMC_TYPE_GCK 55>; |
| 95 | + clock-names = "pclk", "refclk"; |
| 96 | + microchip,sfr = <&sfr>; |
| 97 | +
|
| 98 | + #address-cells = <1>; |
| 99 | + #size-cells = <0>; |
| 100 | +
|
| 101 | + ports { |
| 102 | + #address-cells = <1>; |
| 103 | + #size-cells = <0>; |
| 104 | +
|
| 105 | + port@0 { |
| 106 | + reg = <0>; |
| 107 | + dsi_in: endpoint { |
| 108 | + remote-endpoint = <&hlcdc_panel_output>; |
| 109 | + }; |
| 110 | + }; |
| 111 | +
|
| 112 | + port@1 { |
| 113 | + reg = <1>; |
| 114 | + dsi_out: endpoint { |
| 115 | + remote-endpoint = <&mipi_in_panel>; |
| 116 | + }; |
| 117 | + }; |
| 118 | + }; |
| 119 | +
|
| 120 | + panel@0 { |
| 121 | + compatible = "hannstar,hsd060bhw4", "himax,hx8394"; |
| 122 | + reg = <0>; |
| 123 | + vcc-supply = <&mic23150_reg>; |
| 124 | + iovcc-supply = <&mic23150_reg>; |
| 125 | + reset-gpios = <&pioC 24 GPIO_ACTIVE_LOW>; |
| 126 | + backlight = <&backlight>; |
| 127 | +
|
| 128 | + port { |
| 129 | + mipi_in_panel: endpoint { |
| 130 | + remote-endpoint = <&dsi_out>; |
| 131 | + }; |
| 132 | + }; |
| 133 | + }; |
| 134 | + }; |
| 135 | +
|
| 136 | +... |
0 commit comments