From patchwork Sat Nov 30 01:44:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13889065 Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 40D821A725A for ; Sat, 30 Nov 2024 01:45:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732931120; cv=none; b=TVKlF0kaRgZAdMeGxvOu7hTPj3RBYy7X+hS/FDTG6LNEoRgDtfj5br3FeEp0uqOBydxSDye9Z57M1ZtOGGEr0ecte8CxjhcvX2Cgc+9iFs7ofER6vLD0ijF0KwliDCJNY8fR203FXyZ0D3cCJB2gxvhxEy0x+In/VwqxEUVEwdE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732931120; c=relaxed/simple; bh=dkeL8p4HqSsIjxDugM32Q10QGE/4T67RadiEMJJD0gI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FfflsjVzs0wTVUVMjto684u2DPPZcjhG9+/Q08wqta4OzehenT6bRmSf2c2dH8xHIw9OVqHbIsH8gSC5WzUZuEGMaxAL1z0/+4mABFbGvGBoVuFFL+w4FjbmhASUd9FVSDzMOqyzVR4EieDHD3i8Em5sQVeEseXzOHqQxsrSLPU= 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.171 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-f171.google.com with SMTP id 38308e7fff4ca-2ffd711274dso29483911fa.0 for ; Fri, 29 Nov 2024 17:45:19 -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=sVNnESuSq2DDbcR3yB0Y2309gs6bnd1PCV8J8TFl/UYsQF4jDsgdSJNEQDOPvmGKG1 2+uGLcDJD69DBk1uOBVAweKLy0GsjV96MY/AlvcLph1rsGNG3C9sRDIEpl3+8XxnV7rt ou27Arwk1TbRwhjhpj3bx+rUFvRGWf3S/YeB3Iv4Fj0DriTV3TGWeQ40hVcHcPjjMzd9 jrCSoR+bFu0Va7cstakjt6ql/VwIrML5FAe4R3jK01j2JO8L8dShh9uPdPEZrZ1FIi/z jE2ZATZEVsPiihiAkGtmc9jtOsAsLPwQL135LKcQOuIiJKPYMQ6D07Z9TNzPKCvXONYN t3hw== X-Forwarded-Encrypted: i=1; AJvYcCVCtqJnABcYpfU3PnoR2/UKvevHTuMJxA8f73sWlY9M2Z1wIQ3c/Unmfz/RhwPUYToIhkdU5FaHmHAHstAV@vger.kernel.org X-Gm-Message-State: AOJu0Yz2b0sZneJSISsEzo3f1pMgHEKDn7TPj0FG3kMRTahgjnlNTuEf GWl+/gp4Z9aK+/alRmLgn4rEFp4QSW2xrHuiNUL+J2y1ODK+wUZmVLxl8EkSES0= X-Gm-Gg: ASbGncsVv4/SFHrZ4iP+19wNbv7Z7aLKY+UjlkrknU/fisf+XalN9geyiHrntxt6csm 7a+Gml4JXP5WMTcyH+K1oVwhHBMb+aDJucyef0lW9iNTWZ2RatTZCRiJXywxxb+HrckHPSp2uPs xWDvnQOT4xbjka+2DgC3zNtTRT+hgMdJANXaB7N3/rYbYYoiSTlDRJUaKydD+7pXDTL/6dWUh48 VSx8Y8+oaVqz/DbAhn7AFtl/kN+l1Mz88C6xcV4uT+GcyR5deaa1dFvjg== 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-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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..efe4ed4a5d9fabad1137fc7211c95ef38e69c0be 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 = "okay"; }; -&sleep_clk { - clock-frequency = <32000>; -}; - -&xo_board { - clock-frequency = <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/qcom/ipq5332.dtsi index d3c3e215a15cfc3998f8e30656828a46b6991898..29feb27df5d4314bb2d2eac50ab320e173e8c7f9 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 = "fixed-clock"; #clock-cells = <0>; + clock-frequency = <32000>; }; xo_board: xo-board-clk { compatible = "fixed-clock"; #clock-cells = <0>; + clock-frequency = <24000000>; }; };