Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1122722lqp; Fri, 22 Mar 2024 06:23:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUO1kD339gQRCBjSmD45qPd1er6kpgFhblDSnilrBcnl6VoAkH4wfrQAIkKxsN+y72ga7FPyiAT9gmEr7oai1Xnngfh2m/NScSEanAVxw== X-Google-Smtp-Source: AGHT+IHzGmosoEjzpQT9Sp9EDv+khWllbOh2g9IHb75TRFsiQGQVtZo4URnpz55IfkanVSOB8PxB X-Received: by 2002:a17:902:d4d0:b0:1e0:1a52:3c59 with SMTP id o16-20020a170902d4d000b001e01a523c59mr3165184plg.23.1711113788476; Fri, 22 Mar 2024 06:23:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711113788; cv=pass; d=google.com; s=arc-20160816; b=qDwxUxVi6xbiC7YJGGfkwNpoaybxlJ/+V30SDBS+BLokPUqo1MRkQVFcVvEIZatlcJ EGat68h57hNsKQl4qLVW4npEXckrAxsjk2FexGSzZRWddsVBER3Ty5zHVn1NNA724j9X Xdj/LBIfUZLDfrUTongybZl5dnxGGqYncgEvY/wqtJNDT9V7bwuQte7W3fEOCuusBdI9 AERqI7rXBoAiIczue8Q6P3Hx9hT5N+x4XIsyTaaN5pBHd7fz9ozFNLqqpO4LQDAq4eDx r2sR9EeX5t8Gaqa6qKhFwsAY6e6LlBSQyJIc1xpJENFdFtadaC9Os/gdVXUnQLzKSEd4 SLGg== 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=zarOYxCOo5GM/MnqDwI9RHuDvosKvb8moWuxJ17HxLw=; fh=Mve7mgMBINgkd6rCDATSovobky8BGhvCp4R8PJrfqXc=; b=y1Qdm2nTQTmG5FdghoLtlkZrCuP43gZZm3bS6fU3QWdgGoX/+P9vFQBk1SyhLydmdv wURHAFtQWdzrdWLgbDac0cxpjjlkcK8wYnvYSbjGqp8UJAsrBlhk2HuIWry4FQGiWj/g txLBRYr8fR/XkCzrf2JB6lf2InFxoj3otJSFMEKFby1+RQ+TlzTWZuRhB64yMsdUseOi tr9b6ELblFAU12eSRY/Gbh/rK56bj/oriMTSW/ULw0MX6fpDvcyuU+vWsbhOiOBCJRky ChH3+fHGqkyZi6o80yalnshvu1I1x5z670fO507uxACBl3uiQLwV4rad+d3AiGvnN2dq 1XSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uJjebqaR; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-111469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111469-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e18-20020a17090301d200b001dddd1df881si1980723plh.295.2024.03.22.06.23.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:23:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uJjebqaR; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-111469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111469-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2EBEC2820CA for ; Fri, 22 Mar 2024 13:22:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 930B24644C; Fri, 22 Mar 2024 13:22:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uJjebqaR" 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 7A9B746542 for ; Fri, 22 Mar 2024 13:22:37 +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=1711113759; cv=none; b=QQAWExLCFEaNnFrU2HUAuoYnWtKTYQHbm7JGkgBSouA+no1IunlxmqNUHuaidLyVlkIRT3F+7dh0qV3u8XO2/EHFUGzxJHitC0JEyBVNkDL9pLpGVdk9bM+JySfYIn1A417GdwxXZBDKjsh0PuEwnVv4P7GropYsqH3rYcB8UVk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711113759; c=relaxed/simple; bh=edVU3jeCTQ3gGUgwZ920jvPlnNbROZnf5Iox4JZ+SFg=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=YxYZREjj13hrWS6RV+VsU8s7dVDbgwTbzEs18Vlil+GWboivi2bszwY7CfVeRckCuDMAGlDCzs5/upuSgMBxE+Bbk6khJhh+8TLDZuKPxMJ9JLDzQCpFQgxKey7fkjOZmQxIjs0doWfdkI7aMDRqWxM3D+JwJaYAc+GMqcep2z8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=uJjebqaR; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-51381021af1so3352698e87.0 for ; Fri, 22 Mar 2024 06:22:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711113756; x=1711718556; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=zarOYxCOo5GM/MnqDwI9RHuDvosKvb8moWuxJ17HxLw=; b=uJjebqaR4zM7r0mHZHN/Gwu3fPeMHv7wDy0NUQ01UAlkCfJAC5JfPHdWALmH1OUMbH 5tcKAHNTCbewLrw9y3C70JOd9/jTSmv76skP63A8U8I/9gIhzvlD7RJbkAkzdZ/ihIOh CpcAyiPxCs28h2E68nC0OjgBzSThzCzV5ZSaifCGUo5v2g5bz/9OMrdVGKFxAmmkkclJ BUZ8hTqWOMWxX2CRsaz1KyJdPOJO1BniTcTcrL7y0zAIeSXQzfRzpksuhIITDxCtosQy lGktQBUa/8IoakHWljWSK4L+gA43egjp5p6J1R5mlhX/D8fobWQLs6wSAbVWVxkRcJcI kbPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711113756; x=1711718556; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zarOYxCOo5GM/MnqDwI9RHuDvosKvb8moWuxJ17HxLw=; b=WoKVfi5u6/8DtRm06v2SknS0d/EwTFtBeYOIgrR/IP5Q35xq2yrCxUCXmd91IEAOs+ 076lq5/GS5JecWHFiUcUoxZZjEfNDkD2XbVv84Ygo9/QRQA6fXPPBnnQ1bGIkm2Ba8F4 ScPi7TiZYRnZVyE42VsYACC9YrHOWf20u9XjixlPGct6x05Swjsxfw+CgYq2JIw0Om7t L6kkv8FktVt8/Q+ccgJ5Xto9wEQWOYn2lnO5Z3aKIMwifjnevAurolax3HVbQEPj0Ghu TgnyQ8IvKjn6JC9VTz2ypJor0k3RMxI3bw2ZkD+K3VVDYY/GsTVZ/WCIwR8qYVDTFBAl +I1Q== X-Forwarded-Encrypted: i=1; AJvYcCWWTa0W1EI136dEUeqrQbHV3+UfEYEQBgK+McbvdZWgJBNefDOLn0pzkR0QoX12UqD6Re9f6UVHiAF/JhqAJ90LfC3l3xjNyqWlMe1Z X-Gm-Message-State: AOJu0YyvLho8JXhOhhwehQtjA6gYvZOE0/oYrITIdHgRFOKZXBItJI5q HVl9vEAxC23AYhdvkupB6WAzOLlaaWq/OH/4Eq25h+XKMTc+E+KLiJ+lPv2K+5Y= X-Received: by 2002:a19:9116:0:b0:512:d5e4:1aa4 with SMTP id t22-20020a199116000000b00512d5e41aa4mr2133765lfd.60.1711113753386; Fri, 22 Mar 2024 06:22:33 -0700 (PDT) Received: from [127.0.1.1] ([79.114.172.194]) by smtp.gmail.com with ESMTPSA id m22-20020a170906721600b00a461e206c00sm1014176ejk.20.2024.03.22.06.22.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:22:32 -0700 (PDT) From: Abel Vesa Subject: [PATCH v3 0/2] drm/msm/dp: Rework the eDP/DP modes and add support for X1E80100 Date: Fri, 22 Mar 2024 15:22:21 +0200 Message-Id: <20240322-x1e80100-display-refactor-connector-v3-0-af14c29af665@linaro.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=H4sIAA2G/WUC/43NTQqDMBAF4KtI1k3JjD/VrnqP0kWcjBqQRJIii nj3Rlftrrt5w+N7m4gcLEdxzzYReLbRepdCfskEDdr1LK1JWaDCHBAauQDXCpSSxsZp1KsM3Gl 6+yDJO8fnxUBVVRY1ac5FkqbUscu58nylPNiYaus5OsPxPfxCIcJf/gxSyboixcCtKZkeo3U6+ KsPvTgGZvxG8T8UE9qaApqb6Yh1+4Pu+/4BWL5LkiwBAAA= To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kuogee Hsieh , Bjorn Andersson , Konrad Dybcio , Dmitry Baryshkov , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2044; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=edVU3jeCTQ3gGUgwZ920jvPlnNbROZnf5Iox4JZ+SFg=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBl/YYOECUpQjcuKiiQsDAY//fbkHQz0j5YwGNFT YkbKSr8N/6JAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZf2GDgAKCRAbX0TJAJUV VgFvD/9JHvp+vLlvhfZV9N12OsXJkgnbx/YBQ/QCk+Gnx2JKan+BKphy4bxGFAxjrP5wf7YOygz h0amEA1YCAbUi9h6lJYnVYieS7YXm1ZBI66s1gZYP3x5vXIbEzdZjc6ayXZwXgDz37OuDtif7F4 rxZYEHAxIwTqyv6AMr3k5gc32Raw0msPXhxpbIVNIBX9XtE0dyGFW8iu7bA6CPlPwz+nJAcNN1N RD6a62szt1gWxjHtWHdM7KadZ23TDHCZwZ0cKneOSrdjTsx+qo+ZqDlez+FZY8fD8JkHrSIGhnN HAnqZDC3OVhkj+Of2CiOfaIof9ShJACVm2WFW6miOFiTZmf/Mb3x5Lk6fkUWN5Fm/UhP3fmrkTS YdAY9OTqXqY8UgzVFfFvFh30t+Tw7DKyMVvU88OYvuxFCNzGoWyU/G0K78ujaDKrBNqpKWLxewX gBcHk/Q/Q2wEvl1tvmiS5X2RWwGzhn1aQi9/mNYdLyU3nzARtk6cJMBPo2B7oZltyyUJFFlpH9G IGk+tTcrobTt6zrr6dNpBTlo0GB36578MB14XFuvXHar6Um2YmDvx07vht1HbGFR1FeQ6yhWZWl m46W1tBRcLELNn9XtUUjs95M4TGNnu1uQFsW9HiGSdEBzriuu94O7tj7JNaxELNUm9LdM/kWAw0 TIF6CO6P5Bixzvw== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE Since this new platform supports both DP and eDP, it's the perfect time to drop the dual compatible (eDP and DP) and figure out a different way to specify the mode. After some off-list discussion, one suggested way was to add a 'is-edp' property to the controller node, but that approach has been dropped due to bindings concerns. So now we lookup the panel node in DT and based on it's presence we can safely say if it is eDP or not. The PHY counterpart patchset is here: https://lore.kernel.org/all/20240220-x1e80100-phy-edp-compatible-refactor-v5-0-e8658adf5461@linaro.org/ Signed-off-by: Abel Vesa --- Changes in v3: - Dropped the bindings patch as this new solution doesn't involve bindings update. - Dropped R-b tags as this has been entirely reworked - Reworked to lookup the panel node in DT and set the is_edp and connector type based on panel node presence - Link to v2: https://lore.kernel.org/r/20240222-x1e80100-display-refactor-connector-v2-0-bd4197dfceab@linaro.org Changes in v2: - Added Dmitry's R-b tag to both driver patches - Dropped the if statement around assigning the is_edp in dp_display_probe, and fixed said assignment by using the connector type from match data instead. - Moved the qcom,x1e80100-dp compatible where it belongs - Re-worded the bindings commit message to follow Bjorn's suggestion - Dropped the RFC tag as the approach doesn't seem to be questioned anymore - Link to v1: https://lore.kernel.org/r/20240221-x1e80100-display-refactor-connector-v1-0-86c0e1ebd5ec@linaro.org --- Abel Vesa (2): drm/msm/dp: Add support for determining the eDP/DP mode from DT drm/msm/dp: Add support for the X1E80100 drivers/gpu/drm/msm/dp/dp_display.c | 52 ++++++++++++++++++++++++++++++++++--- 1 file changed, 48 insertions(+), 4 deletions(-) --- base-commit: e7528c088874326d3060a46f572252be43755a86 change-id: 20231219-x1e80100-display-refactor-connector-e1c66548cae3 Best regards, -- Abel Vesa