From patchwork Sun Apr 13 11:23:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 14049312 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 DF723C3601E for ; Sun, 13 Apr 2025 11:24:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4D9BD10E095; Sun, 13 Apr 2025 11:24:15 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="OUbsakla"; dkim-atps=neutral Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) by gabe.freedesktop.org (Postfix) with ESMTPS id C2C9010E095 for ; Sun, 13 Apr 2025 11:24:12 +0000 (UTC) Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-ac2c663a3daso648043266b.2 for ; Sun, 13 Apr 2025 04:24:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744543451; x=1745148251; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vjOM95fm1yVEjV9ys9LW6FSvq+ho9hkw/imzPFIIlXA=; b=OUbsaklaqKm7tG3VC5B7/BVhOAfsGlpzMIV1Q4Ubzc63h1rVVkx0tiPKeYekwggewn ZlqwjntdliCAVDIL5zj3tpbs3YNjjVa2b6Gebs2CeeJEqhJ8yzh7D6bRqYxeCAG9aOhy 8IsBnOmzVwG8mLkzwCFuL7I4u5h+8Oiy3JebaYbDMpqvLV+hHh6gcfCDvcOU1JtIaoWa zJtcPaxiB6FDaYDt9C9LNrWqfh4wRbliQBB8jR7b2AdjE5JlxqWKK01k8i2oKPFs7uA3 yN3J34KJ9ruecnr0lb+83QN378Qx1efSAj6KvBT5omk8DoxMxsgEnCRW9cHOy7XUiWFq qnJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744543451; x=1745148251; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vjOM95fm1yVEjV9ys9LW6FSvq+ho9hkw/imzPFIIlXA=; b=ZQbOantBq5h2DDo1fll8ce2qdREXV4zbg+R1XTiBB8TGB5XGNnt0ApKTH0DtAw9nT9 /Z8S4HbShcNDzOJQudotL2IKpJDIhWHP8jqkcqFWAdl0w4zgpZTzKY+JvRhudhgDjBhG oChajrILGeT1bS7Gu3WrDPcivJbGx2XRm1978T2PCIOCLuG9Uf32Hdocwvt8QGSAzaWj 33X8iTfvpsu3Bl5k4hdzpLdhj1nczkIFe0+8pnSFEC6IMG27SW8tsDjfxg+OG3S4M1/9 kxm80EgZAKz/mW/tcrH4qDdUaH8KnZxxJaOVcqVujPo/Go1JlvABFZvysReBR6fp8TMg X6Gg== X-Gm-Message-State: AOJu0YwDVEvitHZAGKey0ts3GvJ5aoaDGEKdSzNOIRW33qmrurumlfC4 igW8o+wNoOMuQoSpw6HGUF9KUFsc/7KXiTQCOsUmALFpMg+n1GG7 X-Gm-Gg: ASbGncufBqw52zG12SO9V/YRfIdPcUDNiy98xbNRhswJGqKQ17rUU3Atjmo9mfIDekW f333tpSr3TxXlXmXpoI5QaCBKEWK1uK8kohM4Bq1yb0tTNMujpQaV+RO/TypS/InStoplJGRwbC 943QYP2vzouAQpeT1pHRHoS5std3XJRoHPifaG0KXufzSVZm+nKn8cqOv7BjdYSRpr9fnasxdEs Eyc2FQwFxLo+sGGz+eTKewNKbjTpZ8IG6FAR865MnXQkOpggNlFqAY19ZWQQL7E/XcEqNeWDMV4 yUAmPgysw7qQFQsugb1BAkD/KmBfza0zGiR0yI/6pTk= X-Google-Smtp-Source: AGHT+IF48B0org9fI292KWudE0JfjDywUs60JfFMrUG4ufUZmtoEpqXk6c+34TImFvFKTJJseY6e+A== X-Received: by 2002:a17:907:3ea7:b0:aca:a1c9:d155 with SMTP id a640c23a62f3a-acad3430e5dmr685779766b.11.1744543450945; Sun, 13 Apr 2025 04:24:10 -0700 (PDT) Received: from xeon.. ([188.163.112.51]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-acaa1cb4110sm733529766b.91.2025.04.13.04.24.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Apr 2025 04:24:10 -0700 (PDT) From: Svyatoslav Ryhel To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Svyatoslav Ryhel Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/4] dt-bindings: display: panel: Document Renesas R61307 based DSI panel Date: Sun, 13 Apr 2025 14:23:58 +0300 Message-ID: <20250413112401.12543-2-clamor95@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250413112401.12543-1-clamor95@gmail.com> References: <20250413112401.12543-1-clamor95@gmail.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" R61307 is liquid crystal driver for high-definition amorphous silicon (a-Si) panels and is ideal for tablets and smartphones. Signed-off-by: Svyatoslav Ryhel --- .../display/panel/renesas,r61307.yaml | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/renesas,r61307.yaml diff --git a/Documentation/devicetree/bindings/display/panel/renesas,r61307.yaml b/Documentation/devicetree/bindings/display/panel/renesas,r61307.yaml new file mode 100644 index 000000000000..a98d2d2e02d2 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/renesas,r61307.yaml @@ -0,0 +1,93 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/renesas,r61307.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas R61307 based DSI Display Panel + +maintainers: + - Svyatoslav Ryhel + +description: + The Renesas R61307 is a generic DSI Panel IC used to control LCD panels. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + enum: + # KOE/HITACHI TX13D100VM0EAA 5.0" XGA TFT LCD panel + - hit,tx13d100vm0eaa + - koe,tx13d100vm0eaa + + reg: + maxItems: 1 + + vcc-supply: + description: Regulator for main power supply. + + iovcc-supply: + description: Regulator for 1.8V IO power supply. + + backlight: true + + renesas,gamma: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + 0 - disabled + 1-3 - gamma setting A presets + enum: [0, 1, 2, 3] + + renesas,inversion: + type: boolean + description: switch between line and column inversion. The line + inversion is set by default. + + renesas,contrast: + type: boolean + description: digital contrast adjustment + + reset-gpios: true + port: true + +required: + - compatible + - port + - backlight + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@1 { + compatible = "koe,tx13d100vm0eaa"; + reg = <1>; + + reset-gpios = <&gpio 176 GPIO_ACTIVE_LOW>; + + renesas,gamma = <3>; + renesas,inversion; + renesas,contrast; + + vcc-supply = <&vcc_3v0_lcd>; + iovcc-supply = <&iovcc_1v8_lcd>; + + backlight = <&backlight>; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; + }; + +... From patchwork Sun Apr 13 11:23:59 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 14049313 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 089F9C369AE for ; Sun, 13 Apr 2025 11:24:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1176910E1B6; Sun, 13 Apr 2025 11:24:16 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="aWkF0pML"; dkim-atps=neutral Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by gabe.freedesktop.org (Postfix) with ESMTPS id 74F7A10E095 for ; Sun, 13 Apr 2025 11:24:14 +0000 (UTC) Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-ac25d2b2354so544467166b.1 for ; Sun, 13 Apr 2025 04:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744543453; x=1745148253; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eUQ3R9VVtpv/fKMEjFIswKXCqXFqSlZQRwZXsW/gNxY=; b=aWkF0pML/2QaAyg94UHnyzroYP7UAZDyEu1WHeLhuEZRwnNZ7HRq4JC8z7sBvSgrGj 32brZIKNadalXuM/9dqy/5gwn2PNU5FzMdGqYFoBUgOXojR2mDrstiC9+kRk/9f9Xgav DR3jx2IlnOh8lR1vB2+5yGNpkTHuhw4bxLCPaMj2ASnenxa2Rt6Xl0MnbC25eAE/m0V/ elh6QzmZQrYfLcadrx3O6xzkv5jVpU/QnkorHCS+Woexjkb/XTXvEzL54DDK6XdWbVBI fFd4+cMwelLH/ffvf3Cq8ZYSdKOYa+2QOEIden+0twC4Rck5eykAg1BpFzJ9MwSiscA5 8Cbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744543453; x=1745148253; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eUQ3R9VVtpv/fKMEjFIswKXCqXFqSlZQRwZXsW/gNxY=; b=WZUEA3IJDYWid/hz3s5z+xG9RZXnrBpX8iSb/fQFBolmd3jArpiq4q5yHBlU3qwj+5 SX+aquHyWD5dStXIbIbuiWo0DinDK7jnGg0TIV/etVEy6ENgRAj/J2bY8ezx+xrdkSYp lDIvILjNwcSD+X52rPxLf4lP+UZDrVlgWlOI00eL8op40AaX+x04mN0aKGaGnUZQBFAx /PK21wLuBd6N7v0rRCJPJkr+dc1mzEmVeRyh04WoXHSA6N0qBIGJPOS9FMgXSmi3P7CX HxKoc6lPFuziR6s5eKCckBUFi16jyx4VMumTxbbzd0YRDI/UEXWFBDaqifTngGuNzZ+n ZQ4w== X-Gm-Message-State: AOJu0Yz5prWbQ1EaTeJTNUSsDYIfhTKMFo9A1ESFKgIHD8g4iX06mGEZ eMsXpWVMWI/NW9Ly79oCUPqxVUN31qvA+389nQqFCly+34T+myLV X-Gm-Gg: ASbGncsGctTM7+MXkRuVIdXBN6cOW8GSSipOdXNQrJvn1IppMOikVydKFgtCvWvV0eg Ziir4daLNw1ZrVP88FTuoLCIvnwfYwN29wPq9If9+1dZBy67CZ8JjOlPZOMOK4OtdJdnakSTIJM 3bg1h15AlxpwQZ8V0RSz3mhbHcjRcLl1qXbJPAdrSTllyPUMHQvL8FQUUfM3XSmi5IdXyQnSgba z7uHzzsq4g1ve1Eg8eafMGbfxBhBMMHLBCCgTj6IhTS84laIZP/wrtWaOEu2JQqXUbV5GaPhyDK KN1T1IuW+dMwRrcy471fQwRwOlVquY36 X-Google-Smtp-Source: AGHT+IHfjt+9o2hOpdKVVbkiryX58m9uIWbaluADftbWPFH4zcW9s0bjVrjo/ERKnNn6DQX+wQxCLQ== X-Received: by 2002:a17:907:86a5:b0:ac2:a5c7:7fc9 with SMTP id a640c23a62f3a-acad36bad65mr724256866b.51.1744543452575; Sun, 13 Apr 2025 04:24:12 -0700 (PDT) Received: from xeon.. ([188.163.112.51]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-acaa1cb4110sm733529766b.91.2025.04.13.04.24.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Apr 2025 04:24:12 -0700 (PDT) From: Svyatoslav Ryhel To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Svyatoslav Ryhel Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/4] drm: panel: Add support for Renesas R61307 based MIPI DSI panel Date: Sun, 13 Apr 2025 14:23:59 +0300 Message-ID: <20250413112401.12543-3-clamor95@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250413112401.12543-1-clamor95@gmail.com> References: <20250413112401.12543-1-clamor95@gmail.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" R61307 is liquid crystal driver for high-definition amorphous silicon (a-Si) panels and is ideal for tablets and smartphones. Supported compatibles are: - hit,tx13d100vm0eaa - koe,tx13d100vm0eaa Signed-off-by: Svyatoslav Ryhel --- drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-renesas-r61307.c | 326 +++++++++++++++++++ 3 files changed, 340 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-renesas-r61307.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index d7469c565d1d..e8723f42cafb 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -605,6 +605,19 @@ config DRM_PANEL_RAYDIUM_RM69380 This panel controller can be found in the Lenovo Xiaoxin Pad Pro 2021 in combination with an EDO OLED panel. +config DRM_PANEL_RENESAS_R61307 + tristate "Renesas R61307 DSI video mode panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for KOE tx13d100vm0eaa + IPS-LCD module with Renesas R69328 IC. The panel has a 1024x768 + resolution and uses 24 bit RGB per pixel. + + This panel controller can be found in LG Optimus Vu P895 smartphone + in combination with LCD panel. + config DRM_PANEL_RONBO_RB070D30 tristate "Ronbo Electronics RB070D30 panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 7dcf72646cac..61d8853df1a7 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -61,6 +61,7 @@ obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM67191) += panel-raydium-rm67191.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) += panel-raydium-rm68200.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM692E5) += panel-raydium-rm692e5.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM69380) += panel-raydium-rm69380.o +obj-$(CONFIG_DRM_PANEL_RENESAS_R61307) += panel-renesas-r61307.o obj-$(CONFIG_DRM_PANEL_RONBO_RB070D30) += panel-ronbo-rb070d30.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_AMS581VF01) += panel-samsung-ams581vf01.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_AMS639RQ08) += panel-samsung-ams639rq08.o diff --git a/drivers/gpu/drm/panel/panel-renesas-r61307.c b/drivers/gpu/drm/panel/panel-renesas-r61307.c new file mode 100644 index 000000000000..7277541edb16 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-renesas-r61307.c @@ -0,0 +1,326 @@ +// SPDX-License-Identifier: GPL-2.0 +#include +#include +#include +#include +#include +#include +#include +#include + +#include