ipq806x: 6.1: copy patches, files and config from 5.15
[openwrt/staging/ansuel.git] / target / linux / ipq806x / patches-6.1 / 103-v5.19-02-ARM-dts-qcom-add-syscon-and-cxo-pxo-clock-to-gcc-.patch
1 From 9fa82f98cb85e5432060f469253adcf14fa38082 Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Mon, 17 Jan 2022 21:59:39 +0100
4 Subject: [PATCH v2 2/2] ARM: dts: qcom: add syscon and cxo/pxo clock to gcc
5 node for 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 ---
15 arch/arm/boot/dts/qcom-ipq8064.dtsi | 6 ++++--
16 1 file changed, 4 insertions(+), 2 deletions(-)
17
18 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
19 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
20 @@ -298,7 +298,7 @@
21 };
22
23 clocks {
24 - cxo_board {
25 + cxo_board: cxo_board {
26 compatible = "fixed-clock";
27 #clock-cells = <0>;
28 clock-frequency = <25000000>;
29 @@ -736,7 +736,9 @@
30 };
31
32 gcc: clock-controller@900000 {
33 - compatible = "qcom,gcc-ipq8064";
34 + compatible = "qcom,gcc-ipq8064", "syscon";
35 + clocks = <&pxo_board>, <&cxo_board>;
36 + clock-names = "pxo", "cxo";
37 reg = <0x00900000 0x4000>;
38 #clock-cells = <1>;
39 #reset-cells = <1>;