Skip to contentSkip to conversation

Add CMC of Facebook Minerva platform

PATCH In review Yang Chen 2 participants 4 messages Sep 14, 2023 – Sep 27, 2023

Subsystems (2)
lore
Share & tools
lore

Yang Chen

author
#0 lore raw

v2 cover Add CMC of Facebook Minerva platform

Add linux device tree entry related to the Minerva Chassis Management Controller (CMC) specific devices connected to the Aspeed SoC (AST2600).

Changes from v1:
- Change adc0 and adc1 "ref_voltage" property to "aspeed,int-vref-microvolt" which is defined in the binding file, and
choose the ADC internal reference voltage to 2500000 microvolts.

Yang Chen (2):
dt-bindings: arm: aspeed: document board compatibles
ARM: dts: aspeed: Minerva: Add Facebook Minerva CMC board

 .../bindings/arm/aspeed/aspeed.yaml           |   1 +
 arch/arm/boot/dts/aspeed/Makefile             |   1 +
 .../aspeed-bmc-facebook-minerva-cmc.dts       | 265 ++++++++++++++++++
 3 files changed, 267 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva-cmc.dts
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH v2 1/2 dt-bindings: arm: aspeed: document board compatibles

Document the new compatibles used on the Facebook Minerva Chassis Management Controller (CMC).

---
 Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1 -0
index 68f717670f78..749ee54a3ff8 100644
@@ -79,6 +79,7 @@ properties:
               - facebook,elbert-bmc
               - facebook,fuji-bmc
               - facebook,greatlakes-bmc
+              - facebook,minerva-cmc
               - facebook,yosemite4-bmc
               - ibm,everest-bmc
               - ibm,rainier-bmc
Signature · 1 line
2.34.1
author
#2 lore raw

PATCH v2 2/2 ARM: dts: aspeed: Minerva: Add Facebook Minerva CMC board

In reply to Yang Chen

Add linux device tree entry related to the Minerva Chassis Management Controller (CMC) specific devices connected to the Aspeed SoC (AST2600).

---
 arch/arm/boot/dts/aspeed/Makefile             |   1 +
 .../aspeed-bmc-facebook-minerva-cmc.dts       | 265 ++++++++++++++++++
 2 files changed, 266 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva-cmc.dts
arch/arm/boot/dts/aspeed/Makefile +1 -0
index 23cbc7203a8e..d3ac20e316d0 100644
@@ -19,6 +19,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-facebook-fuji.dtb \
 	aspeed-bmc-facebook-galaxy100.dtb \
 	aspeed-bmc-facebook-greatlakes.dtb \
+	aspeed-bmc-facebook-minerva-cmc.dtb \
 	aspeed-bmc-facebook-minipack.dtb \
 	aspeed-bmc-facebook-tiogapass.dtb \
 	aspeed-bmc-facebook-wedge40.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva-cmc.dts new file +265 -0

265 lines not on this page · raw message

Signature · 1 line
2.34.1
maintainer Reviewed-by on v2 2/2
#3 lore raw

Re: [PATCH v2 2/2] ARM: dts: aspeed: Minerva: Add Facebook Minerva CMC board

Quoted 5 lines · Yang Chen

Add linux device tree entry related to the Minerva Chassis Management Controller (CMC) specific devices connected to the Aspeed SoC (AST2600).

There was one warning when building. Please double check your code compiles cleanly before submitting:

arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva-cmc.dts:91.24-94.4:
Warning (i2c_bus_reg):
/ahb/apb/bus at 1e78a000/i2c-bus at 100/temperature-sensor at 4B: I2C bus unit address format error, expected "4b"

I've fixed that and added your patch to the aspeed tree for 6.7.

Quoted 292 lines
---
 arch/arm/boot/dts/aspeed/Makefile             |   1 +
 .../aspeed-bmc-facebook-minerva-cmc.dts       | 265 ++++++++++++++++++
 2 files changed, 266 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva-cmc.dts
arch/arm/boot/dts/aspeed/Makefile +1 -0
index 23cbc7203a8e..d3ac20e316d0 100644
@@ -19,6 +19,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
        aspeed-bmc-facebook-fuji.dtb \
        aspeed-bmc-facebook-galaxy100.dtb \
        aspeed-bmc-facebook-greatlakes.dtb \
+       aspeed-bmc-facebook-minerva-cmc.dtb \
        aspeed-bmc-facebook-minipack.dtb \
        aspeed-bmc-facebook-tiogapass.dtb \
        aspeed-bmc-facebook-wedge40.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva-cmc.dts new file +265 -1
new file mode 100644
index 000000000000..3c389fdf58a5
@@ -0,0 +1,265 @@
+// SPDX-License-Identifier: GPL-2.0+
+// Copyright (c) 2023 Facebook Inc.
+/dts-v1/;
+
+#include "aspeed-g6.dtsi"
+#include <dt-bindings/gpio/aspeed-gpio.h>
+#include <dt-bindings/i2c/i2c.h>
+
+/ {
+       model = "Facebook Minerva CMC";
+       compatible = "facebook,minerva-cmc", "aspeed,ast2600";
+
+       aliases {
+               serial5 = &uart5;
+       };
+
+       chosen {
+               stdout-path = "serial5:57600n8";
+       };
+
+       memory at 80000000 {
+               device_type = "memory";
+               reg = <0x80000000 0x80000000>;
+       };
+
+       iio-hwmon {
+               compatible = "iio-hwmon";
+               io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>,
+                       <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>,
+                       <&adc1 2>;
+       };
+};
+
+&uart6 {
+       status = "okay";
+};
+
+&wdt1 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_wdtrst1_default>;
+       aspeed,reset-type = "soc";
+       aspeed,external-signal;
+       aspeed,ext-push-pull;
+       aspeed,ext-active-high;
+       aspeed,ext-pulse-duration = <256>;
+};
+
+&mac3 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_rmii4_default>;
+       use-ncsi;
+       mlx,multi-host;
+};
+
+&fmc {
+       status = "okay";
+       flash at 0 {
+               status = "okay";
+               m25p,fast-read;
+               label = "bmc";
+               spi-max-frequency = <50000000>;
+#include "openbmc-flash-layout-128.dtsi"
+       };
+       flash at 1 {
+               status = "okay";
+               m25p,fast-read;
+               label = "alt-bmc";
+               spi-max-frequency = <50000000>;
+       };
+};
+
+&rtc {
+       status = "okay";
+};
+
+&sgpiom1 {
+       status = "okay";
+       ngpios = <128>;
+       bus-frequency = <2000000>;
+};
+
+&i2c0 {
+       status = "okay";
+};
+
+&i2c1 {
+       status = "okay";
+
+       temperature-sensor at 4B {
+               compatible = "ti,tmp75";
+               reg = <0x4B>;
+       };
+
+       eeprom at 51 {
+               compatible = "atmel,24c128";
+               reg = <0x51>;
+       };
+};
+
+&i2c2 {
+       status = "okay";
+
+       i2c-mux at 77 {
+               compatible = "nxp,pca9548";
+               reg = <0x77>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               i2c-mux-idle-disconnect;
+
+               i2c at 0 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0>;
+
+                       eeprom at 50 {
+                               compatible = "atmel,24c128";
+                               reg = <0x50>;
+                       };
+               };
+
+               i2c at 1 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <1>;
+
+                       eeprom at 50 {
+                               compatible = "atmel,24c128";
+                               reg = <0x50>;
+                       };
+               };
+
+               i2c at 2 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <2>;
+
+                       eeprom at 50 {
+                               compatible = "atmel,24c128";
+                               reg = <0x50>;
+                       };
+               };
+
+               i2c at 3 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <3>;
+
+                       eeprom at 50 {
+                               compatible = "atmel,24c128";
+                               reg = <0x50>;
+                       };
+               };
+
+               i2c at 4 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <4>;
+
+                       eeprom at 50 {
+                               compatible = "atmel,24c128";
+                               reg = <0x50>;
+                       };
+               };
+
+               i2c at 5 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <5>;
+
+                       eeprom at 50 {
+                               compatible = "atmel,24c128";
+                               reg = <0x50>;
+                       };
+               };
+       };
+};
+
+&i2c3 {
+       status = "okay";
+};
+
+&i2c4 {
+       status = "okay";
+};
+
+&i2c5 {
+       status = "okay";
+};
+
+&i2c6 {
+       status = "okay";
+};
+
+&i2c7 {
+       status = "okay";
+};
+
+&i2c8 {
+       status = "okay";
+};
+
+&i2c9 {
+       status = "okay";
+};
+
+&i2c10 {
+       status = "okay";
+};
+
+&i2c11 {
+       status = "okay";
+};
+
+&i2c12 {
+       status = "okay";
+};
+
+&i2c13 {
+       status = "okay";
+};
+
+&i2c14 {
+       status = "okay";
+       multi-master;
+
+       ipmb at 10 {
+               compatible = "ipmb-dev";
+               reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
+               i2c-protocol;
+       };
+};
+
+&i2c15 {
+       status = "okay";
+
+       eeprom at 50 {
+               compatible = "atmel,24c128";
+               reg = <0x50>;
+       };
+};
+
+&adc0 {
+       aspeed,int-vref-microvolt = <2500000>;
+       status = "okay";
+       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>;
+};
+
+&adc1 {
+       aspeed,int-vref-microvolt = <2500000>;
+       status = "okay";
+       pinctrl-0 = <&pinctrl_adc10_default>;
+};
+
+&ehci1 {
+       status = "okay";
+};
+
+&uhci {
+       status = "okay";
+};
--

2.34.1