ARM: dts: aspeed: Add AMD DaytonaX BMC
Subsystems (3)
PATCH v3 1/1 ARM: dts: aspeed: Add AMD DaytonaX BMC
Add initial version of device tree for the BMC in the AMD DaytonaX platform.
AMD DaytonaX platform is a customer reference board (CRB) with an Aspeed ast2500 BMC manufactured by AMD.
--- .../bindings/arm/aspeed/aspeed.yaml | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts | 319 ++++++++++++++++++ 3 files changed, 321 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1 -0
@@ -30,6 +30,7 @@ properties: items: - enum: - amd,ethanolx-bmc + - amd,daytonax-bmc - ampere,mtjade-bmc - aspeed,ast2500-evb - asrock,e3c246d4i-bmc
arch/arm/boot/dts/Makefile +1 -0
@@ -1575,6 +1575,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-ast2600-evb-a1.dtb \ aspeed-ast2600-evb.dtb \ aspeed-bmc-amd-ethanolx.dtb \ + aspeed-bmc-amd-daytonax.dtb \ aspeed-bmc-ampere-mtjade.dtb \ aspeed-bmc-arm-stardragon4800-rep2.dtb \ aspeed-bmc-asrock-e3c246d4i.dtb \
arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts new file +319 -0
319 lines not on this page · raw message
Signature · 1 line
2.25.1
Quoted 6 lines · Konstantin Aladyshev
Add initial version of device tree for the BMC in the AMD DaytonaX platform.
AMD DaytonaX platform is a customer reference board (CRB) with an Aspeed ast2500 BMC manufactured by AMD.
Quoted 8 lines
Signed-off-by Konstantin Aladyshev <[email protected]>--- .../bindings/arm/aspeed/aspeed.yaml | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts | 319 ++++++++++++++++++ 3 files changed, 321 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts
Running 'make dtbs_check' with the schema in this patch gives the following warnings. Consider if they are expected or the schema is incorrect. These may not be new warnings.
Note that it is not yet a requirement to have 0 warnings for dtbs_check. This will change in the future.
Full log is available here: https://patchwork.ozlabs.org/patch/
/: compatible: 'oneOf' conditional failed, one must be fixed:
arch/arm/boot/dts/aspeed-bmc-qcom-dc-scm-v1.dtb
Quoted 19 lines · Konstantin Aladyshev
Add initial version of device tree for the BMC in the AMD DaytonaX platform.
AMD DaytonaX platform is a customer reference board (CRB) with an Aspeed ast2500 BMC manufactured by AMD.
Signed-off-by Konstantin Aladyshev <[email protected]>--- .../bindings/arm/aspeed/aspeed.yaml | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts | 319 ++++++++++++++++++ 3 files changed, 321 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dtsDocumentation/devicetree/bindings/arm/aspeed/aspeed.yaml +0
-0
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml properties: · line 33
Quoted 4 lines
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1
-0@@ -30,6 +30,7 @@ properties: items: - enum: - amd,ethanolx-bmc + - amd,daytonax-bmc
Alphabetical order.
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml properties: · line 36
Quoted 3 lines
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +0
-0- ampere,mtjade-bmc - aspeed,ast2500-evb - asrock,e3c246d4i-bmc
This is always a separate patch.
Quoted 50 lines
arch/arm/boot/dts/Makefile +1
-0@@ -1575,6 +1575,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-ast2600-evb-a1.dtb \ aspeed-ast2600-evb.dtb \ aspeed-bmc-amd-ethanolx.dtb \ + aspeed-bmc-amd-daytonax.dtb \ aspeed-bmc-ampere-mtjade.dtb \ aspeed-bmc-arm-stardragon4800-rep2.dtb \ aspeed-bmc-asrock-e3c246d4i.dtb \arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts new file +32
-0@@ -0,0 +1,319 @@ +// SPDX-License-Identifier: GPL-2.0 +/dts-v1/; + +#include "aspeed-g5.dtsi" +#include <dt-bindings/gpio/aspeed-gpio.h> +#include <dt-bindings/interrupt-controller/irq.h> + +/ { + model = "AMD DaytonaX BMC"; + compatible = "amd,daytonax-bmc", "aspeed,ast2500"; + + memory at 80000000 { + reg = <0x80000000 0x20000000>; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + video_engine_memory: jpegbuffer { + size = <0x02000000>; /* 32M */ + alignment = <0x01000000>; + compatible = "shared-dma-pool"; + reusable; + }; + }; + + aliases { + serial0 = &uart1; + serial4 = &uart5; + };
arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts line 42
Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts new file +10
-0+ + chosen { + stdout-path = &uart5; + bootargs = "console=ttyS4,115200 earlycon"; + }; + + leds { + compatible = "gpio-leds"; + + fault {
No improvements here, so you did not test your DTS. You received comment asking you to do it.
Please run make dtbs_check (see Documentation/devicetree/bindings/writing-schema.rst for instructions).
Best regards,
Krzysztof
v4 cover Add AMD DaytonaX BMC
In reply to Konstantin AladyshevAdd initial version of device tree for the BMC in the AMD DaytonaX platform.
AMD DaytonaX platform is a customer reference board (CRB) with an Aspeed ast2500 BMC manufactured by AMD.
Konstantin Aladyshev (2):
dt-bindings: arm: aspeed: document AMD DaytonaX
ARM: dts: aspeed: Add AMD DaytonaX BMC
.../bindings/arm/aspeed/aspeed.yaml | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts | 319 ++++++++++++++++++ 3 files changed, 321 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts
Signature · 1 line
2.25.1
PATCH v4 1/2 dt-bindings: arm: aspeed: document AMD DaytonaX
Document AMD DaytonaX board compatible.
--- Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1 -0
@@ -29,6 +29,7 @@ properties: - description: AST2500 based boards items: - enum: + - amd,daytonax-bmc - amd,ethanolx-bmc - ampere,mtjade-bmc - aspeed,ast2500-evb
Signature · 1 line
2.25.1
Re: [PATCH v4 1/2] dt-bindings: arm: aspeed: document AMD DaytonaX
Quoted 7 lines · Konstantin Aladyshev
Document AMD DaytonaX board compatible.
Signed-off-by Konstantin Aladyshev <[email protected]>--- Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 + 1 file changed, 1 insertion(+)
Running 'make dtbs_check' with the schema in this patch gives the following warnings. Consider if they are expected or the schema is incorrect. These may not be new warnings.
Note that it is not yet a requirement to have 0 warnings for dtbs_check. This will change in the future.
Full log is available here: https://patchwork.ozlabs.org/patch/1680833
/: compatible: 'oneOf' conditional failed, one must be fixed:
arch/arm/boot/dts/aspeed-bmc-qcom-dc-scm-v1.dtb
Re: [PATCH v4 1/2] dt-bindings: arm: aspeed: document AMD DaytonaX
Quoted 13 lines · Krzysztof Kozlowski
Quoted 7 lines · Konstantin Aladyshev
Document AMD DaytonaX board compatible.
Signed-off-by Konstantin Aladyshev <[email protected]>--- Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 + 1 file changed, 1 insertion(+)Running 'make
dtbs_check' with the schema in this patch gives the following warnings. Consider if they are expected or the schema is incorrect. These may not be new warnings.
Quoted 8 lines
Note that it is not yet a requirement to have 0 warnings for
dtbs_check. This will change in the future.Full log is available here: https://patchwork.ozlabs.org/patch/1680833
/: compatible: 'oneOf' conditional failed, one must be fixed:
arch/arm/boot/dts/aspeed-bmc-qcom-dc-scm-v1.dtb
Ignore, this is not related.
Best regards,
Krzysztof
Re: [PATCH v4 1/2] dt-bindings: arm: aspeed: document AMD DaytonaX
In reply to Konstantin AladyshevQuoted 3 lines · Konstantin Aladyshev
Document AMD DaytonaX board compatible.
Signed-off-by Konstantin Aladyshev <[email protected]>
Best regards,
Krzysztof
PATCH v4 2/2 ARM: dts: aspeed: Add AMD DaytonaX BMC
In reply to Konstantin AladyshevAdd initial version of device tree for the BMC in the AMD DaytonaX platform.
AMD DaytonaX platform is a customer reference board (CRB) with an Aspeed ast2500 BMC manufactured by AMD.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts | 319 ++++++++++++++++++ 2 files changed, 320 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -1574,6 +1574,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-ast2500-evb.dtb \ aspeed-ast2600-evb-a1.dtb \ aspeed-ast2600-evb.dtb \ + aspeed-bmc-amd-daytonax.dtb \ aspeed-bmc-amd-ethanolx.dtb \ aspeed-bmc-ampere-mtjade.dtb \ aspeed-bmc-arm-stardragon4800-rep2.dtb \
arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts new file +319 -0
319 lines not on this page · raw message
Signature · 1 line
2.25.1
Sorry, I still have some questions, can you please help me?
I work with kernel in the context of the OpenBMC project, and it is not possible to run 'make dtbs_check' in the linux kernel devshell (Yocto). So I've tried to download upstream kernel and have performed the following commands to make the dtbs_check:
``` $ make ARCH=arm aspeed_g5_defconfig && make ARCH=arm dtbs_check ```
This gave me a ton of output regarding all the problems in all of the aspeed boards. 'wc -l' says that the log file is about 7080 lines long. Is it possible to get the output only for my target DTS? The article that you've referred to
(https://www.kernel.org/doc/Documentation/devicetree/writing-schema.rst)
only have the information about how to run checks against one schema (DT_SCHEMA_FILES), but it is not the same thing.
I've manually tried to split the output regarding my DTS file, but even so the output is overwhelming - https://pastebin.com/b92rnBt0. I just don't understand if the mentioned things are about the common "aspeed-g5.dtsi" file that I should ignore or the things regarding errors in my submitted DTS file. Can you give me some advice on that?
Anyway I think I've updated my patchset regarding all the things that you've mentioned explicitly. I've split the patchset to two as you've requested and have added a cover letter. I hope I did everything correctly.
But I'm still not sure about this 'make dtbs_check'. If I did something wrong, please correct me.
Best regards,
Konstantin Aladyshev
Quoted 354 lines · Konstantin Aladyshev
Add initial version of device tree for the BMC in the AMD DaytonaX platform.
AMD DaytonaX platform is a customer reference board (CRB) with an Aspeed ast2500 BMC manufactured by AMD.
Signed-off-by Konstantin Aladyshev <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts | 319 ++++++++++++++++++ 2 files changed, 320 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dtsarch/arm/boot/dts/Makefile +1
-0@@ -1574,6 +1574,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-ast2500-evb.dtb \ aspeed-ast2600-evb-a1.dtb \ aspeed-ast2600-evb.dtb \ + aspeed-bmc-amd-daytonax.dtb \ aspeed-bmc-amd-ethanolx.dtb \ aspeed-bmc-ampere-mtjade.dtb \ aspeed-bmc-arm-stardragon4800-rep2.dtb \arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts new file +319
-1@@ -0,0 +1,319 @@ +// SPDX-License-Identifier: GPL-2.0 +/dts-v1/; + +#include "aspeed-g5.dtsi" +#include <dt-bindings/gpio/aspeed-gpio.h> +#include <dt-bindings/interrupt-controller/irq.h> + +/ { + model = "AMD DaytonaX BMC"; + compatible = "amd,daytonax-bmc", "aspeed,ast2500"; + + memory at 80000000 { + reg = <0x80000000 0x20000000>; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + video_engine_memory: jpegbuffer { + size = <0x02000000>; /* 32M */ + alignment = <0x01000000>; + compatible = "shared-dma-pool"; + reusable; + }; + }; + + aliases { + serial0 = &uart1; + serial4 = &uart5; + }; + + chosen { + stdout-path = &uart5; + bootargs = "console=ttyS4,115200"; + }; + + leds { + compatible = "gpio-leds"; + + led-fault { + gpios = <&gpio ASPEED_GPIO(A, 2) GPIO_ACTIVE_LOW>; + }; + + led-identify { + gpios = <&gpio ASPEED_GPIO(A, 3) GPIO_ACTIVE_LOW>; + }; + }; + + iio-hwmon { + compatible = "iio-hwmon"; + io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>, + <&adc 5>, <&adc 6>, <&adc 7>, <&adc 8>, <&adc 9>, + <&adc 10>, <&adc 11>, <&adc 12>, <&adc 13>, <&adc 14>, + <&adc 15>; + }; +}; + +&fmc { + status = "okay"; + flash at 0 { + status = "okay"; + m25p,fast-read; + label = "bmc"; + #include "openbmc-flash-layout.dtsi" + }; +}; + +&mac0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rgmii1_default &pinctrl_mdio1_default>; +}; + +&uart1 { + //Host Console + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_txd1_default + &pinctrl_rxd1_default + &pinctrl_nrts1_default + &pinctrl_ndtr1_default + &pinctrl_ndsr1_default + &pinctrl_ncts1_default + &pinctrl_ndcd1_default + &pinctrl_nri1_default>; +}; + +&uart5 { + //BMC Console + status = "okay"; +}; + +&vuart { + status = "okay"; + aspeed,lpc-io-reg = <0x3f8>; + aspeed,lpc-interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; +}; + +&adc { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_adc0_default + &pinctrl_adc1_default + &pinctrl_adc2_default + &pinctrl_adc3_default + &pinctrl_adc4_default + &pinctrl_adc5_default + &pinctrl_adc6_default + &pinctrl_adc7_default + &pinctrl_adc8_default + &pinctrl_adc9_default + &pinctrl_adc10_default + &pinctrl_adc11_default + &pinctrl_adc12_default + &pinctrl_adc13_default + &pinctrl_adc14_default + &pinctrl_adc15_default>; +}; + +&gpio { + status = "okay"; + gpio-line-names = + /*A0-A7*/ "","","led-fault","led-identify","","","","", + /*B0-B7*/ "","","","","","","","", + /*C0-C7*/ "id-button","","","","","","","", + /*D0-D7*/ "","","ASSERT_BMC_READY","","","","","", + /*E0-E7*/ "reset-button","reset-control","power-button","power-control","", + "power-good","power-ok","", + /*F0-F7*/ "","","","","","","BATTERY_DETECT","", + /*G0-G7*/ "","","","","","","","", + /*H0-H7*/ "","","","","","","","", + /*I0-I7*/ "","","","","","","","", + /*J0-J7*/ "","","","","","","","", + /*K0-K7*/ "","","","","","","","", + /*L0-L7*/ "","","","","","","","", + /*M0-M7*/ "","","","","","","","", + /*N0-N7*/ "","","","","","","","", + /*O0-O7*/ "","","","","","","","", + /*P0-P7*/ "","","","","","","","", + /*Q0-Q7*/ "","","","","","","","", + /*R0-R7*/ "","","","","","","","", + /*S0-S7*/ "","","","","","","","", + /*T0-T7*/ "","","","","","","","", + /*U0-U7*/ "","","","","","","","", + /*V0-V7*/ "","","","","","","","", + /*W0-W7*/ "","","","","","","","", + /*X0-X7*/ "","","","","","","","", + /*Y0-Y7*/ "","","","","","","","", + /*Z0-Z7*/ "","","","","","","","", + /*AA0-AA7*/ "","","","","","","","", + /*AB0-AB7*/ "FM_BMC_READ_SPD_TEMP","","","","","","","", + /*AC0-AC7*/ "","","","","","","",""; +}; + +&i2c0 { + status = "okay"; +}; + +&i2c1 { + status = "okay"; +}; + +&i2c2 { + status = "okay"; +}; + +&i2c3 { + status = "okay"; +}; + +&i2c4 { + status = "okay"; +}; + +&i2c5 { + status = "okay"; +}; + +&i2c6 { + status = "okay"; +}; + +&i2c7 { + status = "okay"; +}; + +&i2c8 { + status = "okay"; +}; + +&i2c10 { + status = "okay"; +}; + +&i2c11 { + status = "okay"; +}; + +&i2c12 { + status = "okay"; +}; + +&kcs3 { + status = "okay"; + aspeed,lpc-io-reg = <0xca2>; +}; + +&lpc_snoop { + status = "okay"; + snoop-ports = <0x80>, <0x81>; +}; + +&lpc_ctrl { + status = "okay"; +}; + +&pwm_tacho { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm0_default + &pinctrl_pwm1_default + &pinctrl_pwm2_default + &pinctrl_pwm3_default + &pinctrl_pwm4_default + &pinctrl_pwm5_default + &pinctrl_pwm6_default + &pinctrl_pwm7_default>; + + fan at 0 { + reg = <0x00>; + aspeed,fan-tach-ch = /bits/ 8 <0x00>; + }; + + fan at 1 { + reg = <0x00>; + aspeed,fan-tach-ch = /bits/ 8 <0x01>; + }; + + fan at 2 { + reg = <0x01>; + aspeed,fan-tach-ch = /bits/ 8 <0x02>; + }; + + fan at 3 { + reg = <0x01>; + aspeed,fan-tach-ch = /bits/ 8 <0x03>; + }; + + fan at 4 { + reg = <0x02>; + aspeed,fan-tach-ch = /bits/ 8 <0x04>; + }; + + fan at 5 { + reg = <0x02>; + aspeed,fan-tach-ch = /bits/ 8 <0x05>; + }; + + fan at 6 { + reg = <0x03>; + aspeed,fan-tach-ch = /bits/ 8 <0x06>; + }; + + fan at 7 { + reg = <0x03>; + aspeed,fan-tach-ch = /bits/ 8 <0x07>; + }; + + fan at 8 { + reg = <0x04>; + aspeed,fan-tach-ch = /bits/ 8 <0x08>; + }; + + fan at 9 { + reg = <0x04>; + aspeed,fan-tach-ch = /bits/ 8 <0x09>; + }; + + fan at 10 { + reg = <0x05>; + aspeed,fan-tach-ch = /bits/ 8 <0x0a>; + }; + + fan at 11 { + reg = <0x05>; + aspeed,fan-tach-ch = /bits/ 8 <0x0b>; + }; + + fan at 12 { + reg = <0x06>; + aspeed,fan-tach-ch = /bits/ 8 <0x0c>; + }; + + fan at 13 { + reg = <0x06>; + aspeed,fan-tach-ch = /bits/ 8 <0x0d>; + }; + + fan at 14 { + reg = <0x07>; + aspeed,fan-tach-ch = /bits/ 8 <0x0e>; + }; + + fan at 15 { + reg = <0x07>; + aspeed,fan-tach-ch = /bits/ 8 <0x0f>; + }; +}; + +&video { + status = "okay"; + memory-region = <&video_engine_memory>; +}; + +&vhub { + status = "okay"; +}; --2.25.1
Quoted 9 lines · Konstantin Aladyshev
Sorry, I still have some questions, can you please help me?
I work with kernel in the context of the OpenBMC project, and it is not possible to run 'make
dtbs_check' in the linux kernel devshell (Yocto). So I've tried to download upstream kernel and have performed the following commands to make thedtbs_check:``` $ make ARCH=arm aspeed_g5_defconfig && make ARCH=arm dtbs_check ```
Quoted 7 lines
This gave me a ton of output regarding all the problems in all of the aspeed boards. 'wc -l' says that the log file is about 7080 lines long. Is it possible to get the output only for my target DTS? The article that you've referred to
(https://www.kernel.org/doc/Documentation/devicetree/writing-schema.rst)
only have the information about how to run checks against one schema (DT_SCHEMA_FILES), but it is not the same thing.
You can limit it per target. See slide 11:
https://osseu2022.sched.com/event/15z0W
This might miss some warnings, so better way is to:
make ARCH=arm dtbs_check
touch your-dts
make ARCH=arm dtbs_check
You will get only your errors.
Quoted 6 lines
I've manually tried to split the output regarding my DTS file, but even so the output is overwhelming - https://pastebin.com/b92rnBt0. I just don't understand if the mentioned things are about the common "
aspeed-g5.dtsi" file that I should ignore or the things regarding errors in my submitted DTS file. Can you give me some advice on that?
Yes, you can ignore errors from dtsi.
Best regards,
Krzysztof
Quoted 11 lines · Konstantin Aladyshev
Add initial version of device tree for the BMC in the AMD DaytonaX platform.
AMD DaytonaX platform is a customer reference board (CRB) with an Aspeed ast2500 BMC manufactured by AMD.
Signed-off-by Konstantin Aladyshev <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts | 319 ++++++++++++++++++ 2 files changed, 320 insertions(+)
Best regards,
Krzysztof