ARM: dts: aspeed: Fixup Wedge400 dts
Subsystems (2)
cover ARM: dts: aspeed: Fixup Wedge400 dts
From: Tao Ren <[email protected]>
The patch series fixes a few entries in wedge400 device tree.
Patch #1 sets spi alias in ast2500-facebook-netbmc-common.dtsi (included by wedge400 dts) to make sure spi bus is consistent with flash labels in flash layout.
Patch #2 enables more ADC channels in wedge400 dts.
Patch #3 sets eMMC max frequency to 25MHz in wedge400 dts.
Tao Ren (3):
ARM: dts: aspeed: Update spi alias in Facebook AST2500 Common dtsi
ARM: dts: aspeed: wedge400: Enable more ADC channels
ARM: dts: aspeed: wedge400: Set eMMC max frequency
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-wedge400.dts | 4 +++- arch/arm/boot/dts/aspeed/ast2500-facebook-netbmc-common.dtsi | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-)
Signature · 1 line
2.40.1
PATCH 1/3 ARM: dts: aspeed: Update spi alias in Facebook AST2500 Common dtsi
From: Tao Ren <[email protected]>
Set FMC controller to "spi0" in ast2500-facebook-netbmc-common.dtsi so the spi bus is consistent with the flash labels defined in flash layout.
--- arch/arm/boot/dts/aspeed/ast2500-facebook-netbmc-common.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/aspeed/ast2500-facebook-netbmc-common.dtsi +4 -0
@@ -4,6 +4,10 @@ #include "aspeed-g5.dtsi" / { + aliases { + spi0 = &fmc; + }; + memory at 80000000 { reg = <0x80000000 0x40000000>; };
Signature · 1 line
2.40.1
PATCH 2/3 ARM: dts: aspeed: wedge400: Enable more ADC channels
In reply to [email protected]From: Tao Ren <[email protected]>
Enable ASPEED-ADC channels 5-8 to support voltage monitoring of all the Wedge400 hardware revisions.
--- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-wedge400.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-wedge400.dts +2 -1
@@ -59,7 +59,8 @@ chosen { ast-adc-hwmon { compatible = "iio-hwmon"; - io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>; + io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>, + <&adc 5>, <&adc 6>, <&adc 7>, <&adc 8>; }; /*
Signature · 1 line
2.40.1
PATCH 3/3 ARM: dts: aspeed: wedge400: Set eMMC max frequency
In reply to [email protected]From: Tao Ren <[email protected]>
Set eMMC max frequency to 25MHz to prevent intermittent eMMC access failures.
--- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-wedge400.dts | 1 + 1 file changed, 1 insertion(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-wedge400.dts +1 -0
@@ -367,6 +367,7 @@ &uhci { }; &sdhci1 { + max-frequency = <25000000>; /* * DMA mode needs to be disabled to avoid conflicts with UHCI * Controller in AST2500 SoC.
Signature · 1 line
2.40.1
Quoted 9 lines · On Thu, 3 Aug 2023 at 23:03, <[email protected]> wrote:
From: Tao Ren <[email protected]>
The patch series fixes a few entries in wedge400 device tree.
Patch #1 sets spi alias in
ast2500-facebook-netbmc-common.dtsi(included by wedge400 dts) to make sure spi bus is consistent with flash labels in flash layout.
Quoted 6 lines
Patch #2 enables more ADC channels in wedge400 dts.
Patch #3 sets eMMC max frequency to 25MHz in wedge400 dts.
Tao Ren (3):
ARM: dts: aspeed: Update spi alias in Facebook AST2500 Common dtsi
I wondered if we should do this in the aspeed-g5.dtsi.
Quoted 2 lines
ARM: dts: aspeed: wedge400: Enable more ADC channels
ARM: dts: aspeed: wedge400: Set eMMC max frequency
Quoted 8 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-wedge400.dts | 4 +++- arch/arm/boot/dts/aspeed/ast2500-facebook-netbmc-common.dtsi | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-)--
2.40.1
Hi Joel,
Quoted 10 lines · Joel Stanley
Quoted 9 lines · On Thu, 3 Aug 2023 at 23:03, <[email protected]> wrote:
From: Tao Ren <[email protected]>
The patch series fixes a few entries in wedge400 device tree.
Patch #1 sets spi alias in
ast2500-facebook-netbmc-common.dtsi(included by wedge400 dts) to make sure spi bus is consistent with flash labels in flash layout.
Quoted 8 lines
Quoted 6 lines
Patch #2 enables more ADC channels in wedge400 dts.
Patch #3 sets eMMC max frequency to 25MHz in wedge400 dts.
Tao Ren (3):
ARM: dts: aspeed: Update spi alias in Facebook AST2500 Common dtsiI wondered if we should do this in the
aspeed-g5.dtsi.
I also hesitated if I should do it in aspeed-g5.dtsi, but I didn't do it because I was not sure if others care about the spi aliases.. Should I send out v2 to move the alias to aspeed-g5.dtsi?
Cheers,
Tao
Quoted 18 lines · Tao Ren
Hi Joel,
Quoted 14 lines · Joel Stanley
Quoted 13 lines · On Thu, 3 Aug 2023 at 23:03, <[email protected]> wrote:
From: Tao Ren <[email protected]>
The patch series fixes a few entries in wedge400 device tree.
Patch #1 sets spi alias in
ast2500-facebook-netbmc-common.dtsi(included by wedge400 dts) to make sure spi bus is consistent with flash labels in flash layout.Patch #2 enables more ADC channels in wedge400 dts.
Patch #3 sets eMMC max frequency to 25MHz in wedge400 dts.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Tao Ren (3):
ARM: dts: aspeed: Update spi alias in Facebook AST2500 Common dtsiI wondered if we should do this in the
aspeed-g5.dtsi.I also hesitated if I should do it in
aspeed-g5.dtsi, but I didn't do it because I was not sure if others care about the spi aliases.. Should I send out v2 to move the alias toaspeed-g5.dtsi?
I wasn't sure either. Lets leave it as-is, but if we see other systems wanting similar numbering then we can put it in the common dtsi.
I've applied this to the aspeed tree now.
Cheers,
Joel
Quoted 28 lines · Joel Stanley
Quoted 18 lines · Tao Ren
Hi Joel,
Quoted 14 lines · Joel Stanley
Quoted 13 lines · On Thu, 3 Aug 2023 at 23:03, <[email protected]> wrote:
From: Tao Ren <[email protected]>
The patch series fixes a few entries in wedge400 device tree.
Patch #1 sets spi alias in
ast2500-facebook-netbmc-common.dtsi(included by wedge400 dts) to make sure spi bus is consistent with flash labels in flash layout.Patch #2 enables more ADC channels in wedge400 dts.
Patch #3 sets eMMC max frequency to 25MHz in wedge400 dts.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Tao Ren (3):
ARM: dts: aspeed: Update spi alias in Facebook AST2500 Common dtsiI wondered if we should do this in the
aspeed-g5.dtsi.I also hesitated if I should do it in
aspeed-g5.dtsi, but I didn't do it because I was not sure if others care about the spi aliases.. Should I send out v2 to move the alias toaspeed-g5.dtsi?
Quoted 8 lines
I wasn't sure either. Lets leave it as-is, but if we see other systems wanting similar numbering then we can put it in the common dtsi.
I've applied this to the aspeed tree now.
Cheers,
Joel
Got it. Thanks Joel.
Cheers,
Tao