From patchwork Mon Mar 29 12:00:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 410834 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3558794jai; Mon, 29 Mar 2021 05:01:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMV9Ph3FQXAEKDMWv9bGl00uH1ErHj1K0g5HE67c3gJ2U9IhNBtxvxdV286vdH+2++W2WK X-Received: by 2002:a63:3245:: with SMTP id y66mr3867190pgy.435.1617019268703; Mon, 29 Mar 2021 05:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617019268; cv=none; d=google.com; s=arc-20160816; b=ExbbBxV0nGy7lkyKZkbWP1D9xqCA7nCArzjRau8rdVUSxgwXYnGEKVBGacnOdxOjVJ HMhu42z7ebifg2TNRXz7wX77YdaT3Y9PIjV0qvZkiByjvtRy5menXKI4YqRqWxtq8ICB +g96fRjGTExBfLyB2ox2lMjcQ04e430k1QZ1AG4aOD+9Rq6sSgz4KKwQiN4ZaCozz6sL U64e0wgaYxWc+XKiJJ3Kq4slu1vQpK7sLc02HA3TshDbb9eUWan5lOWWBMVgz6KZUeds SAHtXo1CUm2JO31l06RCKH0/GmVa3CiCuPz1zjV6HkitP2+FfypPIXZGC8e2IF1bKITZ WFZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=ZDRm4x3Hh9bk7hNKCUfkZtlMyFVl3F1Fvwbb/FuXRWM=; b=rQ+3uUZBiN5p7dzjJ1hzY3N/6l51Gcvn+iO56tqBDId7SrxjP3e1fr143W175V6bab jRhYy4BUkuSTFGjPYPSOotZ2SYG0voqaTi04n7MyBemOgEvW1Cf6B7CEU4D7GOyjGAEc ijOu3qr7sVJuqnklfGFiKSh2+pXaNDZxL2SdR99y2EZYbUiKpnPIaVW2IQ09Yc3gbskC D+piZfviYl8l0LEOCtmBIPhUuyAb6mFpyt6C182GuCuibdG4UW0Ud7PGokLnMLN84yWX 1MLmd3u049p8R8p+2yk763N35DX3Y1x5pWiaOBqaubtu25Yk1jcIGJwjb41qCWOeJs+K KKpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=gOVs1Qg5; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id 4si17658524pgz.68.2021.03.29.05.01.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 05:01:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=gOVs1Qg5; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 285846E413; Mon, 29 Mar 2021 12:01:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by gabe.freedesktop.org (Postfix) with ESMTPS id F26C66E3F9 for ; Mon, 29 Mar 2021 12:01:00 +0000 (UTC) Received: by mail-lf1-x12f.google.com with SMTP id b83so17977407lfd.11 for ; Mon, 29 Mar 2021 05:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Za3WAfwBQn5CB64f8uczux74fVXb0Y3lBUEXrhz1In0=; b=gOVs1Qg5jxqVjvbB1dL4XeliN7Umgx2BmvIcGEGk+aqxaWQ8IYeIONbfcCVXvGyw0G Mql/vEuEq+/BAVOeKt+ftMMUlLAk1T8moHbn473oIu/n+AK5MykF7pwHPGwK+RMZxsAB G5SyU/EFuOscIDC6zt5WceesYqfsrjpwzfiTRxFtQojIb0DBtvW/dVdpEP4gDrugschL oUfI695c0jAb25MvhuK9Uy0F/3MN6XDDxSV0BBkHXSqioeRpckf8bHVkD3exDgFYMenL lkNj6/LTmavc01xLvkbHXRRjXtEPSNjiI+XMhg7OjzZsZebu9YdwKQ9uoSLUyjmtfAA0 uqjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Za3WAfwBQn5CB64f8uczux74fVXb0Y3lBUEXrhz1In0=; b=Y8UdGV7TvHxJ1Wh8TJRUnCTOOAEEEKVzODn0e9rLR58wO/uXSZ3RLWAHU27HHRBOBl eQeFw5HPlbbcfYTNiFfSo8Jk1pxtmp2YC5GGdikm3V0cmY+5HNzxJwrqPH7CAOWJVez9 THVdWCuNJ8PdMIdZqqF00k23Z9ZPh6tra+USRUTEFj4/gTMYbKzsdezVzuwkBQLaIr4F LKsTKUk+rxhq9yHR84EzagQdHs5BOtZt2TACfQ+KBRKb2DlKcH6KNgYPkp32ULsj0UdH 64avHORW4u/JNVDDrYahrepKxRlZASPW/9XwKCmKanLI1KBgIVs4PTxvPiZOLZsH2W9j e2KA== X-Gm-Message-State: AOAM531m8bRj/8FL85+U4+PMNhCmSuKsdNOBYLUYCviq8SDIwsEDkRor 6AhBMLECMSyFc9Z7nXbNZLxfLw== X-Received: by 2002:a19:224d:: with SMTP id i74mr16390665lfi.224.1617019259451; Mon, 29 Mar 2021 05:00:59 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id d8sm2415240ljc.129.2021.03.29.05.00.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 05:00:59 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Clark , Sean Paul , Rob Herring Subject: [PATCH v4 1/4] arm64: dts: qcom: sm8250: fix display nodes Date: Mon, 29 Mar 2021 15:00:48 +0300 Message-Id: <20210329120051.3401567-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210329120051.3401567-1-dmitry.baryshkov@linaro.org> References: <20210329120051.3401567-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Jonathan Marek , David Airlie , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Jonathan Marek Apply these fixes to the newly added sm8250 display ndoes - Remove "notused" interconnect (which apparently was blindly copied from my old patches) - Use dispcc node example from dt-bindings, removing clocks which aren't documented or used by the driver and fixing the region size. Fixes: 7c1dffd471b1 ("arm64: dts: qcom: sm8250.dtsi: add display system nodes") Signed-off-by: Jonathan Marek [DB: compatibility changes split into separate patch] Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) -- 2.30.2 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 947e1accae3a..32f0d6a82457 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2327,10 +2327,9 @@ mdss: mdss@ae00000 { reg = <0 0x0ae00000 0 0x1000>; reg-names = "mdss"; - interconnects = <&gem_noc MASTER_AMPSS_M0 &config_noc SLAVE_DISPLAY_CFG>, - <&mmss_noc MASTER_MDP_PORT0 &mc_virt SLAVE_EBI_CH0>, + interconnects = <&mmss_noc MASTER_MDP_PORT0 &mc_virt SLAVE_EBI_CH0>, <&mmss_noc MASTER_MDP_PORT1 &mc_virt SLAVE_EBI_CH0>; - interconnect-names = "notused", "mdp0-mem", "mdp1-mem"; + interconnect-names = "mdp0-mem", "mdp1-mem"; power-domains = <&dispcc MDSS_GDSC>; @@ -2580,7 +2579,7 @@ opp-358000000 { dispcc: clock-controller@af00000 { compatible = "qcom,sm8250-dispcc"; - reg = <0 0x0af00000 0 0x20000>; + reg = <0 0x0af00000 0 0x10000>; mmcx-supply = <&mmcx_reg>; clocks = <&rpmhcc RPMH_CXO_CLK>, <&dsi0_phy 0>, @@ -2588,28 +2587,14 @@ dispcc: clock-controller@af00000 { <&dsi1_phy 0>, <&dsi1_phy 1>, <0>, - <0>, - <0>, - <0>, - <0>, - <0>, - <0>, - <0>, - <&sleep_clk>; + <0>; clock-names = "bi_tcxo", "dsi0_phy_pll_out_byteclk", "dsi0_phy_pll_out_dsiclk", "dsi1_phy_pll_out_byteclk", "dsi1_phy_pll_out_dsiclk", - "dp_link_clk_divsel_ten", - "dp_vco_divided_clk_src_mux", - "dptx1_phy_pll_link_clk", - "dptx1_phy_pll_vco_div_clk", - "dptx2_phy_pll_link_clk", - "dptx2_phy_pll_vco_div_clk", - "edp_phy_pll_link_clk", - "edp_phy_pll_vco_div_clk", - "sleep_clk"; + "dp_phy_pll_link_clk", + "dp_phy_pll_vco_div_clk"; #clock-cells = <1>; #reset-cells = <1>; #power-domain-cells = <1>; From patchwork Mon Mar 29 12:00:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 410836 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3558863jai; Mon, 29 Mar 2021 05:01:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJMVuhSkos3Z6y6tARngs8B3Hcu+0aIahMH2m20DzykbaJTDyUUb5KiuavsWSrNRjRD/Wf X-Received: by 2002:a17:902:bd8b:b029:e7:147e:ee5b with SMTP id q11-20020a170902bd8bb02900e7147eee5bmr23095714pls.9.1617019272468; Mon, 29 Mar 2021 05:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617019272; cv=none; d=google.com; s=arc-20160816; b=owj2ewKXkQSEUmgjCRzLV3jrRG80HZ+FtRh/7jPGT7eTuYBsdMGZDh3FOBcMMMMiHn oe6ES6hnGOFpR51MuKx6DL4qkpbYzGM991jmSarOoIN8h7wG3HIZKfyMA0N7BDO7fTuA yM1Ety93aCTVMRmIR1h4lyOSqM1x/00tavMKrkmAyhqua4IJOoPBVrBeSYAKrsZYa/Fy Ht2Q0s1AA18t6DhNtlOaN9FnjRiJIH1jIsafbJ2wHSPi6LxDwgNQBxlxdzSMoxOv9U25 1LmL30YMQjAG8Tj01DyA5ZfAA5QLiUppaCNfPxjiXjQb0n8Uz6PAFSp+kY8n0uK6iqrx qu6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=UqXhV2bw9iwPjcHY01Ifc5xgD2gmOeGrU2YDGTv4Cp0=; b=vkcX0yTI+zkxW9R8S1EUuF87gEA2Y6OMvzSaZ65TiaiA5o+PIC8ePvUSc3NNHWKs82 lm01I9Q6rMqnubbbO14OnuJT3zyruJ/OvqQj4pA4p19ei8/HTW9+vHwMXvq/8Q9+sWb1 tPmrelkL9DVar7O8CNU27NgVml78tKq94dnih072WJu9nq8vGhfPzV0CE/JTerc5zaCN lcjYeu4FujL0XKPJjE5JVOTOGZJJC95i7cwH9a986n/Gtxcje2g+0C11xJnOq/8Ccgcy EpkKCYbPXU2njQV0aWQbIpd027fFEfrlBT77fxHkMTR7mnmmMINmgON0rYv2Yy8ZzphM h79A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="ybO0/FUL"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id o8si19644777pfd.51.2021.03.29.05.01.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 05:01:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="ybO0/FUL"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BFD716E418; Mon, 29 Mar 2021 12:01:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by gabe.freedesktop.org (Postfix) with ESMTPS id A6E946E400 for ; Mon, 29 Mar 2021 12:01:01 +0000 (UTC) Received: by mail-lf1-x129.google.com with SMTP id a198so18010959lfd.7 for ; Mon, 29 Mar 2021 05:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+8Q0oXrMBUUF8CE7R5pzSgMMnLMfJKLpBWJdMeU+Kvg=; b=ybO0/FULhnEnk5jpC9ukACgruWaHDTR/3rHmAizO7AhGugRK389MP30cORWXKeUYi2 1hjj515agYgf3pHDPu5B8WSDZS2741SndfQqIPO7yb/7Yr3n/iEUNTTj7jz6K1SpFafp O+TVpO80XRUt0ocfidTLtI1DU/3kHfmplHnUs3EgGvj6jbGaLEkCkHUJaHZq1LtJX6ST NTz1yXSg1dnBakqhCIptoXiDM3e0be58I/2TndMFTjwSoEJhtEDBzVeQ6aEx7kPOoiqB L2/7yNLa/OBMgCANrB/pz2xMpits59r2h6DtiZlCsbOedAovb6MtYpEPuyHTMwMQioYI wKNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+8Q0oXrMBUUF8CE7R5pzSgMMnLMfJKLpBWJdMeU+Kvg=; b=eiCbNymH06W6uX4xTkLnLmB+y9EgYDs6Bs+u8fPw2LyoL3UJS0Z2++9wAhun8b80Sp o4+unHRsr7423RzZwwVmOCFixqN3SwRtMYin5J60sf63n9CNNG0GAkL3nzpqX5d0hmp/ ZcX6QfbNqEokAAlRf6HzPgTG6jVlV56qN5MsQLCP34Tjs9Mr8rxOFdODxiQ0kfzxQZoc UJnXRdyrc0neq34HR0/83l2uuR1OL4eQjrLYvdovkapx93PdPEuH95cwaoSdGZndWEU8 iYyxkSIm0nx4qKp5I/9w778KlJ6/kYmc4ZwW6lIQ2kTLBvFJIDYdnJAW1Hc2NMWlfZ6N t/lA== X-Gm-Message-State: AOAM533XAm2QKiYvO+kXrmwptp9+s9cDQX2OaaEosoOyeKcp8fK1fHSy leNM2z8b0Y+0XeOljPE34LxpH7NWWTEF8w== X-Received: by 2002:a19:520b:: with SMTP id m11mr15874260lfb.42.1617019260144; Mon, 29 Mar 2021 05:01:00 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id d8sm2415240ljc.129.2021.03.29.05.00.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 05:00:59 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Clark , Sean Paul , Rob Herring Subject: [PATCH v4 2/4] dt-bindings: msm/disp: add compatibles for sm8150/sm8250 display Date: Mon, 29 Mar 2021 15:00:49 +0300 Message-Id: <20210329120051.3401567-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210329120051.3401567-1-dmitry.baryshkov@linaro.org> References: <20210329120051.3401567-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Jonathan Marek , David Airlie , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Jonathan Marek The driver already has support for sm8150/sm8250, but the compatibles were never added. Signed-off-by: Jonathan Marek Acked-by: Rob Herring [DB: split dt-bindings into separate patch] Signed-off-by: Dmitry Baryshkov --- Documentation/devicetree/bindings/display/msm/dpu.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.30.2 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Reviewed-by: Stephen Boyd diff --git a/Documentation/devicetree/bindings/display/msm/dpu.txt b/Documentation/devicetree/bindings/display/msm/dpu.txt index 551ae26f60da..5763f43200a0 100644 --- a/Documentation/devicetree/bindings/display/msm/dpu.txt +++ b/Documentation/devicetree/bindings/display/msm/dpu.txt @@ -8,7 +8,7 @@ The DPU display controller is found in SDM845 SoC. MDSS: Required properties: -- compatible: "qcom,sdm845-mdss", "qcom,sc7180-mdss" +- compatible: "qcom,sdm845-mdss", "qcom,sc7180-mdss", "qcom,sm8150-mdss", "qcom,sm8250-mdss" - reg: physical base address and length of contoller's registers. - reg-names: register region names. The following region is required: * "mdss" @@ -41,7 +41,7 @@ Optional properties: MDP: Required properties: -- compatible: "qcom,sdm845-dpu", "qcom,sc7180-dpu" +- compatible: "qcom,sdm845-dpu", "qcom,sc7180-dpu", "qcom,sm8150-dpu", "qcom,sm8250-dpu" - reg: physical base address and length of controller's registers. - reg-names : register region names. The following region is required: * "mdp" From patchwork Mon Mar 29 12:00:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 410835 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3558822jai; Mon, 29 Mar 2021 05:01:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4ezjg7xiFKBUyIV3XjunQQiYlWw+KnKxhvSMmkW2DPZ7SxhCsaAlLQp/VP76XloF4701L X-Received: by 2002:a17:90a:eb0b:: with SMTP id j11mr25364245pjz.62.1617019270672; Mon, 29 Mar 2021 05:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617019270; cv=none; d=google.com; s=arc-20160816; b=WBjvbMH47vJcutZj3n/efRjaZszc/Q38V2MjnI2bHKJYUFc3rFDVB0vjuwo1FGI70X z9xGZC/7kGIm9VXEYow230VYN1CLqZD/ZbqHyo4VEOeRgHyqRrqlkUdGasNPbtfCRv4m BubVLQHZfCNOmXo97K1P88uenAtj44N9MwmZISSD6HE6OZkA6yqp8+59IDXXO58Ia3QU Vv2D3NJcZjM/yKaqeUCiT53fxIUjasU+Et0lMYgqaPqk5Uts2Mmj9BF1Ci4gF3NS0Q5P AebYu1xCwNGyS6XLSZCTtR9H2DwKLJgupmQfHbxHhrQNkm9cZp8VrQavUQBuIzzzPw8V RWYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=RZKaygMq/dew19WhdycXtQUZBIRwrwVJDJxGN8nsZvU=; b=hvpsmQOeMJjhyCpUF3HraCdcRuZTO35hopqWotrTERreo3Xuep8Kped3A7cvDhNkba K1X8iU2vf37GUFTgK4q1UFKvhDvfHmjg3P0+VO/nCa8syfG5fScUaE1LkzTlTwaDtY+v 0/wHUIL1gY6MQgobdwZyNcCeProF0aQ6xamwNSREZE/zsbfBVnIboGrkkypzzCudIuiY 95Ek9x0z8GMdYOOvhzO+9rgLal4KUw41eJy6rTKWwYn2vzR0t6KMmqGYyGDbbopYdtQU ZuLviYi2vTp9CA5Um+KKzCklMrgkKJDR7mcBSZhIXdEC2yyG5RqyilAEclgdDjOZcecj hjKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dCytlg3N; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id z12si9678434pfn.87.2021.03.29.05.01.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 05:01:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dCytlg3N; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8142B6E415; Mon, 29 Mar 2021 12:01:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 770846E40B for ; Mon, 29 Mar 2021 12:01:02 +0000 (UTC) Received: by mail-lf1-x12b.google.com with SMTP id a198so18011018lfd.7 for ; Mon, 29 Mar 2021 05:01:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=P9Nv+6xnEu0zvg+j8CWyLr5RnYQX009vcZ1IcsZuglc=; b=dCytlg3NJtzf0BpAz8mXT7plQHDmHXz1C4hl6Y9i80ei+NgRYcYg/f90iCRvocOt90 URY/Gh6xzPVyPKLt5MtLKD+GW7kdG8L/gHbj11PSOd/+t46LYRn7rSyDunXVkVBhAo4x UdcdGJ3MJAxSPb3uhpn2m99OmglOQ0seBL2B8dHvKWQ7hJHkSs8PzWgMC245xOEBB+Ij 66J+ILAqnnW660AjnKTLgti1Zm18RaeRrtQ/NUvF209pPf0KQdAwFEq30Dj71jFVgdGX 1+Ih90QSivp1dEnvC0jhXtr9/NXpBHyNImI+ufcE6ej8wWtRkYlM6tey8IhQj9mxj1Er IBig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=P9Nv+6xnEu0zvg+j8CWyLr5RnYQX009vcZ1IcsZuglc=; b=FHG1W3kQJeM+lvjeGAXUXMh0RVkMUjKAdoKiEGQFOzyJLw4KCuhWaKuwNEL0kcKFUX zOsW5d1y+sNMEF5MLFZIgfBajf71bPrEgbtFptqny7Ks0A16T72eZafGQeR+Oe1qx/VZ Ppo0/NzmrdudMvyCXxWJQSjiImItGw+fytowzj+w+q6bXK4rdKFCt88drG8Ew8nyUkVq AqLTAdOWKfShfFKnz2Ed9NijwddINdvcc6fUusehKf7v9k7yM7PywpZomorU7gaeioSL 9eKA605P0APtlcjrKmcyPXiJ+baUfoeyrNlZIT4vt+OuqfjtLIkJ1w+oULdzGJFoF7Sk RGGg== X-Gm-Message-State: AOAM531ASbV2i7yEty/iotiqaOCPr1IVouFQPjsx1x2x7PYcMEW3WwhH qXqYoHZriLoPelTNrH4KW9P+nw== X-Received: by 2002:a19:c14a:: with SMTP id r71mr15979614lff.358.1617019260867; Mon, 29 Mar 2021 05:01:00 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id d8sm2415240ljc.129.2021.03.29.05.01.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 05:01:00 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Clark , Sean Paul , Rob Herring Subject: [PATCH v4 3/4] drm/msm: add compatibles for sm8150/sm8250 display Date: Mon, 29 Mar 2021 15:00:50 +0300 Message-Id: <20210329120051.3401567-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210329120051.3401567-1-dmitry.baryshkov@linaro.org> References: <20210329120051.3401567-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Jonathan Marek , David Airlie , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Jonathan Marek The driver already has support for sm8150/sm8250, but the compatibles were never added. Also inverse the non-mdp4 condition in add_display_components() to avoid having to check every new compatible in the condition. Signed-off-by: Jonathan Marek Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 ++ drivers/gpu/drm/msm/msm_drv.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) -- 2.30.2 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Reviewed-by: Stephen Boyd Reviewed-by: Bjorn Andersson diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c index 5a8e3e1fc48c..fff12a4c8bfc 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c @@ -1219,6 +1219,8 @@ static const struct dev_pm_ops dpu_pm_ops = { static const struct of_device_id dpu_dt_match[] = { { .compatible = "qcom,sdm845-dpu", }, { .compatible = "qcom,sc7180-dpu", }, + { .compatible = "qcom,sm8150-dpu", }, + { .compatible = "qcom,sm8250-dpu", }, {} }; MODULE_DEVICE_TABLE(of, dpu_dt_match); diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 94525ac76d4e..928f13d4bfbc 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -1185,9 +1185,7 @@ static int add_display_components(struct device *dev, * Populate the children devices, find the MDP5/DPU node, and then add * the interfaces to our components list. */ - if (of_device_is_compatible(dev->of_node, "qcom,mdss") || - of_device_is_compatible(dev->of_node, "qcom,sdm845-mdss") || - of_device_is_compatible(dev->of_node, "qcom,sc7180-mdss")) { + if (!of_device_is_compatible(dev->of_node, "qcom,mdp4")) { ret = of_platform_populate(dev->of_node, NULL, NULL, dev); if (ret) { DRM_DEV_ERROR(dev, "failed to populate children devices\n"); @@ -1320,6 +1318,8 @@ static const struct of_device_id dt_match[] = { { .compatible = "qcom,mdss", .data = (void *)KMS_MDP5 }, { .compatible = "qcom,sdm845-mdss", .data = (void *)KMS_DPU }, { .compatible = "qcom,sc7180-mdss", .data = (void *)KMS_DPU }, + { .compatible = "qcom,sm8150-mdss", .data = (void *)KMS_DPU }, + { .compatible = "qcom,sm8250-mdss", .data = (void *)KMS_DPU }, {} }; MODULE_DEVICE_TABLE(of, dt_match); From patchwork Mon Mar 29 12:00:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 410833 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3558762jai; Mon, 29 Mar 2021 05:01:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxos4kjk4ynS4CTQ5ByI3Kz2wpOZhneUg68X8Vm3iiLOUrAApFw0+Pu9gAnQ2MFtN6mvQ1B X-Received: by 2002:a17:90a:3b0e:: with SMTP id d14mr26669998pjc.198.1617019266459; Mon, 29 Mar 2021 05:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617019266; cv=none; d=google.com; s=arc-20160816; b=z5MZCY6EN9BLOtGnPhkjQL61fHotol06Eu5evh9nh/tbirmNA7zvzpTmI3mhm4Qeg5 /HlU7UUCnDm0QY7qPzGZ3aWPRJlnGXTQjpxpVAQX8stPS+O9RgVkOl/NYMrTh1yQfPi8 zVwMRVVAV4zTfHc4QawDGyGk1jvozl1PnFck1nNFB3rHUw4dxUx0b7gcxsK5jhz8jngw osxjaAuJrRE5gWiCh8J5h/2aEETur2xBLq0+pWtvwUAjB4Q7wOGIG/K/yT8cc9uAzq6w mCbn6WjSU68FihD31AS1VLMipQq3ZThakNXUCCQVcvEZ63PVwoBB6CtawfQhxxmwubQN SyHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=J4PjkE/+iDNwqLaLeg54UgY+GhTZdjzpfZpK0ZKkujE=; b=ta8nFPrmJoTpqkW11fLM2YXUrwfOuGXiRJkvXsXcTgEe70RQS3+fXwMeVOqt+87GDT Z8jLYTLls48uNUfoLlAbDEiCsF+18DarNzBWpJp6Bx+4FC+pcOWru778vUXnpwxQ+Vrb outQ9XJf7RhPlBa99kLgSH2IzC4uwjdbB1J4+bPDsDaOEgri0kmqD0TthTdKsC/xOSAC qEKxJMYfrI3i2S+mXjMyVjg7mY9IgHpybAWefwKBx4VQtLFhGlPVhu8790A9SSGqzSOj X+JXioTp9KAW1v6SaiVjaNgC5I/AHIrR3cPpGM1G13nfiGCXn3qidZBo5Xjow3v7nrvq UDDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YWvnaqdD; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id y11si19277752plr.363.2021.03.29.05.01.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 05:01:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YWvnaqdD; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D80386E40F; Mon, 29 Mar 2021 12:01:04 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0BF356E40B for ; Mon, 29 Mar 2021 12:01:03 +0000 (UTC) Received: by mail-lf1-x12d.google.com with SMTP id o10so17980850lfb.9 for ; Mon, 29 Mar 2021 05:01:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TnkWF/fJb3+MN0k+LniOlBuYB58LfW58mHqJqX+URIE=; b=YWvnaqdDXdIvbYpFm/slhDkvN3LNK4FN0Q/Aj1+TPdF1Z+zz0FJSdlGM17Z1UoaQ0i e4825ouP+bSWh86Lc7qeL5qi1kd5J8p/H9sgDVqIizNxJYX/GVfpylSUTj05LhNbsdMy kfwbU9bzZmGvNrvrmp3VkgCQOVNBzBgS65PpLUgUqIXuBmd0oCjs+zJ0Xf6ntmf/xu9L 0YPxkK23VFjUIi0+K5MldB/rLDyYdPckzEQT+bVAemiCTZBLBxAvtMY1HxO/kUiVEOqk vZgBNdADKEM2BAbzIJxi+UvJv2z2N+EhAXLiH5G4N0EpCxhmdmrXqZA2oTmCqZOXTTaD h1EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TnkWF/fJb3+MN0k+LniOlBuYB58LfW58mHqJqX+URIE=; b=MDSiuLMjLp0XKvQcencxF9z+ck+i4rMAAkat7Qgt4VYK4Edl2/L3qn38TsvtOJLI4u ZNA8n/t/6xNazJNUZYDYMHeR++O4RlddaY5MSEALY4rvF+S3c3EvPHe8FVohKq4BWJQZ 48Z7n7XjWi25qy11N/+SCpXO4d0a7407AQiuzhgEsyWqQcThrASUjfszOSduxIBBWdTC nkvixiy5aeh754b9A24HY5l8AFkZlYP8ycxaDnYfDq4BofT3wYOS0h3EjkBZ+sqRtoPY QLzSHa7xnxK//T+5mqzeu1EMLcQGKp2dtrzT2vNu+mr/Qy8ncLfmVhxLMJxpfZXFbjn9 GdCw== X-Gm-Message-State: AOAM531NmtUxCc8jaR/lD8bbf0tysPuluQmYF6x3udoNAdE+JnIGQxPP tmtab672iDvtPf41CB6J8lrpYPOo6zwXaA== X-Received: by 2002:ac2:4dbb:: with SMTP id h27mr16954400lfe.634.1617019261533; Mon, 29 Mar 2021 05:01:01 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id d8sm2415240ljc.129.2021.03.29.05.01.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 05:01:01 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Clark , Sean Paul , Rob Herring Subject: [PATCH v4 4/4] arm64: dts: qcom: sm8250: fix display nodes Date: Mon, 29 Mar 2021 15:00:51 +0300 Message-Id: <20210329120051.3401567-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210329120051.3401567-1-dmitry.baryshkov@linaro.org> References: <20210329120051.3401567-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Jonathan Marek , David Airlie , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Jonathan Marek - Use sm8250 compatibles instead of sdm845 compatibles Signed-off-by: Jonathan Marek Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.30.2 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Reviewed-by: Stephen Boyd diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 32f0d6a82457..693ac533f9b6 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2323,7 +2323,7 @@ usb_2_dwc3: dwc3@a800000 { }; mdss: mdss@ae00000 { - compatible = "qcom,sdm845-mdss"; + compatible = "qcom,sm8250-mdss"; reg = <0 0x0ae00000 0 0x1000>; reg-names = "mdss"; @@ -2355,7 +2355,7 @@ mdss: mdss@ae00000 { ranges; mdss_mdp: mdp@ae01000 { - compatible = "qcom,sdm845-dpu"; + compatible = "qcom,sm8250-dpu"; reg = <0 0x0ae01000 0 0x8f000>, <0 0x0aeb0000 0 0x2008>; reg-names = "mdp", "vbif";