Skip to content

Commit 6279026

Browse files
committed
Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
Pull ARM SoC fixes from Olof Johansson: "We've been accruing these for a couple of weeks, so the batch is a bit bigger than usual. Largest delta is due to a led-bl driver that is added -- there was a miscommunication before the merge window and the driver didn't make it in. Due to this, the platforms needing it regressed. At this point, it seemed easier to add the new driver than unwind the changes. Besides that, there are a handful of various fixes: - AMD tee memory leak fix - A handful of fixlets for i.MX SCU communication - A few maintainers woke up and realized DEBUG_FS had been missing for a while, so a few updates of that. ... and the usual collection of smaller fixes to various platforms" * tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (37 commits) ARM: socfpga_defconfig: Add back DEBUG_FS arm64: dts: socfpga: agilex: Fix gmac compatible ARM: bcm2835_defconfig: Explicitly restore CONFIG_DEBUG_FS arm64: dts: meson: fix gxm-khadas-vim2 wifi arm64: dts: meson-sm1-sei610: add missing interrupt-names ARM: meson: Drop unneeded select of COMMON_CLK ARM: dts: bcm2711: Add pcie0 alias ARM: dts: bcm283x: Add missing properties to the PWR LED tee: amdtee: fix memory leak in amdtee_open_session() ARM: OMAP2+: Fix compile if CONFIG_HAVE_ARM_SMCCC is not set arm: dts: dra76x: Fix mmc3 max-frequency ARM: dts: dra7: Add "dma-ranges" property to PCIe RC DT nodes bus: ti-sysc: Fix 1-wire reset quirk ARM: dts: r8a7779: Remove deprecated "renesas, rcar-sata" compatible value soc: imx-scu: Align imx sc msg structs to 4 firmware: imx: Align imx_sc_msg_req_cpu_start to 4 firmware: imx: scu-pd: Align imx sc msg structs to 4 firmware: imx: misc: Align imx sc msg structs to 4 firmware: imx: scu: Ensure sequential TX ARM: dts: imx7-colibri: Fix frequency for sd/mmc ...
2 parents efe582a + d4d89e2 commit 6279026

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+416
-91
lines changed

Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ properties:
2323
description: Global reset register offset and bit offset.
2424
allOf:
2525
- $ref: /schemas/types.yaml#/definitions/uint32-array
26-
- maxItems: 2
26+
items:
27+
- description: Register offset
28+
- description: Register bit offset
29+
minimum: 0
30+
maximum: 31
2731

2832
"#reset-cells":
2933
minimum: 2

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14226,7 +14226,7 @@ F: include/dt-bindings/reset/
1422614226
F: include/linux/reset.h
1422714227
F: include/linux/reset/
1422814228
F: include/linux/reset-controller.h
14229-
K: \b(?:devm_|of_)?reset_control(?:ler_[a-z]+|_[a-z_]+)?\b
14229+
K: \b(?:devm_|of_)?reset_control(?:ler_[a-z]+|_[a-z_]+)?\b
1423014230

1423114231
RESTARTABLE SEQUENCES SUPPORT
1423214232
M: Mathieu Desnoyers <[email protected]>

arch/arm/boot/dts/am437x-idk-evm.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,11 +526,11 @@
526526
* Supply voltage supervisor on board will not allow opp50 so
527527
* disable it and set opp100 as suspend OPP.
528528
*/
529-
opp50@300000000 {
529+
opp50-300000000 {
530530
status = "disabled";
531531
};
532532

533-
opp100@600000000 {
533+
opp100-600000000 {
534534
opp-suspend;
535535
};
536536
};

arch/arm/boot/dts/bcm2711-rpi-4-b.dts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
aliases {
2323
ethernet0 = &genet;
24+
pcie0 = &pcie0;
2425
};
2526

2627
leds {
@@ -31,6 +32,8 @@
3132
pwr {
3233
label = "PWR";
3334
gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
35+
default-state = "keep";
36+
linux,default-trigger = "default-on";
3437
};
3538
};
3639

arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
pwr {
2727
label = "PWR";
2828
gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
29+
default-state = "keep";
30+
linux,default-trigger = "default-on";
2931
};
3032
};
3133
};

arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
pwr {
2828
label = "PWR";
2929
gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
30+
default-state = "keep";
31+
linux,default-trigger = "default-on";
3032
};
3133
};
3234

arch/arm/boot/dts/dra7-evm.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@
6161
regulator-max-microvolt = <1800000>;
6262
};
6363

64-
evm_3v3: fixedregulator-evm3v3 {
64+
vsys_3v3: fixedregulator-vsys3v3 {
6565
/* Output of Cntlr A of TPS43351-Q1 on dra7-evm */
6666
compatible = "regulator-fixed";
67-
regulator-name = "evm_3v3";
67+
regulator-name = "vsys_3v3";
6868
regulator-min-microvolt = <3300000>;
6969
regulator-max-microvolt = <3300000>;
7070
vin-supply = <&evm_12v0>;

arch/arm/boot/dts/dra7-l4.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3474,6 +3474,7 @@
34743474
clocks = <&l4per3_clkctrl DRA7_L4PER3_TIMER13_CLKCTRL 24>;
34753475
clock-names = "fck";
34763476
interrupts = <GIC_SPI 339 IRQ_TYPE_LEVEL_HIGH>;
3477+
ti,timer-pwm;
34773478
};
34783479
};
34793480

@@ -3501,6 +3502,7 @@
35013502
clocks = <&l4per3_clkctrl DRA7_L4PER3_TIMER14_CLKCTRL 24>;
35023503
clock-names = "fck";
35033504
interrupts = <GIC_SPI 340 IRQ_TYPE_LEVEL_HIGH>;
3505+
ti,timer-pwm;
35043506
};
35053507
};
35063508

@@ -3528,6 +3530,7 @@
35283530
clocks = <&l4per3_clkctrl DRA7_L4PER3_TIMER15_CLKCTRL 24>;
35293531
clock-names = "fck";
35303532
interrupts = <GIC_SPI 341 IRQ_TYPE_LEVEL_HIGH>;
3533+
ti,timer-pwm;
35313534
};
35323535
};
35333536

@@ -3555,6 +3558,7 @@
35553558
clocks = <&l4per3_clkctrl DRA7_L4PER3_TIMER16_CLKCTRL 24>;
35563559
clock-names = "fck";
35573560
interrupts = <GIC_SPI 342 IRQ_TYPE_LEVEL_HIGH>;
3561+
ti,timer-pwm;
35583562
};
35593563
};
35603564

arch/arm/boot/dts/dra7.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
device_type = "pci";
185185
ranges = <0x81000000 0 0 0x03000 0 0x00010000
186186
0x82000000 0 0x20013000 0x13000 0 0xffed000>;
187+
dma-ranges = <0x02000000 0x0 0x00000000 0x00000000 0x1 0x00000000>;
187188
bus-range = <0x00 0xff>;
188189
#interrupt-cells = <1>;
189190
num-lanes = <1>;
@@ -238,6 +239,7 @@
238239
device_type = "pci";
239240
ranges = <0x81000000 0 0 0x03000 0 0x00010000
240241
0x82000000 0 0x30013000 0x13000 0 0xffed000>;
242+
dma-ranges = <0x02000000 0x0 0x00000000 0x00000000 0x1 0x00000000>;
241243
bus-range = <0x00 0xff>;
242244
#interrupt-cells = <1>;
243245
num-lanes = <1>;

arch/arm/boot/dts/dra76x.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,8 @@
128128
&usb4_tm {
129129
status = "disabled";
130130
};
131+
132+
&mmc3 {
133+
/* dra76x is not affected by i887 */
134+
max-frequency = <96000000>;
135+
};

arch/arm/boot/dts/dra7xx-clocks.dtsi

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -796,16 +796,6 @@
796796
clock-div = <1>;
797797
};
798798

799-
ipu1_gfclk_mux: ipu1_gfclk_mux@520 {
800-
#clock-cells = <0>;
801-
compatible = "ti,mux-clock";
802-
clocks = <&dpll_abe_m2x2_ck>, <&dpll_core_h22x2_ck>;
803-
ti,bit-shift = <24>;
804-
reg = <0x0520>;
805-
assigned-clocks = <&ipu1_gfclk_mux>;
806-
assigned-clock-parents = <&dpll_core_h22x2_ck>;
807-
};
808-
809799
dummy_ck: dummy_ck {
810800
#clock-cells = <0>;
811801
compatible = "fixed-clock";
@@ -1564,6 +1554,8 @@
15641554
compatible = "ti,clkctrl";
15651555
reg = <0x20 0x4>;
15661556
#clock-cells = <2>;
1557+
assigned-clocks = <&ipu1_clkctrl DRA7_IPU1_MMU_IPU1_CLKCTRL 24>;
1558+
assigned-clock-parents = <&dpll_core_h22x2_ck>;
15671559
};
15681560

15691561
ipu_clkctrl: ipu-clkctrl@50 {

arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275

276276
/* SRAM on Colibri nEXT_CS0 */
277277
sram@0,0 {
278-
compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram";
278+
compatible = "cypress,cy7c1019dv33-10zsxi", "mtd-ram";
279279
reg = <0 0 0x00010000>;
280280
#address-cells = <1>;
281281
#size-cells = <1>;
@@ -286,7 +286,7 @@
286286

287287
/* SRAM on Colibri nEXT_CS1 */
288288
sram@1,0 {
289-
compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram";
289+
compatible = "cypress,cy7c1019dv33-10zsxi", "mtd-ram";
290290
reg = <1 0 0x00010000>;
291291
#address-cells = <1>;
292292
#size-cells = <1>;

arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@
192192
pinctrl-0 = <&pinctrl_usdhc4>;
193193
bus-width = <8>;
194194
non-removable;
195-
vmmc-supply = <&vdd_emmc_1p8>;
196195
status = "disabled";
197196
};
198197

arch/arm/boot/dts/imx7-colibri.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@
336336
assigned-clock-rates = <400000000>;
337337
bus-width = <8>;
338338
fsl,tuning-step = <2>;
339-
max-frequency = <100000000>;
340339
vmmc-supply = <&reg_module_3v3>;
341340
vqmmc-supply = <&reg_DCDC3>;
342341
non-removable;

arch/arm/boot/dts/imx7d.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,23 @@
4444
opp-hz = /bits/ 64 <792000000>;
4545
opp-microvolt = <1000000>;
4646
clock-latency-ns = <150000>;
47-
opp-supported-hw = <0xd>, <0xf>;
47+
opp-supported-hw = <0xd>, <0x7>;
4848
opp-suspend;
4949
};
5050

5151
opp-996000000 {
5252
opp-hz = /bits/ 64 <996000000>;
5353
opp-microvolt = <1100000>;
5454
clock-latency-ns = <150000>;
55-
opp-supported-hw = <0xc>, <0xf>;
55+
opp-supported-hw = <0xc>, <0x7>;
5656
opp-suspend;
5757
};
5858

5959
opp-1200000000 {
6060
opp-hz = /bits/ 64 <1200000000>;
6161
opp-microvolt = <1225000>;
6262
clock-latency-ns = <150000>;
63-
opp-supported-hw = <0x8>, <0xf>;
63+
opp-supported-hw = <0x8>, <0x3>;
6464
opp-suspend;
6565
};
6666
};

arch/arm/boot/dts/ls1021a.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@
747747
};
748748

749749
mdio0: mdio@2d24000 {
750-
compatible = "fsl,etsec2-mdio";
750+
compatible = "gianfar";
751751
device_type = "mdio";
752752
#address-cells = <1>;
753753
#size-cells = <0>;
@@ -756,7 +756,7 @@
756756
};
757757

758758
mdio1: mdio@2d64000 {
759-
compatible = "fsl,etsec2-mdio";
759+
compatible = "gianfar";
760760
device_type = "mdio";
761761
#address-cells = <1>;
762762
#size-cells = <0>;

arch/arm/boot/dts/motorola-mapphone-common.dtsi

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,14 @@
182182
pwm-names = "enable", "direction";
183183
direction-duty-cycle-ns = <10000000>;
184184
};
185+
186+
backlight: backlight {
187+
compatible = "led-backlight";
188+
189+
leds = <&backlight_led>;
190+
brightness-levels = <31 63 95 127 159 191 223 255>;
191+
default-brightness-level = <6>;
192+
};
185193
};
186194

187195
&dss {
@@ -205,6 +213,8 @@
205213
vddi-supply = <&lcd_regulator>;
206214
reset-gpios = <&gpio4 5 GPIO_ACTIVE_HIGH>; /* gpio101 */
207215

216+
backlight = <&backlight>;
217+
208218
width-mm = <50>;
209219
height-mm = <89>;
210220

@@ -393,12 +403,11 @@
393403
ramp-up-us = <1024>;
394404
ramp-down-us = <8193>;
395405

396-
led@0 {
406+
backlight_led: led@0 {
397407
reg = <0>;
398408
led-sources = <2>;
399409
ti,led-mode = <0>;
400410
label = ":backlight";
401-
linux,default-trigger = "backlight";
402411
};
403412

404413
led@1 {

arch/arm/boot/dts/r8a7779.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@
377377
};
378378

379379
sata: sata@fc600000 {
380-
compatible = "renesas,sata-r8a7779", "renesas,rcar-sata";
380+
compatible = "renesas,sata-r8a7779";
381381
reg = <0xfc600000 0x200000>;
382382
interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
383383
clocks = <&mstp1_clks R8A7779_CLK_SATA>;

arch/arm/configs/bcm2835_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ CONFIG_SCHED_TRACER=y
178178
CONFIG_STACK_TRACER=y
179179
CONFIG_FUNCTION_PROFILER=y
180180
CONFIG_TEST_KSTRTOX=y
181+
CONFIG_DEBUG_FS=y
181182
CONFIG_KGDB=y
182183
CONFIG_KGDB_KDB=y
183184
CONFIG_STRICT_DEVMEM=y

arch/arm/configs/omap2plus_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ CONFIG_BACKLIGHT_GENERIC=m
375375
CONFIG_BACKLIGHT_PWM=m
376376
CONFIG_BACKLIGHT_PANDORA=m
377377
CONFIG_BACKLIGHT_GPIO=m
378+
CONFIG_BACKLIGHT_LED=m
378379
CONFIG_FRAMEBUFFER_CONSOLE=y
379380
CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
380381
CONFIG_LOGO=y

arch/arm/configs/socfpga_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ CONFIG_NLS_ISO8859_1=y
157157
CONFIG_PRINTK_TIME=y
158158
CONFIG_DEBUG_INFO=y
159159
CONFIG_MAGIC_SYSRQ=y
160+
CONFIG_DEBUG_FS=y
160161
CONFIG_DETECT_HUNG_TASK=y
161162
# CONFIG_SCHED_DEBUG is not set
162163
CONFIG_FUNCTION_TRACER=y

arch/arm/mach-imx/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ AFLAGS_suspend-imx6.o :=-Wa,-march=armv7-a
9191
obj-$(CONFIG_SOC_IMX6) += suspend-imx6.o
9292
obj-$(CONFIG_SOC_IMX53) += suspend-imx53.o
9393
endif
94+
AFLAGS_resume-imx6.o :=-Wa,-march=armv7-a
95+
obj-$(CONFIG_SOC_IMX6) += resume-imx6.o
9496
obj-$(CONFIG_SOC_IMX6) += pm-imx6.o
9597

9698
obj-$(CONFIG_SOC_IMX1) += mach-imx1.o

arch/arm/mach-imx/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,17 @@ void imx_cpu_die(unsigned int cpu);
109109
int imx_cpu_kill(unsigned int cpu);
110110

111111
#ifdef CONFIG_SUSPEND
112-
void v7_cpu_resume(void);
113112
void imx53_suspend(void __iomem *ocram_vbase);
114113
extern const u32 imx53_suspend_sz;
115114
void imx6_suspend(void __iomem *ocram_vbase);
116115
#else
117-
static inline void v7_cpu_resume(void) {}
118116
static inline void imx53_suspend(void __iomem *ocram_vbase) {}
119117
static const u32 imx53_suspend_sz;
120118
static inline void imx6_suspend(void __iomem *ocram_vbase) {}
121119
#endif
122120

121+
void v7_cpu_resume(void);
122+
123123
void imx6_pm_ccm_init(const char *ccm_compat);
124124
void imx6q_pm_init(void);
125125
void imx6dl_pm_init(void);

arch/arm/mach-imx/resume-imx6.S

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
2+
/*
3+
* Copyright 2014 Freescale Semiconductor, Inc.
4+
*/
5+
6+
#include <linux/linkage.h>
7+
#include <asm/assembler.h>
8+
#include <asm/asm-offsets.h>
9+
#include <asm/hardware/cache-l2x0.h>
10+
#include "hardware.h"
11+
12+
/*
13+
* The following code must assume it is running from physical address
14+
* where absolute virtual addresses to the data section have to be
15+
* turned into relative ones.
16+
*/
17+
18+
ENTRY(v7_cpu_resume)
19+
bl v7_invalidate_l1
20+
#ifdef CONFIG_CACHE_L2X0
21+
bl l2c310_early_resume
22+
#endif
23+
b cpu_resume
24+
ENDPROC(v7_cpu_resume)

arch/arm/mach-imx/suspend-imx6.S

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -327,17 +327,3 @@ resume:
327327

328328
ret lr
329329
ENDPROC(imx6_suspend)
330-
331-
/*
332-
* The following code must assume it is running from physical address
333-
* where absolute virtual addresses to the data section have to be
334-
* turned into relative ones.
335-
*/
336-
337-
ENTRY(v7_cpu_resume)
338-
bl v7_invalidate_l1
339-
#ifdef CONFIG_CACHE_L2X0
340-
bl l2c310_early_resume
341-
#endif
342-
b cpu_resume
343-
ENDPROC(v7_cpu_resume)

arch/arm/mach-meson/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ menuconfig ARCH_MESON
99
select CACHE_L2X0
1010
select PINCTRL
1111
select PINCTRL_MESON
12-
select COMMON_CLK
1312
select HAVE_ARM_SCU if SMP
1413
select HAVE_ARM_TWD if SMP
1514

0 commit comments

Comments
 (0)