From patchwork Thu May 30 21:12:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Walklin X-Patchwork-Id: 13680844 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E6B3EC25B74 for ; Thu, 30 May 2024 21:15:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EB6F610E1C5; Thu, 30 May 2024 21:15:01 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=testtoast.com header.i=@testtoast.com header.b="cnmc6B9R"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="OXMwk6sh"; dkim-atps=neutral Received: from fout3-smtp.messagingengine.com (fout3-smtp.messagingengine.com [103.168.172.146]) by gabe.freedesktop.org (Postfix) with ESMTPS id 67E4310E1C5 for ; Thu, 30 May 2024 21:15:00 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.nyi.internal (Postfix) with ESMTP id BF4201380111; Thu, 30 May 2024 17:14:59 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 30 May 2024 17:14:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=testtoast.com; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1717103699; x= 1717190099; bh=ZfgnIAh5AvrIMFvx5c8ki4N4EwMlLE2PP8D01eWdmBg=; b=c nmc6B9R2SSXYJwevNejF1vV3dq1HMcXZEsAORYo3FO8mB6GcndFuDqJSSkYFQmwh 3/szBfFen/IAyidNnXltCp/yFfEr1w9RZ/q7c52y5WjmD5EGxfl/yUyLCsUjyeu0 AzRUOZRjHDlqN+An4s32HDSIuGD9iuoZCFIw+6d3uVo8Pp9wW+Fsgx26MHmjDIdz mbowalF+CDPR6f3oEQOv8QstnfrTMJNmFIvxDDFaQyk0uoDPUOUv2N7zDy9Jygzp ES+CmVkh3cpcOVYnxMgU0HSncL83Xd/6WctTLrj9bqShDWAMT/TBfybWWmxwq7u+ WOOyuaSnGSxRsNNz0j2LQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1717103699; x= 1717190099; bh=ZfgnIAh5AvrIMFvx5c8ki4N4EwMlLE2PP8D01eWdmBg=; b=O XMwk6sh2MUMVZZFK4DlFNaXitF2IzYkKn4o5pIL/E0Hs/k4otTL/kE5PLuOebzlO EkdwPF/nxX+CVbrKpMLWnQLwcHt/cA80TX1fiAnA3yp0kmLSJuwLquZocUiSwm+d mMLeFSjtAfZIMB8hEn8RHbLezWMuoPmtMdzdpavrZ3i/TS9dtf8UM1uovh4jBhWL Fdai7TVXEhZaRebZgpG2fIBl6z1wIy8adTjclZsjyO7uMoMJTmdxU8jj+O4FSMIu lcvJ91FURPTJYuzzLBqhhkwQNin2YLh5mx8SwY/AX5En2AU0KRljXlQ6Ti7rUymD s2Pzr/DJLRf6fhABGPeGg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekgedgudehhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefthigr nhcuhggrlhhklhhinhcuoehrhigrnhesthgvshhtthhorghsthdrtghomheqnecuggftrf grthhtvghrnhepfeffhfdujeekfeffffevgfffleelveegieekvddtheefieegvdejffej ueekgefgnecuffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehrhigrnhesthgvshhtthho rghsthdrtghomh X-ME-Proxy: Feedback-ID: idc0145fc:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 30 May 2024 17:14:49 -0400 (EDT) From: Ryan Walklin To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Neil Armstrong , Jessica Zhang , Sam Ravnborg , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Hironori KIKUCHI , Chris Morgan , Andre Przywara , John Watts , Ryan Walklin , Conor Dooley Subject: [PATCH v3 1/2] dt-bindings: display: panel: Add WL-355608-A8 panel Date: Fri, 31 May 2024 09:12:14 +1200 Message-ID: <20240530211415.44201-3-ryan@testtoast.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240530211415.44201-1-ryan@testtoast.com> References: <20240530211415.44201-1-ryan@testtoast.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The WL-355608-A8 is a 3.5" 640x480@60Hz RGB LCD display used in a number of handheld gaming devices made by Anbernic. By consensus a vendor prefix is not provided as the panel OEM is unknown. Add a device tree binding for the panel. Signed-off-by: Ryan Walklin Reviewed-by: Conor Dooley --- Changelog v1..v2: - Correct compatible string and filename - Note #dri-devel discussion regarding vendor prefix - Remove unnecessary node names, spi-gpio compatible string and GPIOs from example Changelog v2..v3: - Remove errant tab and un-needed spi node label from example - Add Reviewed-by tag --- .../bindings/display/panel/wl-355608-a8.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/wl-355608-a8.yaml diff --git a/Documentation/devicetree/bindings/display/panel/wl-355608-a8.yaml b/Documentation/devicetree/bindings/display/panel/wl-355608-a8.yaml new file mode 100644 index 0000000000..e552d01b52 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/wl-355608-a8.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/wl-355608-a8.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: WL-355608-A8 3.5" (640x480 pixels) 24-bit IPS LCD panel + +maintainers: + - Ryan Walklin + +allOf: + - $ref: panel-common.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + const: wl-355608-a8 + + reg: + maxItems: 1 + + spi-3wire: true + +required: + - compatible + - reg + - port + - power-supply + - reset-gpios + +unevaluatedProperties: false + +examples: + - | + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "wl-355608-a8"; + reg = <0>; + + spi-3wire; + spi-max-frequency = <3125000>; + + reset-gpios = <&pio 8 14 GPIO_ACTIVE_LOW>; // PI14 + + backlight = <&backlight>; + power-supply = <®_lcd>; + + port { + endpoint { + remote-endpoint = <&tcon_lcd0_out_lcd>; + }; + }; + }; + };