Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp899420lqb; Wed, 17 Apr 2024 14:16:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW8s/kqLogheB/WS3vtBPGGTUSLcbBikh68p7lK1m9jMi6AU+3SgskJFfVMNc51HSLl1Y5mbN8JC209S6VHMP4bE6RkfyKRc31l3+9h2Q== X-Google-Smtp-Source: AGHT+IFPsCmo4gdZxKYbZEYeBdSChw5QHvMzUVhFq7T+21xHTODxqQWfZE418ToHCVRQgoktnwul X-Received: by 2002:a05:6808:186:b0:3c6:ef85:b297 with SMTP id w6-20020a056808018600b003c6ef85b297mr841905oic.20.1713388615415; Wed, 17 Apr 2024 14:16:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713388615; cv=pass; d=google.com; s=arc-20160816; b=TE+yzHHEsgtRZlmAp4QoDNZxRCRmyJYR3rP8OasgZeUI5kRRvudSgPFGPkdbZJNqyB yQDRYGZPtOjupaImCbSqTTK1ITrGuVtsZN5ytim1EntoZizN91e6OwofPwBedHmCwPy4 7/rWTX1E0nuxsl2XvEB6eabHkRvvrt9oTM1xlbXdWO+VdNH5KN2KGUlrBW5rZT0MN2Ig BXarccGQZIwFd0lwjxk0E7tdM7i2agm5lLYKqTImAUCebn0d9PqdQxgCUgAThmoUIFsk FcsSBSFbOMwsQxmVTipdT6Yjt5WjYxU0a2KxMw94K+8znNaPSZa28izGKm7a+IF6hGrq W2lQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=xPYGDPhJh1vELUn0B/FqjrjcJ+/sPNoVRwyANQEYHdk=; fh=ha59hl4kDvrytrd1pL/FXbaRAsCh93ICCSzMMh7wxvw=; b=fjcv8QNYJ8GvzqpHlH2l+7ACWwNIDvZJS8rCKI7j6TtaBCrazbCXNCsZ0tc3ljCmAc ycVESwoO2UzxIWL9rjucLb6qr/SZEEVmrUeZAAghc2nbyq2TcIZ1bFhRK8lDGyM5E0uH 5cvmez2M9dBO0P333SeS4cP7SorAl+u+/+jefVhzl4lHOdmaHAdhJou5zakNq08HjS1X 767oZXiVuwHea5pj3Rl5eiNvzM+Jv/zLrIVlNktcJiO6a8Q2OAcXPHjC2Pz3wtiwSP5F SxqWfO5Tw2sqheHazy4wiXge2MYGAZdi47WI384/76wy6hVSI9fXA85Is6qqtLBhXBnd Pu3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mainlining.org header.s=psm header.b=JYdk5L67; arc=pass (i=1 spf=pass spfdomain=mainlining.org dkim=pass dkdomain=mainlining.org dmarc=pass fromdomain=mainlining.org); spf=pass (google.com: domain of linux-kernel+bounces-148913-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148913-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mainlining.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w1-20020ac87e81000000b0043693c05699si52598qtj.129.2024.04.17.14.16.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 14:16:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148913-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@mainlining.org header.s=psm header.b=JYdk5L67; arc=pass (i=1 spf=pass spfdomain=mainlining.org dkim=pass dkdomain=mainlining.org dmarc=pass fromdomain=mainlining.org); spf=pass (google.com: domain of linux-kernel+bounces-148913-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148913-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mainlining.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id DA6721C22862 for ; Wed, 17 Apr 2024 16:29:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB4EE14D2A4; Wed, 17 Apr 2024 16:29:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b="JYdk5L67" Received: from mail.mainlining.org (mainlining.org [94.241.141.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 535EC147C7B; Wed, 17 Apr 2024 16:29:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=94.241.141.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713371380; cv=none; b=qUk4PJqaQDfp59PA9rRz+/1yk2vh5yr2rm9puTwwVcZ0+Df36pMTbKgda4CsHJ0IY4Sd3kkMK+xxAIR+8Wd/D1cfExncgFU9Tjpj/z7rgNCsigrJXX8txOESLMwHFBCuFj/E/tk+CKUsAtdgGRtwuUH+ryl/09hrUoGx0Z0iusE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713371380; c=relaxed/simple; bh=0zI/r5Ik3YIYBBvZMU3MnWLBc5VIg6oUdDjl7nfLlvs=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=TOiIHue4Dpt/7icFTG3dAxitEKsXbA1nqSN1si4L9NfNr5kmzDLT653MPM6sboTLuJqNn0KAtLR7rFYjdVRFFBv7j9VeUX7bsY2FAvNIVqTXcwRRueM/f1QF14dPisECMF+Jr0O7NGaBQmWxoYt3bip7TG+AE+QLCL66mC33x2M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org; spf=pass smtp.mailfrom=mainlining.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b=JYdk5L67; arc=none smtp.client-ip=94.241.141.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mainlining.org Received: from david-ryuzu.localdomain (ipbcc3a836.dynamic.kabel-deutschland.de [188.195.168.54]) by mail.mainlining.org (Postfix) with ESMTPSA id 9AF8FE21F6; Wed, 17 Apr 2024 16:29:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mainlining.org; s=psm; t=1713371376; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xPYGDPhJh1vELUn0B/FqjrjcJ+/sPNoVRwyANQEYHdk=; b=JYdk5L67+vmCuNRp9tymIHeHUuU2TQbSDa1VyEhxVeUsB3WCzT0r2YRvj7sc/Vdz3726UR WiqEK82StMRBA1N/Hdt2+9GOqPHXoFyJbQxrwiAW43jI5b5OKfgXM3DNSFfUMoNaiM2g5B Tf4eBtfkdFXAjbdiYQiYrlOqs+Q2LPq6QdOxFwXSb8vH6I3VJSsVGgpomCt/n4IhAWKWfk QXk3DudT2K8sx4a71ikeej6OiNGUNuk1FHA8ieTI4W3Z9FtLK6T7l/tF9KkaHA19faBt5L SgNOi32aKtOcVY4RISa+7wg4duVxtlGL+tOF2Jk0Yrj5frwcc6wwBhmq3byzsg== From: David Wronek Subject: [PATCH v4 0/2] Add driver for Raydium RM69380-based DSI panels Date: Wed, 17 Apr 2024 18:29:32 +0200 Message-Id: <20240417-raydium-rm69380-driver-v4-0-e9c2337d0049@mainlining.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAOz4H2YC/4XNTQrCMBCG4atI1kaS6TT+rLyHuEjbSR2wqUw1W KR3N3UlqLh8P5hnHmogYRrUbvFQQokH7mMOXC5UffKxJc1NbgUG0KBFLX5s+NZp6dy22BjdCCc SjesAULkAGEjl44tQ4PsLPhxzn3i49jK+/iQ7r3/JZLXRJW1c5QG3pir3ned45sixXfXSqtlN8 G6VPy2YLUCwDp0tjPtqFe+W+2kV2cqQMb7GmsrwYU3T9ASYTJCqWQEAAA== To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marijn Suijten , Konrad Dybcio , Dmitry Baryshkov Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, David Wronek X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713371375; l=2367; i=david@mainlining.org; s=20240121; h=from:subject:message-id; bh=0zI/r5Ik3YIYBBvZMU3MnWLBc5VIg6oUdDjl7nfLlvs=; b=jvWf+sJ9X3xbT7K3CtxDZbHfGyPwlgrQtPx133MCZQbu8ADxc+8/axyDnPVtJDfpRuuDbC0D9 x4vzaUnzzulD5lDvRs+Thrre+IPAxo+r0rWR5D64pBJ3kcf6GlpvljW X-Developer-Key: i=david@mainlining.org; a=ed25519; pk=PJIYyFK3VrK6x+9W6ih8IGSJ5dxRXHiYay+gG1qQzqs= This patch adds support the 2560x1600@90Hz dual DSI command mode panel by EDO in combination with a Raydium RM69380 driver IC. This driver IC can be found in the following devices: * Lenovo Xiaoxin Pad Pro 2021 (TB-J716F) with EDO panel * Lenovo Tab P11 Pro (TB-J706F) with EDO panel * Robo & Kala 2-in-1 Laptop with Sharp panel Signed-off-by: David Wronek --- Changes in v4: - Fix up Kconfig - Switch to devm_mipi_dsi_attach to benefit from automatic detaching - Initialize panel at a lower brightness - Dropped debug logs - Signify second DSI interface in mipi_dsi_device_info as "RM69380 DSI1" - Changed 'addtionalProperties' to 'unevaluatedProperties' in dt-binding - Dropped 'ports' in dt-binding - Link to v3: https://lore.kernel.org/r/20240416-raydium-rm69380-driver-v3-0-21600ac4ce5f@mainlining.org Changes in v3: - Removed unneeded curly brackets from some if statments - Fix error handling code in probe function - Include video/mipi_display.h and make use of MIPI command definitions - Removed DRM_MODE_TYPE_PREFERRED - Dropped 'prepared' bool entirely - Register second DSI host using mipi_dsi_device_register_full() - Link to v2: https://lore.kernel.org/r/20240415-raydium-rm69380-driver-v2-0-524216461306@mainlining.org Changes in v2: - Fixed typo in Kconfig - Removed ctx->prepared = true; in prepare function - Switched to drm_connector_helper_get_modes_fixed in get_modes function - Changed dev_notice() to dev_dbg() - Add description for compatible and reset-gpio in the dt-binding - Always require 'ports' node in the dt-binding regardless of compatible - Link to v1: https://lore.kernel.org/r/20240414-raydium-rm69380-driver-v1-0-5e86ba2490b5@mainlining.org --- David Wronek (2): dt-bindings: display: panel: Add Raydium RM69380 drm/panel: Add driver for EDO RM69380 OLED panel .../bindings/display/panel/raydium,rm69380.yaml | 89 ++++++ drivers/gpu/drm/panel/Kconfig | 12 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-raydium-rm69380.c | 344 +++++++++++++++++++++ 4 files changed, 446 insertions(+) --- base-commit: 4eab358930711bbeb85bf5ee267d0d42d3394c2c change-id: 20240414-raydium-rm69380-driver-47f22b6f24fe Best regards, -- David Wronek