From patchwork Wed Feb 14 21:24: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: 201139 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:9f94:b0:17a:e0d6:c84d with SMTP id fy20csp127433rwb; Wed, 14 Feb 2024 13:51:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVzyPKPPpkbN4DYNRwFTH8QMMLcPhR6UAcK6VibtTUG1lPE5gOlRRWqO+C9qSs16kVDQpSMZFsERLKS6AsL8wVx/Q43aw== X-Google-Smtp-Source: AGHT+IFy1oDU+DxmpRPp1QRPHAx/oXPcubgo44Dn8FKAvpSCJz8a37BUq3LSBWoG8Io+JsizCRC2 X-Received: by 2002:a05:6a21:8cc6:b0:19c:a7e5:37cc with SMTP id ta6-20020a056a218cc600b0019ca7e537ccmr78230pzb.41.1707947505705; Wed, 14 Feb 2024 13:51:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707947505; cv=pass; d=google.com; s=arc-20160816; b=MAXR/VzQ7rtlxdnjRQ7UHGk5NOLWYRywMxQabgLWY30zsmaf89973F38G84ip85bYX m6cegCnaITIQjSPXL3fforn+xJK5gPYAaA+v0+63V5uH9cs3jxHBCnj68lfM5HvzR1Eb aVPE2F3VxvbA9cBj6wVg1UcQQoMrbkN0JKvbtRc6xLe8uwMSbBqA7apGIMnYus8AmJ1H UhW5AXIz5KociV8LKBaTPdXHnLQWGAsit5uThtsNDRBTMo6daxK9pQPNYWFBISX/wOu4 wTqsaop+Nwdg79fAakTHu2KTwRDfgc4jLyQB0KFLFfrjnem2+b4355ARDX57VVd73XDe H5sw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=CPi8ivh2mN2y9Vi73CkpxPTlBJdM04NlyerCxruRnno=; fh=BlOurC/yH8x/M8i/F1zClMrvpfmZRpdRBlU/jCF3Uu0=; b=BaLfmrOPJiMuhXMRKaREsImmqnMqQ74rHoTdIrL7LUcLWGutFxNTDZUwzhFQHfsqq9 QN0tjFhxPtxe8ZkOQ3H9Vgkp/4HMjogVIxTOOxkOxxjoDZ/GCQ6hjsg2TyMkt5ND4o7h GDW5P0SSw7QSgo3jyCvP18wHmLjnw47TwJxzBDe7by7FLy5iqtSFekZsn6xb0WWIsrgF yFgTUQuPJHwZJj/T3RpYzkVUYWyGPhxX5ZCe4C/Ll3A1Ktd/IoA1U4P8zoLKz0sO9dsY KpS9v4gdzEa6q6YTUCeYHiWWCJCF0ZVbM2/ZlLKoH776+3Al67J+6dmdjJd/1/I4Ouki npwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mwJl2pOa; 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-65981-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65981-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCXAd8Pshrvmkfjcpe6jocIUnQTy8KX2oC69LqmFqkcuJI1C8zup0dEx0CWA+In5kpKqET1SoYCp6lB2Vds9x0gFbbnWFg== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v28-20020aa799dc000000b006e04426c8d5si8999717pfi.336.2024.02.14.13.51.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 13:51:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65981-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mwJl2pOa; 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-65981-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65981-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CBE2DB24945 for ; Wed, 14 Feb 2024 21:25:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E2561420AB; Wed, 14 Feb 2024 21:24:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mwJl2pOa" 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 52D1E13EFEF for ; Wed, 14 Feb 2024 21:24:51 +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=1707945893; cv=none; b=qX7mXo/9QlNYHbWasOSOOkim/T6d5nyIO0ZfA9MYZ5V/5yyknQ6fqLDmgx7fPn8HVeEra74EZstOs5Y2zbQb8t7kjg+jPZSSTb7GlR/ayHexZNjLAlwVSr8VWjy0SPqM7ezg9Mj5nuAYFw2spo1sCyRGNOs1JOMW9fSZo4DHGjg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707945893; c=relaxed/simple; bh=trzMRuYmSH6OFe2YghfrCBvROS8FZbNBmhJApiP3SIA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dKFnsxp7PG5IT/KKCBzi9vQmYvFurPEnQrlS9hr79VEwhaVNll/qzl8NM9DfgFOEN4qtoOCrbMXnKQ5T9eHm5H7ffcoPJB88aCShxZJVWLhMDVSVtnESEuhVr7LLkQ8pfiGbAhdiNAFAE0TaSaP1kDOsQLkyZGICLje+IviJpLM= 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=mwJl2pOa; 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-5116b540163so300560e87.1 for ; Wed, 14 Feb 2024 13:24:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707945889; x=1708550689; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CPi8ivh2mN2y9Vi73CkpxPTlBJdM04NlyerCxruRnno=; b=mwJl2pOaRognMEpMJOQwZTfFM63mau3tfX2iOvrAbJuTw6c7cOngCk7ptrSRS5vanH zufN+adluSu0pi15SGkRHW8zb4pvOlL9zu3nL8qr83GoZDejJ70pKg9SOza/m4rnSi32 hdkKvIyQ2pv2VmfMpiXgULIQkF6CXoss/gAbWWOeKC7sSf6aTP6JYeJyyb35WWuVHeec oiow4rWEU8hPBFFnnpuU2UXDbnZku+BaVoiSP/8BhqDCysJAfLbgqxFbbqjn9eIZ+jIa SxrUv6s1HIFVhLZbTtA0OQ0UJeEShvxBoZi2xSgkdux6sLMmm7ZRUT/iVvb9rqizi+ZT MNaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707945889; x=1708550689; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CPi8ivh2mN2y9Vi73CkpxPTlBJdM04NlyerCxruRnno=; b=sqZCey+a//MghldfX7Er9i3i0/Ptt+1A/FayMgN1kP+n1Ws7n1ygMEiITLg1YQe5mm vgqRSdqgnI/iSrXmnwQkq4i/4xJ3H611OJMOzJB6FQRbY9b9pcsbZjciM5CbSphZR70S fG+PjG7NyWtFbYPf3NMXImc8ja3EToR/LDBEj0LoObUMDvgT8rmMsmCjZVz22cHZLF9B 7Uot1sDYdxvtP/JHyZq2q2Mwb59UJbOS8QsRwGdxXoDzXUBtc6e2SjydrDlRWAoDaFZP OL0PYYcSW1gg9H+mSAcR7P8LmLlVIDwPD7G6vu1PuNZzITvmWHtkJGkVRliwuoCUHYQV Urwg== X-Forwarded-Encrypted: i=1; AJvYcCWtEkPrUEDO3Ur8wvWc17uQGBKJtS1Y1LMcWJN/C9wr6bOTrLclgevNZO9skmf3OXtrBj2bTYzrpRhoQUW+bnKBXQ7Ej9+rupocRrVF X-Gm-Message-State: AOJu0Yxhn9r49PFiggVlUUFTRNs1HTpGbDhT0Xef9ynIkULYudWn1BhR 3e82hme24a8ZTFaY8GRhSOTLbMzVf4yClRRPcYkquxG8vx8FEk0GQOZwCJ11fpY= X-Received: by 2002:ac2:490e:0:b0:511:ad7f:e284 with SMTP id n14-20020ac2490e000000b00511ad7fe284mr9417lfi.31.1707945889401; Wed, 14 Feb 2024 13:24:49 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVmAft90PfwwJ+F4UGl7VBzcUm7bicbsvS4Gq1g55cT9xqSqreUkJOp7KNX3C2Py9BYM8UMhvxfFP5Jqz3Q8RkTT7oJ7nZCTOFpwiQuXag6L5epTZJ3v8SH9DpguWxsBXtt6n4pjJSkpQ9uYLS741W6f0t9BE617HIF7nRYLa5PEGIsOUokW0MyrwmFwxYSK2hRoWrAaCPOuC3N0RsA1uO0miF4AQbzjDRguBeNxafN1IBlm0oYBJACMJJ2t/VBdPRCGP4RhVdNWq4gdmVW8ZfYummm9qefhQuB1380RAaCSdOQzi7cQYddl0YsLTGrrMYXWjl/35PlN4Ynbnpu0i1nXoMDffqTYE5jzUdCzH+D/4Qb87MHMDDFcBVq+LiD2gM60o2mt0YtYqfR837gj+xA5afOJqzPfR8F7BXcoczxchpKJIgXkbsoy6TKGSPvxjy2we/fl+m1TFs7gP8EpM5TOcFul7l/Y76r/T4cRVljqGAhRMxajQuMlCN3+vgCrqD1KKkoZLhqcbwCombkjwfU3sTclPVd+Nxt7pwU9WCC3i1kwDf0CUeTV4Ky6xcrlHFacpCvOhPUJR3dwzSaDHax9sSyhRCJ7DaOdpB5air+w0sAh0zhJOC9z/Y96V4oArYUJHYx2979TMXdIVL6mw+prAil0IoqLbV3/foXEd81ob6iL9jma3/PAoiFWoAC7fwVgKSyQ0qwWjCrhAP/IecXz8hnSnDg9yTzY06VNoY2Yg== Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id r16-20020aa7c150000000b0056399fa69absm257298edp.26.2024.02.14.13.24.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 13:24:48 -0800 (PST) From: Abel Vesa Date: Wed, 14 Feb 2024 23:24:30 +0200 Subject: [PATCH v2 1/4] dt-bindings: display/msm: document MDSS on X1E80100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240214-x1e80100-display-v2-1-cf05ba887453@linaro.org> References: <20240214-x1e80100-display-v2-0-cf05ba887453@linaro.org> In-Reply-To: <20240214-x1e80100-display-v2-0-cf05ba887453@linaro.org> 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 , Neil Armstrong , Rob Herring 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 , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=8316; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=trzMRuYmSH6OFe2YghfrCBvROS8FZbNBmhJApiP3SIA=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBlzS+XBSJtLaHwyVF7YAoVPVRNDnkK9zJbqYzO4 vykL+7gdTOJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZc0vlwAKCRAbX0TJAJUV Vm/RD/95CWuJMvQI3Jm5AIrS7WryIcLUciwq241Yzf7GWiCAXP6GQb35RgKBY1KrW1ojgLEspId fmUK3VK8qy/qXH4rZdIOPBoZABFuzmxMpvFi6nly65mYdIyIlK0ScQ9P4AGfOaPHGDD8CdfGPpc gyXI1nETFuhBWTLe+ENJ5Ms7hioloZ6q0UoD4kNdVzraUFg017hciOQhW74TrmdOYOO7oXCZtAg ZUUPOT5WnNgXxE/QZvY5Q+8QUlD5hH2hMEtmRn7suDvCrbFqHbJIg4kMNFbSaQkYXFh9NfPQd7J zsOlvheV6eyymyM6mBdVyhBmtrlX58eFBCFSaTtqsn3gEg9H21YwsQUvVZGqm9aY6Xth0DbUMPS 7BjdeSQUJXn7pgZarSQLX1oq/YjfpkcfXOcSaiSFjMVynLOQ3TWMbChnf6U9V7KbVUOZPVE4WUB jpoUPwtFkXCHXU6+LJrHJa3kmT39o2v1hH5BSL2VSXE9tyX9Qr8Bh7oshYCf+LJwsu6Z5mXJI5t H61lW8PM1JLjSmIu1EB69mymk0Ge71LRiN1la3WjnfbgPOrYd0yShvgHNKy/OAblQLGjcEGWeC7 GO9VpOOsV9bO3KTqvArz2C0T51PcESvaegik4Ix3LPq5rIWIuBqFz5wBhwu+ukUV4EbyIodcld/ g+zihpt1KtcnEmQ== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790912763809349681 X-GMAIL-MSGID: 1790912763809349681 Document the MDSS hardware found on the Qualcomm X1E80100 platform. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Abel Vesa --- .../bindings/display/msm/qcom,x1e80100-mdss.yaml | 252 +++++++++++++++++++++ 1 file changed, 252 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/qcom,x1e80100-mdss.yaml b/Documentation/devicetree/bindings/display/msm/qcom,x1e80100-mdss.yaml new file mode 100644 index 000000000000..c3e38afab76e --- /dev/null +++ b/Documentation/devicetree/bindings/display/msm/qcom,x1e80100-mdss.yaml @@ -0,0 +1,252 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/msm/qcom,x1e80100-mdss.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm X1E80100 Display MDSS + +maintainers: + - Abel Vesa + +description: + X1E80100 MSM Mobile Display Subsystem(MDSS), which encapsulates sub-blocks like + DPU display controller, DP interfaces, etc. + +$ref: /schemas/display/msm/mdss-common.yaml# + +properties: + compatible: + const: qcom,x1e80100-mdss + + clocks: + items: + - description: Display AHB + - description: Display hf AXI + - description: Display core + + iommus: + maxItems: 1 + + interconnects: + maxItems: 3 + + interconnect-names: + maxItems: 3 + +patternProperties: + "^display-controller@[0-9a-f]+$": + type: object + properties: + compatible: + const: qcom,x1e80100-dpu + + "^displayport-controller@[0-9a-f]+$": + type: object + properties: + compatible: + const: qcom,x1e80100-dp + + "^phy@[0-9a-f]+$": + type: object + properties: + compatible: + const: qcom,x1e80100-dp-phy + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + #include + #include + #include + + display-subsystem@ae00000 { + compatible = "qcom,x1e80100-mdss"; + reg = <0x0ae00000 0x1000>; + reg-names = "mdss"; + + interconnects = <&mmss_noc MASTER_MDP 0 &gem_noc SLAVE_LLCC 0>, + <&mc_virt MASTER_LLCC 0 &mc_virt SLAVE_EBI1 0>, + <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_DISPLAY_CFG 0>; + interconnect-names = "mdp0-mem", "mdp1-mem", "cpu-cfg"; + + resets = <&dispcc_core_bcr>; + + power-domains = <&dispcc_gdsc>; + + clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>, + <&gcc GCC_DISP_HF_AXI_CLK>, + <&dispcc DISP_CC_MDSS_MDP_CLK>; + clock-names = "bus", "nrt_bus", "core"; + + interrupts = ; + interrupt-controller; + #interrupt-cells = <1>; + + iommus = <&apps_smmu 0x1c00 0x2>; + + #address-cells = <1>; + #size-cells = <1>; + ranges; + + display-controller@ae01000 { + compatible = "qcom,x1e80100-dpu"; + reg = <0x0ae01000 0x8f000>, + <0x0aeb0000 0x2008>; + reg-names = "mdp", "vbif"; + + clocks = <&gcc_axi_clk>, + <&dispcc_ahb_clk>, + <&dispcc_mdp_lut_clk>, + <&dispcc_mdp_clk>, + <&dispcc_mdp_vsync_clk>; + clock-names = "nrt_bus", + "iface", + "lut", + "core", + "vsync"; + + assigned-clocks = <&dispcc_mdp_vsync_clk>; + assigned-clock-rates = <19200000>; + + operating-points-v2 = <&mdp_opp_table>; + power-domains = <&rpmhpd RPMHPD_MMCX>; + + interrupt-parent = <&mdss>; + interrupts = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dpu_intf1_out: endpoint { + remote-endpoint = <&dsi0_in>; + }; + }; + + port@1 { + reg = <1>; + dpu_intf2_out: endpoint { + remote-endpoint = <&dsi1_in>; + }; + }; + }; + + mdp_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + required-opps = <&rpmhpd_opp_low_svs>; + }; + + opp-325000000 { + opp-hz = /bits/ 64 <325000000>; + required-opps = <&rpmhpd_opp_svs>; + }; + + opp-375000000 { + opp-hz = /bits/ 64 <375000000>; + required-opps = <&rpmhpd_opp_svs_l1>; + }; + + opp-514000000 { + opp-hz = /bits/ 64 <514000000>; + required-opps = <&rpmhpd_opp_nom>; + }; + }; + }; + + displayport-controller@ae90000 { + compatible = "qcom,x1e80100-dp"; + reg = <0 0xae90000 0 0x200>, + <0 0xae90200 0 0x200>, + <0 0xae90400 0 0x600>, + <0 0xae91000 0 0x400>, + <0 0xae91400 0 0x400>; + + interrupt-parent = <&mdss>; + interrupts = <12>; + + clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>, + <&dispcc DISP_CC_MDSS_DPTX0_AUX_CLK>, + <&dispcc DISP_CC_MDSS_DPTX0_LINK_CLK>, + <&dispcc DISP_CC_MDSS_DPTX0_LINK_INTF_CLK>, + <&dispcc DISP_CC_MDSS_DPTX0_PIXEL0_CLK>; + clock-names = "core_iface", "core_aux", + "ctrl_link", + "ctrl_link_iface", + "stream_pixel"; + + assigned-clocks = <&dispcc DISP_CC_MDSS_DPTX0_LINK_CLK_SRC>, + <&dispcc DISP_CC_MDSS_DPTX0_PIXEL0_CLK_SRC>; + assigned-clock-parents = <&usb_1_ss0_qmpphy QMP_USB43DP_DP_LINK_CLK>, + <&usb_1_ss0_qmpphy QMP_USB43DP_DP_VCO_DIV_CLK>; + + operating-points-v2 = <&mdss_dp0_opp_table>; + + power-domains = <&rpmhpd RPMHPD_MMCX>; + + phys = <&usb_1_ss0_qmpphy QMP_USB43DP_DP_PHY>; + phy-names = "dp"; + + #sound-dai-cells = <0>; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + mdss_dp0_in: endpoint { + remote-endpoint = <&mdss_intf0_out>; + }; + }; + + port@1 { + reg = <1>; + + mdss_dp0_out: endpoint { + }; + }; + }; + + mdss_dp0_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-160000000 { + opp-hz = /bits/ 64 <160000000>; + required-opps = <&rpmhpd_opp_low_svs>; + }; + + opp-270000000 { + opp-hz = /bits/ 64 <270000000>; + required-opps = <&rpmhpd_opp_svs>; + }; + + opp-540000000 { + opp-hz = /bits/ 64 <540000000>; + required-opps = <&rpmhpd_opp_svs_l1>; + }; + + opp-810000000 { + opp-hz = /bits/ 64 <810000000>; + required-opps = <&rpmhpd_opp_nom>; + }; + }; + }; + }; +... From patchwork Wed Feb 14 21:24:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 201131 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp1509223dyb; Wed, 14 Feb 2024 13:25:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXG3xwvnRXF+3GtT4CKizN+kz8UsgC10flwUlx8vZXV0qlk7QT4eZOEFYZyKkQz89rzP7ktRjyCkY6YJMGjz8axXEca8A== X-Google-Smtp-Source: AGHT+IGB0MweE0YKJCQKFN9GtU1dZm3y+rjG6XKXmks4A2aApaoW9OV8jndaZzJFL+vc0kwk3mSa X-Received: by 2002:a05:6402:500f:b0:561:fc2:bec0 with SMTP id p15-20020a056402500f00b005610fc2bec0mr3023912eda.4.1707945940794; Wed, 14 Feb 2024 13:25:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707945940; cv=pass; d=google.com; s=arc-20160816; b=dq1JHrqIJ0OoEaVhZGEoyi6lnmSq4OQ3qJjLQRhxXP9lY7hz3uI72oLiVta5xKzCiB QxpaLEH/60anNJsagFREN9pGxRDdfvENQMbPvGFb9YnlLaRPtW7OKZgifnF/Vbql6m4b WhHm9B83mfa7ugv5ILxIs155Pg2OOhI/VuKkQF0M0b00VoxxobB6y7OAkIMBZg45SNPD c7kaDxU2/nezPqoGQPSBNxFMtpfTZQJ1tj8YngKV1w7ULUNPMSuO6W9QFjAi42VaN6YT 1KZN7jE78F68NdskNJlRS0cVEWtWgnEj+LMA+xbLnCEHzEJzcFa4RiQtUIwPOtaOv+5Q QJ3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=uXAA6feqe7ITmVt5QxnaZYVqRK0lZp3lcWFLVwQYYf4=; fh=tsLeH/Y78f9Kbf9gQHQFN7ZUFBJwkeiMW1rLUDKgQjA=; b=YvzT9hgjZT9IfSnFKevn7SsUcEDAmuIT/lAz4ssY2KO4TeuizJ0CXQ5V6CsVTC7N0k 3dAPkTCV03K/I3JUs8mGfVu1TJk/Gy2s3c54qTc0G5R/sIvAdY8z038bPSnmwxKTqbpT W62U/csXzQtBU6gN8beCR/lQir4Hj3XQ72ngbLZonFKAo3NU0djYfACb14mXfKbo2fra xNqdbghzeVPVGrEmoZ5K4B/j8kY1bONdKh0jxyMvzV1mzmpwKDX6+dYD5JPtMlL3/OWf vWypnpacHBdxmJ1PRdt88BCon9MoLsrys6Rc0H200+sKeBDw4Y8H3/JxGl0FSBPc/eC3 rXow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vQbhTuLn; 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-65982-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65982-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCVfLwlLz77OC7mfV72zMEY3Z5PaHbdq4AQP4yFn0aaQPgwOrXHa95CcsPcBohJqg15VlwdvseaX6HJJJA6oRicpDB6hYg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a1-20020aa7d741000000b0056079bf85a6si5249037eds.370.2024.02.14.13.25.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 13:25:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65982-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vQbhTuLn; 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-65982-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65982-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1EB1B1F22354 for ; Wed, 14 Feb 2024 21:25:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D86DC13EFEE; Wed, 14 Feb 2024 21:24:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vQbhTuLn" Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 C9C5313F009 for ; Wed, 14 Feb 2024 21:24:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707945894; cv=none; b=cuzwhufx1bCQ2ClCThyOpwPlyas0FiyqRx79nMpRkhsTgxMUwWdBppU2S3LjAXuyTvbp7M0UEObVYktYOuNrW+mGTXew7PaK1R4YXWUK9tmO2T8F8q29UBVBR6sSNctY92mUWl2ciiuRakAIQaRmufghaSApXEgFTxJ5JAd2Cbw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707945894; c=relaxed/simple; bh=u4L61jxb3pk7DyZvt+6wEP3FQgg6lRJc0FDd03RRCBk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qxX7nLX2ufJZArknauuKuZ0b3C7QYwNq6TqOBLAq7BTKHIOl9SDj9yzq8Jih8bv2D5z5ODXdQL/d+W6Xy4JH4qziwbJVCOcM/2wee6GA0lJGiKSAFJvLEeEy+sHr+kPPT8x02fHWFSowOTY/FSwDYjP3yrA5B/feokEbyf7v8J0= 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=vQbhTuLn; arc=none smtp.client-ip=209.85.208.41 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-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-561f8b8c058so2486579a12.0 for ; Wed, 14 Feb 2024 13:24:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707945891; x=1708550691; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=uXAA6feqe7ITmVt5QxnaZYVqRK0lZp3lcWFLVwQYYf4=; b=vQbhTuLnBBk8tsn6NSjB8x7owr8D6w8nrkT9+Rp/GnmyTvlEWBT+nXpZIpWMS3Su6/ y8MnABSrd25pxPeKVBn/rwobCFwlLBfxJLthuMM1tcSEnD7bRYxJ4OtBAfAlnqog/VVo qLq4nhSoJ8MOj9QjyyNvd9ohKIR+t3BNBurDn8YHxU2jv8UokZrvMAC3xchSaQRIK8+j QlwI5PaSRkw7/R4M6TT3kYy9qaCKWY6YhI0SPTRT/OLd8QowGuvewsKMV7Ily1B7Gfkx g9PtwbGhuUlgQ9wpIJvJ8uDtmgdp0JqdFugjfxSyl4w9YN6U13b6Ts/p8ibZw+MZ0NqE CCEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707945891; x=1708550691; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uXAA6feqe7ITmVt5QxnaZYVqRK0lZp3lcWFLVwQYYf4=; b=FTGihji6hStUmHFVjaeLfELzX0uSkiYF/z4IZjnw0BtqtnE7sTFj3jzO2SAvfhft6E Jc5fVxYAIz0fUb5V7BaOleGGJEtKeRR6qqW5Qkkb1yTiqwvkDOIrEYFsPX2/8DQ2FbT7 cl7aPzPDjU6Ss3Mp+LeFogH34Z4Fburbqs2EF6b4optTa61QsD4kqeUDOCdu74Pjm1Vq Ei2Aw4rQj582QobkbBFGfBt0XNOs0VZ8hnjmjIofiaGs3zIrQTTC8WhteVIe4O4xpma6 A/TiHBvLzUyt4Mvp/R3k0Dp5fItnyQArxyjgumPgw5vRi60lep1ZnYrdjmNXRTFWGUvF TiCg== X-Forwarded-Encrypted: i=1; AJvYcCX//MyA8xyowJDcv0Vs7zFm+OsoE8dZbz4tk8W21rZS/ru0oIkOAUDo6Ra/fUcmhhJMP6mxVwXf8/o2JwQWHLP+7+zUZyWIAeVVCyPU X-Gm-Message-State: AOJu0YyyGIfEVALmfh78gOyAltaFf4tIogUsfFFel5UgcV1IUAln5zRr bv5DV6xp4WGcPmHWsg8B4HzsCC6h4IT5Kcb3RMjlVvVZ2xE/IKr3ObxOU7rlIuc= X-Received: by 2002:aa7:c541:0:b0:562:1a77:19a7 with SMTP id s1-20020aa7c541000000b005621a7719a7mr3030102edr.11.1707945891017; Wed, 14 Feb 2024 13:24:51 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXU0qvhrDFreJ4oK2g+L9nd9ACNCWvB7bhwMxZfDHlCfVObh12ic5ACvPwjBNo6WRBIozr/FRupxZgVbmwKWdrS6vOC+0A14cQ0Y3k/wvZEuva9sopvhkzM+SLtupUac4XA6vzvvy/qlNLNFUEiNg9MFe0N4BxBjWptTZXOueN/Tz7qe6caLz+UTUgg4L3SsMWzG4IjYA0/jcbdlL1IxMKG8s2Ol/Fyj16mvMrFoHm99sjzGZaCPOUQHWDoDxRoFVuXngA4Mxp8YAf3/5Cjoyfy6aZ8tEgKxRvL+ei/SWyabNrZ6GcMrlh7JSRaM2D1lWxH08K1BGkGRuNzovN/hlvD+DL5S/4IgD4XZvI5boLjWSXa4aDg5MYnQtqpwqE+2W3Xe01H4WOOKnYWdlQhoPrqC+d+BBvZ3KOvTwRBubwy2DCGqPStgOksEzTYF/v+fmDnBF87KpUb5gAiYN0OWvlXmdeSI/wfGiAvK2Kr29Iq8hNgY0ds/lRnKs4JvEtqzPsIVQPuI3yU2v8npiHd3VyYoWZpPLoYMdUlHPAt25q+cMfIpObffM4aMXbRtg+5M0UK6C4SGnSRuPX7xp76snfCf/HivY1s9yINsyZabQLXTpi4jt1cMGA4oK+jLs8xa0XGhSXiJY6I6mg4/f+Ey2Ty5eWyn3S/J9z/gWPXbJ4+G5sX52zxwIz8x7OG8HFA4e4= Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id r16-20020aa7c150000000b0056399fa69absm257298edp.26.2024.02.14.13.24.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 13:24:50 -0800 (PST) From: Abel Vesa Date: Wed, 14 Feb 2024 23:24:31 +0200 Subject: [PATCH v2 2/4] dt-bindings: display/msm: Document the DPU for X1E80100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240214-x1e80100-display-v2-2-cf05ba887453@linaro.org> References: <20240214-x1e80100-display-v2-0-cf05ba887453@linaro.org> In-Reply-To: <20240214-x1e80100-display-v2-0-cf05ba887453@linaro.org> 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 , Neil Armstrong , Rob Herring 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.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=848; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=u4L61jxb3pk7DyZvt+6wEP3FQgg6lRJc0FDd03RRCBk=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBlzS+YTnSq40dkUznjxwa6aCG1BRHC+ieUtvEV8 SGNKa5dRd+JAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZc0vmAAKCRAbX0TJAJUV ViaEEACcNVWat66Uto6xWPYY6++Hjv/g3VPUnkDooF/v2K8G5glMpa9wUbHB5xUqxjKXpxvt0+l us+AcR9eJeukGm2ZQXCiX2yXXFMcoIneLwYMPSkL6FdRNTac3KDnpNI8JEx+jr6hmzC1reyyeRx SBM33s1sZSWQXbGEZd0s3NytgfBkdO5b2TE7h72Z0odSF0fq88O5bpoPX23mFCiifSwpzgSekG4 WNwOsS4iqv6ioHRI4hl+8FMRFyAEIkvSsXAfpCsWZ1cn/wrTTL5oK4avtDE27KkBEn3urnZZIAz TXOFd+Jh9sYBs33SZOaFLLSCbp0HhTQ162E8KAKoPI1tZDpReUWdn66f0p+X7l1NFDcGZhIyM7G loliKR5JXRmpr0ygJZiPUOxONV4aV1Wb7jcsC5/Hj1DCe6YXjSGIWqjU/4C8N++U6E7FnGH7gi7 u6ozqw8c3zUVpHhA78Lrz2TPXiZbSDk9e5Her4MTqQKLan2oD2+EKBRGHhltIlIr6zGNPFRkjcP tzLtQPihFlVJxAASF0rO881NHqoNC+umPd0UUttpX1BEALENl2KWMu0R7uyAR1kt96Myy22Aeba 5kc9CGAOQAZXM1RWUVaOIDd9CgPNKZ7LnnZhNyFeIeKkGlVaVylzydoY3zG4tKUps8x3U+UUQUo XMKleu5kRR7fL6Q== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790911122928010788 X-GMAIL-MSGID: 1790911122928010788 Document the DPU for Qualcomm X1E80100 platform in the SM8650 schema, as they are similar. Signed-off-by: Abel Vesa --- Documentation/devicetree/bindings/display/msm/qcom,sm8650-dpu.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/msm/qcom,sm8650-dpu.yaml b/Documentation/devicetree/bindings/display/msm/qcom,sm8650-dpu.yaml index a01d15a03317..c4087cc5abbd 100644 --- a/Documentation/devicetree/bindings/display/msm/qcom,sm8650-dpu.yaml +++ b/Documentation/devicetree/bindings/display/msm/qcom,sm8650-dpu.yaml @@ -13,7 +13,9 @@ $ref: /schemas/display/msm/dpu-common.yaml# properties: compatible: - const: qcom,sm8650-dpu + enum: + - qcom,sm8650-dpu + - qcom,x1e80100-dpu reg: items: From patchwork Wed Feb 14 21:24:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 201132 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp1510291dyb; Wed, 14 Feb 2024 13:28:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCURijlkZRBmAkgtMclPCRLW2VY/Uvi/+2/b4+1dQk7JQy0VTYnESS7+GRNa6kdzSzGZAYnJLBmCYonYsOWBI9Yo27wfTQ== X-Google-Smtp-Source: AGHT+IHw5/3TVbh++o3G64S41BUvesSBerZtIbuYXC46Yvi0QxEMUlNOEUuSFA75y3H5kWZJfXah X-Received: by 2002:a17:902:c951:b0:1db:402c:f098 with SMTP id i17-20020a170902c95100b001db402cf098mr5396366pla.52.1707946081267; Wed, 14 Feb 2024 13:28:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707946081; cv=pass; d=google.com; s=arc-20160816; b=F4bSUkAfjWGEGW10FoHP2Cf9LbWE7bTJDolLuLSdw6PxdVwn14HiueWuBv5XsueQ9Q lbPciOlEk0Q/2hd4159/WC6EGBYPwcmM5pxW/QqiLFYybpeejONQRIlTP5odA0gW/qIY GF6udg0oE0UU9zRw4Sk5RfLhQfMzuFbAOXf+HaRxvKO74VKcn7FTFilWsp9e3ArVUWSE AunuAZbhI3xpOotRwAKl3WAH5lCKgK/gbvi9xSUIpOEUhLWNw65nhOdH23mw3nH43rfo uRSSOJzDFgDgxSSif0b53KiKvLU5xJdOllg98nz6aYTKIp4/6Xqx5KV2JJkt7B86AOS+ LzNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=G2FDzftpfovRyT/jIxjwVtoriiUTru9KGRsKJHoPXfo=; fh=cojQ1RDK4w245MC5/DaPh3aywFRrnvtblQl2lXKvyDI=; b=YVUJ+baJ1z3thEaL/wSeVxV2GJg2MbcLPA2yckxobJbWkSh1uFmvsXLoRNSMfdxWSg /3wEysMv2EFCWnlEwOWEpW4LhY2KJWTC/BsBREw51Um0Sk1/1WdxpU6Aa1E/mWqXQjuF kSazXygP32id0qLPfpMMa5zs0cVg5MA+q3ForxkOrDmXAZMwIHnm3alRXy9dPQlWFSds u4Dhf/Z12l59TTtFRzUYMDTMGfdhiGQdJbh/1VFlyxPLR7RcRWK4OZTFgd+pDq8gvhLW sTmIQbE6ukGW0B3nQta4f4RdnWqBJ+RsDCpldEP5rTFudw3dOthnqtKdNGa84YaXCLLJ Ohpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GgSKhGjw; 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-65983-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65983-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCXS+smqYGjzSD+ZecRmsO3xNqJ6LI3/gHg9jGibsZwYo7NsbDI3d7xHDSo3attHqGi/AdpnrAxrLTzRFudiPfWwqtA+SA== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t8-20020a170902bc4800b001d098bf0df8si4345577plz.612.2024.02.14.13.28.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 13:28:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65983-ouuuleilei=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=GgSKhGjw; 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-65983-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65983-ouuuleilei=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 AF2D228E008 for ; Wed, 14 Feb 2024 21:25:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDDB113EFEF; Wed, 14 Feb 2024 21:24:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GgSKhGjw" Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 406BC13F01B for ; Wed, 14 Feb 2024 21:24:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707945896; cv=none; b=OVvkJ+PLdX9KHwplDmEV7yj29w73Z0dpSG+2BUjAvbZVKBE3Ke3GTgQ+TCPQFZ6NOXdtkvESXfkc899kOaE6+vHX/hbsywXYzCcF4Nh/fMPa0A/eLP2QxKgbCxsQsE6+rB3fnQx9WEQc3CNFE/xnY9hY/bX2FSCrL9AfCPPyaVs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707945896; c=relaxed/simple; bh=5Tw/b7l1kr/h2F2qgYnDLNZGPYKGg44QwawYWk2mUog=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=P2YbDhF4XjrkDJpotBMQngpLOTmd0f1+AkP5AQc2hdGyxOhAfIpYb4648nS4cvhWym/x7M6XGumu/QZNKZxc+IBK5ou8EnzoucN3/MRbZsckpiqhJV97q41Q/d3IPa31H/a7qhjxmsIcSZAx7KQechxvZQeYnVViZt0tR68cjcY= 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=GgSKhGjw; arc=none smtp.client-ip=209.85.208.54 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-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-5638c4a8c92so275167a12.2 for ; Wed, 14 Feb 2024 13:24:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707945892; x=1708550692; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=G2FDzftpfovRyT/jIxjwVtoriiUTru9KGRsKJHoPXfo=; b=GgSKhGjw59xKFuW6a723PFduuqWP/Y6Ml1eSqiE4WN0ZTSbBWP8inndsq3ZJhpspt1 08YVAHbNTOK4zFWE/jkwN7VWfJviCGQQ0J0ZqSVcCVuUaxk386T7so59j8ocmiJJI8Dt UXjpOJ6hqlTUaTsNcAyP/p+zGCU3e8g2o2DwVoJO8VT+OAdYxUYdWsoqeIb1FixPcQ5l KDqms7P2lAuOlJ1lsdXOri9rnG/6W290iHRgpQTrthcQrYAPzKcXSr1j0SgFjqJTV/6Y kuV7bedbFhiLaNoMs9YfEJ7A3bS935JhwXoOp99xgpcbnYOQsi2S9Uk3mSpj+IUT+eCR UmMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707945892; x=1708550692; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G2FDzftpfovRyT/jIxjwVtoriiUTru9KGRsKJHoPXfo=; b=PpW3kBbFPcVs139AAo/2ToDcBeQT7MoKwBuu4Pd0TPv19FUWPyaP+M3BZchSo0BAUk YMpgGFiuvtfMV5YncSao2y2u6QuSbDx1wzTEsN/nm7r40YIJ326d8sfsRwpqsYHOxf2w KjqATFd72CS76d/chs7EuXtTg4QDg0CUSa7ZzEEs79mKvbqjalcbwE0kzPvfUxchKK6v SZapgZxigNDgEujtUdsoAL+kJb6Q75E87siH7GmSToyACR4MjP5wVsgQ4F5ZAQG/ufQq IbxU0FUO010Vu0086fm/rCw0lVEoXz7lGrNXZn88VlpAxmIxKFyqec8PIdTjYfxBtidI 9Ylw== X-Forwarded-Encrypted: i=1; AJvYcCWBhXPuUgwExrMWI/hldKHtHHVuQhCXo2i850+49pLUNySdrzNIi/88UuqKfttCUIt7Pph6IpZ6hBSzWpXoEsvluycx6gnS6S8sMXmd X-Gm-Message-State: AOJu0Yyf5NLnsZFnGzfbJCo9dxg7bQ009FiHHlkyyH3vYE+x8H75Oo8S qwFDGmlvhiEJnJd+YIJBQWG1C2UJ919jRYJbMCDXRMC0kQACxHKM5dbgfwLKVlI= X-Received: by 2002:aa7:d8d0:0:b0:55f:a309:172f with SMTP id k16-20020aa7d8d0000000b0055fa309172fmr3100285eds.15.1707945892573; Wed, 14 Feb 2024 13:24:52 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCW2YtKtbACFjloqX4om5U8iP8FOi2NnTR4luh4zbxQLSkWxIHddQD44G0t5rFS0F1HQdArR4ybQunM5Kw/WZXpYluEAQ2hVvGBY4QQRJXya3LS4USW/U3mkIpxnZWrmXm8IpWDrbovHlJ8gZniKnY2LdiFzTsGSjt7f8ttGbWehAYX8OEoRfZie0K+DNuwek+jKjzASW07m7As7pQfaLUmybboiUO1woq5FVLfWXpvErpqHCocBIvzpiSHHzy6NwvVf7A3m+Ar+RDoVivayCbnNkgjS5acCPOxJAz/207TWDrvCUaJCFcBWIexboCzJtiktS9bGvcusJG94hhoyZQxQFMKM/KXlwx30e8M02X78AZX3mb0sb1c/UlNbUrLQLPKLN41BPhi4gbD3ZquzVxmIdlMZHNeMSF0h8QcCARe8Y0lKLqPaRgXxsQtsIOeFohH2zXeD1lpQWi92EAnUUQ0Of1KcajcHcjaHOvBFKicfXGRkhpP7tcDyFQoDPbQyRBgYo8+BvyEBqqBp92wRvEaFrd7HfIM9dmzE0Gk84fSdLYUYcLn4Jty/nBb28sZRIFgHI6GGkQ//vGmfcCBYk9R/9kW/+V40vAnzNXJDZd+gOiBWG16WJ+7VlHbTXxJ3v7c7FxUxGweDCafwpQEegUP6GiQySmkjzrs8WbVxlX59bavDNS8uYOtgyOyP3hcr0NM= Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id r16-20020aa7c150000000b0056399fa69absm257298edp.26.2024.02.14.13.24.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 13:24:52 -0800 (PST) From: Abel Vesa Date: Wed, 14 Feb 2024 23:24:32 +0200 Subject: [PATCH v2 3/4] drm/msm: mdss: Add X1E80100 support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240214-x1e80100-display-v2-3-cf05ba887453@linaro.org> References: <20240214-x1e80100-display-v2-0-cf05ba887453@linaro.org> In-Reply-To: <20240214-x1e80100-display-v2-0-cf05ba887453@linaro.org> 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 , Neil Armstrong , Rob Herring 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.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1368; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=5Tw/b7l1kr/h2F2qgYnDLNZGPYKGg44QwawYWk2mUog=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBlzS+ZCmdeuBZDpWVaiCNfS33naLTmirh+tLr24 B2ihy4+f3SJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZc0vmQAKCRAbX0TJAJUV VhTpD/9vc2CqCEUoA1wxAZdxp0iA1hDgKrHj8jXq/5y65u7f0uZto7QaHe0F8VmZO6CaOyQgnj4 EkYgILsAw27YHcSzb6kkuO8Swra+qUJDguRgiDDbiFOdCfsdunFEPF/hZQxquIVwFWERvN2TZ7a qinRYWdU3snlcIG/vKKf3nsF79VrbzZk/hg/ZdHcrKBcIQcCyEf6q3QvegvGMQ4IKwQFdu5qwz4 CThjuN+hnDF3GaL4U6Q+iAOqhrLTKUhBlVd64tPc7p6vJFGhP1hHIiS78zjMdHUApNQIIKraLoO 8o/As0fYAOM67JOyrjvW+wcvPzhLQxGYiYc3agQEd+iCrCOky81ITUOlXKOLzK+K8oNCofmQTjp Um0E1fLavqO03XkCx9mBCMSplmJJdw3VdawxkFI8hmvfBz/Qdm5PQ67mxBpY+HxaQPggY4CVtFv 88dtILuRki+FU/BqXDuz2pj0KylldU5Nf4PZ7jnerOBchNYS/Jx6V8ImDCXjDjrgfvatkwSVvS9 Nwac0QvhzlHuGPc6+TVM/38MG3FO70ttjkEbjn7DPzCycv28e6cxu+6niw432h4FJUIDyWYlrQf q9YW2AugjDpm65eHA9SS19oxnyQz0R/98bUyjo/PCFZoVHW+25g0ebOxAhsCCOHdMo/j9P7i4XH BzjPp/PbvnDEwIg== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790911269910545927 X-GMAIL-MSGID: 1790911269910545927 Add support for MDSS on X1E80100. Signed-off-by: Abel Vesa Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_mdss.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c index 35423d10aafa..6eda501e2a1a 100644 --- a/drivers/gpu/drm/msm/msm_mdss.c +++ b/drivers/gpu/drm/msm/msm_mdss.c @@ -636,6 +636,18 @@ static const struct msm_mdss_data sm8550_data = { .macrotile_mode = 1, .reg_bus_bw = 57000, }; + +static const struct msm_mdss_data x1e80100_data = { + .ubwc_enc_version = UBWC_4_0, + .ubwc_dec_version = UBWC_4_3, + .ubwc_swizzle = 6, + .ubwc_static = 1, + /* TODO: highest_bank_bit = 2 for LP_DDR4 */ + .highest_bank_bit = 3, + .macrotile_mode = 1, + /* TODO: Add reg_bus_bw with real value */ +}; + static const struct of_device_id mdss_dt_match[] = { { .compatible = "qcom,mdss" }, { .compatible = "qcom,msm8998-mdss", .data = &msm8998_data }, @@ -656,6 +668,7 @@ static const struct of_device_id mdss_dt_match[] = { { .compatible = "qcom,sm8450-mdss", .data = &sm8350_data }, { .compatible = "qcom,sm8550-mdss", .data = &sm8550_data }, { .compatible = "qcom,sm8650-mdss", .data = &sm8550_data}, + { .compatible = "qcom,x1e80100-mdss", .data = &x1e80100_data}, {} }; MODULE_DEVICE_TABLE(of, mdss_dt_match); From patchwork Wed Feb 14 21:24:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 201133 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp1510348dyb; Wed, 14 Feb 2024 13:28:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVVCHfzSaBLFmR2vm2J5Jv5v9EAEed3pznjdEjs217/iPuukQdBGbgtI8cjCIU30bXexrTqNy9o114iJmzJOXVINWVkug== X-Google-Smtp-Source: AGHT+IHu8r88o2hEjtkrDO2Si7oX/nTECodkUFoSkoz5ex3QxBRyldmuVhh+fxW+iFwhLcZhIooa X-Received: by 2002:a05:6a20:a93:b0:1a0:56f1:8d6 with SMTP id b19-20020a056a200a9300b001a056f108d6mr39335pzf.31.1707946089399; Wed, 14 Feb 2024 13:28:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707946089; cv=pass; d=google.com; s=arc-20160816; b=qe2FIJpwEif6ZCvelkktwslcYj6gSg8TMGOQK+NkyEbWqb4P2Iz5J66VLpLHviSvDe jm2ZjyrE9gedzsr7/h/kE0LBcDfwCGq4/Xsei5KXBoD+wTA4MoHQ9S+cvKdspaG1yVhx ADg+iS3x9YHQcwyIbqpw9PuPNF8dufDJ26qWQsD7S2R0+6XaUQ890oGaOOpTW8JcmAxZ dfoW4IvX5t6osJlqUM+RfpB5U3f64PvjWRZft5AKxniRsEdwxrm1gdlPeLHl1Efv56ds qwXil6WmKS9+iY+b/bSGYm8BWKMhCtxL9Z5JgGjdg1AvSwToIl7acH5BanpgA/TAMc9M mE/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=mXXcyuPilQ9nXPlOaKhEVr0yZRCsEUndDUsEgWHiPIw=; fh=BCuhZgEUmhIhTytGvbh2AXHo2HI2TMaeIIpTGJ8FAiI=; b=PovpGcah83EPIcbZfRQzwIqMb8vazVE3VRF+Bht7j2V9g5jSzHLKJOHm3nClgqRMcF Ytnye7ZJmdMHuA/H8gArjP7ieCL7J/zQMgoZ9hChaB+aSnCif52JRTcOpCRuKBw9voUq tvIVNYc2wh9xJhDgOOK0zaBOVNf7N/IyTRcDhrRengGCXNrWqB7TfKC113CLlZlReSmC KwYCXSZKr615Z3isjGN+entoiQMC5exPpi8AHI/p9rRnYr2/Ehb+rx2ZgHi4dCsYBaZH 0lYZ01xSdw78TsA8GjWFu2WB4GBx7MegK8xPa8ut3ysrdE+5GPGvGqMnT7JeZ9hw3R84 WfEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jHQFwcfP; 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-65984-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65984-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCXtfwloFNMAb4l3dK/zbtJE37nMaTrGt6oRWCDa/knipFMebZaIdZNOwVvrP6yA3bKUstggnKZcU4kzOCt7AWvKQtOBNw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n4-20020a632704000000b005dc5061f211si4196495pgn.560.2024.02.14.13.28.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 13:28:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65984-ouuuleilei=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=jHQFwcfP; 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-65984-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65984-ouuuleilei=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 264CB28E6BF for ; Wed, 14 Feb 2024 21:26:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3ACC113F00A; Wed, 14 Feb 2024 21:25:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jHQFwcfP" Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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 5FD291419A8 for ; Wed, 14 Feb 2024 21:24:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707945898; cv=none; b=r0GNJgaAriTx0zwdY8xSfE92D9gi1d3gdlAFmJJLFaqMCGEUm/fnl+AtKAmg+udm1leDIsR8UZmyoQBbD1baS9zkB2tL5zKgaqh1aMoZvPNGJtx3P7b4WNTn/zgqRswGh7iKhhI43dr+vGE0JRyfcPfy3vCSnQoIYCw/FXbFD78= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707945898; c=relaxed/simple; bh=Wjo+0pOGgXnx4YaZ4l1uyPRnvTzMVxrVJy0mXHIFY5A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=E+Ky20K8lOJCl7qeR7eGnUUT5SjjXmLukUWeOXz8XqmFxbRuUevdg/Si/wEs/qXofQffJzWrPB1LN/rwNxXFwCf0ryxCm68WtvlmQYIi4kLA/CEv6wOlHnETZ2H8y7TWDzDHxOINOZaUL0x78owvZraVUldlb7iodGuqLHIYvOQ= 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=jHQFwcfP; arc=none smtp.client-ip=209.85.208.173 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-lj1-f173.google.com with SMTP id 38308e7fff4ca-2d094bc2244so2268331fa.1 for ; Wed, 14 Feb 2024 13:24:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707945894; x=1708550694; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=mXXcyuPilQ9nXPlOaKhEVr0yZRCsEUndDUsEgWHiPIw=; b=jHQFwcfPgVz+hDu/9LKDh1mV9XdcJqObCfLnFwd3iiWIsadB3QZu3elKebLtgcdKBh uOnYcnnAVq7fr6Z3RSRQI+JiN81T2awjZAX28KpYkB8yU+Oqg27Snrpxd4pf/GtDkZ7j NNm/nAGdvEyO4FiCjT+MxgK6mw4/WyoaLrUeIimKNO9VsQbjOBlaPBNabp22fKI7TfDM XiAf+QLt6rEx39xIwpXkZaIzsHseyWiGmtIxxUOrlG95fUdXAhPdr7SxU0oCafBEL7nr z1l4wWwdjEolKqemi0hefXQXro9ZoImIqLoAcValpApquTF3Y6cJPp65MxuiT3iXoovD sGIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707945894; x=1708550694; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mXXcyuPilQ9nXPlOaKhEVr0yZRCsEUndDUsEgWHiPIw=; b=Q5XiFb7hHY+7OVrCULk9dP7EQhpB0JPx6f8yZDRqJ8dRdMi/pfi/Rq2L7uphvs7QIy qWFX2P18mLJM3pu9dlIK/BF5TCF+hs7Y5nqN8+cENf0lihioTI0RjSNWFF+Y0Lp+0AFy AJ8SSXPjWygaWhD0RGq5vAQXzoj3oxl5KKwt8VWNqJVUwSEI0hDju6cP29cn5TW17wsM f/qLzp8wmMYK9HOrldID2eFeCwz3haTYN5cOt1Xigvp9prkL/CftR/v7MUi1JOdZJgrI AWiTpg7Jt42IZd2b4YFglWj/XDE7EdU1MI6k1fu5kuPnOCOpydQfkPxzwV/hFoh/iRSU mCiA== X-Forwarded-Encrypted: i=1; AJvYcCWyVH7qtagw7h6gG7U5KMIF14tvSGOGiAI1pD7gAs8FDrGg4r6Wyyq8RhnBssvNr3VCtCiOSTZYHn0s2jnM3CntpBaXRHCWJduJQnHI X-Gm-Message-State: AOJu0Yx0wwAzyT84wbiefhWU1YUFkvWfvrUDESFyTk+TSq5wTCnDxoa4 prt9zg7n3nVN0dGV7oWgEpZGQmUjqbDB/Y+qWVP3qFGiR2xO9A52yuPKsAl2CQc= X-Received: by 2002:a05:651c:608:b0:2d1:1cc2:b6b0 with SMTP id k8-20020a05651c060800b002d11cc2b6b0mr1544082lje.17.1707945894309; Wed, 14 Feb 2024 13:24:54 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWz+mM8L9u2B8EJli6CEXObsYtmAsWDYXVbWlMVpc3dYiaDBX4274+iTJHRKLwDoI3jLp8mmdiFCMnjmPv34+r0EKYi25Ci5r5z3Aa8qB1PpER60UP/VOX/nXLymlc2+i2DoIS8SJOBu0fsgjn0XTfnkmoDIs+Ae2uE/TZUhX6MaHmYnCa+CDFRlTmCa3Cj6vYliO8vQWoxibgiY539gnHESv2WXhPt8r+641IYGMHKLOhP2RVy+mCMQHAABOSsgmbq2xhbs8pI9KmJbi8Y2l7g6eVHdkfFnXRiINxd/JTk7nJhsXDxOJmkpV0uyhWiUHcnyKQs2Csitqfhzc4FT2Y+aSiGgg18qBPNIB6J7K1b9NXlj6ESEt0VJv+Vx+xcfpWgzyXKXds2Ky4GgnXvMBiIK3bxLSBWYgkQeH9D6WMGYr4X4hLRkyqMjBJG/RRyiEn8UcxaXNvOB0Tqlow+mhyQ/sDzs7JmAZfQzkq6Ivv/NpejhQN8dDfCuvRodWSC1LTgeemXPHGbpy0Tsjh+WCjCwsLMqnU43QNWaIyjTxzcg3pgac+laMApeZc1Hd69Ri8btvzGGVW04PgHS//cOsESSSxvtEkzzIofDKUHuknWhZcTwOAMC0HuXU/TyRLStxKmHlyuo4/2gOFvnuVTXVn0kqPrYUjl4xG+yEEmP2LQP0Bw82GJxmAD6AaOHjkIsHc= Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id r16-20020aa7c150000000b0056399fa69absm257298edp.26.2024.02.14.13.24.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 13:24:53 -0800 (PST) From: Abel Vesa Date: Wed, 14 Feb 2024 23:24:33 +0200 Subject: [PATCH v2 4/4] drm/msm/dpu: Add X1E80100 support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240214-x1e80100-display-v2-4-cf05ba887453@linaro.org> References: <20240214-x1e80100-display-v2-0-cf05ba887453@linaro.org> In-Reply-To: <20240214-x1e80100-display-v2-0-cf05ba887453@linaro.org> 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 , Neil Armstrong , Rob Herring 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.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=15961; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=Wjo+0pOGgXnx4YaZ4l1uyPRnvTzMVxrVJy0mXHIFY5A=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBlzS+bv2Sps7gYa6nlZfCEHFR3r0PjPxb8h2bL7 qdELEaKwFKJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZc0vmwAKCRAbX0TJAJUV VpTWD/4oUn1ELbg6RHXn6anHsklaxtL/Dg3HwirAbTGFs4OdzXPvui7lOXibV1vox3eEMfko2NG DQibkOECmdIVPfTLachblErNXOFDdONSkNfOw1Q4aEg4eSfUM724Rlei/2lQBsHgMreJkEpFAMS JgX2C9/tWxMZQ16WWpfWfTe5Qlcbm1CRmwRkIFPO1pUCn2BHGGACZdjTP/rWcH6OJth5K36lpSn QySQwqESOW/h45BCdt/b1mJYHde7cSGkI+cdckzMiRoaIe3Ir+tVemEHSv1Sjj9z2RwNSLhz9py pLVhgn9ODsUN+qGvkpxKdsXOOqHGHGArJq8HpYGD1xm+IgFAyJINg1qWQ8rCfsEcok/irsKZoHU YCnO4Vcspq0XM0VCjHeoG3QIBc1mkXxtgBMxRPwMroobojmKVrgbET5JczOTiMzYdwM9HyGa1aJ F/QONGhIWLdZjMqZCTpyLcatBGxUr+i7lquRo7ZJfxeYZQESyk9WH8qJxOMihMEyeLJO79jQNVz uLp79IL0HKLy734+skjCjtrO+SsbzjaCcDaw96JQYVsqaOGKeCUqeWTcN/sKfDRFgzpEWlslDVk PyM1BUoGBedEklXJcpq3AhCjHnZdANqjjHk/im8mdfY5DtH6q9D4cTFK0e2jTsoKBOdDZ7hMwvH MMN83gas/OjZwOA== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790911278233258585 X-GMAIL-MSGID: 1790911278233258585 Add definitions for the display hardware used on the Qualcomm X1E80100 platform. Co-developed-by: Abhinav Kumar Signed-off-by: Abhinav Kumar Reviewed-by: Dmitry Baryshkov Signed-off-by: Abel Vesa --- .../drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h | 449 +++++++++++++++++++++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 1 + 4 files changed, 453 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h new file mode 100644 index 000000000000..9a9f7092c526 --- /dev/null +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h @@ -0,0 +1,449 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2023, Linaro Limited + */ + +#ifndef _DPU_9_2_X1E80100_H +#define _DPU_9_2_X1E80100_H + +static const struct dpu_caps x1e80100_dpu_caps = { + .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH, + .max_mixer_blendstages = 0xb, + .has_src_split = true, + .has_dim_layer = true, + .has_idle_pc = true, + .has_3d_merge = true, + .max_linewidth = 5120, + .pixel_ram_size = DEFAULT_PIXEL_RAM_SIZE, +}; + +static const struct dpu_mdp_cfg x1e80100_mdp = { + .name = "top_0", + .base = 0, .len = 0x494, + .features = BIT(DPU_MDP_PERIPH_0_REMOVED), + .clk_ctrls = { + [DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + }, +}; + +/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ +static const struct dpu_ctl_cfg x1e80100_ctl[] = { + { + .name = "ctl_0", .id = CTL_0, + .base = 0x15000, .len = 0x290, + .features = CTL_SM8550_MASK | BIT(DPU_CTL_SPLIT_DISPLAY), + .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), + }, { + .name = "ctl_1", .id = CTL_1, + .base = 0x16000, .len = 0x290, + .features = CTL_SM8550_MASK | BIT(DPU_CTL_SPLIT_DISPLAY), + .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10), + }, { + .name = "ctl_2", .id = CTL_2, + .base = 0x17000, .len = 0x290, + .features = CTL_SM8550_MASK, + .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11), + }, { + .name = "ctl_3", .id = CTL_3, + .base = 0x18000, .len = 0x290, + .features = CTL_SM8550_MASK, + .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12), + }, { + .name = "ctl_4", .id = CTL_4, + .base = 0x19000, .len = 0x290, + .features = CTL_SM8550_MASK, + .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13), + }, { + .name = "ctl_5", .id = CTL_5, + .base = 0x1a000, .len = 0x290, + .features = CTL_SM8550_MASK, + .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 23), + }, +}; + +static const struct dpu_sspp_cfg x1e80100_sspp[] = { + { + .name = "sspp_0", .id = SSPP_VIG0, + .base = 0x4000, .len = 0x344, + .features = VIG_SDM845_MASK_SDMA, + .sblk = &dpu_vig_sblk_qseed3_3_3, + .xin_id = 0, + .type = SSPP_TYPE_VIG, + }, { + .name = "sspp_1", .id = SSPP_VIG1, + .base = 0x6000, .len = 0x344, + .features = VIG_SDM845_MASK_SDMA, + .sblk = &dpu_vig_sblk_qseed3_3_3, + .xin_id = 4, + .type = SSPP_TYPE_VIG, + }, { + .name = "sspp_2", .id = SSPP_VIG2, + .base = 0x8000, .len = 0x344, + .features = VIG_SDM845_MASK_SDMA, + .sblk = &dpu_vig_sblk_qseed3_3_3, + .xin_id = 8, + .type = SSPP_TYPE_VIG, + }, { + .name = "sspp_3", .id = SSPP_VIG3, + .base = 0xa000, .len = 0x344, + .features = VIG_SDM845_MASK_SDMA, + .sblk = &dpu_vig_sblk_qseed3_3_3, + .xin_id = 12, + .type = SSPP_TYPE_VIG, + }, { + .name = "sspp_8", .id = SSPP_DMA0, + .base = 0x24000, .len = 0x344, + .features = DMA_SDM845_MASK_SDMA, + .sblk = &dpu_dma_sblk, + .xin_id = 1, + .type = SSPP_TYPE_DMA, + }, { + .name = "sspp_9", .id = SSPP_DMA1, + .base = 0x26000, .len = 0x344, + .features = DMA_SDM845_MASK_SDMA, + .sblk = &dpu_dma_sblk, + .xin_id = 5, + .type = SSPP_TYPE_DMA, + }, { + .name = "sspp_10", .id = SSPP_DMA2, + .base = 0x28000, .len = 0x344, + .features = DMA_SDM845_MASK_SDMA, + .sblk = &dpu_dma_sblk, + .xin_id = 9, + .type = SSPP_TYPE_DMA, + }, { + .name = "sspp_11", .id = SSPP_DMA3, + .base = 0x2a000, .len = 0x344, + .features = DMA_SDM845_MASK_SDMA, + .sblk = &dpu_dma_sblk, + .xin_id = 13, + .type = SSPP_TYPE_DMA, + }, { + .name = "sspp_12", .id = SSPP_DMA4, + .base = 0x2c000, .len = 0x344, + .features = DMA_CURSOR_SDM845_MASK_SDMA, + .sblk = &dpu_dma_sblk, + .xin_id = 14, + .type = SSPP_TYPE_DMA, + }, { + .name = "sspp_13", .id = SSPP_DMA5, + .base = 0x2e000, .len = 0x344, + .features = DMA_CURSOR_SDM845_MASK_SDMA, + .sblk = &dpu_dma_sblk, + .xin_id = 15, + .type = SSPP_TYPE_DMA, + }, +}; + +static const struct dpu_lm_cfg x1e80100_lm[] = { + { + .name = "lm_0", .id = LM_0, + .base = 0x44000, .len = 0x320, + .features = MIXER_SDM845_MASK, + .sblk = &sdm845_lm_sblk, + .lm_pair = LM_1, + .pingpong = PINGPONG_0, + .dspp = DSPP_0, + }, { + .name = "lm_1", .id = LM_1, + .base = 0x45000, .len = 0x320, + .features = MIXER_SDM845_MASK, + .sblk = &sdm845_lm_sblk, + .lm_pair = LM_0, + .pingpong = PINGPONG_1, + .dspp = DSPP_1, + }, { + .name = "lm_2", .id = LM_2, + .base = 0x46000, .len = 0x320, + .features = MIXER_SDM845_MASK, + .sblk = &sdm845_lm_sblk, + .lm_pair = LM_3, + .pingpong = PINGPONG_2, + }, { + .name = "lm_3", .id = LM_3, + .base = 0x47000, .len = 0x320, + .features = MIXER_SDM845_MASK, + .sblk = &sdm845_lm_sblk, + .lm_pair = LM_2, + .pingpong = PINGPONG_3, + }, { + .name = "lm_4", .id = LM_4, + .base = 0x48000, .len = 0x320, + .features = MIXER_SDM845_MASK, + .sblk = &sdm845_lm_sblk, + .lm_pair = LM_5, + .pingpong = PINGPONG_4, + }, { + .name = "lm_5", .id = LM_5, + .base = 0x49000, .len = 0x320, + .features = MIXER_SDM845_MASK, + .sblk = &sdm845_lm_sblk, + .lm_pair = LM_4, + .pingpong = PINGPONG_5, + }, +}; + +static const struct dpu_dspp_cfg x1e80100_dspp[] = { + { + .name = "dspp_0", .id = DSPP_0, + .base = 0x54000, .len = 0x1800, + .features = DSPP_SC7180_MASK, + .sblk = &sdm845_dspp_sblk, + }, { + .name = "dspp_1", .id = DSPP_1, + .base = 0x56000, .len = 0x1800, + .features = DSPP_SC7180_MASK, + .sblk = &sdm845_dspp_sblk, + }, { + .name = "dspp_2", .id = DSPP_2, + .base = 0x58000, .len = 0x1800, + .features = DSPP_SC7180_MASK, + .sblk = &sdm845_dspp_sblk, + }, { + .name = "dspp_3", .id = DSPP_3, + .base = 0x5a000, .len = 0x1800, + .features = DSPP_SC7180_MASK, + .sblk = &sdm845_dspp_sblk, + }, +}; + +static const struct dpu_pingpong_cfg x1e80100_pp[] = { + { + .name = "pingpong_0", .id = PINGPONG_0, + .base = 0x69000, .len = 0, + .features = BIT(DPU_PINGPONG_DITHER), + .sblk = &sc7280_pp_sblk, + .merge_3d = MERGE_3D_0, + .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), + }, { + .name = "pingpong_1", .id = PINGPONG_1, + .base = 0x6a000, .len = 0, + .features = BIT(DPU_PINGPONG_DITHER), + .sblk = &sc7280_pp_sblk, + .merge_3d = MERGE_3D_0, + .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), + }, { + .name = "pingpong_2", .id = PINGPONG_2, + .base = 0x6b000, .len = 0, + .features = BIT(DPU_PINGPONG_DITHER), + .sblk = &sc7280_pp_sblk, + .merge_3d = MERGE_3D_1, + .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), + }, { + .name = "pingpong_3", .id = PINGPONG_3, + .base = 0x6c000, .len = 0, + .features = BIT(DPU_PINGPONG_DITHER), + .sblk = &sc7280_pp_sblk, + .merge_3d = MERGE_3D_1, + .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), + }, { + .name = "pingpong_4", .id = PINGPONG_4, + .base = 0x6d000, .len = 0, + .features = BIT(DPU_PINGPONG_DITHER), + .sblk = &sc7280_pp_sblk, + .merge_3d = MERGE_3D_2, + .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30), + }, { + .name = "pingpong_5", .id = PINGPONG_5, + .base = 0x6e000, .len = 0, + .features = BIT(DPU_PINGPONG_DITHER), + .sblk = &sc7280_pp_sblk, + .merge_3d = MERGE_3D_2, + .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31), + }, { + .name = "pingpong_6", .id = PINGPONG_6, + .base = 0x66000, .len = 0, + .features = BIT(DPU_PINGPONG_DITHER), + .sblk = &sc7280_pp_sblk, + .merge_3d = MERGE_3D_3, + }, { + .name = "pingpong_7", .id = PINGPONG_7, + .base = 0x66400, .len = 0, + .features = BIT(DPU_PINGPONG_DITHER), + .sblk = &sc7280_pp_sblk, + .merge_3d = MERGE_3D_3, + }, +}; + +static const struct dpu_merge_3d_cfg x1e80100_merge_3d[] = { + { + .name = "merge_3d_0", .id = MERGE_3D_0, + .base = 0x4e000, .len = 0x8, + }, { + .name = "merge_3d_1", .id = MERGE_3D_1, + .base = 0x4f000, .len = 0x8, + }, { + .name = "merge_3d_2", .id = MERGE_3D_2, + .base = 0x50000, .len = 0x8, + }, { + .name = "merge_3d_3", .id = MERGE_3D_3, + .base = 0x66700, .len = 0x8, + }, +}; + +/* + * NOTE: Each display compression engine (DCE) contains dual hard + * slice DSC encoders so both share same base address but with + * its own different sub block address. + */ +static const struct dpu_dsc_cfg x1e80100_dsc[] = { + { + .name = "dce_0_0", .id = DSC_0, + .base = 0x80000, .len = 0x4, + .features = BIT(DPU_DSC_HW_REV_1_2), + .sblk = &dsc_sblk_0, + }, { + .name = "dce_0_1", .id = DSC_1, + .base = 0x80000, .len = 0x4, + .features = BIT(DPU_DSC_HW_REV_1_2), + .sblk = &dsc_sblk_1, + }, { + .name = "dce_1_0", .id = DSC_2, + .base = 0x81000, .len = 0x4, + .features = BIT(DPU_DSC_HW_REV_1_2) | BIT(DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, { + .name = "dce_1_1", .id = DSC_3, + .base = 0x81000, .len = 0x4, + .features = BIT(DPU_DSC_HW_REV_1_2) | BIT(DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_1, + }, +}; + +static const struct dpu_wb_cfg x1e80100_wb[] = { + { + .name = "wb_2", .id = WB_2, + .base = 0x65000, .len = 0x2c8, + .features = WB_SM8250_MASK, + .format_list = wb2_formats_rgb, + .num_formats = ARRAY_SIZE(wb2_formats_rgb), + .xin_id = 6, + .vbif_idx = VBIF_RT, + .maxlinewidth = 4096, + .intr_wb_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 4), + }, +}; + +static const struct dpu_intf_cfg x1e80100_intf[] = { + { + .name = "intf_0", .id = INTF_0, + .base = 0x34000, .len = 0x280, + .features = INTF_SC7280_MASK, + .type = INTF_DP, + .controller_id = MSM_DP_CONTROLLER_0, + .prog_fetch_lines_worst_case = 24, + .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24), + .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25), + }, { + .name = "intf_1", .id = INTF_1, + .base = 0x35000, .len = 0x300, + .features = INTF_SC7280_MASK, + .type = INTF_DSI, + .controller_id = MSM_DSI_CONTROLLER_0, + .prog_fetch_lines_worst_case = 24, + .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 26), + .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 27), + .intr_tear_rd_ptr = DPU_IRQ_IDX(MDP_INTF1_TEAR_INTR, 2), + }, { + .name = "intf_2", .id = INTF_2, + .base = 0x36000, .len = 0x300, + .features = INTF_SC7280_MASK, + .type = INTF_DSI, + .controller_id = MSM_DSI_CONTROLLER_1, + .prog_fetch_lines_worst_case = 24, + .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 28), + .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 29), + .intr_tear_rd_ptr = DPU_IRQ_IDX(MDP_INTF2_TEAR_INTR, 2), + }, { + .name = "intf_3", .id = INTF_3, + .base = 0x37000, .len = 0x280, + .features = INTF_SC7280_MASK, + .type = INTF_DP, + .controller_id = MSM_DP_CONTROLLER_1, + .prog_fetch_lines_worst_case = 24, + .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30), + .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31), + }, { + .name = "intf_4", .id = INTF_4, + .base = 0x38000, .len = 0x280, + .features = INTF_SC7280_MASK, + .type = INTF_DP, + .controller_id = MSM_DP_CONTROLLER_2, + .prog_fetch_lines_worst_case = 24, + .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 20), + .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 21), + }, { + .name = "intf_5", .id = INTF_5, + .base = 0x39000, .len = 0x280, + .features = INTF_SC7280_MASK, + .type = INTF_DP, + .controller_id = MSM_DP_CONTROLLER_3, + .prog_fetch_lines_worst_case = 24, + .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 22), + .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 23), + }, +}; + +static const struct dpu_perf_cfg x1e80100_perf_data = { + .max_bw_low = 13600000, + .max_bw_high = 18200000, + .min_core_ib = 2500000, + .min_llcc_ib = 0, + .min_dram_ib = 800000, + .min_prefill_lines = 35, + /* FIXME: lut tables */ + .danger_lut_tbl = {0x3ffff, 0x3ffff, 0x0}, + .safe_lut_tbl = {0xfe00, 0xfe00, 0xffff}, + .qos_lut_tbl = { + {.nentry = ARRAY_SIZE(sc7180_qos_linear), + .entries = sc7180_qos_linear + }, + {.nentry = ARRAY_SIZE(sc7180_qos_macrotile), + .entries = sc7180_qos_macrotile + }, + {.nentry = ARRAY_SIZE(sc7180_qos_nrt), + .entries = sc7180_qos_nrt + }, + /* TODO: macrotile-qseed is different from macrotile */ + }, + .cdp_cfg = { + {.rd_enable = 1, .wr_enable = 1}, + {.rd_enable = 1, .wr_enable = 0} + }, + .clk_inefficiency_factor = 105, + .bw_inefficiency_factor = 120, +}; + +static const struct dpu_mdss_version x1e80100_mdss_ver = { + .core_major_ver = 9, + .core_minor_ver = 2, +}; + +const struct dpu_mdss_cfg dpu_x1e80100_cfg = { + .mdss_ver = &x1e80100_mdss_ver, + .caps = &x1e80100_dpu_caps, + .mdp = &x1e80100_mdp, + .ctl_count = ARRAY_SIZE(x1e80100_ctl), + .ctl = x1e80100_ctl, + .sspp_count = ARRAY_SIZE(x1e80100_sspp), + .sspp = x1e80100_sspp, + .mixer_count = ARRAY_SIZE(x1e80100_lm), + .mixer = x1e80100_lm, + .dspp_count = ARRAY_SIZE(x1e80100_dspp), + .dspp = x1e80100_dspp, + .pingpong_count = ARRAY_SIZE(x1e80100_pp), + .pingpong = x1e80100_pp, + .dsc_count = ARRAY_SIZE(x1e80100_dsc), + .dsc = x1e80100_dsc, + .merge_3d_count = ARRAY_SIZE(x1e80100_merge_3d), + .merge_3d = x1e80100_merge_3d, + .wb_count = ARRAY_SIZE(x1e80100_wb), + .wb = x1e80100_wb, + .intf_count = ARRAY_SIZE(x1e80100_intf), + .intf = x1e80100_intf, + .vbif_count = ARRAY_SIZE(sm8550_vbif), + .vbif = sm8550_vbif, + .perf = &x1e80100_perf_data, +}; + +#endif diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c index 54e8717403a0..31ade66a3c87 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c @@ -703,4 +703,6 @@ static const struct dpu_qos_lut_entry sc7180_qos_nrt[] = { #include "catalog/dpu_9_0_sm8550.h" +#include "catalog/dpu_9_2_x1e80100.h" + #include "catalog/dpu_10_0_sm8650.h" diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h index ba82ef4560a6..572a25f7f62d 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h @@ -849,5 +849,6 @@ extern const struct dpu_mdss_cfg dpu_sc8280xp_cfg; extern const struct dpu_mdss_cfg dpu_sm8450_cfg; extern const struct dpu_mdss_cfg dpu_sm8550_cfg; extern const struct dpu_mdss_cfg dpu_sm8650_cfg; +extern const struct dpu_mdss_cfg dpu_x1e80100_cfg; #endif /* _DPU_HW_CATALOG_H */ diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c index 48728be27e15..fc420b805bbf 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c @@ -1337,6 +1337,7 @@ static const struct of_device_id dpu_dt_match[] = { { .compatible = "qcom,sm8450-dpu", .data = &dpu_sm8450_cfg, }, { .compatible = "qcom,sm8550-dpu", .data = &dpu_sm8550_cfg, }, { .compatible = "qcom,sm8650-dpu", .data = &dpu_sm8650_cfg, }, + { .compatible = "qcom,x1e80100-dpu", .data = &dpu_x1e80100_cfg, }, {} }; MODULE_DEVICE_TABLE(of, dpu_dt_match);