ARM: dts: aspeed: Add Langyang BMC device tree
Subsystems (3)
Joel Stanley
maintainerPATCH 1/1 ARM: dts: aspeed: Add Langyang BMC device tree
From: Ken Chen <[email protected]>
Langyang is an OpenPower Power9 system made by Inventec.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts | 319 +++++++++++++++++++++++++++ 2 files changed, 320 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -897,6 +897,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += aspeed-bmc-opp-palmetto.dtb \ aspeed-bmc-opp-witherspoon.dtb \ aspeed-bmc-opp-zaius.dtb \ aspeed-bmc-opp-romulus.dtb \ + aspeed-bmc-opp-lanyang.dtb \ aspeed-bmc-facebook-cmm.dtb \ aspeed-ast2500-evb.dtb endif
arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts new file +319 -0
319 lines not on this page · raw message
Signature · 1 line
2.11.0
Quoted 352 lines · Joel Stanley
From: Ken Chen <[email protected]>
Langyang is an OpenPower Power9 system made by Inventec.
Signed-off-by Ken Chen <[email protected]>Signed-off-by Joel Stanley <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts | 319 +++++++++++++++++++++++++++ 2 files changed, 320 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dtsarch/arm/boot/dts/Makefile +1
-0@@ -897,6 +897,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += aspeed-bmc-opp-palmetto.dtb \ aspeed-bmc-opp-witherspoon.dtb \ aspeed-bmc-opp-zaius.dtb \ aspeed-bmc-opp-romulus.dtb \ + aspeed-bmc-opp-lanyang.dtb \ aspeed-bmc-facebook-cmm.dtb \ aspeed-ast2500-evb.dtb endifarch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts new file +319
-1@@ -0,0 +1,319 @@ +/dts-v1/; + +#include "aspeed-g5.dtsi" +#include <dt-bindings/gpio/aspeed-gpio.h> + +/ { + model = "Lanyang BMC"; + compatible = "inventec,lanyang-bmc", "aspeed,ast2500"; + + aliases { + serial4 = &uart5; + }; + + chosen { + stdout-path = &uart5; + bootargs = "console=ttyS4,115200 earlyprintk"; + }; + + memory { + reg = <0x80000000 0x40000000>; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + flash_memory: region@94000000 { + no-map; + reg = <0x94000000 0x04000000>; /* 64M */ + }; + }; + + onewire0 { + compatible = "w1-gpio"; + gpios = <&gpio ASPEED_GPIO(D, 1) GPIO_ACTIVE_HIGH>; + }; + + onewire1 { + compatible = "w1-gpio"; + gpios = <&gpio ASPEED_GPIO(D, 2) GPIO_ACTIVE_HIGH>; + }; + + onewire2 { + compatible = "w1-gpio"; + gpios = <&gpio ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>; + }; + + onewire3 { + compatible = "w1-gpio"; + gpios = <&gpio ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>; + }; + + leds { + compatible = "gpio-leds"; + + sys_boot_status { + label = "System_boot_status"; + gpios = <&gpio ASPEED_GPIO(B, 6) GPIO_ACTIVE_LOW>; + }; + + attention { + label = "Attention_locator"; + gpios = <&gpio ASPEED_GPIO(B, 7) GPIO_ACTIVE_HIGH>; + }; + + plt_fault { + label = "Platform_fault"; + gpios = <&gpio ASPEED_GPIO(B, 1) GPIO_ACTIVE_HIGH>; + }; + + hdd_fault { + label = "Onboard_drive_fault"; + gpios = <&gpio ASPEED_GPIO(B, 3) GPIO_ACTIVE_HIGH>; + }; + bmc_err { + lable = "BMC_fault"; + gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_HIGH>; + }; + + sys_err { + lable = "Sys_fault"; + gpios = <&gpio ASPEED_GPIO(H, 7) GPIO_ACTIVE_HIGH>; + }; + }; + + fsi-master { + compatible = "ibm,fsi-master", "ibm,fsi-master-gpio"; + + status = "okay"; + + clock-gpios = <&gpio ASPEED_GPIO(J, 0) GPIO_ACTIVE_HIGH>; + data-gpios = <&gpio ASPEED_GPIO(J, 1) GPIO_ACTIVE_HIGH>; + trans-gpios = <&gpio ASPEED_GPIO(D, 5) GPIO_ACTIVE_HIGH>; + enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>; + mux-gpios = <&gpio ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>; + }; +}; + +&fmc { + status = "okay"; + flash@0 { + status = "okay"; +#include "aspeed-bmc-opp-flash-layout.dtsi" + }; +}; + +&spi1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi1_default>; + + flash@0 { + status = "okay"; + label = "pnor"; + }; +}; + +&spi2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi2ck_default + &pinctrl_spi2cs0_default + &pinctrl_spi2cs1_default + &pinctrl_spi2miso_default + &pinctrl_spi2mosi_default>; + + flash@0 { + status = "okay"; + }; +}; + +&uart1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_txd1_default + &pinctrl_rxd1_default>; +}; + +&lpc_ctrl { + status = "okay"; + memory-region = <&flash_memory>; + flash = <&spi1>; +}; + +&mbox { + status = "okay"; +}; + +&uart5 { + status = "okay"; +}; + +&mac0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rmii1_default>; + use-ncsi; +}; + +&mac1 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>; +}; + +&i2c0 { + status = "okay"; + + rtc@68 { + compatible = "dallas,ds3231"; + reg = <0x68>; + }; + + /* RTC DS3231 @68h */ +}; + +&i2c1 { + status = "disable"; + + /* APSS + * BCM5719 + */ +}; + +&i2c2 { + status = "okay"; + + /* AT24C64 @55h */ + eeprom@55 { + compatible = "atmel,24c64"; + reg = <0x55>; + pagesize = <32>; + }; + + /* + * PCA9546 @75h + * bus0 48V MON LM5058 @41h + * 48V H-SWAP LM5058 @40h + * bus1 P0 0V8 MON LM5058 @40h + * P1 0V8 MON LM5058 @41h + * bus2 P0 0V7 MON LM5058 @40h + * P1 0V7 MON LM5058 @41h + * bus3 P0 VDDQ0 MON LM5058 @40h + * P0 VDDQ1 MON LM5058 @41h + * P1 VDDQ0 MON LM5058 @42h + * P1 VDDQ1 MON LM5058 @43h + */ + i2c-switch@75 { + compatible = "nxp,pca9546"; + reg = <0x75>; + #address-cells = <1>; + #size-cells = <0>; + }; +}; + +&i2c3 { + status = "okay"; + + /* Power sequencer UCD90160 PMBUS @64h */ + ucd90160@64 { + compatible = "ti,ucd90160"; + reg = <0x6B>; + }; +}; + +&i2c4 { + status = "disabled"; + + /* P0 FSP connecter */ +}; + +&i2c5 { + status = "okay"; + + /* CPU0 0V96 IR38063 @41h */ + /* CPU1 0V96 IR38063 @42h */ + /* CPU0 1V0 IR38063 @40h */ + /* CPU1 1V0 IR38063 @43h */ +}; + +&i2c6 { + status = "disabled"; + + /* P1 FSP connecter */ +}; + +&i2c7 { + status = "okay"; + + /* CLK BUFF 9DBL0452 @6Dh */ + /* CLK GEN 9FGS9092 @6Bh */ +}; + +&i2c8 { + status = "okay"; + +}; + +&i2c9 { + status = "okay"; + + /* T-SENSOR TMP75 @48h */ + tmp75@48 { + compatible = "ti,tmp75"; + reg = <0x48>; + }; + + /* T-SENSOR TMP75 @49h */ + tmp75@49 { + compatible = "ti,tmp75"; + reg = <0x49>; + }; + + /* T-SENSOR TMP75 @4Ah */ + tmp75@4A { + compatible = "ti,tmp75"; + reg = <0x4A>; + }; + + /* 12V Brick Q54SJ12050 @96h(TBD) */ +}; + +&i2c10 { + status = "disabled"; +}; + +&i2c11 { + status = "disabled"; + + /* TPM connector @57h */ +}; + +&i2c12 { + status = "disabled"; +}; + +&i2c13 { + status = "disabled"; +}; + +&gpio { + line_apss_reset { + gpio-hog; + gpios = <ASPEED_GPIO(E, 4) GPIO_ACTIVE_HIGH>; + output-high; + line-name = "BMC_APSS_RESET_N"; + }; +}; + +&vuart { + status = "okay"; +}; + +&pinctrl { + aspeed,external-nodes = <&gfx &lhc>; +}; --2.11.0
Joel Stanley
maintainerQuoted 9 lines · Lei YU
Reviewed-by Lei YU <[email protected]>Quoted 6 lines · Joel Stanley
From: Ken Chen <[email protected]>
Langyang is an OpenPower Power9 system made by Inventec.
Signed-off-by Ken Chen <[email protected]>Signed-off-by Joel Stanley <[email protected]>
Merged in to dev-4.7.
Cheers,
Joel
Quoted 346 lines
Quoted 346 lines
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts | 319 +++++++++++++++++++++++++++ 2 files changed, 320 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dtsarch/arm/boot/dts/Makefile +1
-0@@ -897,6 +897,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += aspeed-bmc-opp-palmetto.dtb \ aspeed-bmc-opp-witherspoon.dtb \ aspeed-bmc-opp-zaius.dtb \ aspeed-bmc-opp-romulus.dtb \ + aspeed-bmc-opp-lanyang.dtb \ aspeed-bmc-facebook-cmm.dtb \ aspeed-ast2500-evb.dtb endifarch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts new file +319
-1@@ -0,0 +1,319 @@ +/dts-v1/; + +#include "aspeed-g5.dtsi" +#include <dt-bindings/gpio/aspeed-gpio.h> + +/ { + model = "Lanyang BMC"; + compatible = "inventec,lanyang-bmc", "aspeed,ast2500"; + + aliases { + serial4 = &uart5; + }; + + chosen { + stdout-path = &uart5; + bootargs = "console=ttyS4,115200 earlyprintk"; + }; + + memory { + reg = <0x80000000 0x40000000>; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + flash_memory: region@94000000 { + no-map; + reg = <0x94000000 0x04000000>; /* 64M */ + }; + }; + + onewire0 { + compatible = "w1-gpio"; + gpios = <&gpio ASPEED_GPIO(D, 1) GPIO_ACTIVE_HIGH>; + }; + + onewire1 { + compatible = "w1-gpio"; + gpios = <&gpio ASPEED_GPIO(D, 2) GPIO_ACTIVE_HIGH>; + }; + + onewire2 { + compatible = "w1-gpio"; + gpios = <&gpio ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>; + }; + + onewire3 { + compatible = "w1-gpio"; + gpios = <&gpio ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>; + }; + + leds { + compatible = "gpio-leds"; + + sys_boot_status { + label = "System_boot_status"; + gpios = <&gpio ASPEED_GPIO(B, 6) GPIO_ACTIVE_LOW>; + }; + + attention { + label = "Attention_locator"; + gpios = <&gpio ASPEED_GPIO(B, 7) GPIO_ACTIVE_HIGH>; + }; + + plt_fault { + label = "Platform_fault"; + gpios = <&gpio ASPEED_GPIO(B, 1) GPIO_ACTIVE_HIGH>; + }; + + hdd_fault { + label = "Onboard_drive_fault"; + gpios = <&gpio ASPEED_GPIO(B, 3) GPIO_ACTIVE_HIGH>; + }; + bmc_err { + lable = "BMC_fault"; + gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_HIGH>; + }; + + sys_err { + lable = "Sys_fault"; + gpios = <&gpio ASPEED_GPIO(H, 7) GPIO_ACTIVE_HIGH>; + }; + }; + + fsi-master { + compatible = "ibm,fsi-master", "ibm,fsi-master-gpio"; + + status = "okay"; + + clock-gpios = <&gpio ASPEED_GPIO(J, 0) GPIO_ACTIVE_HIGH>; + data-gpios = <&gpio ASPEED_GPIO(J, 1) GPIO_ACTIVE_HIGH>; + trans-gpios = <&gpio ASPEED_GPIO(D, 5) GPIO_ACTIVE_HIGH>; + enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>; + mux-gpios = <&gpio ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>; + }; +}; + +&fmc { + status = "okay"; + flash@0 { + status = "okay"; +#include "aspeed-bmc-opp-flash-layout.dtsi" + }; +}; + +&spi1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi1_default>; + + flash@0 { + status = "okay"; + label = "pnor"; + }; +}; + +&spi2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi2ck_default + &pinctrl_spi2cs0_default + &pinctrl_spi2cs1_default + &pinctrl_spi2miso_default + &pinctrl_spi2mosi_default>; + + flash@0 { + status = "okay"; + }; +}; + +&uart1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_txd1_default + &pinctrl_rxd1_default>; +}; + +&lpc_ctrl { + status = "okay"; + memory-region = <&flash_memory>; + flash = <&spi1>; +}; + +&mbox { + status = "okay"; +}; + +&uart5 { + status = "okay"; +}; + +&mac0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rmii1_default>; + use-ncsi; +}; + +&mac1 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>; +}; + +&i2c0 { + status = "okay"; + + rtc@68 { + compatible = "dallas,ds3231"; + reg = <0x68>; + }; + + /* RTC DS3231 @68h */ +}; + +&i2c1 { + status = "disable"; + + /* APSS + * BCM5719 + */ +}; + +&i2c2 { + status = "okay"; + + /* AT24C64 @55h */ + eeprom@55 { + compatible = "atmel,24c64"; + reg = <0x55>; + pagesize = <32>; + }; + + /* + * PCA9546 @75h + * bus0 48V MON LM5058 @41h + * 48V H-SWAP LM5058 @40h + * bus1 P0 0V8 MON LM5058 @40h + * P1 0V8 MON LM5058 @41h + * bus2 P0 0V7 MON LM5058 @40h + * P1 0V7 MON LM5058 @41h + * bus3 P0 VDDQ0 MON LM5058 @40h + * P0 VDDQ1 MON LM5058 @41h + * P1 VDDQ0 MON LM5058 @42h + * P1 VDDQ1 MON LM5058 @43h + */ + i2c-switch@75 { + compatible = "nxp,pca9546"; + reg = <0x75>; + #address-cells = <1>; + #size-cells = <0>; + }; +}; + +&i2c3 { + status = "okay"; + + /* Power sequencer UCD90160 PMBUS @64h */ + ucd90160@64 { + compatible = "ti,ucd90160"; + reg = <0x6B>; + }; +}; + +&i2c4 { + status = "disabled"; + + /* P0 FSP connecter */ +}; + +&i2c5 { + status = "okay"; + + /* CPU0 0V96 IR38063 @41h */ + /* CPU1 0V96 IR38063 @42h */ + /* CPU0 1V0 IR38063 @40h */ + /* CPU1 1V0 IR38063 @43h */ +}; + +&i2c6 { + status = "disabled"; + + /* P1 FSP connecter */ +}; + +&i2c7 { + status = "okay"; + + /* CLK BUFF 9DBL0452 @6Dh */ + /* CLK GEN 9FGS9092 @6Bh */ +}; + +&i2c8 { + status = "okay"; + +}; + +&i2c9 { + status = "okay"; + + /* T-SENSOR TMP75 @48h */ + tmp75@48 { + compatible = "ti,tmp75"; + reg = <0x48>; + }; + + /* T-SENSOR TMP75 @49h */ + tmp75@49 { + compatible = "ti,tmp75"; + reg = <0x49>; + }; + + /* T-SENSOR TMP75 @4Ah */ + tmp75@4A { + compatible = "ti,tmp75"; + reg = <0x4A>; + }; + + /* 12V Brick Q54SJ12050 @96h(TBD) */ +}; + +&i2c10 { + status = "disabled"; +}; + +&i2c11 { + status = "disabled"; + + /* TPM connector @57h */ +}; + +&i2c12 { + status = "disabled"; +}; + +&i2c13 { + status = "disabled"; +}; + +&gpio { + line_apss_reset { + gpio-hog; + gpios = <ASPEED_GPIO(E, 4) GPIO_ACTIVE_HIGH>; + output-high; + line-name = "BMC_APSS_RESET_N"; + }; +}; + +&vuart { + status = "okay"; +}; + +&pinctrl { + aspeed,external-nodes = <&gfx &lhc>; +}; --2.11.0
Quoted 11 lines · Joel Stanley
Subject: Re: [PATCH linux dev-4.7] ARM: dts: aspeed: Add Langyang BMC device tree
Quoted 3 lines · Lei YU
Reviewed-by Lei YU <[email protected]>On Wed, Mar 29, 2017 at 12:49 PM, Joel Stanley <[email protected]>
Quoted 3 lines · wrote:
Quoted 3 lines
From: Ken Chen <[email protected]>
Langyang is an OpenPower Power9 system made by Inventec.
The subject and change log say Langyang (with 2 'g's).
Quoted 33 lines
Quoted 3 lines
Quoted 3 lines
Signed-off-by Ken Chen <[email protected]>Signed-off-by Joel Stanley <[email protected]>Merged in to dev-4.7.
Cheers,
Joel
Quoted 3 lines
Quoted 3 lines
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts | 319+++++++++++++++++++++++++++
Quoted 4 lines
Review
Quoted 4 lines
2 files changed, 320 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts(quoted diff) +0
-0b/arch/arm/boot/dts/Makefile
Quoted 4 lines
arch/arm/boot/dts/Makefile dtb-$(CONFIG_ARCH_ASPEED) +=
Quoted 4 lines
index
ff647a08fe41..ba0e018e3275100644arch/arm/boot/dts/Makefile +0
-0@@ -897,6 +897,7 @@ dtb-$(CONFIG_ARCH_ASPEED) +=aspeed-bmc-opp-palmetto.dtb \
Quoted 8 lines
Review
Quoted 8 lines
arch/arm/boot/dts/Makefile +1
-0aspeed-bmc-opp-witherspoon.dtb \ aspeed-bmc-opp-zaius.dtb \ aspeed-bmc-opp-romulus.dtb \ + aspeed-bmc-opp-lanyang.dtb \ aspeed-bmc-facebook-cmm.dtb \ aspeed-ast2500-evb.dtb endif(quoted diff) +0
-0
b/arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts
Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
new file mode 100644
index 000000000000..176e4b449339arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts new file +1
-0@@ -0,0 +1,319 @@ +/dts-v1/;Quoted 8 lines
arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts line 9
Quoted 8 lines
arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts new file +8
-0+ +#include "aspeed-g5.dtsi" +#include <dt-bindings/gpio/aspeed-gpio.h> + +/ { + model = "Lanyang BMC"; + compatible = "inventec,lanyang-bmc", "aspeed,ast2500"; +
The file name, compatible, and model say Lanyang (with 1 'g').
I realize it has been merged into openbmc, but maybe we can catch the upstream changelog. Unless the files are wrong.
milton
Joel Stanley
maintainerQuoted 15 lines · Milton Miller II
Quoted 11 lines · Joel Stanley
Subject: Re: [PATCH linux dev-4.7] ARM: dts: aspeed: Add Langyang BMC device tree
Quoted 3 lines · Lei YU
Reviewed-by Lei YU <[email protected]>On Wed, Mar 29, 2017 at 12:49 PM, Joel Stanley <[email protected]>
Quoted 3 lines · wrote:
Quoted 3 lines
From: Ken Chen <[email protected]>
Langyang is an OpenPower Power9 system made by Inventec.
Quoted 6 lines
The subject and change log say Langyang (with 2 'g's).
The file name, compatible, and model say Lanyang (with 1 'g').
I realize it has been merged into openbmc, but maybe we can catch the upstream changelog. Unless the files are wrong.
Thanks for pointing out my mistake. The correct spelling (as far as I know) is the filename and device tree. I will make sure to correct that in future.
Cheers,
Joel