From patchwork Thu May 30 08:22:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Walklin X-Patchwork-Id: 13679899 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 970C1C25B74 for ; Thu, 30 May 2024 08:24:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 38E2F10E244; Thu, 30 May 2024 08:24:10 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=testtoast.com header.i=@testtoast.com header.b="xSn/JqUX"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="gR/KjkA+"; dkim-atps=neutral Received: from wfout8-smtp.messagingengine.com (wfout8-smtp.messagingengine.com [64.147.123.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id 25C0E10E244 for ; Thu, 30 May 2024 08:24:07 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.west.internal (Postfix) with ESMTP id F23941C0014A; Thu, 30 May 2024 04:24:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 30 May 2024 04:24:07 -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=1717057445; x= 1717143845; bh=bA8Fk7k/EZvCXjEHIVSIRBCRU8AGnqoDBE1wVK7sCcM=; b=x Sn/JqUXp8LLfLbwHR+iEVMY2e23vgJau5uU3XEPuOCFZkmARZMA/ipypY69CeCaJ szBlbBBMuIdBxUfEC24yZZcY4EdOatnverIbkyOJXL+HwF1m/6VKfVdOmshtuzKE 9gG5p9EkpattH2P5cuWKYySrFSgEpbWr3ney+LlD/PoNF5DrK+pVL1mFhWBf0jBf CNY/0vBOFNtwB6kWCg8iD21Z9PO6OPwjSd0YDE0mb7RuiNc88AuW8PXX5rdzaFjB NybbGRo1RfXdQskgePpmMXqqvB+QwodizObq72SgHBNImdVC6Y8eFiiF+eQYr0ic TGJ9YS0cpEK23M6NptzUA== 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=1717057445; x= 1717143845; bh=bA8Fk7k/EZvCXjEHIVSIRBCRU8AGnqoDBE1wVK7sCcM=; b=g R/KjkA+tFLuQIvXhWW7XEbFFBe1d/S3hYVPSrC6TemjrurKlXOrfMpBSLDV+rhYx MxIRKzfAG3JkPNm3CFQ2/5LEY78hBldvyiSBH5A96P9kwttbjYBRphubD4Q83rXI lRJJcu5v7DCnqVHM72hJ7wNEo1fL/ra+C6xJUP0cIZoPGEAi+9k3+YKfUlpTeMg1 CdmzHIDXaT/TU9uuXXfaIAz/1RP57/yRiitrjKc6u6BTtj8BdD1DUT79Ils+MsUh XxD3i8lCoDtq9Gp5Uz+yBifb5EMxJZrnDNcWd5FAP3eGPA3ZvXdkPzWLlOWpF23g GhY80NY9Yw6+dOuPJGTww== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekgedgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheptfihrghn ucghrghlkhhlihhnuceorhihrghnsehtvghsthhtohgrshhtrdgtohhmqeenucggtffrrg htthgvrhhnpeeffffhudejkeefffffvefgffelleevgeeikedvtdehfeeigedvjeffjeeu keeggfenucffohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhihrghnsehtvghsthhtohgr shhtrdgtohhm X-ME-Proxy: Feedback-ID: idc0145fc:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 30 May 2024 04:24:00 -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 Subject: [PATCH v2 1/2] dt-bindings: display: panel: Add WL-355608-A8 panel Date: Thu, 30 May 2024 20:22:22 +1200 Message-ID: <20240530082318.40516-3-ryan@testtoast.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240530082318.40516-1-ryan@testtoast.com> References: <20240530082318.40516-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 --- .../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 0000000000000..05039a6db4bc8 --- /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_lcd: 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>; + }; + }; + }; + };