Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2190409rwo; Sun, 23 Jul 2023 09:23:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlGnYVM4jCHB7hp5rowcHmoZkKyE3MX4kgSHcRe4PYI2XG35CeqymsuRdxqGiSsVUOlCbOQ/ X-Received: by 2002:a17:903:428d:b0:1b8:1e05:ed09 with SMTP id ju13-20020a170903428d00b001b81e05ed09mr6226375plb.36.1690129394835; Sun, 23 Jul 2023 09:23:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690129394; cv=none; d=google.com; s=arc-20160816; b=rzUvJBTxPXhdnmWoMmt11iONnzGTVmgOtBIRiE+b0GOKmReXdCsKGXnwo1qvjR+q6C WyFVw3laV4jkBraEmImDj+BMVjv890cg8MYxqWCVFuNMksjeuGEdUhxCdtQ9KXtmop5e Q4YHPnHY84af2rpDNuRskXMWRZMsQz/tWUpHHsYOzSZhVKZrxxJQ3qRr0C8NsY+ZR47I +LUS8dxVSMOhXupfePx2HZ8Oup9VTKhxVy0Bb4FiSZtBnNI2y9wEej5Y7eY+QniEO+ZT AnXHykxqh2SDZ33GAV4hY1NZc6B3PX2/f9lbWyXq0sy1mIWSY3kQPg9y7zCLr3e4VrGI K7bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from; bh=wnPZJ9fmp4rhk2Az2/f+tA6oKa8bJS99/heJ0O6pZLk=; fh=leX+O6jKh0YVaNs1K1EEsBHGzdLh14ud5V1tGr/4j9o=; b=fUwYSAWNRbvoNMWnzohYhXkCfXaHScv+iw2qFf4kSdgkeJFs+he45hrHjw7r9VKCO3 pJzSFSO7H8MtttJEpPb0KOa5wFvJlxR0GM/kZmwH8EjnlPM/Q5/qZ6g5yu0sIWsqaAbK oL7tpoaib8P1LwxL9be2sQcDrDlRtpo//CbXT0Erfb/cFxuAStigDxqCBYgja7c5bZkl 4HAVqPs8JJ7ZrSSHcHu0OCWLhguYgLAF3uXr1DY0/2qp00/07TPRNa+Jfr8Em0O2kWQt SsKikEPXoSoEP2E0Nf1dRPw6fZYuoyI/bB1YcXr2vMJ1cUIR1zVoo+AfxM0gNZ/1xTL4 AczQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u4-20020a170902e5c400b001bb20380bf9si7965504plf.545.2023.07.23.09.23.03; Sun, 23 Jul 2023 09:23:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229922AbjGWQIv (ORCPT + 99 others); Sun, 23 Jul 2023 12:08:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229834AbjGWQIq (ORCPT ); Sun, 23 Jul 2023 12:08:46 -0400 Received: from relay06.th.seeweb.it (relay06.th.seeweb.it [5.144.164.167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D5A4E74; Sun, 23 Jul 2023 09:08:44 -0700 (PDT) Received: from Marijn-Arch-PC.localdomain (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id CBB873F0E6; Sun, 23 Jul 2023 18:08:39 +0200 (CEST) From: Marijn Suijten Subject: [PATCH v4 00/17] drm/msm: Add SM6125 MDSS/DPU hardware and enable Sony Xperia 10 II panel Date: Sun, 23 Jul 2023 18:08:38 +0200 Message-Id: <20230723-sm6125-dpu-v4-0-a3f287dd6c07@somainline.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAIZQvWQC/23NQQ6CMBQE0KuQrq1pf6EFV97DuCjlA02wkFaIh nB3CxslspxJ3sxMAnqLgVySmXicbLC9iyE9JcS02jVIbRUzAQaCSUhpeEgOGa2GkWqsTCGFQlQ liaDUAWnptTNtJG7sulgOHmv72h5u95hbG569f2+HE1/bw+2JU0Z5lWkpcoNlDdfQP7R1nXV47 n1D1q0Jfr3aeYieCUwF08BUbg69+HrF850X0UuT6UxiUeTA/vyyLB/cu9PSPgEAAA== To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Krishna Manikandan , Marijn Suijten , Loic Poulain , Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Lux Aliaga , Rob Herring , Krzysztof Kozlowski X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Bring up the SM6125 DPU now that all preliminary series (such as INTF TE) have been merged (for me to test the hardware properly), and most other conflicting work (barring ongoing catalog *improvements*) has made its way in as well or is still being discussed. The second part of the series complements that by immediately utilizing this hardware in DT, and even enabling the MDSS/DSI nodes complete with a 6.0" 1080x2520 panel for Sony's Seine PDX201 (Xperia 10 II). The last patch ("sm6125-seine: Configure MDSS, DSI and panel") depends on (an impending v2 of) my Sony panel collection series [1]. [1]: https://lore.kernel.org/linux-arm-msm/20230521-drm-panels-sony-v1-0-541c341d6bee@somainline.org/ --- Changes in v4: - Require "throttle" clock in display-controller node bindings and provide it in DTS (this clock previously resulted in inexplicable pingpong timeouts, but that cannot be reproduced anymore); - Split APPS IOMMU address-padding fix to a separate patch; - Add new patch to remove wrong DSI1 output port in SM6350 and SM6375 MDSS dt-bindings example; - Link to v3: https://lore.kernel.org/r/20230718-sm6125-dpu-v3-0-6c5a56e99820@somainline.org Changes in v3: - Drop status="disabled" from MDSS dt-bindings example; - Use "nom" instead of "svs" OPP for dsi-phy PD, matching downstream; - Add "retention" OPP to dispcc PD; - Reword dsi-phy required-opps documentation; - Rebased on latest -next and fixed conflicts in DT and DPU catalog; - Link to v2: https://lore.kernel.org/r/20230627-sm6125-dpu-v2-0-03e430a2078c@somainline.org Changes in v2: - Moved dispcc DT clock reordering to the right patch (--fixup on the wrong hash) (Dmitry, Konrad multiple times); - Drop removal of GCC_DISP_AHB_CLK in dispcc bindings. While it is unused in the current driver, it is likely used to ensure a guaranteed probe order between GCC and DISPCC downstream, as well as currently relying on the fact that GCC_DISP_AHB_CLK is CLK_IS_CRITICAL and never turned off (Bjorn); - Add GCC_DISP_GPLL0_DIV_CLK_SRC at the end of the dispcc clock list to maintain some form of ABI stability (Krzysztof); - Use SoC-prefix format for 14nm DSI PHY qcom,sm6125-dsi-phy-14nm compatible (Dmitry, Krzysztof); - Add patch to drop unused regulators from QCM2290 14nm DSI PHY (Konrad, Dmitry); - Reuse QCM2290 14nm DSI PHY config struct for SM6125 compatible (Konrad); - s/sde/mdss in pdx201.dts pinctrl node names and labels (Konrad); - Use MX power domain in DSI PHY with SVS OPP (Dmitry); - Use CX power domain with (already-existing) OPP table in DSI CTRL (Konrad, Dmitry); - Rebased on top of DPU catalog rework [1] by inlining macro invocations, and validated by diffing stripped dpu_hw_catalog.o that there are no unexpected changes; - Unset min_llcc_ib because this platform has no LLCC (Konrad); - Fix UBWC comment to mention "encoding" version (Dmitry); - Reordered DT nodes to follow Konrad's requested sorting; - Add power-domains and required-opps properties to dsi-phy-14nm.yaml; - Link to v1: https://lore.kernel.org/r/20230624-sm6125-dpu-v1-0-1d5a638cebf2@somainline.org The discussions and this list ran quite long, apologies if I missed or mis-resolved anything in advance! [1]: https://lore.kernel.org/linux-arm-msm/20230619212519.875673-1-dmitry.baryshkov@linaro.org/ --- Marijn Suijten (17): drm/msm/dsi: Drop unused regulators from QCM2290 14nm DSI PHY config arm64: dts: qcom: sm6125: Pad APPS IOMMU address to 8 characters arm64: dts: qcom: sm6125: Sort spmi_bus node numerically by reg dt-bindings: display/msm: Remove DSI1 ports from SM6350/SM6375 example dt-bindings: clock: qcom,dispcc-sm6125: Require GCC PLL0 DIV clock dt-bindings: clock: qcom,dispcc-sm6125: Allow power-domains property dt-bindings: display/msm: dsi-controller-main: Document SM6125 dt-bindings: display/msm: sc7180-dpu: Describe SM6125 dt-bindings: display/msm: Add SM6125 MDSS drm/msm/dpu: Add SM6125 support drm/msm/mdss: Add SM6125 support dt-bindings: msm: dsi-phy-14nm: Document SM6125 variant drm/msm/dsi: Reuse QCM2290 14nm DSI PHY configuration for SM6125 arm64: dts: qcom: sm6125: Switch fixed xo_board clock to RPM XO clock arm64: dts: qcom: sm6125: Add dispcc node arm64: dts: qcom: sm6125: Add display hardware nodes arm64: dts: qcom: sm6125-seine: Configure MDSS, DSI and panel .../bindings/clock/qcom,dispcc-sm6125.yaml | 24 +- .../bindings/display/msm/dsi-controller-main.yaml | 2 + .../bindings/display/msm/dsi-phy-14nm.yaml | 11 + .../bindings/display/msm/qcom,sc7180-dpu.yaml | 5 +- .../bindings/display/msm/qcom,sm6125-mdss.yaml | 213 +++++++++++++++++ .../bindings/display/msm/qcom,sm6350-mdss.yaml | 7 - .../bindings/display/msm/qcom,sm6375-mdss.yaml | 7 - .../dts/qcom/sm6125-sony-xperia-seine-pdx201.dts | 59 +++++ arch/arm64/boot/dts/qcom/sm6125.dtsi | 257 +++++++++++++++++++-- .../gpu/drm/msm/disp/dpu1/catalog/dpu_5_4_sm6125.h | 236 +++++++++++++++++++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 7 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 1 + drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 2 + drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c | 2 - drivers/gpu/drm/msm/msm_mdss.c | 8 + 16 files changed, 804 insertions(+), 38 deletions(-) --- base-commit: 535ce75f2d80a47ce5407681014cd5a976646e38 change-id: 20230624-sm6125-dpu-aedc9637ee7b Best regards, -- Marijn Suijten