Skip to content

Commit 4550bdb

Browse files
committed
Merge tag 'sunxi-fixes-for-4.0' of https://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux into fixes
Allwinner fixes for 4.0 There's a few fixes to merge for 4.0, one to add a select in the machine Kconfig option to fix a potential build failure, and two fixing cpufreq related issues. * tag 'sunxi-fixes-for-4.0' of https://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux: ARM: dts: sunxi: Remove overclocked/overvoltaged OPP ARM: dts: sun4i: a10-lime: Override and remove 1008MHz OPP setting ARM: sunxi: Have ARCH_SUNXI select RESET_CONTROLLER for clock driver usage Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents b1dae3d + 370a9b5 commit 4550bdb

File tree

5 files changed

+21
-12
lines changed

5 files changed

+21
-12
lines changed

arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,22 @@
5656
model = "Olimex A10-OLinuXino-LIME";
5757
compatible = "olimex,a10-olinuxino-lime", "allwinner,sun4i-a10";
5858

59+
cpus {
60+
cpu0: cpu@0 {
61+
/*
62+
* The A10-Lime is known to be unstable
63+
* when running at 1008 MHz
64+
*/
65+
operating-points = <
66+
/* kHz uV */
67+
912000 1350000
68+
864000 1300000
69+
624000 1250000
70+
>;
71+
cooling-max-level = <2>;
72+
};
73+
};
74+
5975
soc@01c00000 {
6076
emac: ethernet@01c0b000 {
6177
pinctrl-names = "default";

arch/arm/boot/dts/sun4i-a10.dtsi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,14 @@
7575
clock-latency = <244144>; /* 8 32k periods */
7676
operating-points = <
7777
/* kHz uV */
78-
1056000 1500000
7978
1008000 1400000
8079
912000 1350000
8180
864000 1300000
8281
624000 1250000
8382
>;
8483
#cooling-cells = <2>;
8584
cooling-min-level = <0>;
86-
cooling-max-level = <4>;
85+
cooling-max-level = <3>;
8786
};
8887
};
8988

arch/arm/boot/dts/sun5i-a13.dtsi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
clock-latency = <244144>; /* 8 32k periods */
4848
operating-points = <
4949
/* kHz uV */
50-
1104000 1500000
5150
1008000 1400000
5251
912000 1350000
5352
864000 1300000
@@ -57,7 +56,7 @@
5756
>;
5857
#cooling-cells = <2>;
5958
cooling-min-level = <0>;
60-
cooling-max-level = <6>;
59+
cooling-max-level = <5>;
6160
};
6261
};
6362

arch/arm/boot/dts/sun7i-a20.dtsi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@
105105
clock-latency = <244144>; /* 8 32k periods */
106106
operating-points = <
107107
/* kHz uV */
108-
1008000 1450000
109108
960000 1400000
110109
912000 1400000
111110
864000 1300000
@@ -116,7 +115,7 @@
116115
>;
117116
#cooling-cells = <2>;
118117
cooling-min-level = <0>;
119-
cooling-max-level = <7>;
118+
cooling-max-level = <6>;
120119
};
121120

122121
cpu@1 {

arch/arm/mach-sunxi/Kconfig

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
menuconfig ARCH_SUNXI
22
bool "Allwinner SoCs" if ARCH_MULTI_V7
33
select ARCH_REQUIRE_GPIOLIB
4+
select ARCH_HAS_RESET_CONTROLLER
45
select CLKSRC_MMIO
56
select GENERIC_IRQ_CHIP
67
select PINCTRL
78
select SUN4I_TIMER
9+
select RESET_CONTROLLER
810

911
if ARCH_SUNXI
1012

@@ -20,10 +22,8 @@ config MACH_SUN5I
2022
config MACH_SUN6I
2123
bool "Allwinner A31 (sun6i) SoCs support"
2224
default ARCH_SUNXI
23-
select ARCH_HAS_RESET_CONTROLLER
2425
select ARM_GIC
2526
select MFD_SUN6I_PRCM
26-
select RESET_CONTROLLER
2727
select SUN5I_HSTIMER
2828

2929
config MACH_SUN7I
@@ -37,16 +37,12 @@ config MACH_SUN7I
3737
config MACH_SUN8I
3838
bool "Allwinner A23 (sun8i) SoCs support"
3939
default ARCH_SUNXI
40-
select ARCH_HAS_RESET_CONTROLLER
4140
select ARM_GIC
4241
select MFD_SUN6I_PRCM
43-
select RESET_CONTROLLER
4442

4543
config MACH_SUN9I
4644
bool "Allwinner (sun9i) SoCs support"
4745
default ARCH_SUNXI
48-
select ARCH_HAS_RESET_CONTROLLER
4946
select ARM_GIC
50-
select RESET_CONTROLLER
5147

5248
endif

0 commit comments

Comments
 (0)