mvebu: Add basic support for WRT1900AC (v1) and Turris Omnia (pre 2019)
[librecmc/librecmc.git] / target / linux / mvebu / patches-4.14 / 507-arm64-dts-marvell-armada-37xx-add-nodes-allowing-cpu.patch
1 From e8d66e7927b2a15310df0eb44a67d120ea147a59 Mon Sep 17 00:00:00 2001
2 From: Gregory CLEMENT <gregory.clement@free-electrons.com>
3 Date: Thu, 14 Dec 2017 16:00:06 +0100
4 Subject: arm64: dts: marvell: armada-37xx: add nodes allowing cpufreq
5  support
6
7 In order to be able to use cpu freq, we need to associate a clock to each
8 CPU and to expose the power management registers.
9
10 Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
11 ---
12  arch/arm64/boot/dts/marvell/armada-372x.dtsi | 1 +
13  arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 7 +++++++
14  2 files changed, 8 insertions(+)
15
16 --- a/arch/arm64/boot/dts/marvell/armada-372x.dtsi
17 +++ b/arch/arm64/boot/dts/marvell/armada-372x.dtsi
18 @@ -56,6 +56,7 @@
19                         device_type = "cpu";
20                         compatible = "arm,cortex-a53","arm,armv8";
21                         reg = <0x1>;
22 +                       clocks = <&nb_periph_clk 16>;
23                         enable-method = "psci";
24                 };
25         };
26 --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
27 +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
28 @@ -64,6 +64,7 @@
29                         device_type = "cpu";
30                         compatible = "arm,cortex-a53", "arm,armv8";
31                         reg = <0>;
32 +                       clocks = <&nb_periph_clk 16>;
33                         enable-method = "psci";
34                 };
35         };
36 @@ -219,6 +220,12 @@
37                                 };
38                         };
39  
40 +                       nb_pm: syscon@14000 {
41 +                               compatible = "marvell,armada-3700-nb-pm",
42 +                                            "syscon";
43 +                               reg = <0x14000 0x60>;
44 +                       };
45 +
46                         pinctrl_sb: pinctrl@18800 {
47                                 compatible = "marvell,armada3710-sb-pinctrl",
48                                              "syscon", "simple-mfd";