From patchwork Thu Sep 9 04:40:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yassine Oudjana X-Patchwork-Id: 508916 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B91DC433FE for ; Thu, 9 Sep 2021 04:40:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0B633610E9 for ; Thu, 9 Sep 2021 04:40:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350451AbhIIEls (ORCPT ); Thu, 9 Sep 2021 00:41:48 -0400 Received: from mail-0201.mail-europe.com ([51.77.79.158]:50366 "EHLO mail-0201.mail-europe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350305AbhIIElp (ORCPT ); Thu, 9 Sep 2021 00:41:45 -0400 Date: Thu, 09 Sep 2021 04:40:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1631162432; bh=DEgAtGRzyS7Mb3drXU2SHdsqwxbA8corBcPdlYX6sy8=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=SxxM2a5HtOkvy4pfl/W5Quaa2bzGQcydgo9p/RGOaTfCsgZom2SshF2DQ0JiWT3Gn qviAlp0H9o7Lc9Rbv8QTE1K+aU/yw7Q5vWQBr1LzkRJjSCDmtGpww8/eVaxJciutmK 6pFrcwyqB4Xa8e2zyzPIacUXW2HcvDWNGpv2s3NA= To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring From: Yassine Oudjana Cc: Yassine Oudjana , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, linux-kernel@vger.kernel.org Reply-To: Yassine Oudjana Subject: [PATCH v2 2/2] dt-bindings: display: Add binding for LG.Philips SW43101 Message-ID: <20210909043904.12982-3-y.oudjana@protonmail.com> In-Reply-To: <20210909043904.12982-1-y.oudjana@protonmail.com> References: <20210909043904.12982-1-y.oudjana@protonmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add a device tree binding for LG.Philips SW43101. Signed-off-by: Yassine Oudjana --- Changes since v1: - Add regulator support. - Add MAINTAINERS entry. - Dual-license DT binding. .../display/panel/lgphilips,sw43101.yaml | 75 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/lgphilips,sw43101.yaml diff --git a/Documentation/devicetree/bindings/display/panel/lgphilips,sw43101.yaml b/Documentation/devicetree/bindings/display/panel/lgphilips,sw43101.yaml new file mode 100644 index 000000000000..6f67130bab8b --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/lgphilips,sw43101.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/lgphilips,sw43101.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LG.Philips SW43101 1080x1920 OLED panel + +maintainers: + - Yassine Oudjana + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: lgphilips,sw43101 + + reg: true + reset-gpios: true + + vdd-supply: + description: Digital power supply + + avdd-supply: + description: Analog power supply + + elvdd-supply: + description: Positive electroluminescence power supply + + elvss-supply: + description: Negative electroluminescence power supply + + port: true + +required: + - compatible + - reg + - reset-gpios + - vdd-supply + - avdd-supply + - elvdd-supply + - elvss-supply + - port + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "lgphilips,sw43101"; + reg = <0>; + + reset-gpios = <&msmgpio 8 GPIO_ACTIVE_LOW>; + + vdd-supply = <&vreg_l14a_1p8>; + avdd-supply = <&vlin1_7v3>; + elvdd-supply = <&elvdd>; + elvss-supply = <&elvss>; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 46431e8ad373..aab9f057e8d7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5902,6 +5902,7 @@ F: include/uapi/drm/i810_drm.h DRM DRIVER FOR LG.PHILIPS SW43101 PANEL M: Yassine Oudjana S: Maintained +F: Documentation/devicetree/bindings/display/panel/lgphilips,sw43101.yaml F: drivers/gpu/drm/panel/panel-lgphilips-sw43101.c DRM DRIVER FOR LVDS PANELS