ipq806x: 6.1: copy patches, files and config from 5.15
[openwrt/staging/ldir.git] / target / linux / ipq806x / patches-6.1 / 103-v5.19-ARM-dts-qcom-add-syscon-and-cxo-pxo-clock-to-gcc-nod.patch
1 From a5ba119455c77a07e05f2fe0af446c8bf43d1a00 Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Sat, 26 Feb 2022 14:52:35 +0100
4 Subject: [PATCH] ARM: dts: qcom: add syscon and cxo/pxo clock to gcc node for
5 ipq8064
6
7 Add syscon compatible required for tsens driver to correctly probe driver
8 and access the reg. Also add cxo and pxo tag and declare them as gcc clock
9 now requires them for the ipq8064 gcc driver that has now been modernized.
10
11 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
12 Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
13 Reviewed-by: Stephen Boyd <sboyd@kernel.org>
14 Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
15 Link: https://lore.kernel.org/r/20220226135235.10051-16-ansuelsmth@gmail.com
16 ---
17 arch/arm/boot/dts/qcom-ipq8064.dtsi | 8 +++++---
18 1 file changed, 5 insertions(+), 3 deletions(-)
19
20 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
21 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
22 @@ -298,13 +298,13 @@
23 };
24
25 clocks {
26 - cxo_board {
27 + cxo_board: cxo_board {
28 compatible = "fixed-clock";
29 #clock-cells = <0>;
30 clock-frequency = <25000000>;
31 };
32
33 - pxo_board {
34 + pxo_board: pxo_board {
35 compatible = "fixed-clock";
36 #clock-cells = <0>;
37 clock-frequency = <25000000>;
38 @@ -736,7 +736,9 @@
39 };
40
41 gcc: clock-controller@900000 {
42 - compatible = "qcom,gcc-ipq8064";
43 + compatible = "qcom,gcc-ipq8064", "syscon";
44 + clocks = <&pxo_board>, <&cxo_board>;
45 + clock-names = "pxo", "cxo";
46 reg = <0x00900000 0x4000>;
47 #clock-cells = <1>;
48 #reset-cells = <1>;