From nobody Tue Dec 16 15:44:25 2025 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CCF013B7A3; Tue, 6 May 2025 09:27:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746523653; cv=none; b=OE1UKMcD/ZKTHz2syNQbmJfrwYMNdCB3U8dR/3mFWQgJbh3hfo+o+OZ3lGyG9WEBPWBc3JrKwaQWBf/AmF6z8OUV9TzdbIgFhlwf9lTi7nexbdEpa8JzCxvfI5svTyYfGjTpRNKs2+fFv+AbtyzipR9BIVli2B6aBvyhjQE/Uxw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746523653; c=relaxed/simple; bh=9/V5aTRRIfGw6pWz8xn0QQl9tO/zZCAJ1J+dAHE0VNc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CibhVFqGH+m1ONIKW0DNtPLbTrcbn0JeLcqSJ0Tfvi3sDJJMxEMUUpf9LhZ1UnYxxVfR76DNxx4iJvh8G5X9Hmhy+xGzs4pe06sRtMuWJ+n1/5My9sqg6t9/myH7qi8huWTRP8aQ2qubuXiD0w42RIFVJ5AL4RRg9j+Lbf4I7VU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Gerdg/Ox; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Gerdg/Ox" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5edc07c777eso7583665a12.3; Tue, 06 May 2025 02:27:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746523649; x=1747128449; darn=vger.kernel.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=lGu7LhU0yuQjvrQRuLffc4jYy8h9uFV4UIKwGLQkBLc=; b=Gerdg/Ox96MgWVMpKNEoPWfW+jHpHONPENxEIyeeFfh9Y9LUkZ6fbz8vR73gTjwF+U FAiMQSJwHLQ1Tt0TyvyMH+FVvf2lUv5YGsDZotwSXmVm65IOsX6VIIlEJDZG9y0I6TdC LTQrNj+rfMeNNTj7ChNL/bFl/GicQdZAp3eXvzQNunfOigjMEOL7c6heMptAzqnaBLCK pF+Uqw2QC1q3mfGELLeq3+nL6XhVWbTxT/gjzUJd4qCPYvPHfM7+wSZKMqLJaixHbEr/ JLnKeWaNhmYy2DNFFF4SD4btCLGXjTmLlv0zt6FqS5qqRXMl4jg7j+p4jjqJim3yxlNM 2dow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746523649; x=1747128449; 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=lGu7LhU0yuQjvrQRuLffc4jYy8h9uFV4UIKwGLQkBLc=; b=il3akXAYJj1UPIuOMVFeiNDXMtJVdNb8CA8TElLIteUKMzagLsqd79cwEcyUn2+F6k kJX68KlrKGlysi5uNr548rdXCwWsHuaq/csBrXasx051LGJrJkxcB+gIXFM6tqObI6x9 PN6fV+BuGJVXYR1TvB1yMwd2YmmltJwp0Z1Dk+Q4bEdwQ3vEPO/xCBuz/6q3KbyUT4PP 7rEe9VBxBX1YkZm5z2/rR/xN3tA4bkOJFt3RHuw5A9VSK6mRzYx84Wphsujmnlx/uVIZ Zg++jzucinb432pk333ohRsBi8B+3UrKtDYc4p/4vOyL/ETSh7XbzJt4PYIMkuSjgF6P wiLg== X-Forwarded-Encrypted: i=1; AJvYcCUAfaefuy4MW7+32qcXe0yvYlZjMX7F9bqXM5PXACq2tJdRi9IWqrWjFx2nheM7GAP6N/+OJbGtHAduBh2/@vger.kernel.org, AJvYcCX0TAXZtDxSq2H00NgUic5Ul/FbQu9Wnxl1Ih2erp5G5njVKXOozKAI0/P4+mkfC2O7jmKftE02LVpK@vger.kernel.org X-Gm-Message-State: AOJu0YyQvfWGwYcABSA5qzEKGqgZW/c2l3QJ9UQMU0Ri9E9E3/pRqg4l EzdtGgKvoXc3i8DssfMOzbUdxOCHbowXDhFK9RfJVfq8xjipLGYC X-Gm-Gg: ASbGncvkVZq+mjoftdavEtf5cW2VJbLtqFS107ZCCsnSwVFMOKLpL7BGiJxdT7+aCBW 32O1nXySZl5mIsOrC4Hzg2GRRBXKHCsamIZN5EMypnk6Ln1FyMx2tCSt80BYFiePJEeIHyMm15W 3Cpm1Seka4Jxews3CkK/U/Hj711f7X9SNZ0Xr56GaTqnBWu6G4zICtUjJj+uS2tOUd58VitnL8t /u7CsoazoDMbrboy92fUaOK2z+SmaoYBH/a5dz5FtMx/Q7zWE2rcynD6FyWAZpJFJJreQkBNGG8 3hgLRy20y67JT2VtmAdqIBiw60atJj9X X-Google-Smtp-Source: AGHT+IGhIlN7H6wg1elqqV9jwrYvYXb1edROSQNCTGiGLRJV0RIHV1Wsa8r1kfwlEzYBRxgYX34WYw== X-Received: by 2002:a05:6402:4408:b0:5fb:3a35:b92d with SMTP id 4fb4d7f45d1cf-5fb700a3992mr1831361a12.20.1746523649051; Tue, 06 May 2025 02:27:29 -0700 (PDT) Received: from xeon.. ([188.163.112.70]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5fa77756206sm7349523a12.3.2025.05.06.02.27.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 May 2025 02:27:28 -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 v3 1/4] dt-bindings: display: panel: Document Renesas R61307 based DSI panel Date: Tue, 6 May 2025 12:27:15 +0300 Message-ID: <20250506092718.106088-2-clamor95@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250506092718.106088-1-clamor95@gmail.com> References: <20250506092718.106088-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Linus Walleij Reviewed-by: Rob Herring (Arm) --- .../display/panel/renesas,r61307.yaml | 94 +++++++++++++++++++ 1 file changed, 94 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..90cce221c0d1 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/renesas,r61307.yaml @@ -0,0 +1,94 @@ +# 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: + items: + - enum: + # KOE/HITACHI TX13D100VM0EAA 5.0" XGA TFT LCD panel + - hit,tx13d100vm0eaa + - koe,tx13d100vm0eaa + - const: renesas,r61307 + + 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,column-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 =3D <1>; + #size-cells =3D <0>; + + panel@1 { + compatible =3D "koe,tx13d100vm0eaa", "renesas,r61307"; + reg =3D <1>; + + reset-gpios =3D <&gpio 176 GPIO_ACTIVE_LOW>; + + renesas,gamma =3D <3>; + renesas,column-inversion; + renesas,contrast; + + vcc-supply =3D <&vcc_3v0_lcd>; + iovcc-supply =3D <&iovcc_1v8_lcd>; + + backlight =3D <&backlight>; + + port { + panel_in: endpoint { + remote-endpoint =3D <&dsi_out>; + }; + }; + }; + }; +... --=20 2.48.1 From nobody Tue Dec 16 15:44:25 2025 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3521267389; Tue, 6 May 2025 09:27:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746523654; cv=none; b=cu+MKC0y8i22XMGi4E/S/tQ+1NsFiCRP/6bg3DtL0GtnJ+5qqL9+c73EIrBaYr0ymSk5iH6LH69v7opIkGLF07ObBykHaxHsWg0HThodU6o2wv/wM/E/ERtMNPZduhupSurbHZEwLNYuW1U0rGZzH5i1yOqq8JOaBB/2Frchjuk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746523654; c=relaxed/simple; bh=Q7sDIxBaBqnt1ggT8CqHgCug6P9NdcpiKSkvCf/QnpE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AwHu5e35oxI0nzZESH/V9gG92FkL8AGxHKQEkRU0mw6XsVypf5/Ns1InDPC1KZL8aI5mFW/gA/gkembrnYtmYI7bOqmr4BuJ7rgGa8eSkuKJ85X6SOQTibd8VU498jZg1g3FUFHpzD2GNSkRYcPeZZGez6v2wnPTnnZaNyOEDFY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RZZHTeOa; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RZZHTeOa" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-5f624291db6so8158902a12.3; Tue, 06 May 2025 02:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746523651; x=1747128451; darn=vger.kernel.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=LPsMRRyqU9kLt4ctQ/S1nlywRWwftNW4JfqL3Gg9Xk0=; b=RZZHTeOa24hDv4wtIu/f0zeZhICtf72MN1wJphcc/ASWbLFjOsD+v11z/Fme0PiPGF W9bq/xQEu+lwMlix+dCb8GRTQJKmeGUX6Q8AVpd8ZXa37R+jOkFBMxBT7Jh0TQox5IGJ Xb4doNrb40VgMwRKrqSUMbrNk9aM+mOjmd5v1pD5+9r0+sVGmADCc/9ZzHGIPpWZ0arB Z59bN6joGXEq1H+71kb+1eDTn4ruMKi/eFIdErHQkNNhXQqHL2JKHF0ZPazW5k3BrgId k0qdV7jUJo4K15C38K9Sj+lW2KXfn5JO4VsgeZ8JWJJzWVCURJuVDA4+OgKla+74AQSc ENQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746523651; x=1747128451; 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=LPsMRRyqU9kLt4ctQ/S1nlywRWwftNW4JfqL3Gg9Xk0=; b=dZWDHfvQREbCXaXMfLTlAN/ImJ4YzR90JGPDobMSvRjfo3DSM0x+5VCUczCLj0G5qs Mm2pCkq5n5AzW/MGjy0OvK0d2XV19K/EpttgdwLUNeMne/B5/bbMcdnLAbmI6TJrpgIX 6/D2m+0BB4cOXOttT3JVKg1M0WyCHdgJRaDX6oRKBi8YgEg2TAJFXDZt9wN8aZ8g9EgS 9DcMO/SPMRqRJw+c+apA/QsmFjBdMFwVLQiVk7tyE06YhYVirG9NwbIgp3v3sezDbIam VndVkzszKK7nwhZWCeDvj2wrl29EQeGPhC4jmOYJcU/wlqdZZwXe1+RexzeQo7p6rYki Q2yQ== X-Forwarded-Encrypted: i=1; AJvYcCVw9sI8cYLVeFOS7pJ8zeypMHhm2x/ms9Aas89XTT3icJ3Fn339NgUZ9dhsju/jD2vOr+rlcP1fac83@vger.kernel.org, AJvYcCX4HEndLUawTLSpo1XMkWCj8wDw7eNLwCYgvLKhQqbUgSGl3w5St1UCTlUgtaT6VfNpOdO6gQzxzHqdhHP6@vger.kernel.org X-Gm-Message-State: AOJu0YxC1loNZXYE0UL56op7eTY+1DkMXqpxX85c/J+8qFW/aNrnbMC9 2kteLiGzDL8R4QJX+u64U7VyZloyOSZs+jQeN6xgTH9oAWoQYsDg X-Gm-Gg: ASbGnctPXjgq/RVyVXpEO/eXAjqnh+saQMaA1QY+DjQ3KkV3OwoyXchbpCkeAQnONm9 CNhsogE60NcthMPH+JhxMAmfwafDvCiw9SRhxqj8614pBDZJgaSENIkS3/i3EVl+ih2Ddx4jL/z 4KXIeDiRsC1H3C01pPrKI7H/vrYcWbRqNSDF6XltlGfp7ATK/ARjmV+o/XrSZCfm4HITc7b5PH0 dt9bYB3STc2Iq/fCZ8bM/FoS/o15c5zA3TB6XgW9gx/6Y5k1m+sxn18sbudL4uS6+2MD686CIXL 5GxgPwD1SYmPoGQpCy04ZUKfjmvVte3x X-Google-Smtp-Source: AGHT+IF0G52K5OTADThlZDTrSm95WmPjzAO5b6B7TD2AwzGrMQeRJpmOGTQWhJTo8w20KM+D00kqDg== X-Received: by 2002:a05:6402:d0e:b0:5f3:4665:bfa5 with SMTP id 4fb4d7f45d1cf-5fab05e1bbcmr8721986a12.33.1746523650457; Tue, 06 May 2025 02:27:30 -0700 (PDT) Received: from xeon.. ([188.163.112.70]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5fa77756206sm7349523a12.3.2025.05.06.02.27.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 May 2025 02:27:30 -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 v3 2/4] drm: panel: Add support for Renesas R61307 based MIPI DSI panel Date: Tue, 6 May 2025 12:27:16 +0300 Message-ID: <20250506092718.106088-3-clamor95@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250506092718.106088-1-clamor95@gmail.com> References: <20250506092718.106088-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Neil Armstrong Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-renesas-r61307.c | 325 +++++++++++++++++++ 3 files changed, 339 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 639f4324db61..d15ad60d977f 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -635,6 +635,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. =20 +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 5eec88e4ac3d..196288532c9f 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -64,6 +64,7 @@ obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM67200) +=3D panel-raydiu= m-rm67200.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) +=3D panel-raydium-rm68200.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM692E5) +=3D panel-raydium-rm692e5.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM69380) +=3D panel-raydium-rm69380.o +obj-$(CONFIG_DRM_PANEL_RENESAS_R61307) +=3D panel-renesas-r61307.o obj-$(CONFIG_DRM_PANEL_RONBO_RB070D30) +=3D panel-ronbo-rb070d30.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_AMS581VF01) +=3D panel-samsung-ams581vf01.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_AMS639RQ08) +=3D 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..319415194839 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-renesas-r61307.c @@ -0,0 +1,325 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include +#include +#include +#include +#include +#include +#include +#include + +#include