From nobody Wed Dec 17 12:31:14 2025 Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) (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 47C2C2BE65F for ; Tue, 30 Sep 2025 07:51:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759218664; cv=none; b=DGacwyME9MMj8/FTmQ1zvrXvKR6GUvdnq9quWy9NOeRyX0646KmEhTJdINFEIElhdX8iwgmJY52oQc334jbqM6TR5gfTOqpqJ44EwYVqiY8jJQO4VGG8yhdY74uwsQu4W5XbyRjTdACmifBreVFkMcI9geUSc5y4KEXP0QNjanI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759218664; c=relaxed/simple; bh=vi2rW0HFsywcmOwrE1uwDZpSS77cZqzVGwj3Sjfo8Tg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kj1mGjk8y+NAEjzcukMJrFCfR9gV0lnmj5W3WSnXJcxRsTJ0U/JGx6+BvRInMXW+OLqXB4kKyDqZ2JF3bEmRWzApSddK4dLkiDc1ZcCs6CPzZgKiBk/mYHswGFHnuGwz/U1N3D4AQw0hUlOUd0h9i0mJRv6aO6RoNOsYBjpu+M8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b=K4oxJtsR; arc=none smtp.client-ip=209.85.215.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="K4oxJtsR" Received: by mail-pg1-f196.google.com with SMTP id 41be03b00d2f7-b4755f37c3eso5245205a12.3 for ; Tue, 30 Sep 2025 00:51:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1759218661; x=1759823461; 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=a/whcb5d7/6RJGlKNOHW7Q8j/jljATqJnqXZint8Jsw=; b=K4oxJtsR/vCVgBtvj65v7OLdYPor08syTPSCDfyzgcGxcdwpz63etD/eEHGnCHWBUF 1mS1C9QORkaqEnrX51pWm/Ma1mVlI3sRtFSuiUB9JBkgqTnFv10txshahDqrMv4nV37i EVc2+PnuiCzjC3mjHJ/rm87XSTVGaQWiJFXnm9vTsFP7skvEnBHvAFTip/9TATAdq8NX P9BAePEmCYbu2lbDR7F4Pj3ieiqLClg+2u5rU2ZounV490amh8XZ5DcSQQtTzHd8pKTv VeMFWvGLkpAuVzIAhEdf0WG2PIYeFxnNn4uwYpLrmokTGqz9iiHzSo5zcDcwXGmfuOn9 sJ5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759218661; x=1759823461; 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=a/whcb5d7/6RJGlKNOHW7Q8j/jljATqJnqXZint8Jsw=; b=W4nIsMK1uS04hZINWFmRXeFABKJWqk/rnGxQ8aPOF0yuPLOEDGi6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z94Su9vVfjr1kOzMMqId+LH8jlsFm4Xvsohy1cY8MeUbkA9K+KofzuA== X-Received: by 2002:a17:903:298b:b0:267:8049:7c7f with SMTP id d9443c01a7336-27ed49df3bemr209524225ad.7.1759218660594; Tue, 30 Sep 2025 00:51:00 -0700 (PDT) Received: from dgp100339560-01.huaqin.com ([103.117.77.121]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-27ed688223dsm152313565ad.86.2025.09.30.00.50.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Sep 2025 00:51:00 -0700 (PDT) From: Langyan Ye To: neil.armstrong@linaro.org, jessica.zhang@oss.qualcomm.com, airlied@gmail.com, simona@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, dianders@chromium.org Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Langyan Ye Subject: [PATCH v1 1/2] dt-bindings: display: panel: Add Tianma TL121BVMS07-00 panel Date: Tue, 30 Sep 2025 15:50:43 +0800 Message-Id: <20250930075044.1368134-2-yelangyan@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250930075044.1368134-1-yelangyan@huaqin.corp-partner.google.com> References: <20250930075044.1368134-1-yelangyan@huaqin.corp-partner.google.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" Add device tree bindings for the Tianma TL121BVMS07-00 12.1" MIPI-DSI TFT LCD panel. Signed-off-by: Langyan Ye --- .../display/panel/tianma,tl121bvms07-00.yaml | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/tianma,= tl121bvms07-00.yaml diff --git a/Documentation/devicetree/bindings/display/panel/tianma,tl121bv= ms07-00.yaml b/Documentation/devicetree/bindings/display/panel/tianma,tl121= bvms07-00.yaml new file mode 100644 index 000000000000..e654b86782e6 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/tianma,tl121bvms07-00= .yaml @@ -0,0 +1,85 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/tianma,tl121bvms07-00.yam= l# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Tianma TL121BVMS07-00 12.1" MIPI-DSI TFT LCD Panel + +maintainers: + - Langyan Ye + +description: | + The Tianma TL121BVMS07-00 is a 12.1-inch MIPI-DSI TFT LCD panel. + It requires multiple regulators (AVDD, AVEE, and 1.8V logic) + and an enable GPIO. Optional properties such as backlight and + rotation are inherited from panel-common.yaml. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: tianma,tl121bvms07-00 + + reg: + description: DSI virtual channel number + minimum: 0 + maximum: 3 + + enable-gpios: + maxItems: 1 + description: GPIO specifier for the enable pin + + avdd-supply: + description: phandle of the regulator that provides positive voltage + + avee-supply: + description: phandle of the regulator that provides negative voltage + + pp1800-supply: + description: core voltage supply + + backlight: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle to the backlight device. + + port: + $ref: /schemas/graph.yaml#/properties/port + description: Input port of the panel, connected to the DSI host. + +required: + - compatible + - reg + - enable-gpios + - avdd-supply + - avee-supply + - pp1800-supply + - port + +additionalProperties: false + +examples: + - | + dsi0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + + mipi_panel: panel@0 { + compatible =3D "tianma,tl121bvms07-00"; + reg =3D <0>; + enable-gpios =3D <&pio 25 0>; + avdd-supply =3D <&en_pp5800_mipi_disp>; + avee-supply =3D <&en_pp5800_mipi_disp>; + pp1800-supply =3D <&mt6359_vcn18_ldo_reg>; + backlight =3D <&backlight>; + + port { + panel_in: endpoint { + remote-endpoint =3D <&dsi_out>; + }; + }; + }; + }; + +... --=20 2.34.1 From nobody Wed Dec 17 12:31:14 2025 Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) (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 4E2562C0F7C for ; Tue, 30 Sep 2025 07:51:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759218668; cv=none; b=rEvTYzk/duNSIyFUO2DQ1klg7BTjJvllHRwa8mYAfQgYo8YUDarzPqM0gZbK0NXIJqolrdOUDYcgoxrxOxSKwLU48FE653amN3XHJdmBduPCimYCKOBl1wHcrUvYlz5Xoi4g+Ah1/McpphwvNIRBTAZHkPIK24MJq7f+IANs3DA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759218668; c=relaxed/simple; bh=pet/N8sFaNRIHeMu67LUBKma+8CENtX3Toq6EdvBO/4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RnyaV3GZ/cM9e9bORV78/c4kw5Ad14ZuNGW6xXNAXwtYk8uX17p5JbkinytaahrRKlNJjGq4F506gnui6d6k8cUzQOxI1R2Lt2t1N0YDGgEQwqeZ1E5o39bI5tU4GjS+qiYk2Hddzdlf7Jr+rIyvUmNUC9PsYhmuxIk3i+W3xvA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b=kfmREGUi; arc=none smtp.client-ip=209.85.214.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="kfmREGUi" Received: by mail-pl1-f196.google.com with SMTP id d9443c01a7336-279e2554c8fso57730675ad.2 for ; Tue, 30 Sep 2025 00:51:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1759218665; x=1759823465; 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=60hr+t3VU3n6O3UnBPMWzfsQUhzglMdEt7VA1TIh1So=; b=kfmREGUidEO1y+rCrIDS8ampWyJm6/UOSPJCf5s43+uN1Z34A/Jwf6v2GPnkYB8ob7 8titDmQ4J1feGvvLcu5ev7jvidzXkhSHIOEQS0tkKG5+DLEbBj9GWVwc023Jk3wpF0dm W412y6SR3o6Wwz56AjSce8O0AI03ot7O0FhFsLgVlKST96ailbJGLXIZhabcNNagf8Fu xNE/22yR1lp+MCZrB6cEg3Nz9e2acSELOtLbOuxP5eayxOSK2nAhWMYwRlXB9bEko5uI Lr58dwuLs6IQZK4d25ywi4fA43zJspEaoYftfkWQtbocgZGR1HHK4i2RD6k8WM6Lw1ju VhyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759218665; x=1759823465; 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=60hr+t3VU3n6O3UnBPMWzfsQUhzglMdEt7VA1TIh1So=; b=P3HllousGdhDpfPRXsjbodb7iA84O4JdpLCX7rMisKlM+9PGX16s/o1FSLRbZhEAjn HHRnFHIvAvE4YeokVHUMqRv1FNrP/6zZ4v4TOX+XktA5OXGg70JrqiMRPccrH5vPg8F+ +YXR2jZv8J5CytDbjump55Bg/A9KWBggrjVFneMBhU9ZjesX60pEpwEGfwniYNWKL8bN pUA3ASj09ziVJQMe+afoIACerf2B4s+IUD18xG1319v7JKXTKEYNZDGjHabEnwiPelbP f7ubPuhzI1Fe5/qCz2SKQWp0uv2QEe1okzG6EIkb5F9g7pAVnbMbeMMUlfzIDTCPaUyu uTZg== X-Forwarded-Encrypted: i=1; AJvYcCUNNxrOrVpVnqfrqcjpXQpS9bLQPrkSAI1cA/yEJ+GA23JyM14O3m4Y6uRPIljhidbMArTQGNvzn95TjL4=@vger.kernel.org X-Gm-Message-State: AOJu0YyFAv1ZmDAJX3K6xqLHkkky4T0VNEAd50+tWNPflThsqXjxC8UA dDlw9r6pICw6mT681bsx/GgRuTas7FUxsEEdnPmQndFyxj+8UQuEJQbbPb8Uwt2//wGCyud0fV8 7t9PmqunewA== X-Gm-Gg: ASbGncscQy1iA+e5U0yNoMk2zbSuGaSSJ5COG1Bs5nvWbIO5XRY14TcWODbJDtAnfXI ZF/03TTl5+KSA5runA11xXEQ7Mbzu2clfpKzxya1BNQjCDwU7mo8gGvog9Qh/zdWXFr1fLBXNO6 UV+mLwAA6B9sT/W4I8RcNqXMWGlWPAwoO7NkDByJKCrFNyspPEPN5gCiI8YfEoUiqIiwPfeAm3w QArK/t/3AtO53vwiePkeieP71E3y7wuiMuPHwSZfKv067CgWgLYswV4RuRndpYMbu5grsovu0nq lfC/T54EAml04xW/rCpVIV5TpX0/cI1ct/BJtgrfRI4qx7t1VSNzJ3bT1MDsy1mBuL/On87A6Of Zeso2ZoC44QWniEEzNaX1XXW4SNxfEBEuvSJ8QLbIXpzzWlKp22HiNpkEksS+NPw4Oje/TDmEWE IzX0VrTvjRa+RpJlGIGw== X-Google-Smtp-Source: AGHT+IGhRjc/a14/eaZ4YvqMOpu6kLwlxEUo+yCQX0UzgJOr1NpZ0sRtE5db0gL+ZNvRxuseuwI2sQ== X-Received: by 2002:a17:902:e890:b0:24c:a269:b6d5 with SMTP id d9443c01a7336-27ed493e891mr192104545ad.0.1759218665443; Tue, 30 Sep 2025 00:51:05 -0700 (PDT) Received: from dgp100339560-01.huaqin.com ([103.117.77.121]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-27ed688223dsm152313565ad.86.2025.09.30.00.51.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Sep 2025 00:51:05 -0700 (PDT) From: Langyan Ye To: neil.armstrong@linaro.org, jessica.zhang@oss.qualcomm.com, airlied@gmail.com, simona@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, dianders@chromium.org Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Langyan Ye Subject: [PATCH v1 2/2] drm/panel: Add driver for Tianma TL121BVMS07-00 panel Date: Tue, 30 Sep 2025 15:50:44 +0800 Message-Id: <20250930075044.1368134-3-yelangyan@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250930075044.1368134-1-yelangyan@huaqin.corp-partner.google.com> References: <20250930075044.1368134-1-yelangyan@huaqin.corp-partner.google.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" Add a DRM panel driver for the Tianma TL121BVMS07-00 12.1" MIPI-DSI TFT LCD panel. The panel requires multiple power supplies (AVDD, AVEE, 1.8V logic), an enable GPIO, and a backlight device. The panel is based on the Ilitek IL79900A controller. Signed-off-by: Langyan Ye --- .../drm/panel/panel-tianma-tl121bvms07-00.c | 419 ++++++++++++++++++ 1 file changed, 419 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-tianma-tl121bvms07-00.c diff --git a/drivers/gpu/drm/panel/panel-tianma-tl121bvms07-00.c b/drivers/= gpu/drm/panel/panel-tianma-tl121bvms07-00.c new file mode 100644 index 000000000000..5facffeda864 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-tianma-tl121bvms07-00.c @@ -0,0 +1,419 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * DRM panel driver for Tianma TL121BVMS07-00 12.1" MIPI-DSI TFT LCD panel + * + * Based on drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c + */ + + +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include