powerpc/p1023: set IRQ[4:6, 11] to active-high level sensitive for PCIe
Subsystems (2)
PATCH v2 1/1 powerpc/p1023: set IRQ[4:6, 11] to active-high level sensitive for PCIe
From: Roy Zang <[email protected]>
P1023 external IRQ[4:6, 11] are not pin out, but the interrupts are utilized by the PCIe controllers. As they are not exposed as pins we need to set them as active-high (internal to the SoC these interrupts are pulled down).
IRQs[0:3,7:10] are pulled up on the board so we have them set as active-low.
---
v2:
* cleaned up commit message & added comments to be clear about IRQ usage
arch/powerpc/boot/dts/p1023rds.dts | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-)
arch/powerpc/boot/dts/p1023rds.dts +13 -4
@@ -698,6 +698,7 @@ interrupt-parent = <&mpic>; interrupts = <16 2>; interrupt-map-mask = <0xf800 0 0 7>; + /* IRQ[0:3] are pulled up on board, set to active-low */ interrupt-map = < /* IDSEL 0x0 */ 0000 0 0 1 &mpic 0 1
@@ -737,11 +738,15 @@ interrupt-parent = <&mpic>; interrupts = <16 2>; interrupt-map-mask = <0xf800 0 0 7>; + /* + * IRQ[4:6] only for PCIe, set to active-high, + * IRQ[7] is pulled up on board, set to active-low + */ interrupt-map = < /* IDSEL 0x0 */ - 0000 0 0 1 &mpic 4 1 - 0000 0 0 2 &mpic 5 1 - 0000 0 0 3 &mpic 6 1 + 0000 0 0 1 &mpic 4 2 + 0000 0 0 2 &mpic 5 2 + 0000 0 0 3 &mpic 6 2 0000 0 0 4 &mpic 7 1 >; ranges = <0x2000000 0x0 0xa0000000
@@ -776,12 +781,16 @@ interrupt-parent = <&mpic>; interrupts = <16 2>; interrupt-map-mask = <0xf800 0 0 7>; + /* + * IRQ[8:10] are pulled up on board, set to active-low + * IRQ[11] only for PCIe, set to active-high, + */ interrupt-map = < /* IDSEL 0x0 */ 0000 0 0 1 &mpic 8 1 0000 0 0 2 &mpic 9 1 0000 0 0 3 &mpic 10 1 - 0000 0 0 4 &mpic 11 1 + 0000 0 0 4 &mpic 11 2 >; ranges = <0x2000000 0x0 0x80000000 0x2000000 0x0 0x80000000
Signature · 1 line
1.7.3.4
Kumar Gala
AppliedQuoted 7 lines · Kumar Gala
From: Roy Zang <[email protected]>
P1023 external IRQ[4:6, 11] are not pin out, but the interrupts are utilized by the PCIe controllers. As they are not exposed as pins we need to set them as active-high (internal to the SoC these interrupts are pulled down).
Quoted 8 lines
IRQs[0:3,7:10] are pulled up on the board so we have them set as active-low.
Signed-off-by Roy Zang <[email protected]>Signed-off-by Kumar Gala <[email protected]>---
v2:
* cleaned up commit message & added comments to be clear about IRQ usage
applied to merge
- k