diff options
author | Kevin Hilman <khilman@linaro.org> | 2015-06-08 13:31:34 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@linaro.org> | 2015-06-08 13:32:55 -0400 |
commit | 0a68c6bc7ce9d4855f3130f9eff8ff774b597531 (patch) | |
tree | 5ba2f4830e082f14587a9468ebba7807261a3e61 | |
parent | 9947c34cf7921722b82440a7917ce219eefa5241 (diff) | |
parent | 7a6cb0abe1aa63334f3ded6d2b6c8eca80e72302 (diff) |
Merge tag 'omap-for-v4.1/fixes-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes
Merge omap fixes for v4.1, urgent fix to avoid potential hardware damage From Tony Lindgren:
Omap fixes for the -rc cycle, including a fix for potential hardware
breakage on BeagleBones:
- BeagleBones don't support RTC-only mode, it can cause hardware
damage if system-power-controller is specified without
ti,pmic-shutdown-controller
- Fix a recent regression to am3517 SoCs caused by the recent clock
move that was not noticed until now despite automated boot
testing
- Fix a regression for n900 touchscreen triggered by recent
recent input changes
- Fix compatible property for dm816x USB to avoid errors with
USB Ethernet
- Fix oops for omap3 when built with CONFIG_THUMB2_KERNEL
* tag 'omap-for-v4.1/fixes-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
ARM: dts: am335x-boneblack: disable RTC-only sleep to avoid hardware damage
ARM: dts: AM35xx: fix system control module clocks
ARM: dts: Fix n900 dts file to work around 4.1 touchscreen regression on n900
ARM: dts: Fix dm816x to use right compatible flag for MUSB
ARM: OMAP3: Fix booting with thumb2 kernel
-rw-r--r-- | Documentation/devicetree/bindings/input/touchscreen/tsc2005.txt | 4 | ||||
-rw-r--r-- | arch/arm/boot/dts/am335x-bone-common.dtsi | 19 | ||||
-rw-r--r-- | arch/arm/boot/dts/am35xx-clocks.dtsi | 14 | ||||
-rw-r--r-- | arch/arm/boot/dts/dm816x.dtsi | 4 | ||||
-rw-r--r-- | arch/arm/boot/dts/omap3-n900.dts | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/sleep34xx.S | 22 |
6 files changed, 34 insertions, 33 deletions
diff --git a/Documentation/devicetree/bindings/input/touchscreen/tsc2005.txt b/Documentation/devicetree/bindings/input/touchscreen/tsc2005.txt index 4b641c7bf1c2..09089a6d69ed 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/tsc2005.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/tsc2005.txt | |||
@@ -32,8 +32,8 @@ Example: | |||
32 | touchscreen-fuzz-x = <4>; | 32 | touchscreen-fuzz-x = <4>; |
33 | touchscreen-fuzz-y = <7>; | 33 | touchscreen-fuzz-y = <7>; |
34 | touchscreen-fuzz-pressure = <2>; | 34 | touchscreen-fuzz-pressure = <2>; |
35 | touchscreen-max-x = <4096>; | 35 | touchscreen-size-x = <4096>; |
36 | touchscreen-max-y = <4096>; | 36 | touchscreen-size-y = <4096>; |
37 | touchscreen-max-pressure = <2048>; | 37 | touchscreen-max-pressure = <2048>; |
38 | 38 | ||
39 | ti,x-plate-ohms = <280>; | 39 | ti,x-plate-ohms = <280>; |
diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi index c3255e0c90aa..dbb3f4d2bf84 100644 --- a/arch/arm/boot/dts/am335x-bone-common.dtsi +++ b/arch/arm/boot/dts/am335x-bone-common.dtsi | |||
@@ -223,6 +223,25 @@ | |||
223 | /include/ "tps65217.dtsi" | 223 | /include/ "tps65217.dtsi" |
224 | 224 | ||
225 | &tps { | 225 | &tps { |
226 | /* | ||
227 | * Configure pmic to enter OFF-state instead of SLEEP-state ("RTC-only | ||
228 | * mode") at poweroff. Most BeagleBone versions do not support RTC-only | ||
229 | * mode and risk hardware damage if this mode is entered. | ||
230 | * | ||
231 | * For details, see linux-omap mailing list May 2015 thread | ||
232 | * [PATCH] ARM: dts: am335x-bone* enable pmic-shutdown-controller | ||
233 | * In particular, messages: | ||
234 | * http://www.spinics.net/lists/linux-omap/msg118585.html | ||
235 | * http://www.spinics.net/lists/linux-omap/msg118615.html | ||
236 | * | ||
237 | * You can override this later with | ||
238 | * &tps { /delete-property/ ti,pmic-shutdown-controller; } | ||
239 | * if you want to use RTC-only mode and made sure you are not affected | ||
240 | * by the hardware problems. (Tip: double-check by performing a current | ||
241 | * measurement after shutdown: it should be less than 1 mA.) | ||
242 | */ | ||
243 | ti,pmic-shutdown-controller; | ||
244 | |||
226 | regulators { | 245 | regulators { |
227 | dcdc1_reg: regulator@0 { | 246 | dcdc1_reg: regulator@0 { |
228 | regulator-name = "vdds_dpr"; | 247 | regulator-name = "vdds_dpr"; |
diff --git a/arch/arm/boot/dts/am35xx-clocks.dtsi b/arch/arm/boot/dts/am35xx-clocks.dtsi index 518b8fde88b0..18cc826e9db5 100644 --- a/arch/arm/boot/dts/am35xx-clocks.dtsi +++ b/arch/arm/boot/dts/am35xx-clocks.dtsi | |||
@@ -12,7 +12,7 @@ | |||
12 | #clock-cells = <0>; | 12 | #clock-cells = <0>; |
13 | compatible = "ti,am35xx-gate-clock"; | 13 | compatible = "ti,am35xx-gate-clock"; |
14 | clocks = <&ipss_ick>; | 14 | clocks = <&ipss_ick>; |
15 | reg = <0x059c>; | 15 | reg = <0x032c>; |
16 | ti,bit-shift = <1>; | 16 | ti,bit-shift = <1>; |
17 | }; | 17 | }; |
18 | 18 | ||
@@ -20,7 +20,7 @@ | |||
20 | #clock-cells = <0>; | 20 | #clock-cells = <0>; |
21 | compatible = "ti,gate-clock"; | 21 | compatible = "ti,gate-clock"; |
22 | clocks = <&rmii_ck>; | 22 | clocks = <&rmii_ck>; |
23 | reg = <0x059c>; | 23 | reg = <0x032c>; |
24 | ti,bit-shift = <9>; | 24 | ti,bit-shift = <9>; |
25 | }; | 25 | }; |
26 | 26 | ||
@@ -28,7 +28,7 @@ | |||
28 | #clock-cells = <0>; | 28 | #clock-cells = <0>; |
29 | compatible = "ti,am35xx-gate-clock"; | 29 | compatible = "ti,am35xx-gate-clock"; |
30 | clocks = <&ipss_ick>; | 30 | clocks = <&ipss_ick>; |
31 | reg = <0x059c>; | 31 | reg = <0x032c>; |
32 | ti,bit-shift = <2>; | 32 | ti,bit-shift = <2>; |
33 | }; | 33 | }; |
34 | 34 | ||
@@ -36,7 +36,7 @@ | |||
36 | #clock-cells = <0>; | 36 | #clock-cells = <0>; |
37 | compatible = "ti,gate-clock"; | 37 | compatible = "ti,gate-clock"; |
38 | clocks = <&pclk_ck>; | 38 | clocks = <&pclk_ck>; |
39 | reg = <0x059c>; | 39 | reg = <0x032c>; |
40 | ti,bit-shift = <10>; | 40 | ti,bit-shift = <10>; |
41 | }; | 41 | }; |
42 | 42 | ||
@@ -44,7 +44,7 @@ | |||
44 | #clock-cells = <0>; | 44 | #clock-cells = <0>; |
45 | compatible = "ti,am35xx-gate-clock"; | 45 | compatible = "ti,am35xx-gate-clock"; |
46 | clocks = <&ipss_ick>; | 46 | clocks = <&ipss_ick>; |
47 | reg = <0x059c>; | 47 | reg = <0x032c>; |
48 | ti,bit-shift = <0>; | 48 | ti,bit-shift = <0>; |
49 | }; | 49 | }; |
50 | 50 | ||
@@ -52,7 +52,7 @@ | |||
52 | #clock-cells = <0>; | 52 | #clock-cells = <0>; |
53 | compatible = "ti,gate-clock"; | 53 | compatible = "ti,gate-clock"; |
54 | clocks = <&sys_ck>; | 54 | clocks = <&sys_ck>; |
55 | reg = <0x059c>; | 55 | reg = <0x032c>; |
56 | ti,bit-shift = <8>; | 56 | ti,bit-shift = <8>; |
57 | }; | 57 | }; |
58 | 58 | ||
@@ -60,7 +60,7 @@ | |||
60 | #clock-cells = <0>; | 60 | #clock-cells = <0>; |
61 | compatible = "ti,am35xx-gate-clock"; | 61 | compatible = "ti,am35xx-gate-clock"; |
62 | clocks = <&sys_ck>; | 62 | clocks = <&sys_ck>; |
63 | reg = <0x059c>; | 63 | reg = <0x032c>; |
64 | ti,bit-shift = <3>; | 64 | ti,bit-shift = <3>; |
65 | }; | 65 | }; |
66 | }; | 66 | }; |
diff --git a/arch/arm/boot/dts/dm816x.dtsi b/arch/arm/boot/dts/dm816x.dtsi index de8427be830a..289806adb343 100644 --- a/arch/arm/boot/dts/dm816x.dtsi +++ b/arch/arm/boot/dts/dm816x.dtsi | |||
@@ -382,7 +382,7 @@ | |||
382 | ti,hwmods = "usb_otg_hs"; | 382 | ti,hwmods = "usb_otg_hs"; |
383 | 383 | ||
384 | usb0: usb@47401000 { | 384 | usb0: usb@47401000 { |
385 | compatible = "ti,musb-am33xx"; | 385 | compatible = "ti,musb-dm816"; |
386 | reg = <0x47401400 0x400 | 386 | reg = <0x47401400 0x400 |
387 | 0x47401000 0x200>; | 387 | 0x47401000 0x200>; |
388 | reg-names = "mc", "control"; | 388 | reg-names = "mc", "control"; |
@@ -422,7 +422,7 @@ | |||
422 | }; | 422 | }; |
423 | 423 | ||
424 | usb1: usb@47401800 { | 424 | usb1: usb@47401800 { |
425 | compatible = "ti,musb-am33xx"; | 425 | compatible = "ti,musb-dm816"; |
426 | reg = <0x47401c00 0x400 | 426 | reg = <0x47401c00 0x400 |
427 | 0x47401800 0x200>; | 427 | 0x47401800 0x200>; |
428 | reg-names = "mc", "control"; | 428 | reg-names = "mc", "control"; |
diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 5c16145920ea..5f5e0f3d5b64 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts | |||
@@ -832,8 +832,8 @@ | |||
832 | touchscreen-fuzz-x = <4>; | 832 | touchscreen-fuzz-x = <4>; |
833 | touchscreen-fuzz-y = <7>; | 833 | touchscreen-fuzz-y = <7>; |
834 | touchscreen-fuzz-pressure = <2>; | 834 | touchscreen-fuzz-pressure = <2>; |
835 | touchscreen-max-x = <4096>; | 835 | touchscreen-size-x = <4096>; |
836 | touchscreen-max-y = <4096>; | 836 | touchscreen-size-y = <4096>; |
837 | touchscreen-max-pressure = <2048>; | 837 | touchscreen-max-pressure = <2048>; |
838 | 838 | ||
839 | ti,x-plate-ohms = <280>; | 839 | ti,x-plate-ohms = <280>; |
diff --git a/arch/arm/mach-omap2/sleep34xx.S b/arch/arm/mach-omap2/sleep34xx.S index d1dedc8195ed..eafd120b53f1 100644 --- a/arch/arm/mach-omap2/sleep34xx.S +++ b/arch/arm/mach-omap2/sleep34xx.S | |||
@@ -203,23 +203,8 @@ save_context_wfi: | |||
203 | */ | 203 | */ |
204 | ldr r1, kernel_flush | 204 | ldr r1, kernel_flush |
205 | blx r1 | 205 | blx r1 |
206 | /* | ||
207 | * The kernel doesn't interwork: v7_flush_dcache_all in particluar will | ||
208 | * always return in Thumb state when CONFIG_THUMB2_KERNEL is enabled. | ||
209 | * This sequence switches back to ARM. Note that .align may insert a | ||
210 | * nop: bx pc needs to be word-aligned in order to work. | ||
211 | */ | ||
212 | THUMB( .thumb ) | ||
213 | THUMB( .align ) | ||
214 | THUMB( bx pc ) | ||
215 | THUMB( nop ) | ||
216 | .arm | ||
217 | |||
218 | b omap3_do_wfi | 206 | b omap3_do_wfi |
219 | 207 | ENDPROC(omap34xx_cpu_suspend) | |
220 | /* | ||
221 | * Local variables | ||
222 | */ | ||
223 | omap3_do_wfi_sram_addr: | 208 | omap3_do_wfi_sram_addr: |
224 | .word omap3_do_wfi_sram | 209 | .word omap3_do_wfi_sram |
225 | kernel_flush: | 210 | kernel_flush: |
@@ -364,10 +349,7 @@ exit_nonoff_modes: | |||
364 | * =================================== | 349 | * =================================== |
365 | */ | 350 | */ |
366 | ldmfd sp!, {r4 - r11, pc} @ restore regs and return | 351 | ldmfd sp!, {r4 - r11, pc} @ restore regs and return |
367 | 352 | ENDPROC(omap3_do_wfi) | |
368 | /* | ||
369 | * Local variables | ||
370 | */ | ||
371 | sdrc_power: | 353 | sdrc_power: |
372 | .word SDRC_POWER_V | 354 | .word SDRC_POWER_V |
373 | cm_idlest1_core: | 355 | cm_idlest1_core: |