From patchwork Fri May 24 10:33:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Walklin X-Patchwork-Id: 13673344 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 7B41EC25B74 for ; Fri, 24 May 2024 17:09:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5F11C10EF69; Fri, 24 May 2024 17:09:29 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=testtoast.com header.i=@testtoast.com header.b="FZ1YP1P3"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="ZfZgGsW4"; dkim-atps=neutral X-Greylist: delayed 336 seconds by postgrey-1.36 at gabe; Fri, 24 May 2024 10:41:20 UTC Received: from wfhigh3-smtp.messagingengine.com (wfhigh3-smtp.messagingengine.com [64.147.123.154]) by gabe.freedesktop.org (Postfix) with ESMTPS id CA89F10EEC1 for ; Fri, 24 May 2024 10:41:20 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.west.internal (Postfix) with ESMTP id BBEF61800147; Fri, 24 May 2024 06:35:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 24 May 2024 06:35:57 -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=1716546956; x= 1716633356; bh=eclUnGiLLnNnnM77HcHvRQHDumlGa2n2Q4eUNfZG2Ws=; b=F Z1YP1P3EHotWrQdFapSdxkR8L/c8ivBwVZbW8IxFWecy2+1+eGUKM3VJkTu46wyH S66EqHV4nMB/9VtngAGtTLCPWLZmfNNBaZwstCNYBeUpm1wIiLQXR93XStWFVcnq c+7j5aCYZt6IT6+88kLVmql6A0mgL1XQeo36+lQCUs9YaAL94HM7wN6KGtOjBpPw KHUHDf+N7UlHZQK8BUBGUMGZkJVt5+ZLm6P6Vb0YAeM9AlpWJfapXVScMMpRDmOK 7H8vEL0K43maK20fFU0vicJFonR/uVmiI2yVGzvKkA09DjDSzOwQUF0DqS7wLMxH kzHoxLdKPfR6rE4CunW4Q== 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=1716546956; x= 1716633356; bh=eclUnGiLLnNnnM77HcHvRQHDumlGa2n2Q4eUNfZG2Ws=; b=Z fZgGsW44sH4s8LfZ7H41tZYxyB6axStg7GYSV4pAm4u7mU4w4Zzl3BGRTKczikFp Tn9+faqE3XsCMFklWiftO0sVoLgbMS28Cz9DSlV64SNb4Io7JuvLfBLnw81lnkIu z05UonMK6avEZSdAX8Mtsf/HUgoDlC3zDi/rKwFyHMgEjUc2vrsaRadFekDPY0xC mHkJnkWJA7E00yy8iPZDJB0+wSsdciU4v8RPIgnj5nube4AS4OrcgXvrPTSVhL9X HJifKPP5W2ujzoWTgIhsIahAmNZ4+ESR/79YCmezNDesKoYm7ptE8szxgNT/lx8k swymg5rd8R6B6woirsYBQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeikedgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheptfihrghn ucghrghlkhhlihhnuceorhihrghnsehtvghsthhtohgrshhtrdgtohhmqeenucggtffrrg htthgvrhhnpeeffffhudejkeefffffvefgffelleevgeeikedvtdehfeeigedvjeffjeeu keeggfenucffohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhihrghnsehtvghsthhtohgr shhtrdgtohhm X-ME-Proxy: Feedback-ID: idc0145fc:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 May 2024 06:35:51 -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 , Ryan Walklin Subject: [PATCH 1/2] dt-bindings: display: panel: Add WL-355608-A8 panel Date: Fri, 24 May 2024 22:33:13 +1200 Message-ID: <20240524103506.187277-2-ryan@testtoast.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240524103506.187277-1-ryan@testtoast.com> References: <20240524103506.187277-1-ryan@testtoast.com> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 24 May 2024 17:09:22 +0000 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 from an unknown OEM, used in a number of handheld gaming devices made by Anbernic. Add a device tree binding for the panel. Signed-off-by: Ryan Walklin --- .../bindings/display/panel/wl-355608-a8.yaml | 68 +++++++++++++++++++ 1 file changed, 68 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 000000000..af12303e2 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/wl-355608-a8.yaml @@ -0,0 +1,68 @@ +# 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 { + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + + sck-gpios = <&pio 8 9 GPIO_ACTIVE_HIGH>; // PI9 + mosi-gpios = <&pio 8 10 GPIO_ACTIVE_HIGH>; // PI10 + cs-gpios = <&pio 8 8 GPIO_ACTIVE_HIGH>; // PI8 + num-chipselects = <1>; + + panel: 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>; + pinctrl-0 = <&lcd0_rgb888_pins>; + pinctrl-names = "default"; + + port { + panel_in_rgb: endpoint { + remote-endpoint = <&tcon_lcd0_out_lcd>; + }; + }; + }; + };