Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 9BF55347FD1 for ; Mon, 23 Feb 2026 06:46:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771829204; cv=none; b=Wrv4NrTGSxTn+kkxLLzRYZkseajcyVIto/23diYNlNDMdtO/wlS+d9l5fDll5QIt5ucKUeciWwDztYNo4wbdT3gdm/nyr0bv4nmce/6qxdLkEvBNN2eC+eWLqP4iYpcWIXdcIQloAMRhmm9+KG+f78A/eDr1ypegcGOD28qcj4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771829204; c=relaxed/simple; bh=AUBLW9eEmHhaVK0ZxAspj3rNrmkvmsR2gTSC1FzkjeE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SFbMaLxrvloIR+buY+7YTDTifQSo+ODBKa1aSJgLQ+kv3TYMQVxoWfbCXZopYm3wEKp/emghnZnNAr6bJibDMZbhUIY82dl+ZMwDCUb7Phe9cuRfS5SR+57vdKluqklNjLIly78eNtkBqwC1kQQiJ7KnUKUC5jtRHVSDya8Dm/w= 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=EXGZS87J; arc=none smtp.client-ip=209.85.167.52 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="EXGZS87J" Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-59e646a4b9eso3660587e87.3 for ; Sun, 22 Feb 2026 22:46:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771829201; x=1772434001; 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=PWB/y+opyXxwHeSXSLj6ESlDfLZCxfS1O5aRXnap1jw=; b=EXGZS87JI7/Tw5PD4rUjiCuDkYL1JMQeUHZ7LsGOjO3KWmUETFoo6VpzsCiSz76I2s ebK2FSSVMtm2xAhEXfu4Z7A4s70S+s11AdP9zzyRkJ/7wM36MRX14/ylt9ZEFS5OlW1+ RL0cSWa0b/kC3+7Rmm2kka95ianUp9MA9uOPsWuRAyDzjcg8dqGn0BN9BEp2MhGhwGXN d1PRLQwBrG8LbBx45mDAXDUOnueB7dx242Cgcu97ozCMI98lR4b+PTTb4v2l5pzVasXt 4AioJj3hs7VqDObXMvslSgP9zySf+P9l6epLRj2Kr5NAe47yYZwJnnO+xP0YwnYNjCii t9BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771829201; x=1772434001; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=PWB/y+opyXxwHeSXSLj6ESlDfLZCxfS1O5aRXnap1jw=; b=Ot88qBAt2aRf+GV5fNTFq5CMIqeypPsxANqBnV4sj/1owVYYdyQzz8bvcBkbiEC12M orzBomykn0TL5TLfoiBw1Vo1h79V8qdqJVMGsIfyiAw95m39HMyhL5u1HtF+Pgdi5uWJ qJXwTFYNabmwkJhZGpsRyTRV795Q86R/2CFQ470sfUBiGqo/N93IcxHOgFiG9vIPuS3S /dN9swXxrqFnY2ERe5RW3YTUl96/lrZ0lKF421feRjBIMn0lBpHtXyyMjN64ABkCdbEQ VvXixm/DAd4V2i/qA5wE4lQn58xf4cIZaytNOqGtDq8A3jlYTN5jPlz/Cme7uqmvocfB Tz+w== X-Forwarded-Encrypted: i=1; AJvYcCVWKlKOJlrrqmbCdMclqpTGvHo1D/i5qt6MRQ7K3f6PJ/6YRGsj2eDJlRyTq+l23lUJZw3GmxxgRIMO@vger.kernel.org X-Gm-Message-State: AOJu0YzMyNZjbt//xQ93UX8tSfsl86lZkyCcTh21FFk6zpBGKeFXEosk ZKEOgEN/TT+b0hj4Qc5rQ+VonT6PIYRY17n2c5fvOtxHxUbgIELUTpv0 X-Gm-Gg: AZuq6aIoh6mn2nfmdKr0WncgFkWrfaof8/40m9b9xiSopT5vGin89ioSV+nm4W5hgxW ODqqwUpnz3Z+ZBOWjJYDxoHJtvwf9AfFNzs8KO/atJtseydmIKQSx8l2iI+tPYJY3icjNIKhGYL IXfNype5DlFFsJHedsWZFcsn1/V5ULMqKUsuDmLkvwLw4UvWy0zOa8CKlqDsAwkHqnQtiKeFuiD SaIOOaJzCvQbP1NoMv6XamKTYNe/qJ5CewbVLmfNovrddkyUjUGkntl8DW6TonGfoHthRZBIVOU aY0QbOdk5PTfi5dAq7k/PToRiHVfVPgt7+MIhH+Ysz4PljSqS5ePC3jD1PdUyMP5OVp7D199Alb Rxoe3Jn37Vo45FlgM9Gw8MUpa5HHSDK1sDA2LAUOg9xzox0/fi0h3EjHKbar85KJBKdJbSA4q+6 /IGesOroF7P+Ov X-Received: by 2002:a05:6512:1246:b0:5a0:f32d:1ea8 with SMTP id 2adb3069b0e04-5a0f32d1fe3mr882040e87.43.1771829200681; Sun, 22 Feb 2026 22:46:40 -0800 (PST) Received: from xeon ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5a0eeb0b89asm1386201e87.2.2026.02.22.22.46.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Feb 2026 22:46:40 -0800 (PST) From: Svyatoslav Ryhel To: Neil Armstrong , 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 v2 2/2] gpu/drm: panel: add support for DSI panel used in Motorola Atrix 4G and Droid X2 Date: Mon, 23 Feb 2026 08:46:30 +0200 Message-ID: <20260223064630.12720-3-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260223064630.12720-1-clamor95@gmail.com> References: <20260223064630.12720-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add support for the DSI LCD panel module found in Motorola Atrix 4G or Droid X2 smartphones. Exact panel vendor and model are unknown hence panel uses generic compatible based on board where it is used. The panel has a 540x960 resolution with 24 bit RGB per pixel. Signed-off-by: Svyatoslav Ryhel --- drivers/gpu/drm/panel/Kconfig | 12 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-motorola-mot.c | 244 +++++++++++++++++++++ 3 files changed, 257 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-motorola-mot.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 307152ad7759..477c54c90b01 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -464,6 +464,18 @@ config DRM_PANEL_MANTIX_MLAF057WE51 has a resolution of 720x1440 pixels, a built in backlight and touch controller. +config DRM_PANEL_MOTOROLA_MOT + tristate "Atrix 4G and Droid X2 540x960 DSI video mode panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS + help + Say Y here if you want to enable support for the LCD panel module + for Motorola Atrix 4G or Droid X2. Exact panel vendor and model are + unknown. The panel has a 540x960 resolution and uses 24 bit RGB per + pixel. + config DRM_PANEL_NEC_NL8048HL11 tristate "NEC NL8048HL11 RGB panel" depends on GPIOLIB && OF && SPI diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index aeffaa95666d..e17ef8140806 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -45,6 +45,7 @@ obj-$(CONFIG_DRM_PANEL_LG_LD070WX3) += panel-lg-ld070wx3.o obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_LG_SW43408) += panel-lg-sw43408.o obj-$(CONFIG_DRM_PANEL_MAGNACHIP_D53E6EA8966) += panel-magnachip-d53e6ea8966.o +obj-$(CONFIG_DRM_PANEL_MOTOROLA_MOT) += panel-motorola-mot.o obj-$(CONFIG_DRM_PANEL_NEC_NL8048HL11) += panel-nec-nl8048hl11.o obj-$(CONFIG_DRM_PANEL_NEWVISION_NV3051D) += panel-newvision-nv3051d.o obj-$(CONFIG_DRM_PANEL_NEWVISION_NV3052C) += panel-newvision-nv3052c.o diff --git a/drivers/gpu/drm/panel/panel-motorola-mot.c b/drivers/gpu/drm/panel/panel-motorola-mot.c new file mode 100644 index 000000000000..eb1f86c3d704 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-motorola-mot.c @@ -0,0 +1,244 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include +#include +#include +#include +#include +#include +#include +#include + +#include