pinctrl devicetree fixes for aspeed-g5
Subsystems (2)
v2 cover pinctrl devicetree fixes for aspeed-g5
Hi Joel,
Testing on Romulus showed warnings on boot from pinctrl about missing phandles. These phandles are required to ensure full mux functionality on the g5 SoCs. This series adds the required devicetree nodes and the missing phandles property to the pinctrl node.
I've confirmed the bug and the fixes using the QEMU romulus-bmc machine.
Cheers,
Andrew
Since v1:
* Set gfx to "status = disabled" in aspeed-g5.dtsi, as the AST2520 removes this IP block.
* Define aspeed,external-nodes pinctrl devicetree property in the board dts for the same reason.
Andrew Jeffery (3):
ARM: dts: aspeed-g5: Add SoC Display Controller node
ARM: dts: aspeed-g5: Add LPC Host Controller node to LPC
ARM: dts: aspeed-g5: Give pinctrl phandles for gfx and lhc
arch/arm/boot/dts/aspeed-ast2500-evb.dts | 8 ++++++++ arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts | 8 ++++++++ arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts | 8 ++++++++ arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 8 ++++++++ arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 8 ++++++++ arch/arm/boot/dts/aspeed-g5.dtsi | 14 ++++++++++++++ 6 files changed, 54 insertions(+)
Signature · 1 line
2.9.3
PATCH v2 1/3 ARM: dts: aspeed-g5: Add SoC Display Controller node
--- arch/arm/boot/dts/aspeed-ast2500-evb.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 4 ++++ arch/arm/boot/dts/aspeed-g5.dtsi | 9 +++++++++ 6 files changed, 29 insertions(+)
arch/arm/boot/dts/aspeed-ast2500-evb.dts +4 -0
@@ -79,3 +79,7 @@ reg = <0x4d>; }; }; + +&gfx { + status = "okay"; +};
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts +4 -0
@@ -198,3 +198,7 @@ status = "okay"; /* CPLD at reg = <3E> */ }; + +&gfx { + status = "okay"; +};
arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts +4 -0
@@ -155,3 +155,7 @@ &vuart { status = "okay"; }; + +&gfx { + status = "okay"; +};
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +4 -0
@@ -273,3 +273,7 @@ &vuart { status = "okay"; }; + +&gfx { + status = "okay"; +};
arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts +4 -0
@@ -343,3 +343,7 @@ &vuart { status = "okay"; }; + +&gfx { + status = "okay"; +};
arch/arm/boot/dts/aspeed-g5.dtsi +9 -0
@@ -1005,6 +1005,15 @@ reg = <0x1e6e202c 0x4>; }; + gfx: display@1e6e6000 { + compatible = "aspeed,ast2500-gfx", "syscon"; + reg = <0x1e6e6000 0x1000>; + reg-io-width = <4>; + + /* AST2520 doesn't have GFX, so disable */ + status = "disabled"; + }; + sram@1e720000 { compatible = "mmio-sram"; reg = <0x1e720000 0x9000>; // 36K
Signature · 1 line
2.9.3
Re: [PATCH linux dev-4.7 v2 1/3] ARM: dts: aspeed-g5: Add SoC Display Controller node
Quoted 5 lines · Andrew Jeffery
Signed-off-by Andrew Jeffery <[email protected]>Signed-off-by Joel Stanley <[email protected]>(cherry picked from commit daf042580a0dacd894a3825dd6f048364fd66770)[AJ: Reworked to disable GFX in the dtsi, as it is missing from the 2520]Signed-off-by Andrew Jeffery <[email protected]>
Xo, can we get your ack for the Zaius change.
Lei, please review for Romulus.
Matthew, please review for the Facebook board.
Cheers,
Joel
Quoted 92 lines
--- arch/arm/boot/dts/aspeed-ast2500-evb.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 4 ++++ arch/arm/boot/dts/aspeed-g5.dtsi | 9 +++++++++ 6 files changed, 29 insertions(+)arch/arm/boot/dts/aspeed-ast2500-evb.dts +4
-0@@ -79,3 +79,7 @@ reg = <0x4d>; }; }; + +&gfx { + status = "okay"; +};arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts +4
-0@@ -198,3 +198,7 @@ status = "okay"; /* CPLD at reg = <3E> */ }; + +&gfx { + status = "okay"; +};arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts +4
-0@@ -155,3 +155,7 @@ &vuart { status = "okay"; }; + +&gfx { + status = "okay"; +};arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +4
-0@@ -273,3 +273,7 @@ &vuart { status = "okay"; }; + +&gfx { + status = "okay"; +};arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts +4
-0@@ -343,3 +343,7 @@ &vuart { status = "okay"; }; + +&gfx { + status = "okay"; +};arch/arm/boot/dts/aspeed-g5.dtsi +9
-1@@ -1005,6 +1005,15 @@ reg = <0x1e6e202c 0x4>; }; + gfx: display@1e6e6000 { + compatible = "aspeed,ast2500-gfx", "syscon"; + reg = <0x1e6e6000 0x1000>; + reg-io-width = <4>; + + /* AST2520 doesn't have GFX, so disable */ + status = "disabled"; + }; + sram@1e720000 { compatible = "mmio-sram"; reg = <0x1e720000 0x9000>; // 36K --2.9.3
Joel Stanley
maintainerRe: [PATCH linux dev-4.7 v2 1/3] ARM: dts: aspeed-g5: Add SoC Display Controller node
Quoted 7 lines · Joel Stanley
Quoted 5 lines · Andrew Jeffery
Signed-off-by Andrew Jeffery <[email protected]>Signed-off-by Joel Stanley <[email protected]>(cherry picked from commit daf042580a0dacd894a3825dd6f048364fd66770)[AJ: Reworked to disable GFX in the dtsi, as it is missing from the 2520]Signed-off-by Andrew Jeffery <[email protected]>
Quoted 7 lines
Acked-by Joel Stanley <[email protected]>Xo, can we get your ack for the Zaius change.
Lei, please review for Romulus.
Matthew, please review for the Facebook board.
There was no objection so I've gone ahead and merged this patch to dev-4.7.
Cheers,
Joel
Quoted 93 lines
Quoted 93 lines
--- arch/arm/boot/dts/aspeed-ast2500-evb.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 4 ++++ arch/arm/boot/dts/aspeed-g5.dtsi | 9 +++++++++ 6 files changed, 29 insertions(+)arch/arm/boot/dts/aspeed-ast2500-evb.dts +4
-0@@ -79,3 +79,7 @@ reg = <0x4d>; }; }; + +&gfx { + status = "okay"; +};arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts +4
-0@@ -198,3 +198,7 @@ status = "okay"; /* CPLD at reg = <3E> */ }; + +&gfx { + status = "okay"; +};arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts +4
-0@@ -155,3 +155,7 @@ &vuart { status = "okay"; }; + +&gfx { + status = "okay"; +};arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +4
-0@@ -273,3 +273,7 @@ &vuart { status = "okay"; }; + +&gfx { + status = "okay"; +};arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts +4
-0@@ -343,3 +343,7 @@ &vuart { status = "okay"; }; + +&gfx { + status = "okay"; +};arch/arm/boot/dts/aspeed-g5.dtsi +9
-1@@ -1005,6 +1005,15 @@ reg = <0x1e6e202c 0x4>; }; + gfx: display@1e6e6000 { + compatible = "aspeed,ast2500-gfx", "syscon"; + reg = <0x1e6e6000 0x1000>; + reg-io-width = <4>; + + /* AST2520 doesn't have GFX, so disable */ + status = "disabled"; + }; + sram@1e720000 { compatible = "mmio-sram"; reg = <0x1e720000 0x9000>; // 36K --2.9.3
PATCH v2 2/3 ARM: dts: aspeed-g5: Add LPC Host Controller node to LPC
In reply to Andrew JefferyRequired for pinmux, which tests some bits in the LHC's IO space.
---
This is extracted from commit cec822f89ec19b181dc02e2a0c6441d107d8b4d9 in the ARM next/dt tree.
arch/arm/boot/dts/aspeed-g5.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boot/dts/aspeed-g5.dtsi +5 -0
@@ -117,6 +117,11 @@ status = "disabled"; }; + lhc: lhc@20 { + compatible = "aspeed,ast2500-lhc"; + reg = <0x20 0x24 0x48 0x8>; + }; + mbox: mbox@180 { compatible = "aspeed,ast2500-mbox"; reg = <0x180 0x5c>;
Signature · 1 line
2.9.3
Re: [PATCH linux dev-4.7 v2 2/3] ARM: dts: aspeed-g5: Add LPC Host Controller node to LPC
Quoted 3 lines · Andrew Jeffery
Required for pinmux, which tests some bits in the LHC's IO space.
Signed-off-by Andrew Jeffery <[email protected]>
Large Hadron Collider!
Does the ast2400 want to know about it's particle accelerator too?
Quoted 27 lines
---
This is extracted from commit
cec822f89ec19b181dc02e2a0c6441d107d8b4d9in the ARM next/dt tree.arch/arm/boot/dts/aspeed-g5.dtsi | 5 +++++ 1 file changed, 5 insertions(+)arch/arm/boot/dts/aspeed-g5.dtsi +5
-1@@ -117,6 +117,11 @@ status = "disabled"; }; + lhc: lhc@20 { + compatible = "aspeed,ast2500-lhc"; + reg = <0x20 0x24 0x48 0x8>; + }; + mbox: mbox@180 { compatible = "aspeed,ast2500-mbox"; reg = <0x180 0x5c>; --2.9.3
Re: [PATCH linux dev-4.7 v2 2/3] ARM: dts: aspeed-g5: Add LPC Host Controller node to LPC
Quoted 9 lines · Joel Stanley
Quoted 3 lines · Andrew Jeffery
Required for pinmux, which tests some bits in the LHC's IO space.
Signed-off-by Andrew Jeffery <[email protected]>Large Hadron Collider!
Does the ast2400 want to know about it's particle accelerator too?
Nah, the ast2400 doesn't require a particle accelerator for pinctrl, and I don't think we have any other reason to need it (yet).
Andrew
Quoted 34 lines
Acked-by Joel Stanley <[email protected]>Quoted 31 lines
---
This is extracted from commit
cec822f89ec19b181dc02e2a0c6441d107d8b4d9in the
ARM next/dt tree.arch/arm/boot/dts/aspeed-g5.dtsi | 5 +++++
1 file changed, 5 insertions(+)arch/arm/boot/dts/aspeed-g5.dtsi +5
-0@@ -117,6 +117,11 @@ status = "disabled"; }; + lhc: lhc@20 { + compatible = "aspeed,ast2500-lhc"; + reg = <0x20 0x24 0x48 0x8>; + }; + mbox: mbox@180 {compatible = "aspeed,ast2500-mbox";
reg = <0x1800x5c>; --
2.9.3
Joel Stanley
maintainerRe: [PATCH linux dev-4.7 v2 2/3] ARM: dts: aspeed-g5: Add LPC Host Controller node to LPC
Quoted 5 lines · Andrew Jeffery
Quoted 4 lines · Joel Stanley
Quoted 2 lines · Andrew Jeffery
Required for pinmux, which tests some bits in the LHC's IO space.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Andrew Jeffery <[email protected]>Large Hadron Collider!
Does the ast2400 want to know about it's particle accelerator too?
Nah, the ast2400 doesn't require a particle accelerator for pinctrl, and I don't think we have any other reason to need it (yet).
I think we need it for mbox, assuming we end up enabling ast2400 platforms with that functionality.
Cross that bridge when we get to it.
Cheers,
Joel
Re: [PATCH linux dev-4.7 v2 2/3] ARM: dts: aspeed-g5: Add LPC Host Controller node to LPC
I believe mbox is needed on AST2400 for Quanta Q71L.
Quoted 24 lines · Joel Stanley
Quoted 5 lines · Andrew Jeffery
Quoted 4 lines · Joel Stanley
Quoted 2 lines · Andrew Jeffery
Required for pinmux, which tests some bits in the LHC's IO space.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Andrew Jeffery <[email protected]>Large Hadron Collider!
Does the ast2400 want to know about it's particle accelerator too?
Nah, the ast2400 doesn't require a particle accelerator for pinctrl, and I don't think we have any other reason to need it (yet).
I think we need it for mbox, assuming we end up enabling ast2400 platforms with that functionality.
Cross that bridge when we get to it.
Cheers,
Joel
Re: [PATCH linux dev-4.7 v2 2/3] ARM: dts: aspeed-g5: Add LPC Host Controller node to LPC
In reply to Joel StanleyQuoted 10 lines · Joel Stanley
Quoted 10 lines · Andrew Jeffery
Quoted 8 lines · Joel Stanley
Quoted 1 line
Quoted 1 line
Quoted 1 line
On Tue, Feb 14, 2017 at 11:21 AM, Andrew Jeffery <[email protected]>
Quoted 3 lines · wrote:
Required for pinmux, which tests some bits in the LHC's IO space.
Signed-off-by Andrew Jeffery <[email protected]>Large Hadron Collider!
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Does the ast2400 want to know about it's particle accelerator too?
Nah, the ast2400 doesn't require a particle accelerator for pinctrl, and I don't think we have any other reason to need it (yet).
I think we need it for mbox, assuming we end up enabling ast2400 platforms with that functionality.
The registers used by mboxd are the "Host Interface Control" registers (HICRx), which are different to the "LPC Host Control" registers (LHCRx) used by pinmux.
Andrew
Re: [PATCH linux dev-4.7 v2 2/3] ARM: dts: aspeed-g5: Add LPC Host Controller node to LPC
Quoted 16 lines · Andrew Jeffery
Quoted 15 lines · Joel Stanley
Quoted 14 lines · Andrew Jeffery
Quoted 9 lines · Joel Stanley
Quoted 1 line
Quoted 1 line
Quoted 1 line
On Tue, Feb 14, 2017 at 11:21 AM, Andrew Jeffery <[email protected]>
Quoted 3 lines · wrote:
Required for pinmux, which tests some bits in the LHC's IO space.
Signed-off-by Andrew Jeffery <[email protected]>Large Hadron Collider!
Does the ast2400 want to know about it's particle accelerator too?
Nah, the ast2400 doesn't require a particle accelerator for pinctrl, and I don't think we have any other reason to need it (yet).
Quoted 6 lines
Quoted 2 lines
I think we need it for mbox, assuming we end up enabling ast2400 platforms with that functionality.
The registers used by mboxd are the "Host Interface Control" registers (HICRx), which are different to the "LPC Host Control" registers (LHCRx) used by pinmux.
Thanks for clarifying.
Applied to dev-4.7.
Cheers,
Joel
PATCH v2 3/3 ARM: dts: aspeed-g5: Give pinctrl phandles for gfx and lhc
In reply to Andrew JefferyThe g5's pinctrl reported:
[ 0.750000] aspeed-g5-pinctrl 1e6e2000.syscon:pinctrl@1e6e2000: No GFX phandle found, some mux configurations may fail [ 0.750000] aspeed-g5-pinctrl 1e6e2000.syscon:pinctrl@1e6e2000: No LHC phandle found, some mux configurations may fail
as the aspeed,external-nodes property was missing from the pinctrl node. Fix the mux capability by adding the required phandles in the AST2500-based board files, as the AST2520 from the g5 family doesn't have a GFX IP block.
---
The commit is *very* loosely based on b590c8d2eed5748dfe52c4fc13df6cadb1b56d58 in the ARM next/dt tree.
Since v1:
* Push assignment of phandles to the aspeed,external-nodes property out to the board dts. I expect eventually we'll want to do this in an ast2500.dtsi
arch/arm/boot/dts/aspeed-ast2500-evb.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 4 ++++ 5 files changed, 20 insertions(+)
arch/arm/boot/dts/aspeed-ast2500-evb.dts +4 -0
@@ -83,3 +83,7 @@ &gfx { status = "okay"; }; + +&pinctrl { + aspeed,external-nodes = <&gfx &lhc>; +};
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts +4 -0
@@ -202,3 +202,7 @@ &gfx { status = "okay"; }; + +&pinctrl { + aspeed,external-nodes = <&gfx &lhc>; +};
arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts +4 -0
@@ -159,3 +159,7 @@ &gfx { status = "okay"; }; + +&pinctrl { + aspeed,external-nodes = <&gfx &lhc>; +};
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +4 -0
@@ -277,3 +277,7 @@ &gfx { status = "okay"; }; + +&pinctrl { + aspeed,external-nodes = <&gfx &lhc>; +};
arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts +4 -0
@@ -347,3 +347,7 @@ &gfx { status = "okay"; }; + +&pinctrl { + aspeed,external-nodes = <&gfx &lhc>; +};
Signature · 1 line
2.9.3
Re: [PATCH linux dev-4.7 v2 3/3] ARM: dts: aspeed-g5: Give pinctrl phandles for gfx and lhc
Quoted 11 lines · Andrew Jeffery
The g5's pinctrl reported:
[ 0.750000] aspeed-g5-pinctrl 1e6e2000.syscon:pinctrl@1e6e2000: No GFX phandle found, some mux configurations may fail [ 0.750000] aspeed-g5-pinctrl 1e6e2000.syscon:pinctrl@1e6e2000: No LHC phandle found, some mux configurations may failas the aspeed,external-nodes property was missing from the pinctrl node. Fix the mux capability by adding the required phandles in the AST2500-based board files, as the AST2520 from the g5 family doesn't have a GFX IP block.
Signed-off-by Andrew Jeffery <[email protected]>
Applied to dev-4.7.
Cheers,
Joel
Quoted 80 lines
---
The commit is *very* loosely based on
b590c8d2eed5748dfe52c4fc13df6cadb1b56d58in the ARM next/dt tree.Since v1:
* Push assignment of phandles to the aspeed,external-nodes property out to the board dts. I expect eventually we'll want to do this in an
ast2500.dtsiarch/arm/boot/dts/aspeed-ast2500-evb.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 4 ++++ arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 4 ++++ 5 files changed, 20 insertions(+)arch/arm/boot/dts/aspeed-ast2500-evb.dts +4
-0@@ -83,3 +83,7 @@ &gfx { status = "okay"; }; + +&pinctrl { + aspeed,external-nodes = <&gfx &lhc>; +};arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts +4
-0@@ -202,3 +202,7 @@ &gfx { status = "okay"; }; + +&pinctrl { + aspeed,external-nodes = <&gfx &lhc>; +};arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts +4
-0@@ -159,3 +159,7 @@ &gfx { status = "okay"; }; + +&pinctrl { + aspeed,external-nodes = <&gfx &lhc>; +};arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +4
-0@@ -277,3 +277,7 @@ &gfx { status = "okay"; }; + +&pinctrl { + aspeed,external-nodes = <&gfx &lhc>; +};arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts +4
-1@@ -347,3 +347,7 @@ &gfx { status = "okay"; }; + +&pinctrl { + aspeed,external-nodes = <&gfx &lhc>; +}; --2.9.3