From nobody Fri Dec 27 13:29:38 2024 Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (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 25B8C1A707E for ; Sat, 30 Nov 2024 01:45:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732931121; cv=none; b=qhP6Z245k8iI+wGBRgli1kww9xDtJPR9BJsm9gbjiMlON8cKpA2CDTr2B22Q3wHMD2mTmt6oHNVrhSk9RMT1DmY6ueBQwZFpJ8GKUV5VmPWXO0ZMQmXOwrZS1FSmEX7dZmB6wBbIGZfxLplxcD6zKM7DnW9rQw+gpAM00L50jaw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732931121; c=relaxed/simple; bh=dkeL8p4HqSsIjxDugM32Q10QGE/4T67RadiEMJJD0gI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=vE0iiUIgnYV3reWb2PofdLaUAQP008vQBsGx11yLGUS4rXKjTalIYCjWZ7h017kVx8VwX5exZQZ0CBQQf5zMNnIrvdzhxH6yqkB4DxWcH5oRk+GIyiVHM3T7U73v8wcRCQKuzV1BWVU05aNpwNBQJcwtjVWDvlizf4QfzYD5cNg= 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=y1LXC5W4; arc=none smtp.client-ip=209.85.208.172 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="y1LXC5W4" Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2ffd711274dso29483921fa.0 for ; Fri, 29 Nov 2024 17:45:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732931117; x=1733535917; 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=XGdJvJMseRnvPzCSR0xijdS83gOrTA2HdjB32n+Yub4=; b=y1LXC5W443W/dv046ZHKXbBr/rbbRnKnGxah3QplCTpZ59gydQC6xR3gtqeu0fuDpm mAGL52VWzblnY0ok1DTeHYyebWjXH9K3oCq5hMSQcnE+WsqltrBsc72X963DTv64iTFm gnu6K0BeegX8yBWUTV88IH+BkGxAOtY4TPu4ANXlgCa1wBLrqhDNfW8WzwpEKsTgGi2w BfEL6sorm+aCTDPHIYy2hO9u29hdaUfPPhSwKmJfHs+TYOWgca2WfV4AXyIVivyK1CHx K9Z5r9fAfN3OjxCxGSmRXwfUVvUrFmEX9ZQlF5d3UAte6gEti8tMPaLuijcH+S3ulfvV 7/eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732931117; x=1733535917; 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=XGdJvJMseRnvPzCSR0xijdS83gOrTA2HdjB32n+Yub4=; b=LfrP364ajyKWtH7AhIz0Ws1spCTEXOgMimrv8neLnsHKg6w7CW3ejQzoGq/3PZYu+x 7Jw6WyytAIYk8jGxS1qu37+yK3/RYYNruI2WkwNHvQ7OaG5YYQDgy/CKYVFgTl0d9oi7 /ssmru4GbmaSmd5McqP1t7XiGvzVjwf6wR4iXKDk8gR+YhKsABJIOJ+nJH0IFP/EULdA HH5bs3EpC6ZYcZ4nUyr4+bHGNGfTh3wEf3DXxLl+deqnn50GLY+ShN6AO6aN/3DogHPk PC39BmCEcxCdyZpiAIMReI640T1wUJ+nxG/TmRa/Yya2urIM+rvtPggbRFuTyU7wpUDA f1YQ== X-Forwarded-Encrypted: i=1; AJvYcCXDNIhKoDqqDhp04eLrmFnnpIt0F18mVr8c9bKB7cqyiCGsSWirFN/iSsaooaAkR1Ly0BuNkS3WNZQBEmk=@vger.kernel.org X-Gm-Message-State: AOJu0YyaT7DsFS3WmZc1Ck+GjZE8+5NliB4ooy4o3HOGjp063VEPM1tR Z4yWUaf+Fx9DYTwsZfAJsbYOhexXjJhKlBBjHRNa98lvtXhvkvXJMAhZtb/WkFE= X-Gm-Gg: ASbGncuRPUxqdllGBuRqPFGFdDz6TtnVOkoJB7my2i8oFx0tDao306QF/ruKOIJCdb7 lFuUDtBRQiH28AAeTIKiqpjYCCxvv+h0qz20g6e0mUgwBLZDR6126oInLTYXHLSfAhdCp8Uhf1w F7LRA9nlY736pGYYzxsUMgCzXdw+IICzrboEzAh18y4SuKxFMlp35pMcpti06Npbs5ySZh6sFSf U/x2YSVnBPEHMlFIL7/Bsu4Hfn0PwWWEsEnu1mQjpLmqKtYsczN4jQvQg== X-Google-Smtp-Source: AGHT+IF7n8cNmi8xhY+pXRXykzFNNknTCu8fREH9pgpXbM7CyHY+hZCaNQnAD3oebkFEc6iH3MGoOA== X-Received: by 2002:a05:6512:3b27:b0:53d:f042:c66c with SMTP id 2adb3069b0e04-53df50795b2mr2997672e87.23.1732931117425; Fri, 29 Nov 2024 17:45:17 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2024 17:45:16 -0800 (PST) From: Dmitry Baryshkov Date: Sat, 30 Nov 2024 03:44:33 +0200 Subject: [PATCH v2 21/31] arm64: dts: qcom: ipq5332: move board clocks to ipq5332.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-21-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=1803; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=dkeL8p4HqSsIjxDugM32Q10QGE/4T67RadiEMJJD0gI=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBnSm32X/ox1dWMNmNpSwGRsBnocHf/cdBjMzQVw 7vsl7U7+KOJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZ0pt9gAKCRCLPIo+Aiko 1d7hB/9+/oXyifnNs5CTfv485a6zBmhHI3Ptc77Y4K8SMCjRhkvmwqRbkPsUVqtVSWReNxdLTY3 9LxoWLzJ9M6KrgY81QkFxwps8zZHSVKlOUTCrP3YI2BNOwbZ6lxLEsv3vxGsRGngTEGd3+oebk6 ySHLdyBQ8ms6pJ4r8vIGjYgtbq0+xi7xNCAU5joyQKlSBWmDX8OFSkb4BNLEaCkcXgw9qMjzsNd 62ZdknBL0xgtKGJ2ZdX47N/EbkOV876Jxvs6IItK3Vt1s6fnmvoTb6JgvT80AY+Pi1FNV7mXNx4 C0B8Q0+vwZcUvjUqvOtRXPm5eIF8d+0a6g4DfBn/iEf4OmHT X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A IPQ5332 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/ipq5332-rdp-common.dtsi | 8 -------- arch/arm64/boot/dts/qcom/ipq5332.dtsi | 2 ++ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq5332-rdp-common.dtsi b/arch/arm64/= boot/dts/qcom/ipq5332-rdp-common.dtsi index b37ae7749083f43f482231c1de9f99ac28ea2b66..efe4ed4a5d9fabad1137fc7211c= 95ef38e69c0be 100644 --- a/arch/arm64/boot/dts/qcom/ipq5332-rdp-common.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5332-rdp-common.dtsi @@ -55,14 +55,6 @@ &blsp1_uart0 { status =3D "okay"; }; =20 -&sleep_clk { - clock-frequency =3D <32000>; -}; - -&xo_board { - clock-frequency =3D <24000000>; -}; - /* PINCTRL */ &tlmm { gpio_keys_default: gpio-keys-default-state { diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qc= om/ipq5332.dtsi index d3c3e215a15cfc3998f8e30656828a46b6991898..29feb27df5d4314bb2d2eac50ab= 320e173e8c7f9 100644 --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi @@ -19,11 +19,13 @@ clocks { sleep_clk: sleep-clk { compatible =3D "fixed-clock"; #clock-cells =3D <0>; + clock-frequency =3D <32000>; }; =20 xo_board: xo-board-clk { compatible =3D "fixed-clock"; #clock-cells =3D <0>; + clock-frequency =3D <24000000>; }; }; =20 --=20 2.39.5