From patchwork Tue Feb 20 22:50:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 774613 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 5DC291468E0 for ; Tue, 20 Feb 2024 22:50:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708469446; cv=none; b=mk0lLNTZARPYUJegLeQbqNDonThckeMyOs3zzOuH3c3xPgzxvYd2Z+5rA2np+zxbEhfrgBG4ZPlYnuuUrJh6zshLLqvpv53nRgEV2zMfwNOBCxqMMazYg4pbUa4cwmeGWATuyPqcCoPI0LguJxvB8WC1rjQKbznkueFaKPDOHMg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708469446; c=relaxed/simple; bh=XUmTiKV+TS3e6Ef/iekjRyOkUOD1YgaHYwrpRNkCpCI=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=fiH/lpztxxmIVjLk9pu+s/7XuALQ4FcKNs9hXUMFc622mwFM3uZe1fKwX1BE8FNJRrH5aJvXj19SgY6lgUzYe4IONs4pEcWFVKlVXG1US3iY9MbtRoR/r5SbTQrm9CZ9n/vsHTW1Xw527xySRZGzv8ajm6nMVe1tULLGBlCbVTc= 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=tgamkhlv; arc=none smtp.client-ip=209.85.167.43 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tgamkhlv" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-512cc3ea7a5so1037185e87.3 for ; Tue, 20 Feb 2024 14:50:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708469442; x=1709074242; 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=1LG/YBimXAQusHofv1q3iQxH4mPaNrde/6RhU8UnryY=; b=tgamkhlvBmi4ppQSSZGfvlU9zvfymHJPF3tE7VbZyd2dYe2ypMLk3c2USn6RT/N9kk b8XunnoYrdGm8ahoc75TcvhYwRHwtCbXpIPOSfRz79F1BRto2LXs1DMIKYV6VQ1smhci PPoHgXuT6vLN1rWHrwQTEI7JqUIEhHxuZncfw6Aum76k/C4+m1CmlBzYDvL330SKW64K tSaIGtfDAiMneyZtLdnDKoaOuWGx38Henglli8esKTJODupEvdkKYMYYUsKafHf1AsdG DLn6Qeam913IZSJAOdwDFQbioPjP/h1lpwbQOnTWKfW1wcVP6iR1FyE5Oif1KOGlwHIR e7Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708469442; x=1709074242; 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=1LG/YBimXAQusHofv1q3iQxH4mPaNrde/6RhU8UnryY=; b=cflEk9LZb5Qd3KzwIv7M7bL4kUHjoE5GgqnFsK3d8JOTK2qRdg3w0aUXj4lPy7xqBh IoggkAO02yBfHv+3y18wvaiDf+0PPk7YmAATCOtY59lR5nyUXRxqZ3VSfWeKRv1xjAwE 60MyCDSZiTriFlJeVCFA0LQrW2Yj6nfUY4oeYW64QF2h8xfRC8VsgtfFy5LqJ5aipcZv dru272R8aeDoizaqkd+lM1Adhrl06tIVs5H5IHKGvhDziaO8EdgrOCz4xq5srYH7jrHa YMQiTa5ZJcJ1SUl33LZ/7iS7vaOou99nAm5NzSrcIYhklWbNBPnGobiFZGCWvsFMf0NT Zvkw== X-Gm-Message-State: AOJu0Yx+dOI33Z0PdlQPmY5jj6XCtfJyyemFA5g51oa+dfgsPt6DmXuv W96x1pdEJlW8auFgIVcK+ULCEYhUb9S/afHIUgBmTMP8DD6lpE9l1lW8MdmIyRU= X-Google-Smtp-Source: AGHT+IGFjq4aRmXhKbeVXidrtL0lugiMcB88ZB9NqST7+igCfACT+E7YS8UgO+RIA94FjWGnszt7vw== X-Received: by 2002:a05:6512:3d04:b0:512:bf82:139f with SMTP id d4-20020a0565123d0400b00512bf82139fmr3245081lfv.25.1708469442497; Tue, 20 Feb 2024 14:50:42 -0800 (PST) Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id g3-20020a170906c18300b00a3ed811cff9sm1601977ejz.154.2024.02.20.14.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 14:50:41 -0800 (PST) From: Abel Vesa Subject: [PATCH RFC 0/3] drm/msm/dp: Rework the eDP/DP modes and add support for X1E80100 Date: Wed, 21 Feb 2024 00:50:30 +0200 Message-Id: <20240221-x1e80100-display-refactor-connector-v1-0-86c0e1ebd5ec@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIALYs1WUC/x2NQQrCMBBFr1Jm7UAm1VLdCh7AbXERpl8dkKQkI i2ldzd09x48/l+pIBsKXZqVMn5WLMUqcmhI3yG+wDZWJ+98K17OPAt6J87xaGX6hIUznkG/KbO mGLETRLvudOw1oKW6NNXG5v1loPvtSo9t+wMh1QMmegAAAA== 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=1284; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=XUmTiKV+TS3e6Ef/iekjRyOkUOD1YgaHYwrpRNkCpCI=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBl1Sy4am+8YdtdpgLN1WSUtUIMsRhnVx4qBl0pE Q4WaunMBhyJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZdUsuAAKCRAbX0TJAJUV Vkb8EAC3yluN0p4bSupKX3D7fdfiWjltnA2GVXEWe4GZm48cgF9Ptk/hXjQP2fy+eIWsUVKW0Aa 03qKb0Up3xBD0PQMfV+YRVJWm2WOIwiHwmfEDk2jBWh8Vnv2xT7PtU/KcdM597vYxSDo3bQyIFd nMtbo5IHRTrrlZU5JUB707ZOdr2VKg5AYqvqrRnL+IOVR8sucuk0s8mgMGp/GippDRHmy4Mdi7w EDOW16RpqerHXNMl5u/xjYmcMdHEl/CVHYqqYGh43oWGjwk5gMtzkL5voXRCAj2JyfeWCI+aoId 8iaVoPhCBQTLUaLRiWSuJTCqYPw8iLbdj4RFy42uf8FwSw62bcwJ93073b4QOCiNo0SBmZPBX3M JfN88v8PpMna2Gi+pLAySico47zuLZWenkjkLdo/Y0dvZ5dsMGLScOxh0LCC2Du/uMoeUhuLu5v VnI8twihZf78cUrvA0DP7u92b1rWED0yM0KYneZe5APmE72ZJrFdwsB9lZT7L2cRwUOASknA4wP VkfEhk/8E7902SPAK0dxHngdlHzfVaUAJvV4F0Cm0dEPfFIkQqknGgEk82rh2VfMB46Zn5lw5ne 8DSNFWAfC9EuUIfHfZmiS+Fd/+wtEwiqmh2oXRO9Av6/6EVbUGP6UMdpHemIB9LagufuEh5IoXn v71QfqsCZZmE1eA== 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 and call phy_set_mode to let the PHY know which mode it should configure itself. 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 --- Abel Vesa (3): dt-bindings: display: msm: dp-controller: document X1E80100 compatible drm/msm/dp: Add support for setting the eDP mode from devicetree drm/msm/dp: Add support for the X1E80100 .../bindings/display/msm/dp-controller.yaml | 6 +++++ drivers/gpu/drm/msm/dp/dp_ctrl.c | 11 +++++++++ drivers/gpu/drm/msm/dp/dp_ctrl.h | 1 + drivers/gpu/drm/msm/dp/dp_display.c | 28 +++++++++++++++++++--- 4 files changed, 43 insertions(+), 3 deletions(-) --- base-commit: 2d5c7b7eb345249cb34d42cbc2b97b4c57ea944e change-id: 20231219-x1e80100-display-refactor-connector-e1c66548cae3 Best regards,