ipq806x: 6.1: copy patches, files and config from 5.15
[openwrt/staging/ansuel.git] / target / linux / ipq806x / patches-6.1 / 103-01-ARM-dts-qcom-replace-gcc-PXO-with-pxo_board-fixed.patch
1 From 5a8aa766cedac0ceaa4beabc30e9fa62dd9f1ac1 Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Fri, 29 Apr 2022 14:23:16 +0200
4 Subject: [PATCH v2 1/2] ARM: dts: qcom: replace gcc PXO with pxo_board fixed
5 clock
6
7 Replace gcc PXO phandle to pxo_board fixed clock declared in the dts.
8 gcc driver doesn't provide PXO_SRC as it's a fixed-clock. This cause a
9 kernel panic if any driver actually try to use it.
10
11 Fixes: 40cf5c884a96 ("ARM: dts: qcom: add L2CC and RPM for IPQ8064")
12 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
13 ---
14 arch/arm/boot/dts/qcom-ipq8064.dtsi | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
18 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
19 @@ -304,7 +304,7 @@
20 clock-frequency = <25000000>;
21 };
22
23 - pxo_board {
24 + pxo_board: pxo_board {
25 compatible = "fixed-clock";
26 #clock-cells = <0>;
27 clock-frequency = <25000000>;
28 @@ -782,7 +782,7 @@
29 l2cc: clock-controller@2011000 {
30 compatible = "qcom,kpss-gcc", "syscon";
31 reg = <0x2011000 0x1000>;
32 - clocks = <&gcc PLL8_VOTE>, <&gcc PXO_SRC>;
33 + clocks = <&gcc PLL8_VOTE>, <&pxo_board>;
34 clock-names = "pll8_vote", "pxo";
35 clock-output-names = "acpu_l2_aux";
36 };