Skip to contentSkip to conversation

ARM: dts: aspeed: Adding Facebook TioagaPass BMC

PATCH Superseded Vijay Khemka 4 participants 5 messages Sep 13, 2018 – Sep 17, 2018

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: aspeed: Adding Facebook TioagaPass BMC

Initial introduction of Facebook TioagaPass family equipped with Aspeed 2500 BMC SoC. Neptune is a x86 server development kit with a ASPEED ast2500 BMC manufactured by Facebook. Specifically, This adds the tiogapass platform device tree file including the flash layout used by the tiogapass BMC machines.

This also adds an entry of tiogapass device tree file in Makefile as well an entry of Facebook in Documentation for vendor prefix

---
 .../devicetree/bindings/vendor-prefixes.txt   |   1 +
 arch/arm/boot/dts/Makefile                    |   1 +
 .../dts/aspeed-bmc-facebook-tiogapass.dts     | 152 ++++++++++++++++++
 3 files changed, 154 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 2c3fc512e746..733b2d523642 100644
@@ -127,6 +127,7 @@ everspin	Everspin Technologies, Inc.
 exar	Exar Corporation
 excito	Excito
 ezchip	EZchip Semiconductor
+facebook  Facebook
 fairphone	Fairphone B.V.
 faraday	Faraday Technology Corporation
 fastrax	Fastrax Oy
arch/arm/boot/dts/Makefile +1 -0
index b5bd3de87c33..9c82c1681c38 100644
@@ -1206,4 +1206,5 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-opp-witherspoon.dtb \
 	aspeed-bmc-opp-zaius.dtb \
 	aspeed-bmc-portwell-neptune.dtb \
+	aspeed-bmc-facebook-tiogapass.dtb \
 	aspeed-bmc-quanta-q71l.dtb
arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts new file +152 -0

152 lines not on this page · raw message

Signature · 1 line
2.17.1
#1 lore raw

arch/arm/boot/dts/Makefile dtb-$(CONFIG_ARCH_ASPEED) += \ · line 1209

Quoted 6 lines

+++ b/arch/arm/boot/dts/Makefile

arch/arm/boot/dts/Makefile +1 -0
@@ -1206,4 +1206,5 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-opp-witherspoon.dtb \
 	aspeed-bmc-opp-zaius.dtb \
 	aspeed-bmc-portwell-neptune.dtb \
+	aspeed-bmc-facebook-tiogapass.dtb \

Hi Vijay

These entries are normally kept in alphabetic order.

arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts line 27

Quoted 4 lines
arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts new file +4 -0
+	leds {
+		compatible = "gpio-leds";
+		postcode0 {
+			label="BMC_UP";

Documentation/leds/leds-class.txt

LED Device Naming
=================

Is currently of the form:

"devicename:colour:function"

Andrew

#2 lore raw

Thanks Andrew,
I have revised patch as I found some more changes. Sent a new version.

Regards
-Vijay

arch/arm/boot/dts/Makefile dtb-$(CONFIG_ARCH_ASPEED) += \ · line 1209

Quoted 6 lines · Andrew Lunn

+++ b/arch/arm/boot/dts/Makefile

arch/arm/boot/dts/Makefile +1 -0
@@ -1206,4 +1206,5 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-opp-witherspoon.dtb \
 	aspeed-bmc-opp-zaius.dtb \
 	aspeed-bmc-portwell-neptune.dtb \
+	aspeed-bmc-facebook-tiogapass.dtb \
    Hi Vijay
    
    These entries are normally kept in alphabetic order.
    
    > +	leds {
    > +		compatible = "gpio-leds";
    > +		postcode0 {
    > +			label="BMC_UP";
    
    Documentation/leds/leds-class.txt
    
    LED Device Naming
    =================
    
    Is currently of the form:
    
    "devicename:colour:function"
    
    	Andrew
#3 lore raw
In reply to Vijay Khemka

Hi Vijay,

Am 13.09.18 um 21:57 schrieb Vijay Khemka:

Quoted 22 lines

Initial introduction of Facebook TioagaPass family equipped with Aspeed 2500 BMC SoC. Neptune is a x86 server development kit with a ASPEED ast2500 BMC manufactured by Facebook. Specifically, This adds the tiogapass platform device tree file including the flash layout used by the tiogapass BMC machines.

This also adds an entry of tiogapass device tree file in Makefile as well an entry of Facebook in Documentation for vendor prefix

---
 .../devicetree/bindings/vendor-prefixes.txt   |   1 +
 arch/arm/boot/dts/Makefile                    |   1 +
 .../dts/aspeed-bmc-facebook-tiogapass.dts     | 152 ++++++++++++++++++
 3 files changed, 154 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
Documentation/devicetree/bindings/vendor-prefixes.txt +0 -0
index 2c3fc512e746..733b2d523642 100644

Documentation/devicetree/bindings/vendor-prefixes.txt everspin Everspin Technologies, Inc. · line 130

Quoted 4 lines
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
@@ -127,6 +127,7 @@ everspin	Everspin Technologies, Inc.
 exar	Exar Corporation
 excito	Excito
 ezchip	EZchip Semiconductor
+facebook  Facebook

Indentation looks wrong?

Documentation/devicetree/bindings/vendor-prefixes.txt everspin Everspin Technologies, Inc. · line 133

Quoted 3 lines
Documentation/devicetree/bindings/vendor-prefixes.txt +0 -0
 fairphone	Fairphone B.V.
 faraday	Faraday Technology Corporation
 fastrax	Fastrax Oy

This addition should probably be in a patch with "dt-bindings:" subject prefix, before adding the concrete .dts file using it.

Quoted 16 lines
arch/arm/boot/dts/Makefile +1 -0
index b5bd3de87c33..9c82c1681c38 100644
@@ -1206,4 +1206,5 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-opp-witherspoon.dtb \
 	aspeed-bmc-opp-zaius.dtb \
 	aspeed-bmc-portwell-neptune.dtb \
+	aspeed-bmc-facebook-tiogapass.dtb \
 	aspeed-bmc-quanta-q71l.dtb
arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts new file +0 -0
new file mode 100644
index 000000000000..859a00581e34

arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts line 1

Quoted 1 line
arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts new file +1 -0
@@ -0,0 +1,152 @@
+// SPDX-License-Identifier: GPL-2.0

Note that the new SPDX name would be GPL-2.0-only to distinguish. No "OR MIT"?

arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts line 2

Quoted 1 line
arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts new file +1 -0
+// Copyright (c) 2017 Facebook Inc.

No 2018?

arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts line 10

Quoted 8 lines
arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts new file +8 -0
+/dts-v1/;
+
+#include "aspeed-g5.dtsi"
+#include <dt-bindings/gpio/aspeed-gpio.h>
+
+/ {
+	model = "Facebook TiogaPass BMC";
+	compatible = "facebook,tiogapass-bmc", "aspeed,ast2500";

[snip]

There's some inconsistency between subject, commit message, filename and compatibles of how this thing is actually called: Tioga or Tioaga?

Regards,
Andreas

Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)
maintainer
#4 lore raw

PATCH 1/1 ARM: dts: aspeed: Adding Facebook TioagaPass BMC

In reply to Vijay Khemka
Quoted 55 lines · Vijay Khemka

Initial introduction of Facebook TioagaPass family equipped with Aspeed 2500 BMC SoC. Neptune is a x86 server development kit with a ASPEED ast2500 BMC manufactured by Facebook. Specifically, This adds the tiogapass platform device tree file including the flash layout used by the tiogapass BMC machines.

This also adds an entry of tiogapass device tree file in Makefile as well an entry of Facebook in Documentation for vendor prefix

---
 .../devicetree/bindings/vendor-prefixes.txt   |   1 +
 arch/arm/boot/dts/Makefile                    |   1 +
 .../dts/aspeed-bmc-facebook-tiogapass.dts     | 152 ++++++++++++++++++
 3 files changed, 154 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 2c3fc512e746..733b2d523642 100644
@@ -127,6 +127,7 @@ everspin	Everspin Technologies, Inc.
 exar	Exar Corporation
 excito	Excito
 ezchip	EZchip Semiconductor
+facebook  Facebook
 fairphone	Fairphone B.V.
 faraday	Faraday Technology Corporation
 fastrax	Fastrax Oy
arch/arm/boot/dts/Makefile +1 -0
index b5bd3de87c33..9c82c1681c38 100644
@@ -1206,4 +1206,5 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-opp-witherspoon.dtb \
 	aspeed-bmc-opp-zaius.dtb \
 	aspeed-bmc-portwell-neptune.dtb \
+	aspeed-bmc-facebook-tiogapass.dtb \
 	aspeed-bmc-quanta-q71l.dtb
arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts new file +10 -0
new file mode 100644
index 000000000000..859a00581e34
@@ -0,0 +1,152 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (c) 2017 Facebook Inc.
+/dts-v1/;
+
+#include "aspeed-g5.dtsi"
+#include <dt-bindings/gpio/aspeed-gpio.h>
+
+/ {
+	model = "Facebook TiogaPass BMC";
+	compatible = "facebook,tiogapass-bmc", "aspeed,ast2500";

arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts line 20

Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts new file +10 -0
+	aliases {
+		serial0 = &uart1;
+		serial4 = &uart5;
+	};
+	chosen {
+		stdout-path = &uart5;
+		bootargs = "console=ttyS4,115200 earlyprintk";
+	};
+
+	memory {

This should have a unit-address (as should whatever is defined in aspeed-g5.dtsi).

Quoted 2 lines
arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts new file +2 -0
+		reg = <0x80000000 0x20000000>;
+	};