The pair of positive and negative bias supplies of an NT36672E panel, AVDD and AVEE, also known as VSP and VSN, are either provided by the host, or generated on the panel module itself. In the latter case the module exposes only a bias enable signal with no need to describe the supplies.
Make the AVDD and AVEE supplies optional, but require them to be described together as the indivisible pair, and add an optional enable GPIO for the bias enable signal of the panel module, which excludes the bias supplies, if present in the actual device tree node. Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Vladimir Zapolskiy <[email protected]> --- .../display/panel/novatek,nt36672e.yaml | 38 ++++++++++++++----- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/novatek,nt36672e.yaml b/Documentation/devicetree/bindings/display/panel/novatek,nt36672e.yaml index dabee16bee22..c4ebc7df3344 100644 --- a/Documentation/devicetree/bindings/display/panel/novatek,nt36672e.yaml +++ b/Documentation/devicetree/bindings/display/panel/novatek,nt36672e.yaml @@ -9,9 +9,6 @@ title: Novatek NT36672E LCD DSI Panel maintainers: - Ritesh Kumar <[email protected]> -allOf: - - $ref: panel-common.yaml# - properties: compatible: const: novatek,nt36672e @@ -21,8 +18,20 @@ properties: description: DSI virtual channel vddi-supply: true - avdd-supply: true - avee-supply: true + + avdd-supply: + description: Positive bias supply of the panel + + avee-supply: + description: Negative bias supply of the panel + + enable-gpios: + maxItems: 1 + description: + GPIO connected to the bias enable signal of the panel module, which + switches on the positive and negative bias supplies generated on the + module. The signal is active high. + port: true reset-gpios: true backlight: true @@ -31,10 +40,22 @@ required: - compatible - reg - vddi-supply - - avdd-supply - - avee-supply - reset-gpios +dependentRequired: + avdd-supply: [avee-supply] + avee-supply: [avdd-supply] + +allOf: + - $ref: panel-common.yaml# + - if: + required: + - enable-gpios + then: + properties: + avdd-supply: false + avee-supply: false + additionalProperties: false examples: @@ -47,11 +68,10 @@ examples: compatible = "novatek,nt36672e"; reg = <0>; + enable-gpios = <&pmic_gpios 8 GPIO_ACTIVE_HIGH>; reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>; vddi-supply = <&vreg_l8c_1p8>; - avdd-supply = <&disp_avdd>; - avee-supply = <&disp_avee>; backlight = <&pwm_backlight>; -- 2.51.0
