ARM: dts: Aspeed: Add Facebook common dts
PATCH 1/1 ARM: dts: Aspeed: Add Facebook common dts
Initial introduction of Facebook common
equipped with Aspeed 2600 BMC SoC.
--- arch/arm/dts/Makefile | 1 + arch/arm/dts/ast2600-fb.dts | 66 +++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 arch/arm/dts/ast2600-fb.dts
arch/arm/dts/Makefile +1 -0
@@ -686,6 +686,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ ast2600-dcscm.dtb \ ast2600-evb-ecc.dtb \ ast2600-evb.dtb \ + ast2600-fb.dtb \ ast2600-fpga.dtb \ ast2600-greatlakes.dtb \ ast2600-intel.dtb \
arch/arm/dts/ast2600-fb.dts new file +66 -0
66 lines not on this page · raw message
Signature · 1 line
2.25.1
Quoted 28 lines · Peter Yin
Initial introduction of Facebook common
equipped with Aspeed 2600 BMC SoC.Signed-off-by Peter Yin <[email protected]>--- arch/arm/dts/Makefile | 1 + arch/arm/dts/ast2600-fb.dts | 66 +++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 arch/arm/dts/ast2600-fb.dtsarch/arm/dts/Makefile +1
-0@@ -686,6 +686,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ ast2600-dcscm.dtb \ ast2600-evb-ecc.dtb \ ast2600-evb.dtb \ + ast2600-fb.dtb \ ast2600-fpga.dtb \ ast2600-greatlakes.dtb \ ast2600-intel.dtb \arch/arm/dts/ast2600-fb.dts new file +0
-0
arch/arm/dts/ast2600-fb.dts line 9
Quoted 9 lines
arch/arm/dts/ast2600-fb.dts new file +9
-0@@ -0,0 +1,66 @@ +// SPDX-License-Identifier: GPL-2.0+ +// Copyright (c) 2023 Meta Platforms Inc. +/dts-v1/; + +#include "ast2600-u-boot.dtsi" + +/ { + model = "Facebook Common BMC"; + compatible = "facebook,common-bmc", "aspeed,ast2600";
I'm not convinced about "facebook,common-bmc" as a compatible. Is there actually a reason to specify anything here other than "aspeed,ast2600"?
Alternatively, perhaps list all the relevant platforms, like the p10bmc dts?
``` $ git grep aspeed,ast2600 arch/arm/dts/ast2600-p10bmc.dts arch/arm/dts/ast2600-p10bmc.dts: compatible = "ibm,everest-bmc", "ibm,rainier-bmc", "ibm,p10bmc", "aspeed,ast2600"; ```
Andrew
Hi Andrew,
Thank you for your reply, Do you mean something like this?
compatible = "facebook,harma-bmc", "facebook,minerva-bmc", "aspeed,ast2600";
Thanks,
Peter.
Quoted 52 lines · Andrew Jeffery
Quoted 28 lines · Peter Yin
Initial introduction of Facebook common
equipped with Aspeed 2600 BMC SoC.Signed-off-by Peter Yin <[email protected]>--- arch/arm/dts/Makefile | 1 + arch/arm/dts/ast2600-fb.dts | 66 +++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 arch/arm/dts/ast2600-fb.dtsarch/arm/dts/Makefile +1
-0@@ -686,6 +686,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ ast2600-dcscm.dtb \ ast2600-evb-ecc.dtb \ ast2600-evb.dtb \ + ast2600-fb.dtb \ ast2600-fpga.dtb \ ast2600-greatlakes.dtb \ ast2600-intel.dtb \arch/arm/dts/ast2600-fb.dts new file +0
-0arch/arm/dts/ast2600-fb.dts line 9
Quoted 9 lines
arch/arm/dts/ast2600-fb.dts new file +9
-0@@ -0,0 +1,66 @@ +// SPDX-License-Identifier: GPL-2.0+ +// Copyright (c) 2023 Meta Platforms Inc. +/dts-v1/; + +#include "ast2600-u-boot.dtsi" + +/ { + model = "Facebook Common BMC"; + compatible = "facebook,common-bmc", "aspeed,ast2600";I'm not convinced about "facebook,common-bmc" as a compatible. Is there actually a reason to specify anything here other than "aspeed,ast2600"?
Alternatively, perhaps list all the relevant platforms, like the p10bmc dts?
``` $ git grep aspeed,ast2600 arch/arm/dts/ast2600-p10bmc.dts arch/arm/dts/ast2600-p10bmc.dts: compatible = "ibm,everest-bmc", "ibm,rainier-bmc", "ibm,p10bmc", "aspeed,ast2600"; ```Andrew
Quoted 4 lines · Peter Yin
Hi Andrew,
Thank you for your reply, Do you mean something like this?
compatible = "facebook,harma-bmc", "facebook,minerva-bmc", "aspeed,ast2600";
Right. It removes the nebulous "common" concept that might be upset by future changes.
Andrew
Quoted 8 lines · Andrew Jeffery
Quoted 4 lines · Peter Yin
Hi Andrew,
Thank you for your reply, Do you mean something like this?
compatible = "facebook,harma-bmc", "facebook,minerva-bmc", "aspeed,ast2600";Right. It removes the nebulous "common" concept that might be upset by future changes.
I agree that just "common" is probably not appropriate because this device tree only covers ast2600-based platforms.
We are trying to design our BMC hardware such that at a u-boot level, the same device tree can be used for most of our platforms. This is partially so we can avoid having to add new changes for u-boot for every new platform.
Should we do something like "facebook,ast2600-standard"?
Signature · 1 line
Patrick Williams
Quoted 7 lines · Patrick Williams
Quoted 6 lines · Andrew Jeffery
Quoted 4 lines · Peter Yin
Hi Andrew,
Thank you for your reply, Do you mean something like this?
compatible = "facebook,harma-bmc", "facebook,minerva-bmc", "aspeed,ast2600";
Quoted 9 lines
Quoted 2 lines
Right. It removes the nebulous "common" concept that might be upset by future changes.
I agree that just "common" is probably not appropriate because this device tree only covers ast2600-based platforms.
We are trying to design our BMC hardware such that at a u-boot level, the same device tree can be used for most of our platforms.
Seems sensible, but does this common design point have a name? Otherwise it feels like a "coincidently similar" relationship, which seems a bit ill-defined. Better to enumerate the specific platforms in that case.
Quoted 3 lines
This is
partially so we can avoid having to add new changes for u-boot for every new platform.
Not having to write new drivers or define drastically different devicetrees feels like a useful goal. I don't feel tacking on a new compatible here is particularly onerous (not that it even matters in practice if you select only this specific devicetree in the u-boot build).
Just wondering if we can avoid nebulous concepts, and rather keep things concrete.
Quoted 3 lines
Should we do something like "facebook,ast2600-standard"?
I guess I'm trying to guard-rail the discussion from the position of the compatible strings should be documented in the DT schemas. Is this something that would pass review upstream?
Andrew
Quoted 8 lines · Andrew Jeffery
Quoted 6 lines · Patrick Williams
Quoted 2 lines
Right. It removes the nebulous "common" concept that might be upset by future changes.
I agree that just "common" is probably not appropriate because this device tree only covers ast2600-based platforms.
Quoted 8 lines
Quoted 3 lines
We are trying to design our BMC hardware such that at a u-boot level, the same device tree can be used for most of our platforms.
Seems sensible, but does this common design point have a name? Otherwise it feels like a "coincidently similar" relationship, which seems a bit ill-defined. Better to enumerate the specific platforms in that case.
I can make up a name if necessary I guess.
Quoted 4 lines
Quoted 3 lines
This is
partially so we can avoid having to add new changes for u-boot for every new platform.
Quoted 8 lines
Not having to write new drivers or define drastically different devicetrees feels like a useful goal. I don't feel tacking on a new compatible here is particularly onerous (not that it even matters in practice if you select only this specific devicetree in the u-boot build).
Just wondering if we can avoid nebulous concepts, and rather keep things concrete.
I realize the motivation was lost in what I wrote.
We are trying to balance a few constraints, mostly induced by the project itself.
1. The project has a refusal for any u-boot patches in openbmc/openbmc, but we want to have first class support for our machines.
2. The project maintenance of u-boot is in poor shape and no where near the level of response or up-to-dateness of the kernel.
The motivation for not wanting to send a new device tree is mainly workaround the poor pick-up rate for any u-boot patch request.
Prior to patches dated in March the last time any device tree change was accepted into the openbmc u-boot tree was dated May 2023. There was even a devicetree sent to the mailing list by Joel himself that isn't in the tree right now. Our experience has been bad enough that we've taken to just reusing the ast2600-bletchley or ast2600-evb on multiple platforms, depending on what we can get working. It seems to me [slightly] better to reuse a tree with a generic / common name than to confusingly use bletchley on multiple platforms, hence the proposal here.
In meta-facebook:
```
$ rg UBOOT_DEVICETREE | sed "s/.*://" | sort | uniq -c
2 UBOOT_DEVICETREE = "ast2500-evb"
3 UBOOT_DEVICETREE = "ast2600-bletchley"
2 UBOOT_DEVICETREE = "ast2600-evb"
```I don't currently have a lot of faith that if we sent a trivial "add the new compatible" that it would be accepted in a timely manner.
Quoted 7 lines
Quoted 3 lines
Should we do something like "facebook,ast2600-standard"?
I guess I'm trying to guard-rail the discussion from the position of the compatible strings should be documented in the DT schemas. Is this something that would pass review upstream?
I don't know? We're so far removed from upstream at this point that I see that as aspirational. (Everyone using AST2600 is using u-boot 2019.04, which was 5 years ago.)
Having said all this, I would love to do things as "right" as possible while still being able to make progress. What is the right step?
Signature · 1 line
Patrick Williams
Quoted 3 lines · Patrick Williams
I don't currently have a lot of faith that if we sent a trivial "add the new compatible" that it would be accepted in a timely manner.
Well, I'm responding to the patch because I intend to help you get it merged. I'm trying to keep on top of the patches people send these days. Can we give it a chance?
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Should we do something like "facebook,ast2600-standard"?
Quoted 7 lines
Quoted 3 lines
I guess I'm trying to guard-rail the discussion from the position of the compatible strings should be documented in the DT schemas. Is this something that would pass review upstream?
I don't know? We're so far removed from upstream at this point that I see that as aspirational. (Everyone using AST2600 is using u-boot 2019.04, which was 5 years ago.)
Sure, the tree is not in good shape. However, that doesn't mean we should go adding fuel to the fire?
Quoted 4 lines
Having said all this, I would love to do things as "right" as possible while still being able to make progress. What is the right step?
That's what I'm trying to figure out in this discussion :) Currently my thought is "better to keep things concrete and describe actual platforms", rather than "make up a name for something that vaguely exists only in principle". I asked about upstream because that allows you to escape my thoughts and drive the patch through on someone else's acceptance of your proposal :)
Andrew
Quoted 8 lines · Andrew Jeffery
Quoted 3 lines · Patrick Williams
I don't currently have a lot of faith that if we sent a trivial "add the new compatible" that it would be accepted in a timely manner.
Well, I'm responding to the patch because I intend to help you get it merged. I'm trying to keep on top of the patches people send these days. Can we give it a chance?
Sure, we can give it [another] chance.
Peter, please send independent patches for minerva and harma DTSs for u-boot.
Signature · 1 line
Patrick Williams