Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06137C433EF for ; Sun, 21 Nov 2021 03:49:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237892AbhKUDw6 (ORCPT ); Sat, 20 Nov 2021 22:52:58 -0500 Received: from mail-4324.protonmail.ch ([185.70.43.24]:54795 "EHLO mail-4324.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237849AbhKUDw6 (ORCPT ); Sat, 20 Nov 2021 22:52:58 -0500 Date: Sun, 21 Nov 2021 03:49:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1637466591; bh=fgCZEroMp4kHW6gUAlTpccvILX+I2kD4Cw/AwQu87DY=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=lqb4zce8gTBoHUPR+f9mi/xqZJj404Mpyib/xBrlTA6Nq6Fc+W6samwXCc23xvNRa qFuiHv/9zfvso8ggUAPBrOJsgv1nMOfI+zbCueMDTqbMgXbdsN1OmBXoO8r6ytY8dq Sqo/fhOHlk0+Oe26mTfqfX+V7MU6XDMjR2o5R2uE= 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, Rob Herring Reply-To: Yassine Oudjana Subject: [PATCH v3 1/2] dt-bindings: display: Add DT schema for LG.Philips SW43101 Message-ID: <20211121034748.158296-2-y.oudjana@protonmail.com> In-Reply-To: <20211121034748.158296-1-y.oudjana@protonmail.com> References: <20211121034748.158296-1-y.oudjana@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a schema for LG.Philips SW43101 bindings. Signed-off-by: Yassine Oudjana Reviewed-by: Rob Herring --- Changes since v2: - Make the DT schema patch first in the series. Changes since v1: - Add regulator support. - Add MAINTAINERS entry. - Dual-license DT binding. .../display/panel/lgphilips,sw43101.yaml | 75 +++++++++++++++++++ MAINTAINERS | 5 ++ 2 files changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/lgphili= ps,sw43101.yaml diff --git a/Documentation/devicetree/bindings/display/panel/lgphilips,sw43= 101.yaml b/Documentation/devicetree/bindings/display/panel/lgphilips,sw4310= 1.yaml new file mode 100644 index 000000000000..6f67130bab8b --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/lgphilips,sw43101.yam= l @@ -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 =3D <1>; + #size-cells =3D <0>; + + panel@0 { + compatible =3D "lgphilips,sw43101"; + reg =3D <0>; + + reset-gpios =3D <&msmgpio 8 GPIO_ACTIVE_LOW>; + + vdd-supply =3D <&vreg_l14a_1p8>; + avdd-supply =3D <&vlin1_7v3>; + elvdd-supply =3D <&elvdd>; + elvss-supply =3D <&elvss>; + + port { + panel_in: endpoint { + remote-endpoint =3D <&dsi_out>; + }; + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 37c9372305b0..b096425e3c01 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6002,6 +6002,11 @@ S:=09Orphan / Obsolete F:=09drivers/gpu/drm/i810/ F:=09include/uapi/drm/i810_drm.h =20 +DRM DRIVER FOR LG.PHILIPS SW43101 PANEL +M:=09Yassine Oudjana +S:=09Maintained +F:=09Documentation/devicetree/bindings/display/panel/lgphilips,sw43101.yam= l + DRM DRIVER FOR LVDS PANELS M:=09Laurent Pinchart L:=09dri-devel@lists.freedesktop.org --=20 2.33.1