Document the Novatek NT37802 AMOLED DSI command-mode panel. Signed-off-by: Jayant Shekhar <[email protected]> --- .../bindings/display/panel/novatek,nt37801.yaml | 49 ++++++++++++++++++++-- 1 file changed, 45 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/display/panel/novatek,nt37801.yaml b/Documentation/devicetree/bindings/display/panel/novatek,nt37801.yaml index 1b38c1d0af68..be318cc84d52 100644 --- a/Documentation/devicetree/bindings/display/panel/novatek,nt37801.yaml +++ b/Documentation/devicetree/bindings/display/panel/novatek,nt37801.yaml @@ -4,26 +4,30 @@ $id: http://devicetree.org/schemas/display/panel/novatek,nt37801.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Novatek NT37801 AMOLED DSI Panel +title: Novatek NT37801 and NT37802 AMOLED DSI Panels maintainers: - Krzysztof Kozlowski <[email protected]> description: - Naming is inconclusive and different sources claim this is either Novatek - NT37801 or NT37810 AMOLED DSI Panel. + Naming is inconclusive and different sources claim the NT37801 panel is + either Novatek NT37801 or NT37810. The NT37802 panel uses the same common + DSI interface and regulator supplies, and additionally requires EXVDD. allOf: - $ref: panel-common.yaml# properties: compatible: - const: novatek,nt37801 + enum: + - novatek,nt37801 + - novatek,nt37802 reg: maxItems: 1 description: DSI virtual channel + exvdd-supply: true vci-supply: true vdd-supply: true vddio-supply: true @@ -41,6 +45,18 @@ required: additionalProperties: false +if: + properties: + compatible: + contains: + const: novatek,nt37802 +then: + required: + - exvdd-supply +else: + properties: + exvdd-supply: false + examples: - | #include <dt-bindings/gpio/gpio.h> @@ -59,6 +75,31 @@ examples: reset-gpios = <&tlmm 98 GPIO_ACTIVE_LOW>; + port { + endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + }; + }; + - | + #include <dt-bindings/gpio/gpio.h> + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "novatek,nt37802"; + reg = <0>; + + vci-supply = <&vreg_l13b_3p0>; + vdd-supply = <&vreg_l11b_1p2>; + vddio-supply = <&vreg_l12b_1p8>; + exvdd-supply = <&display_panel_vdd>; + + reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>; + port { endpoint { remote-endpoint = <&dsi0_out>; -- 2.43.0
