[PATCH linux dev-4.7] ARM: dts: aspeed: Add Langyang BMC device tree

Joel Stanley joel at jms.id.au
Wed Mar 29 17:10:00 AEDT 2017


On Wed, Mar 29, 2017 at 4:32 PM, Lei YU <mine260309 at gmail.com> wrote:
> Reviewed-by: Lei YU <mine260309 at gmail.com>
>
> On Wed, Mar 29, 2017 at 12:49 PM, Joel Stanley <joel at jms.id.au> wrote:
>> From: Ken Chen <chen.kenyy at inventec.com>
>>
>> Langyang is an OpenPower Power9 system made by Inventec.
>>
>> Signed-off-by: Ken Chen <chen.kenyy at inventec.com>
>> Signed-off-by: Joel Stanley <joel at jms.id.au>

Merged in to dev-4.7.

Cheers,

Joel

>> ---
>>  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
>>
>> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
>> index ff647a08fe41..ba0e018e3275 100644
>> --- a/arch/arm/boot/dts/Makefile
>> +++ b/arch/arm/boot/dts/Makefile
>> @@ -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
>> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts b/arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts
>> new file mode 100644
>> index 000000000000..176e4b449339
>> --- /dev/null
>> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts
>> @@ -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 at 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 at 0 {
>> +               status = "okay";
>> +#include "aspeed-bmc-opp-flash-layout.dtsi"
>> +       };
>> +};
>> +
>> +&spi1 {
>> +       status = "okay";
>> +       pinctrl-names = "default";
>> +       pinctrl-0 = <&pinctrl_spi1_default>;
>> +
>> +       flash at 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 at 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 at 68 {
>> +               compatible = "dallas,ds3231";
>> +               reg = <0x68>;
>> +       };
>> +
>> +       /* RTC DS3231 @68h       */
>> +};
>> +
>> +&i2c1 {
>> +       status = "disable";
>> +
>> +       /* APSS
>> +        * BCM5719
>> +        */
>> +};
>> +
>> +&i2c2 {
>> +       status = "okay";
>> +
>> +       /* AT24C64 @55h */
>> +       eeprom at 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 at 75 {
>> +               compatible = "nxp,pca9546";
>> +               reg = <0x75>;
>> +               #address-cells = <1>;
>> +               #size-cells = <0>;
>> +       };
>> +};
>> +
>> +&i2c3 {
>> +       status = "okay";
>> +
>> +       /* Power sequencer UCD90160 PMBUS @64h */
>> +       ucd90160 at 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 at 48 {
>> +               compatible = "ti,tmp75";
>> +               reg = <0x48>;
>> +       };
>> +
>> +       /* T-SENSOR TMP75 @49h */
>> +       tmp75 at 49 {
>> +               compatible = "ti,tmp75";
>> +               reg = <0x49>;
>> +       };
>> +
>> +       /* T-SENSOR TMP75 @4Ah */
>> +       tmp75 at 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
>>


More information about the openbmc mailing list