ARM: dts: OMAP5+: Fixes for pinctrl support
cover ARM: dts: OMAP5+: Fixes for pinctrl support
The following series add the missing dts changes needed for pinctrl to finally work on OMAP5/DRA7.
This is part 6/6 series which eventually enables framework for suspend-to-ram and cpuidle for OMAP5 and DRA7.
Depends on previous series for pinctrl and PRM fixes for functionality, but is capable of continuing to provide older functionality with older zImage
NOTE: Various hwmod and dts fixes for various other IP blocks are still pending for complete suspend functionality.
Each of series is based on v3.17-rc1 and this specific series is available:
weblink: https://github.com/nmenon/linux-2.6-playground/commits/push/v3.17/dts-fixes
git repo: https://github.com/nmenon/linux-2.6-playground.git push/v3.17/dts-fixes
An complete integrated branch is available here: https://github.com/nmenon/linux-2.6-playground/commits/testing/v3.17/cpu-idle-suspend-dra7-omap5-framework
Nishanth Menon (6):
ARM: dts: OMAP3+: Add PRM interrupt
ARM: dts: OMAP5: switch to compatible pinctrl
ARM: dts: DRA7: switch to compatible pinctrl
ARM: dts: AM437x: switch to compatible pinctrl
ARM: dts: OMAP5/DRA7: switch over to interrupts-extended property for
UART
ARM: dts: dra7-evm: Mark uart1 rxd as wakeup capable
arch/arm/boot/dts/am4372.dtsi | 4 +++- arch/arm/boot/dts/dra7-evm.dts | 2 ++ arch/arm/boot/dts/dra7.dtsi | 25 ++++++++++++++----------- arch/arm/boot/dts/omap3.dtsi | 1 + arch/arm/boot/dts/omap4.dtsi | 1 + arch/arm/boot/dts/omap5.dtsi | 21 +++++++++++++-------- 6 files changed, 34 insertions(+), 20 deletions(-)
Signature · 1 line
1.7.9.5
PATCH 1/6 ARM: dts: OMAP3+: Add PRM interrupt
Provide OMAP3, 4 and OMAP5 with interrupt number for PRM
And for DRA7, provide crossbar number for prm interrupt.
--- arch/arm/boot/dts/dra7.dtsi | 1 + arch/arm/boot/dts/omap3.dtsi | 1 + arch/arm/boot/dts/omap4.dtsi | 1 + arch/arm/boot/dts/omap5.dtsi | 1 + 4 files changed, 4 insertions(+)
arch/arm/boot/dts/dra7.dtsi +1 -0
@@ -89,6 +89,7 @@ prm: prm at 4ae06000 { compatible = "ti,dra7-prm"; reg = <0x4ae06000 0x3000>; + interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; prm_clocks: clocks { #address-cells = <1>;
arch/arm/boot/dts/omap3.dtsi +1 -0
@@ -97,6 +97,7 @@ prm: prm at 48306000 { compatible = "ti,omap3-prm"; reg = <0x48306000 0x4000>; + interrupts = <11>; prm_clocks: clocks { #address-cells = <1>;
arch/arm/boot/dts/omap4.dtsi +1 -0
@@ -129,6 +129,7 @@ prm: prm at 4a306000 { compatible = "ti,omap4-prm"; reg = <0x4a306000 0x3000>; + interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; prm_clocks: clocks { #address-cells = <1>;
arch/arm/boot/dts/omap5.dtsi +1 -0
@@ -131,6 +131,7 @@ prm: prm at 4ae06000 { compatible = "ti,omap5-prm"; reg = <0x4ae06000 0x3000>; + interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; prm_clocks: clocks { #address-cells = <1>;
Signature · 1 line
1.7.9.5
Re: [PATCH 1/6] ARM: dts: OMAP3+: Add PRM interrupt
Quoted 5 lines · Nishanth Menon
Provide OMAP3, 4 and OMAP5 with interrupt number for PRM
And for DRA7, provide crossbar number for prm interrupt.
Signed-off-by Nishanth Menon <[email protected]>
I've picked this patch only into omap-for-v3.18/soc as this is needed for Felipe's intc related changes to work properly with the wake-up interrupts for DT based booting for off-idle.
So please don't include this patch into your pull request for the other dts changes you have.
Regards,
Tony
Quoted 58 lines
--- arch/arm/boot/dts/dra7.dtsi | 1 + arch/arm/boot/dts/omap3.dtsi | 1 + arch/arm/boot/dts/omap4.dtsi | 1 + arch/arm/boot/dts/omap5.dtsi | 1 + 4 files changed, 4 insertions(+)arch/arm/boot/dts/dra7.dtsi +1
-0@@ -89,6 +89,7 @@ prm: prm at 4ae06000 { compatible = "ti,dra7-prm"; reg = <0x4ae06000 0x3000>; + interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; prm_clocks: clocks { #address-cells = <1>;arch/arm/boot/dts/omap3.dtsi +1
-0@@ -97,6 +97,7 @@ prm: prm at 48306000 { compatible = "ti,omap3-prm"; reg = <0x48306000 0x4000>; + interrupts = <11>; prm_clocks: clocks { #address-cells = <1>;arch/arm/boot/dts/omap4.dtsi +1
-0@@ -129,6 +129,7 @@ prm: prm at 4a306000 { compatible = "ti,omap4-prm"; reg = <0x4a306000 0x3000>; + interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; prm_clocks: clocks { #address-cells = <1>;arch/arm/boot/dts/omap5.dtsi +1
-0@@ -131,6 +131,7 @@ prm: prm at 4ae06000 { compatible = "ti,omap5-prm"; reg = <0x4ae06000 0x3000>; + interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; prm_clocks: clocks { #address-cells = <1>;Signature · 1 line
1.7.9.5
PATCH 2/6 ARM: dts: OMAP5: switch to compatible pinctrl
In reply to Nishanth MenonNow that ti,omap5-padconf is available, switch over to that compatible property. Retain pinctrl-single for legacy support.
While at it, mark pinctrl as interrupt controller so that it can be used with interrupts-extended property for wakeup events.
--- arch/arm/boot/dts/omap5.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
arch/arm/boot/dts/omap5.dtsi +6 -2
@@ -188,18 +188,22 @@ }; omap5_pmx_core: pinmux at 4a002840 { - compatible = "ti,omap4-padconf", "pinctrl-single"; + compatible = "ti,omap5-padconf", "pinctrl-single"; reg = <0x4a002840 0x01b6>; #address-cells = <1>; #size-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; pinctrl-single,register-width = <16>; pinctrl-single,function-mask = <0x7fff>; }; omap5_pmx_wkup: pinmux at 4ae0c840 { - compatible = "ti,omap4-padconf", "pinctrl-single"; + compatible = "ti,omap5-padconf", "pinctrl-single"; reg = <0x4ae0c840 0x0038>; #address-cells = <1>; #size-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; pinctrl-single,register-width = <16>; pinctrl-single,function-mask = <0x7fff>; };
Signature · 1 line
1.7.9.5
PATCH 3/6 ARM: dts: DRA7: switch to compatible pinctrl
In reply to Nishanth MenonNow that ti,dra7-padconf is available, switch over to that compatible property. Retain pinctrl-single for legacy support.
While at it, mark pinctrl as interrupt controller so that it can be used with interrupts-extended property for wakeup events.
--- arch/arm/boot/dts/dra7.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/boot/dts/dra7.dtsi +3 -1
@@ -218,10 +218,12 @@ }; dra7_pmx_core: pinmux at 4a003400 { - compatible = "pinctrl-single"; + compatible = "ti,dra7-padconf", "pinctrl-single"; reg = <0x4a003400 0x0464>; #address-cells = <1>; #size-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; pinctrl-single,register-width = <32>; pinctrl-single,function-mask = <0x3fffffff>; };
Signature · 1 line
1.7.9.5
PATCH 4/6 ARM: dts: AM437x: switch to compatible pinctrl
In reply to Nishanth MenonNow that ti,am437-padconf is available, switch over to that compatible property. Retain pinctrl-single for legacy support.
While at it, mark the pinctrl as interrupt controller so that it can be used with interrupts-extended property for wakeup events.
--- arch/arm/boot/dts/am4372.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/boot/dts/am4372.dtsi +3 -1
@@ -58,10 +58,12 @@ }; am43xx_pinmux: pinmux at 44e10800 { - compatible = "pinctrl-single"; + compatible = "ti,am437-padconf", "pinctrl-single"; reg = <0x44e10800 0x31c>; #address-cells = <1>; #size-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; pinctrl-single,register-width = <32>; pinctrl-single,function-mask = <0xffffffff>; };
Signature · 1 line
1.7.9.5
PATCH 5/6 ARM: dts: OMAP5/DRA7: switch over to interrupts-extended property for UART
In reply to Nishanth MenonWe've had deeper idle states working on omaps for few years now, but only in the legacy mode. When booted with device tree, the wake-up events did not have a chance to work until commit 3e6cee1786a1 ("pinctrl: single: Add support for wake-up interrupts") that recently got merged. In addition to that we also needed commit 79d9701559a9 ("of/irq: create interrupts-extended property") that's now also merged.
Note that there's no longer need to specify the wake-up bit in the pinctrl settings, the request_irq on the wake-up pin takes care of that.
--- arch/arm/boot/dts/dra7.dtsi | 20 ++++++++++---------- arch/arm/boot/dts/omap5.dtsi | 12 ++++++------ 2 files changed, 16 insertions(+), 16 deletions(-)
arch/arm/boot/dts/dra7.dtsi +10 -10
@@ -331,7 +331,7 @@ uart1: serial at 4806a000 { compatible = "ti,omap4-uart"; reg = <0x4806a000 0x100>; - interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart1"; clock-frequency = <48000000>; status = "disabled";
@@ -340,7 +340,7 @@ uart2: serial at 4806c000 { compatible = "ti,omap4-uart"; reg = <0x4806c000 0x100>; - interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart2"; clock-frequency = <48000000>; status = "disabled";
@@ -349,7 +349,7 @@ uart3: serial at 48020000 { compatible = "ti,omap4-uart"; reg = <0x48020000 0x100>; - interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart3"; clock-frequency = <48000000>; status = "disabled";
@@ -358,7 +358,7 @@ uart4: serial at 4806e000 { compatible = "ti,omap4-uart"; reg = <0x4806e000 0x100>; - interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart4"; clock-frequency = <48000000>; status = "disabled";
@@ -367,7 +367,7 @@ uart5: serial at 48066000 { compatible = "ti,omap4-uart"; reg = <0x48066000 0x100>; - interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart5"; clock-frequency = <48000000>; status = "disabled";
@@ -376,7 +376,7 @@ uart6: serial at 48068000 { compatible = "ti,omap4-uart"; reg = <0x48068000 0x100>; - interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart6"; clock-frequency = <48000000>; status = "disabled";
@@ -385,7 +385,7 @@ uart7: serial at 48420000 { compatible = "ti,omap4-uart"; reg = <0x48420000 0x100>; - interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart7"; clock-frequency = <48000000>; status = "disabled";
@@ -394,7 +394,7 @@ uart8: serial at 48422000 { compatible = "ti,omap4-uart"; reg = <0x48422000 0x100>; - interrupts = <GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart8"; clock-frequency = <48000000>; status = "disabled";
@@ -403,7 +403,7 @@ uart9: serial at 48424000 { compatible = "ti,omap4-uart"; reg = <0x48424000 0x100>; - interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart9"; clock-frequency = <48000000>; status = "disabled";
@@ -412,7 +412,7 @@ uart10: serial at 4ae2b000 { compatible = "ti,omap4-uart"; reg = <0x4ae2b000 0x100>; - interrupts = <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart10"; clock-frequency = <48000000>; status = "disabled";
arch/arm/boot/dts/omap5.dtsi +6 -6
@@ -452,7 +452,7 @@ uart1: serial at 4806a000 { compatible = "ti,omap4-uart"; reg = <0x4806a000 0x100>; - interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart1"; clock-frequency = <48000000>; };
@@ -460,7 +460,7 @@ uart2: serial at 4806c000 { compatible = "ti,omap4-uart"; reg = <0x4806c000 0x100>; - interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart2"; clock-frequency = <48000000>; };
@@ -468,7 +468,7 @@ uart3: serial at 48020000 { compatible = "ti,omap4-uart"; reg = <0x48020000 0x100>; - interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart3"; clock-frequency = <48000000>; };
@@ -476,7 +476,7 @@ uart4: serial at 4806e000 { compatible = "ti,omap4-uart"; reg = <0x4806e000 0x100>; - interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart4"; clock-frequency = <48000000>; };
@@ -484,7 +484,7 @@ uart5: serial at 48066000 { compatible = "ti,omap4-uart"; reg = <0x48066000 0x100>; - interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart5"; clock-frequency = <48000000>; };
@@ -492,7 +492,7 @@ uart6: serial at 48068000 { compatible = "ti,omap4-uart"; reg = <0x48068000 0x100>; - interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended = <&gic GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "uart6"; clock-frequency = <48000000>; };
Signature · 1 line
1.7.9.5
PATCH 6/6 ARM: dts: dra7-evm: Mark uart1 rxd as wakeup capable
In reply to Nishanth MenonMark rxd as wakeupcapable for 115200n8 no hardware-flow control configuration. If h/w flow control is being used, then rts/cts appropriately should be used.
--- arch/arm/boot/dts/dra7-evm.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/boot/dts/dra7-evm.dts +2 -0
@@ -303,6 +303,8 @@ status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>; + interrupts-extended = <&gic GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH + &dra7_pmx_core 0x3e0>; }; &uart2 {
Signature · 1 line
1.7.9.5
Re: [PATCH 6/6] ARM: dts: dra7-evm: Mark uart1 rxd as wakeup capable
Review
Quoted 5 lines · Nishanth Menon
(quoted diff) +2
-0status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>; + interrupts-extended = <&gic GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH + &dra7_pmx_core 0x3e0>;
^^
Thanks to Lee Jones pointing this out to me in a different context[1] I made the wrong usage. Fixing the syntax to stay in sync with Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
[1] http://marc.info/?l=linux-omap&m=140930980325273&w=2
-----8<----
Quoted 1 line
From
c3c284ebd2b8d5535abf297ef7537b2caa7fe67bMon Sep 17 00:00:00 2001
From: Nishanth Menon <[email protected]>
Date: Fri, 6 Jun 2014 20:53:22 -0500
Subject: [PATCH V2 6/6] ARM: dts: dra7-evm: Mark uart1 rxd as wakeup capable
Mark rxd as wakeupcapable for 115200n8 no hardware-flow control configuration. If h/w flow control is being used, then rts/cts appropriately should be used.
--- arch/arm/boot/dts/dra7-evm.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/boot/dts/dra7-evm.dts +2 -0
@@ -303,6 +303,8 @@ status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>; + interrupts-extended = <&gic GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>, + <&dra7_pmx_core 0x3e0>; }; &uart2 {
Signature · 6 lines
1.7.9.5 -- Regards, Nishanth Menon