From patchwork Thu Jan 25 21:35:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13531768 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (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 37D995B1E8; Thu, 25 Jan 2024 21:35:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706218541; cv=none; b=PnKVJHIJOlC4Ejsuyl5YUhUuJjk8KOAshiH3RZImghwGmNDFH9TvUGiXMKJ2KQh2CmKgpJtdRCROUdqaMDTRg24ACQWzoTUGOi71JCgNRzkTuy7OuuEvI7Pafqe3GBIwTf4MKFguLnXGzxFKhnPwscmUB/PNPOl625Ku9FFCTc0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706218541; c=relaxed/simple; bh=xh9qon9uSb2P4Lif5swmXLPlXmBT6MHyg+9ChYhCDvA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=c2g4iPOBxFj4q6tA1rVbjnAfBCp2J3tP9oG15IizML4rh1pYuGHgoX19t45URInvxr+QDVkZLENNz2IR0KhXmfuDCRxYYc1mIoN2w2K0gb3czQE9zhVGGCAJ7yRltQ3lG8DHR19V7Bkt+S24DQDnF1fEcCKLOozZFgPI5pqfUDw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz; spf=pass smtp.mailfrom=z3ntu.xyz; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b=xP0S2Ujr; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="xP0S2Ujr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1706218538; bh=xh9qon9uSb2P4Lif5swmXLPlXmBT6MHyg+9ChYhCDvA=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=xP0S2UjrPUwkmvw6sUjkJaNfZcJ31AnIrK4GUa/KSNjx5U2T4OFoOUY1tUKxWOnjt RvdJC4afSF6wrG2xPIEYzRI93rlvfdyPW1uiRLODGPf+pqhYHWIpHwWgJsr5GZvsVx ELvPdgrpgs3AvhRWOFvMpDGn1Ua9Ndejov6HeaVg= From: Luca Weiss Date: Thu, 25 Jan 2024 22:35:12 +0100 Subject: [PATCH v2 1/3] dt-bindings: clock: gcc-msm8953: add more resets Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240125-msm8953-mdss-reset-v2-1-fd7824559426@z3ntu.xyz> References: <20240125-msm8953-mdss-reset-v2-0-fd7824559426@z3ntu.xyz> In-Reply-To: <20240125-msm8953-mdss-reset-v2-0-fd7824559426@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , Vladimir Lypak , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=907; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=LRUAlEGpm7vwiiZudwOrNyuxrWuDT7lijZ3surPmQl4=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlstQmXrmcDVSdaQOgOy02TRqd5MrT02SsRltmt Qq2fJMCe1OJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZbLUJgAKCRBy2EO4nU3X VuzTEADayMZEyalP4CoUzhuIvH3OkGc57bjnSsTsGwGnlv6PMuVGYLJC3mZNHpHv+62XMkImiKf 1jDg42irzsgnU7djdJAvHF56t1CiVghART1jmZEMKPE8TuPzjsh1JjbvFL2nGZhb9r1vdNn0iR7 lLhbSOgOw7LcsYxu9mUGVynrHEHzy5lkNCyK+dg15UUgjPYAB8Jdnj/6waHSK4CVTHXpw+bzUVM 4cCKb3UG/zGvMaRvecWJDBQsf6QUFzsejEHvKXg+V7YJK5slV7o2Bsv68KdZgwatM9LQbKk4msw sHclg0Q+t/GIIJED2KjFYo9VPt5eEE3hd7RJ1XYkGi+FSGGfho7XoOkAT5x0QNvu9Gzd+X9wsWs FGRaNhyJ5yx5j3npf8B7CFxP9gjgT3WNfMOkcvJk09FV8fwYXta1NbBIpfz1JdepRnHhKtv+VAb tDkZJ54cf9n3KG9sOHp740g9nFg9bTUPtC7FdX0cPCIkl31I0Dq+oHvXUQCNK09pBk3JW4oh6DT bV4p3X7SMR4p8qSNBML9dhxp7mo+eBx+fp3uhGbg34fzZYnDM2fQU0Ylk2kSfZHFY8cmwW+O4au QKnmYVhO00onAhS1XGjsOsZiQk+oaJIYj5W2dv+cUDCSaIfiUPn3UVXcncdL+UwiHh8WXLrpTNG UgIlDgLCcJRsgSQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD From: Vladimir Lypak Add new defines for some more BCRs found on MSM8953. Signed-off-by: Vladimir Lypak [luca: expand commit message, add more resets] Acked-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- include/dt-bindings/clock/qcom,gcc-msm8953.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/dt-bindings/clock/qcom,gcc-msm8953.h b/include/dt-bindings/clock/qcom,gcc-msm8953.h index 783162da6148..13b4a62877e5 100644 --- a/include/dt-bindings/clock/qcom,gcc-msm8953.h +++ b/include/dt-bindings/clock/qcom,gcc-msm8953.h @@ -218,6 +218,10 @@ #define GCC_USB3PHY_PHY_BCR 3 #define GCC_USB3_PHY_BCR 4 #define GCC_USB_30_BCR 5 +#define GCC_MDSS_BCR 6 +#define GCC_CRYPTO_BCR 7 +#define GCC_SDCC1_BCR 8 +#define GCC_SDCC2_BCR 9 /* GDSCs */ #define CPP_GDSC 0 From patchwork Thu Jan 25 21:35:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13531769 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (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 784BE1386DA; Thu, 25 Jan 2024 21:35:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706218542; cv=none; b=cIv56lE3jjK/OfkcKnBOvuwfa5KiQ/L1jUx+5D5/7o1sV3aCC9b3adxu5p182gFvYytYylsNkaf94qD2KtDCKX1Uc0O9i2/RcCRq+VRnC31fUQ7gODwtzZqLC1bexeSot/x8P2FEHvrdDHGio+rDC5p3XtH3UgPioPDKFRVrEbs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706218542; c=relaxed/simple; bh=FK+L8LgnkcrpzitQ1T/eo/BRxUMyYXtYZKulFp8jUQ4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lj5TdPzwD6b2ntjtLpLiTYExHyKspJCfPJqo0enbP+cwygHlCHP43AaFCo/RmuJnbuJRiZhfvlcmlP49yj6tZJa23IGngn9cDHiAU72kw17PAeOYr9qy77c9qThrmNAZv8Thx9iJEm9D0Pe5KQ9clZPs9OwoD5wP2njqmkq8xSU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz; spf=pass smtp.mailfrom=z3ntu.xyz; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b=QtWY3TlF; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="QtWY3TlF" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1706218538; bh=FK+L8LgnkcrpzitQ1T/eo/BRxUMyYXtYZKulFp8jUQ4=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=QtWY3TlFVMGLuC2uIA8n8bKW1pBNOI7wltw9gRQOZ+34cTk07B9xIss6qog2hibcA Nq/j8U+mr3NPemDrMBOrlHYwGWof3Z6ieqW9GGPZh1BkFZmnQwehMd0Un5Atd+daea XPMFrmDpU03YnjMPF8MlDTuzAf33FoRLAc6Nweac= From: Luca Weiss Date: Thu, 25 Jan 2024 22:35:13 +0100 Subject: [PATCH v2 2/3] clk: qcom: gcc-msm8953: add more resets Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240125-msm8953-mdss-reset-v2-2-fd7824559426@z3ntu.xyz> References: <20240125-msm8953-mdss-reset-v2-0-fd7824559426@z3ntu.xyz> In-Reply-To: <20240125-msm8953-mdss-reset-v2-0-fd7824559426@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , Vladimir Lypak X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=941; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=r1BPJQPZkawQ6cFOzFDI5AEkOrpUf7EO3bhDtyAamxM=; b=kA0DAAgBcthDuJ1N11YByyZiAGWy1CeiLyJaLPECWcMyp3ramZhs2rrDRfuQpXiZgOg5fmb+g YkCMwQAAQgAHRYhBDm60i8ILNqRuhWP+nLYQ7idTddWBQJlstQnAAoJEHLYQ7idTddWvxMP/1wV ZXykMiFTPRh22kggE/SmsO/EoTVupX3OTnw7ag7Xyqh2FVJ1QboXJqEc3vzpnO8pPh9BP0P9ZjN dk7CKQr5V1J0XQ4Bn6VcroyDBbJhaZsjt0PoXMRFS6M6utbX3zlNdKeG3aj5oeEhXneboFt57Xd qUQg7UdTbBX+TPtb5c+BKcVU1GXBoKnnCeK3CBcRvtrTuIZLHz+jdKVXmFvdI7v7rTb3Xp3WUyg pRsdRHLyTmHyq2iW/NWMV8GRr4g+LdKjG3LX5tPPRh+W4qC5wmqcqtfizuUP2icY/qQldidUcPG ZH05ebkv/Cv9sjH8eBOs276b+k6ZYC3G6S9txcrby87pWIlwFTq6a8N0ktpX5ge6S9qDXqiccNS Fx1G1EVe25c+UFtmYrDp/Mp/sxF10TsSbZLI6/zWvGMQWkFg2DussTxNXFxQMUrJaD+Ivc3vo2e pxq1NsyUS6SXnsp825rQipBGhQWI9Y67uQMa906hKcgfuJtjfJU+ABuZs8R4cFR8rIUQQtl31Qt MVQrkkg0eLSLLSDnSFC5A0019uNcJC2nrjtwQxT1TqfYGHHy1s4pohJQjoFwipybsHeJ4kD8YSB OKlWKeGrRTP3EP9+oWhXi91lLneIOdemj1nGSJvrcCoDyrUSr5QDYHmn3fAQBCfxl17lLUVhzyi dLCWh X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD From: Vladimir Lypak Add new entries in the gcc driver for some more resets found on MSM8953. Signed-off-by: Vladimir Lypak [luca: expand commit message, move entry, add more entries] Signed-off-by: Luca Weiss Reviewed-by: Dmitry Baryshkov --- drivers/clk/qcom/gcc-msm8953.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clk/qcom/gcc-msm8953.c b/drivers/clk/qcom/gcc-msm8953.c index 3e5a8cb14d4d..68359534ff25 100644 --- a/drivers/clk/qcom/gcc-msm8953.c +++ b/drivers/clk/qcom/gcc-msm8953.c @@ -4171,6 +4171,10 @@ static const struct qcom_reset_map gcc_msm8953_resets[] = { [GCC_USB3PHY_PHY_BCR] = { 0x3f03c }, [GCC_USB3_PHY_BCR] = { 0x3f034 }, [GCC_USB_30_BCR] = { 0x3f070 }, + [GCC_MDSS_BCR] = { 0x4d074 }, + [GCC_CRYPTO_BCR] = { 0x16000 }, + [GCC_SDCC1_BCR] = { 0x42000 }, + [GCC_SDCC2_BCR] = { 0x43000 }, }; static const struct regmap_config gcc_msm8953_regmap_config = { From patchwork Thu Jan 25 21:35:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13531770 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (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 B9A5D1386DF; Thu, 25 Jan 2024 21:35:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706218542; cv=none; b=Hb1Z6f7qoRG7jru+4VPp9lNL1vEKJe9LEfVdyvBomX+z3EYjsM6Tm8rs2NA/4ohqBqUnfEOy+R1T2oG2lgWPf/Nazo55gclwxlD1YRNIeNXjFkF8NZzCtVoar1lt/0Nx0j/XgaJb1qLiDjg+CoDDp5CVwdFFD1hL5NuUonabszI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706218542; c=relaxed/simple; bh=yU5QrcQggwQQZ+kfNFxdDHxu5MXwpTUge718BD6qWsA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hhjek9Z/1EUyKOBo4i1B8wCOn+XwkVthPCHdY6wGruLNEStK8lSIcd+CRYD0slVyi2RoTjgy58whKGfCX8nyR+PzreD/Zoa1prdVNTHJXT9LYUTU+zTk+5xYeXKgMc82x+w7XSSI2WrFxrKl1Oe/fR4zjJn8JU0kfb6eeaD1ARc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz; spf=pass smtp.mailfrom=z3ntu.xyz; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b=8HxHjOLF; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="8HxHjOLF" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1706218539; bh=yU5QrcQggwQQZ+kfNFxdDHxu5MXwpTUge718BD6qWsA=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=8HxHjOLF+iUIlmdJpb+yOEnAOc73gJ70iQl3IEieRVCRQBRZkpfENOBnc0vIdKrhm FXYR2/mVAIz9uHQs/owmqJQqFdW/Q3u04NI46mXKpRkOGBketnm3BFgs9ULiC8rIzI N8fsDFDKGquBYwTD6euXWUiGU/qgo+JkkF/k+CBY= From: Luca Weiss Date: Thu, 25 Jan 2024 22:35:14 +0100 Subject: [PATCH v2 3/3] arm64: dts: qcom: msm8953: add reset for display subsystem Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240125-msm8953-mdss-reset-v2-3-fd7824559426@z3ntu.xyz> References: <20240125-msm8953-mdss-reset-v2-0-fd7824559426@z3ntu.xyz> In-Reply-To: <20240125-msm8953-mdss-reset-v2-0-fd7824559426@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , Vladimir Lypak X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=829; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=PzUs+5/iYFOXD5TPEPyAZhq1wFpo0mlo1sKi+auOvx0=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlstQoUguZBfVZalKZvT/s2F/nZ2v3tWppxGDNu tWud5Pl8XGJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZbLUKAAKCRBy2EO4nU3X VoMYEACbrmNAcNRKzZvwmfCgVFNyTCg1I1Z2ILz9rZou8AdDvxucvfn6vRdhtimmK9FrTm2PETT sioLaWn6Z4sQyHTqQzlypeWR45Ip/9rc4DCGob51xftVJQU0RGaNdiyDMq4m0IQXgIZVK9Er6bm +C1FdGzc9+Tzx8NpNX7hFViGOiqhwxSLeCyYQSCDda73uQbntRtqtOMggHyQinLEXx4HJOJsiod cJeUcq/7F6vb0SbQI64bddmjwUbq9cu3m+FcgSgabmCEYqenq8jhjJ/hIf26195ons2CcPxFQWF spj+75YQBK2NFdISJnjdg6OpJyB60gJnghou8p23Vd2rU8kIZib9X1tzG7BUxLgcNq/pTqzbFCm yVf7KHFfABIkx3PqccOVNVGUPfNekEpz2Bv7yVvXkRWavxTN0gYF7InjuiXWmpII2JKnhbdoLIo OMjOe2g4IC7+P6FobM7aVW7WyeRPV1HpIhR2Lp6Y+dk2lYitHIqStFUUle6H0iyD+Y6kwBEcT0f QvrhfBkX2TT4lPbs7+InXcFstxgmu6GQyLSe00atj5+mjIhpcLTD2eI0nrnEqiAZUPnFQ+XGMNc ynjS38vRZm+saU8xa0MEgUro0MWpGiTtdZ7+2jq9oyKtfAKFGfgt8a6Tct6nYSVYCyTMSobnFLu +RAuiMrvgrw2epg== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD From: Vladimir Lypak With this reset we can avoid situations like IRQ storms from DSI host before it even started probing (because boot-loader left DSI IRQs on). Signed-off-by: Vladimir Lypak Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/msm8953.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi index ad2f8cf9c966..dcb5c98b793c 100644 --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi @@ -859,6 +859,8 @@ mdss: display-subsystem@1a00000 { "vsync", "core"; + resets = <&gcc GCC_MDSS_BCR>; + #address-cells = <1>; #size-cells = <1>; ranges;