From nobody Fri Dec 27 13:08:29 2024 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 8B2211ABEA5 for ; Sat, 30 Nov 2024 01:45:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732931140; cv=none; b=sj0LJVEGj50t8+7KMYZ88rFsxix/j7AizT7ftFWGir84YbbEZv1PTKPjoP8+WDPexBW+qYE4P20IMjwDCyyQml7LP2pqBQWsFgeRl53bVnEOhS2bLSbwiBG6OCZMqLdZoAQt4AAZ19U0tf3E5uv6EsouGV9wRYf8gxYUzCUeGyk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732931140; c=relaxed/simple; bh=mtCCW5ebfpV8Y7thaprvn+r5wXgk5Z84tH2knZkid3o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mPgNtIFZJLs7tR+wBKyTlk0g1mvC+d07jDK8gzMwYxQjEAGOnZYIdpC4cW1uohUIEdInNC1gVSceM3+kYWI0NKbEa1Ea92+7yxRp+VLBkqNgHcYq0Yu8ofkYgoBiSN+HKCjzjisbRxEyBFj5xGBVstfKRh7zeRL6vTO2EkekxUw= 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=ggyEIC6Q; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ggyEIC6Q" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-53df7f6a133so2577973e87.3 for ; Fri, 29 Nov 2024 17:45:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732931137; x=1733535937; 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=sJrh3N4TJd0G0j63cOhg+qBWqNJSKnxQJYR2H3XOGLc=; b=ggyEIC6Q7bwQLbrZ+8UgoVcsOSjmzqWgRIIZ/y09gyVnYKNlejabdCQU2Sv9VKJIab oRi5WDOWaUG97VwFL2EXAkKGdig36m9P9tI/7bm70NGzScgbvz9ixta/kmLrHn8siQli sCJwYa484K0Rymr3/lGjCSlOy1scTCkNSyPKvLgbnLi2lKPEyymjmGwgD6qIEJqN/d1c /L/YRbr0858LiNVjW7JVC78m8RASaNiK7j14Wn1vxx2gEo29hwLIgiJDb/zcJCvbhX3G u1uiKP+eS2ANqcnnSxESglefKUTEExfM5BOz7dTJsaM2N5GihLm+Cb2h1CJQD/Pr3gnf YEFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732931137; x=1733535937; 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=sJrh3N4TJd0G0j63cOhg+qBWqNJSKnxQJYR2H3XOGLc=; b=E0CvjoeqPO8WjkThR7idbMocHmlyKJ364HNw9/bszFRUa9tQ5q0F5WI7hL1SkZvtEH lfW7om0jyCSJo3cT11XeykGViMKl6P/U6QITp46sFGYcfp8VnHoOxaLG68kSQgKakPmJ hDv7mwC3Lfp2uSdtBJCYqXx9Ow6tNeGyuyFPSXnVuV6uw46Z6+wOdHtSErfIDNq2bWoO fy7p8wzegJsZDIfHy0dt62ZeiL8PpxUr1eZYeP1WINrg69UPTz0Vv27Ar+rRk74Rs2OG GfszJ2gq6px2DwlBuQUXA+5XDGiNQzsz06wRABt7XPMWAOTDmWaJi3LwkwZ07fZnW1On 6/Og== X-Forwarded-Encrypted: i=1; AJvYcCWPfyAdwlN8OtXhZGmdnVKPWyUva/zxi3kb36L1B6ChblxHYMZCe0oUpO9q678T7mPqn331gchxqhyuGHk=@vger.kernel.org X-Gm-Message-State: AOJu0YyoGhZMZhF1IRVHTvNJFuwgHjWGFecRzn/CuggmpBlPaCM0TB2W BoJ3TGAxD1dFhEumtEUBtEVIAuXPchx1HgQRqGGrN1SUjaRHzYd0MWtgKf+ll/U= X-Gm-Gg: ASbGncsanW97+lmzh7B1mc8hQivIRMKpDxZV8RwL8uYMm1WlijVaJtBJt6gRd+Vc/pp ieVf/ik3LomFxJkzDdlVTrRauMaCFZDW5KoUBL4ZR3wMTx3P+kZdbLIpVc1mK+i65Y7KiXEX55H 8uiJRqkli56EUm+iiCE6pg1AbYhfPiW6oEdZPIcZ34HiR3C64mBvi4VcZtSlPeI6PsA4uj0OzbR WAvrczWxkQvHN/aJFlwnDRNa3niqInAFYK/3B+HyF5DVz5vF+8tmDHaBA== X-Google-Smtp-Source: AGHT+IFoOul/iG/SC8M2OdeMsm7KJdOUeB5eq8LVkwINZ1bnhuZRxl5V2ZgQVNY+Opdg0kWL4H8DRg== X-Received: by 2002:a05:6512:b14:b0:53d:dda4:8b0c with SMTP id 2adb3069b0e04-53df00d0332mr9214048e87.18.1732931136803; Fri, 29 Nov 2024 17:45:36 -0800 (PST) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53df64a0742sm631946e87.261.2024.11.29.17.45.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2024 17:45:35 -0800 (PST) From: Dmitry Baryshkov Date: Sat, 30 Nov 2024 03:44:41 +0200 Subject: [PATCH v2 29/31] arm64: dts: qcom: sm8650: move board clocks to sm8650.dtsi file Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241130-fix-board-clocks-v2-29-b9a35858657e@linaro.org> References: <20241130-fix-board-clocks-v2-0-b9a35858657e@linaro.org> In-Reply-To: <20241130-fix-board-clocks-v2-0-b9a35858657e@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Leo Yan , Joseph Gates , Georgi Djakov , Shawn Guo , Stephan Gerhold , Zac Crosby , =?utf-8?q?Bastian_K=C3=B6cher?= , Andy Gross , Jeremy McNicoll , Rohit Agarwal , Melody Olvera , Bhupesh Sharma , cros-qcom-dts-watchers@chromium.org, Stephen Boyd , Rajendra Nayak , Martin Botka , Jonathan Marek , Vinod Koul , Tengfei Fan , Fenglin Wu , Neil Armstrong , Abel Vesa , Alexandru Marc Serdeliuc , Vladimir Zapolskiy , Sibi Sankar , Bryan O'Donoghue , Jun Nie , James Willcox , Max Chen , Vincent Knecht , Benjamin Li , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3153; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=mtCCW5ebfpV8Y7thaprvn+r5wXgk5Z84tH2knZkid3o=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBnSm332aAqmoo1ZRiHfw22J/w5Zrri5Jjjj2FuJ CzLztXcFIGJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZ0pt9wAKCRCLPIo+Aiko 1RwcB/4k3AvKGqR4Cbiv+BQqvha9vEpGD21MX4PloxM2NiO2MmL6pjTrW5Eikov30UFFWhyrw0W ZoP3bSKoc+ONix4AkpargijT6T4ywY+peq31yack7/L3ZGYrcvxcXN44cqLtjkDoGqajH+OLz7F I8jnd49lz4WcgMmvftSWp/2s2vwYXNt9kdr88aAZxFkm1PBPplRoyaGl8leYsq7exc/GwGPrKra W3qBEM2nlPpekWmkSrZxq8lK6n7I9Ydu0lO44hRsnNM7T9313I5Hq8Fm/Cy4C1QVK584YaIqCXt jo4unN6TD+T8CPDcfh7ofA3e+FUFOSZgcHllUiZIpfgTD0pe X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A SM8650 is one of the platforms where board-level clocks (XO, sleep) definitions are split between the SoC dtsi file and the board file. This is not optimal, as the clocks are a part of the SoC + PMICs design. Frequencies are common for the whole set of devices using the same SoC. Remove the split and move frequencies to the SoC DTSI file. Suggested-by: Bjorn Andersson Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8650-hdk.dts | 8 -------- arch/arm64/boot/dts/qcom/sm8650-mtp.dts | 8 -------- arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 8 -------- arch/arm64/boot/dts/qcom/sm8650.dtsi | 2 ++ 4 files changed, 2 insertions(+), 24 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650-hdk.dts b/arch/arm64/boot/dts/= qcom/sm8650-hdk.dts index d0912735b54e5090f9f213c2c9341e03effbbbff..f509689af1c2e0dd6ea85edebe4= 90538ff43964c 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-hdk.dts @@ -1112,10 +1112,6 @@ &sdhc_2 { status =3D "okay"; }; =20 -&sleep_clk { - clock-frequency =3D <32764>; -}; - &swr0 { status =3D "okay"; =20 @@ -1337,7 +1333,3 @@ &usb_dp_qmpphy { &usb_dp_qmpphy_out { remote-endpoint =3D <&pmic_glink_ss_in>; }; - -&xo_board { - clock-frequency =3D <76800000>; -}; diff --git a/arch/arm64/boot/dts/qcom/sm8650-mtp.dts b/arch/arm64/boot/dts/= qcom/sm8650-mtp.dts index 76ef43c10f77d8329ccf0a05c9d590a46372315f..9a7f98d922af887657b4b56b5e2= 71cc4b590db2f 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-mtp.dts @@ -729,10 +729,6 @@ &sdhc_2 { status =3D "okay"; }; =20 -&sleep_clk { - clock-frequency =3D <32764>; -}; - &swr0 { status =3D "okay"; =20 @@ -884,7 +880,3 @@ &usb_dp_qmpphy { &usb_dp_qmpphy_out { remote-endpoint =3D <&pmic_glink_ss_in>; }; - -&xo_board { - clock-frequency =3D <76800000>; -}; diff --git a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts b/arch/arm64/boot/dts/= qcom/sm8650-qrd.dts index 71033fba21b56bc63620dca3e453c14191739675..4943127e27a15af72f6d3f28155= 0b1d8ac0ab77c 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts @@ -1040,10 +1040,6 @@ &remoteproc_mpss { status =3D "okay"; }; =20 -&sleep_clk { - clock-frequency =3D <32764>; -}; - &spi4 { status =3D "okay"; =20 @@ -1320,7 +1316,3 @@ &usb_dp_qmpphy { &usb_dp_qmpphy_out { remote-endpoint =3D <&redriver_ss_in>; }; - -&xo_board { - clock-frequency =3D <76800000>; -}; diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qco= m/sm8650.dtsi index 25e47505adcb790d09f1d2726386438487255824..cda249f767e5f1766134c62a8e5= f312ed17e17d5 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -38,11 +38,13 @@ clocks { xo_board: xo-board { compatible =3D "fixed-clock"; #clock-cells =3D <0>; + clock-frequency =3D <76800000>; }; =20 sleep_clk: sleep-clk { compatible =3D "fixed-clock"; #clock-cells =3D <0>; + clock-frequency =3D <32764>; }; =20 bi_tcxo_div2: bi-tcxo-div2-clk { --=20 2.39.5