<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 13 September 2018 at 11:01, Joel Stanley <span dir="ltr"><<a href="mailto:joel@jms.id.au" target="_blank">joel@jms.id.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, 13 Sep 2018 at 11:55, Yuan Yao <<a href="mailto:yao.yuan@linaro.org">yao.yuan@linaro.org</a>> wrote:<br>
><br>
> The HXT StarDragon 4800 REP2 (Reference Evaluation Platform) is<br>
> an aarch64 ARMv8 server platform with an ast2520 BMC.<br>
><br>
> Signed-off-by: Yuan Yao <<a href="mailto:yao.yuan@linaro.org">yao.yuan@linaro.org</a>><br>
<br>
</span>Looks good. I will apply it to the Aspeed tree in a few days, after<br>
giving others a chance to review.<br>
<br>
Out of interest, are you planning on running OpenBMC on this platform?<br></blockquote><div><br></div><div>Hi Joel,</div><div><br></div><div>Thanks for your work.<br></div><div><br></div><div>Yes, I will running OpenBMC on this platform.</div><div>And In fact, the OpenBMC basic startup is already running on REP2.</div><div>I'm also trying to push the OpenBMC patch for this 
platform.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers, </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Joel<br>
<div class="HOEnZb"><div class="h5"><br>
> ---<br>
>  .../devicetree/bindings/<wbr>vendor-prefixes.txt        |   1 +<br>
>  arch/arm/boot/dts/Makefile                         |   1 +<br>
>  .../dts/aspeed-bmc-arm-<wbr>stardragon4800-rep2.dts     | 207 +++++++++++++++++++++<br>
>  3 files changed, 209 insertions(+)<br>
>  create mode 100644 arch/arm/boot/dts/aspeed-bmc-<wbr>arm-stardragon4800-rep2.dts<br>
><br>
> diff --git a/Documentation/devicetree/<wbr>bindings/vendor-prefixes.txt b/Documentation/devicetree/<wbr>bindings/vendor-prefixes.txt<br>
> index 2c3fc51..c65c0c1 100644<br>
> --- a/Documentation/devicetree/<wbr>bindings/vendor-prefixes.txt<br>
> +++ b/Documentation/devicetree/<wbr>bindings/vendor-prefixes.txt<br>
> @@ -165,6 +165,7 @@ honeywell   Honeywell<br>
>  hp     Hewlett Packard<br>
>  holtek Holtek Semiconductor, Inc.<br>
>  hwacom HwaCom Systems Inc.<br>
> +hxt            Huaxintong Semiconductor Technology Co., Ltd.<br>
>  i2se   I2SE GmbH<br>
>  ibm    International Business Machines (IBM)<br>
>  idt    Integrated Device Technologies, Inc.<br>
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile<br>
> index b5bd3de..a1b8816 100644<br>
> --- a/arch/arm/boot/dts/Makefile<br>
> +++ b/arch/arm/boot/dts/Makefile<br>
> @@ -1199,6 +1199,7 @@ dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb<br>
>  dtb-$(CONFIG_ARCH_ASPEED) += \<br>
>         aspeed-ast2500-evb.dtb \<br>
>         aspeed-bmc-arm-centriq2400-<wbr>rep.dtb \<br>
> +       aspeed-bmc-arm-stardragon4800-<wbr>rep2.dtb \<br>
>         aspeed-bmc-intel-s2600wf.dtb \<br>
>         aspeed-bmc-opp-lanyang.dtb \<br>
>         aspeed-bmc-opp-palmetto.dtb \<br>
> diff --git a/arch/arm/boot/dts/aspeed-<wbr>bmc-arm-stardragon4800-rep2.<wbr>dts b/arch/arm/boot/dts/aspeed-<wbr>bmc-arm-stardragon4800-rep2.<wbr>dts<br>
> new file mode 100644<br>
> index 0000000..83335c0<br>
> --- /dev/null<br>
> +++ b/arch/arm/boot/dts/aspeed-<wbr>bmc-arm-stardragon4800-rep2.<wbr>dts<br>
> @@ -0,0 +1,207 @@<br>
> +// SPDX-License-Identifier: GPL-2.0+<br>
> +/dts-v1/;<br>
> +<br>
> +#include "aspeed-g5.dtsi"<br>
> +#include <dt-bindings/gpio/aspeed-gpio.<wbr>h><br>
> +<br>
> +/ {<br>
> +       model = "HXT StarDragon 4800 REP2 AST2520";<br>
> +       compatible = "hxt,stardragon4800-rep2-bmc", "aspeed,ast2500";<br>
> +<br>
> +       chosen {<br>
> +               stdout-path = &uart5;<br>
> +               bootargs = "console=ttyS4,115200 earlyprintk";<br>
> +       };<br>
> +<br>
> +       memory {<br>
> +               reg = <0x80000000 0x40000000>;<br>
> +       };<br>
> +<br>
> +       iio-hwmon {<br>
> +               compatible = "iio-hwmon";<br>
> +               io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,<br>
> +                                               <&adc 4>, <&adc 5>, <&adc 6>, <&adc 8>;<br>
> +       };<br>
> +<br>
> +       iio-hwmon-battery {<br>
> +               compatible = "iio-hwmon";<br>
> +               io-channels = <&adc 7>;<br>
> +       };<br>
> +<br>
> +       leds {<br>
> +               compatible = "gpio-leds";<br>
> +<br>
> +               system_fault1 {<br>
> +                       label = "System_fault1";<br>
> +                       gpios = <&gpio ASPEED_GPIO(I, 3) GPIO_ACTIVE_LOW>;<br>
> +               };<br>
> +<br>
> +               system_fault2 {<br>
> +                       label = "System_fault2";<br>
> +                       gpios = <&gpio ASPEED_GPIO(I, 2) GPIO_ACTIVE_LOW>;<br>
> +               };<br>
> +       };<br>
> +};<br>
> +<br>
> +&fmc {<br>
> +       status = "okay";<br>
> +       flash@0 {<br>
> +               status = "okay";<br>
> +               m25p,fast-read;<br>
> +               label = "bmc";<br>
> +#include "openbmc-flash-layout.dtsi"<br>
> +       };<br>
> +};<br>
> +<br>
> +&spi1 {<br>
> +       status = "okay";<br>
> +       pinctrl-names = "default";<br>
> +       pinctrl-0 = <&pinctrl_spi1_default>;<br>
> +       flash@0 {<br>
> +               status = "okay";<br>
> +       };<br>
> +};<br>
> +<br>
> +&spi2 {<br>
> +       pinctrl-names = "default";<br>
> +       pinctrl-0 = <&pinctrl_spi2ck_default<br>
> +                       &pinctrl_spi2miso_default<br>
> +                       &pinctrl_spi2mosi_default<br>
> +                       &pinctrl_spi2cs0_default>;<br>
> +};<br>
> +<br>
> +&uart3 {<br>
> +       status = "okay";<br>
> +<br>
> +       pinctrl-names = "default";<br>
> +       pinctrl-0 = <&pinctrl_txd3_default &pinctrl_rxd3_default>;<br>
> +       current-speed = <115200>;<br>
> +};<br>
> +<br>
> +&uart5 {<br>
> +       status = "okay";<br>
> +};<br>
> +<br>
> +&mac0 {<br>
> +       status = "okay";<br>
> +       pinctrl-names = "default";<br>
> +       pinctrl-0 = <&pinctrl_rgmii1_default &pinctrl_mdio1_default>;<br>
> +};<br>
> +<br>
> +&mac1 {<br>
> +       status = "okay";<br>
> +       pinctrl-names = "default";<br>
> +       pinctrl-0 = <&pinctrl_rmii2_default>;<br>
> +       use-ncsi;<br>
> +};<br>
> +<br>
> +&i2c0 {<br>
> +       status = "okay";<br>
> +};<br>
> +<br>
> +&i2c1 {<br>
> +       status = "okay";<br>
> +<br>
> +       tmp421@1e {<br>
> +               compatible = "ti,tmp421";<br>
> +               reg = <0x1e>;<br>
> +       };<br>
> +       tmp421@2a {<br>
> +               compatible = "ti,tmp421";<br>
> +               reg = <0x2a>;<br>
> +       };<br>
> +       tmp421@1c {<br>
> +               compatible = "ti,tmp421";<br>
> +               reg = <0x1c>;<br>
> +       };<br>
> +};<br>
> +<br>
> +&i2c2 {<br>
> +       status = "okay";<br>
> +};<br>
> +<br>
> +&i2c3 {<br>
> +       status = "okay";<br>
> +};<br>
> +<br>
> +&i2c4 {<br>
> +       status = "okay";<br>
> +};<br>
> +<br>
> +&i2c5 {<br>
> +       status = "okay";<br>
> +};<br>
> +<br>
> +&i2c6 {<br>
> +       status = "okay";<br>
> +<br>
> +       tmp421@1f {<br>
> +               compatible = "ti,tmp421";<br>
> +               reg = <0x1f>;<br>
> +       };<br>
> +       nvt210@4c {<br>
> +               compatible = "nvt210";<br>
> +               reg = <0x4c>;<br>
> +       };<br>
> +       eeprom@50 {<br>
> +               compatible = "atmel,24c128";<br>
> +               reg = <0x50>;<br>
> +               pagesize = <128>;<br>
> +       };<br>
> +};<br>
> +<br>
> +&i2c7 {<br>
> +       status = "okay";<br>
> +};<br>
> +<br>
> +&i2c8 {<br>
> +       status = "okay";<br>
> +<br>
> +       pca9641@70 {<br>
> +               compatible = "nxp,pca9641";<br>
> +               reg = <0x70>;<br>
> +               i2c-arb {<br>
> +                       #address-cells = <1>;<br>
> +                       #size-cells = <0>;<br>
> +                       eeprom@50 {<br>
> +                               compatible = "atmel,24c02";<br>
> +                               reg = <0x50>;<br>
> +                       };<br>
> +                       dps650ab@58 {<br>
> +                               compatible = "dps650ab";<br>
> +                               reg = <0x58>;<br>
> +                       };<br>
> +               };<br>
> +       };<br>
> +};<br>
> +<br>
> +&i2c9 {<br>
> +       status = "okay";<br>
> +};<br>
> +<br>
> +&vuart {<br>
> +       status = "okay";<br>
> +};<br>
> +<br>
> +&gfx {<br>
> +       status = "okay";<br>
> +};<br>
> +<br>
> +&pinctrl {<br>
> +       aspeed,external-nodes = <&gfx &lhc>;<br>
> +};<br>
> +<br>
> +&gpio {<br>
> +       pin_gpio_c7 {<br>
> +               gpio-hog;<br>
> +               gpios = <ASPEED_GPIO(C, 7) GPIO_ACTIVE_HIGH>;<br>
> +               output-low;<br>
> +               line-name = "BIOS_SPI_MUX_S";<br>
> +       };<br>
> +       pin_gpio_d1 {<br>
> +               gpio-hog;<br>
> +               gpios = <ASPEED_GPIO(D, 1) GPIO_ACTIVE_HIGH>;<br>
> +               output-high;<br>
> +               line-name = "PHY2_RESET_N";<br>
> +       };<br>
> +};<br>
> --<br>
> 1.8.3.1<br>
><br>
</div></div></blockquote></div><br></div></div>