* [PATCH v1 0/8] DTS updates for system1 BMC
@ 2024-12-13 14:50 Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 1/8] ARM: dts: aspeed: system1: Add IPMB device Ninad Palsule
` (8 more replies)
0 siblings, 9 replies; 15+ messages in thread
From: Ninad Palsule @ 2024-12-13 14:50 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, joel, andrew, devicetree, eajames, ninad,
linux-arm-kernel, linux-aspeed, linux-kernel
Hello
Please review the patch set. It has various device tree changes for
system1 BMC after hardware testing.
NINAD PALSULE (7):
ARM: dts: aspeed: system1: Add IPMB device
ARM: dts: aspeed: system1: Add GPIO line name
ARM: dts: aspeed: system1: Add RGMII support
ARM: dts: aspeed: system1: Reduce sgpio speed
ARM: dts: aspeed: system1: Update LED gpio name
ARM: dts: aspeed: system1: Remove VRs max8952
ARM: dts: aspeed: system1: Mark GPIO line high/low
Ninad Palsule (1):
ARM: dts: aspeed: system1: Disable gpio pull down
.../dts/aspeed/aspeed-bmc-ibm-system1.dts | 178 ++++++++++++------
1 file changed, 119 insertions(+), 59 deletions(-)
--
2.43.0
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v1 1/8] ARM: dts: aspeed: system1: Add IPMB device
2024-12-13 14:50 [PATCH v1 0/8] DTS updates for system1 BMC Ninad Palsule
@ 2024-12-13 14:50 ` Ninad Palsule
2024-12-13 15:48 ` Krzysztof Kozlowski
2024-12-13 14:50 ` [PATCH v1 2/8] ARM: dts: aspeed: system1: Add GPIO line name Ninad Palsule
` (7 subsequent siblings)
8 siblings, 1 reply; 15+ messages in thread
From: Ninad Palsule @ 2024-12-13 14:50 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, joel, andrew, devicetree, eajames, ninad,
linux-arm-kernel, linux-aspeed, linux-kernel
Cc: NINAD PALSULE
From: NINAD PALSULE <ninadpalsule@us.ibm.com>
Add IPMB device sitting behind PCH module
Signed-off-by: Ninad Palsule <ninad@linux.ibm.com>
---
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
index 8f77bc9e860c..51a116d7041a 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
@@ -763,6 +763,16 @@ i2c3mux0chn7: i2c@7 {
&i2c4 {
status = "okay";
+ multi-master;
+ bus-frequency = <1000000>;
+
+ //Set bmc' slave address;
+ bmc_slave@10 {
+ compatible = "ipmb-dev";
+ reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
+
+ i2c-protocol;
+ };
};
&i2c5 {
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v1 2/8] ARM: dts: aspeed: system1: Add GPIO line name
2024-12-13 14:50 [PATCH v1 0/8] DTS updates for system1 BMC Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 1/8] ARM: dts: aspeed: system1: Add IPMB device Ninad Palsule
@ 2024-12-13 14:50 ` Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 3/8] ARM: dts: aspeed: system1: Add RGMII support Ninad Palsule
` (6 subsequent siblings)
8 siblings, 0 replies; 15+ messages in thread
From: Ninad Palsule @ 2024-12-13 14:50 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, joel, andrew, devicetree, eajames, ninad,
linux-arm-kernel, linux-aspeed, linux-kernel
Cc: NINAD PALSULE
From: NINAD PALSULE <ninadpalsule@us.ibm.com>
Add following GPIO line name so that userspace can control them
- Flash write override
- pch-reset
Signed-off-by: Ninad Palsule <ninad@linux.ibm.com>
---
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
index 51a116d7041a..db4b9fb674fe 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
@@ -370,7 +370,7 @@ &gpio0 {
/*K0-K7*/ "","","","","","","","",
/*L0-L7*/ "","","","","","","","bmc-ready",
/*M0-M7*/ "","","","","","","","",
- /*N0-N7*/ "fpga-debug-enable","","","","","","","",
+ /*N0-N7*/ "pch-reset","","","","","flash-write-override","","",
/*O0-O7*/ "","","","","","","","",
/*P0-P7*/ "","","","","","","","bmc-hb",
/*Q0-Q7*/ "","","","","","","pch-ready","",
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v1 3/8] ARM: dts: aspeed: system1: Add RGMII support
2024-12-13 14:50 [PATCH v1 0/8] DTS updates for system1 BMC Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 1/8] ARM: dts: aspeed: system1: Add IPMB device Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 2/8] ARM: dts: aspeed: system1: Add GPIO line name Ninad Palsule
@ 2024-12-13 14:50 ` Ninad Palsule
2024-12-13 22:03 ` Andrew Lunn
2024-12-13 14:50 ` [PATCH v1 4/8] ARM: dts: aspeed: system1: Reduce sgpio speed Ninad Palsule
` (5 subsequent siblings)
8 siblings, 1 reply; 15+ messages in thread
From: Ninad Palsule @ 2024-12-13 14:50 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, joel, andrew, devicetree, eajames, ninad,
linux-arm-kernel, linux-aspeed, linux-kernel
Cc: NINAD PALSULE
From: NINAD PALSULE <ninadpalsule@us.ibm.com>
system1 has 2 transceiver connected through the RGMII interfaces. Added
device tree entry to enable RGMII support.
Signed-off-by: Ninad Palsule <ninad@linux.ibm.com>
---
.../dts/aspeed/aspeed-bmc-ibm-system1.dts | 38 ++++++++++++++++---
1 file changed, 33 insertions(+), 5 deletions(-)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
index db4b9fb674fe..775a95470f5c 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
@@ -425,14 +425,42 @@ &lpc_ctrl {
memory-region = <&flash_memory>;
};
+&mdio0 {
+ status = "okay";
+
+ ethphy0: ethernet-phy@0 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <0>;
+ };
+};
+
+&mdio2 {
+ status = "okay";
+
+ ethphy2: ethernet-phy@0 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <0>;
+ };
+};
+
+&mac0 {
+ status = "okay";
+
+ phy-mode = "rgmii-rxid";
+ phy-handle = <ðphy0>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_rgmii1_default>;
+};
+
&mac2 {
status = "okay";
+
+ phy-mode = "rgmii";
+ phy-handle = <ðphy2>;
+
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_rmii3_default>;
- clocks = <&syscon ASPEED_CLK_GATE_MAC3CLK>,
- <&syscon ASPEED_CLK_MAC3RCLK>;
- clock-names = "MACCLK", "RCLK";
- use-ncsi;
+ pinctrl-0 = <&pinctrl_rgmii3_default>;
};
&mac3 {
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v1 4/8] ARM: dts: aspeed: system1: Reduce sgpio speed
2024-12-13 14:50 [PATCH v1 0/8] DTS updates for system1 BMC Ninad Palsule
` (2 preceding siblings ...)
2024-12-13 14:50 ` [PATCH v1 3/8] ARM: dts: aspeed: system1: Add RGMII support Ninad Palsule
@ 2024-12-13 14:50 ` Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 5/8] ARM: dts: aspeed: system1: Update LED gpio name Ninad Palsule
` (4 subsequent siblings)
8 siblings, 0 replies; 15+ messages in thread
From: Ninad Palsule @ 2024-12-13 14:50 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, joel, andrew, devicetree, eajames, ninad,
linux-arm-kernel, linux-aspeed, linux-kernel
Cc: NINAD PALSULE
From: NINAD PALSULE <ninadpalsule@us.ibm.com>
Reduce sgpio speed to improve stability with the current PCB layout.
Signed-off-by: Ninad Palsule <ninad@linux.ibm.com>
---
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
index 775a95470f5c..ebbb14241256 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
@@ -401,7 +401,7 @@ &emmc {
&sgpiom0 {
status = "okay";
ngpios = <128>;
- bus-frequency = <1000000>;
+ bus-frequency = <500000>;
};
&ibt {
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v1 5/8] ARM: dts: aspeed: system1: Update LED gpio name
2024-12-13 14:50 [PATCH v1 0/8] DTS updates for system1 BMC Ninad Palsule
` (3 preceding siblings ...)
2024-12-13 14:50 ` [PATCH v1 4/8] ARM: dts: aspeed: system1: Reduce sgpio speed Ninad Palsule
@ 2024-12-13 14:50 ` Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 6/8] ARM: dts: aspeed: system1: Remove VRs max8952 Ninad Palsule
` (3 subsequent siblings)
8 siblings, 0 replies; 15+ messages in thread
From: Ninad Palsule @ 2024-12-13 14:50 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, joel, andrew, devicetree, eajames, ninad,
linux-arm-kernel, linux-aspeed, linux-kernel
Cc: NINAD PALSULE
From: NINAD PALSULE <ninadpalsule@us.ibm.com>
Rename LEDs with meaningful names for easier identification.
Signed-off-by: Ninad Palsule <ninad@linux.ibm.com>
---
.../dts/aspeed/aspeed-bmc-ibm-system1.dts | 36 +++++++++----------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
index ebbb14241256..149b9ad23dbb 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
@@ -116,63 +116,63 @@ vga_memory: region@bf000000 {
leds {
compatible = "gpio-leds";
- led-0 {
+ led-bmc-ready {
gpios = <&gpio0 ASPEED_GPIO(L, 7) GPIO_ACTIVE_HIGH>;
};
- led-1 {
+ led-bmc-hb {
gpios = <&gpio0 ASPEED_GPIO(P, 7) GPIO_ACTIVE_HIGH>;
};
- led-2 {
+ led-rear-enc-fault0 {
gpios = <&gpio0 ASPEED_GPIO(S, 6) GPIO_ACTIVE_HIGH>;
};
- led-3 {
+ led-rear-enc-id0 {
gpios = <&gpio0 ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>;
};
- led-4 {
+ led-fan0-fault {
gpios = <&pca3 5 GPIO_ACTIVE_LOW>;
};
- led-5 {
+ led-fan1-fault {
gpios = <&pca3 6 GPIO_ACTIVE_LOW>;
};
- led-6 {
+ led-fan2-fault {
gpios = <&pca3 7 GPIO_ACTIVE_LOW>;
};
- led-7 {
+ led-fan3-fault {
gpios = <&pca3 8 GPIO_ACTIVE_LOW>;
};
- led-8 {
+ led-fan4-fault {
gpios = <&pca3 9 GPIO_ACTIVE_LOW>;
};
- led-9 {
+ led-fan5-fault {
gpios = <&pca3 10 GPIO_ACTIVE_LOW>;
};
- led-a {
+ led-fan6-fault {
gpios = <&pca3 11 GPIO_ACTIVE_LOW>;
};
- led-b {
+ led-nvmed0-fault {
gpios = <&pca4 4 GPIO_ACTIVE_HIGH>;
};
- led-c {
+ led-nvmed1-fault {
gpios = <&pca4 5 GPIO_ACTIVE_HIGH>;
};
- led-d {
+ led-nvmed2-fault {
gpios = <&pca4 6 GPIO_ACTIVE_HIGH>;
};
- led-e {
+ led-nvmed3-fault {
gpios = <&pca4 7 GPIO_ACTIVE_HIGH>;
};
};
@@ -368,14 +368,14 @@ &gpio0 {
/*I0-I7*/ "","","","","","","","",
/*J0-J7*/ "","","","","","","","",
/*K0-K7*/ "","","","","","","","",
- /*L0-L7*/ "","","","","","","","bmc-ready",
+ /*L0-L7*/ "","","","","","","","led-bmc-ready",
/*M0-M7*/ "","","","","","","","",
/*N0-N7*/ "pch-reset","","","","","flash-write-override","","",
/*O0-O7*/ "","","","","","","","",
- /*P0-P7*/ "","","","","","","","bmc-hb",
+ /*P0-P7*/ "","","","","","","","led-bmc-hb",
/*Q0-Q7*/ "","","","","","","pch-ready","",
/*R0-R7*/ "","","","","","","","",
- /*S0-S7*/ "","","","","","","rear-enc-fault0","rear-enc-id0",
+ /*S0-S7*/ "","","","","","","led-rear-enc-fault0","led-rear-enc-id0",
/*T0-T7*/ "","","","","","","","",
/*U0-U7*/ "","","","","","","","",
/*V0-V7*/ "","rtc-battery-voltage-read-enable","","power-chassis-control","","","","",
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v1 6/8] ARM: dts: aspeed: system1: Remove VRs max8952
2024-12-13 14:50 [PATCH v1 0/8] DTS updates for system1 BMC Ninad Palsule
` (4 preceding siblings ...)
2024-12-13 14:50 ` [PATCH v1 5/8] ARM: dts: aspeed: system1: Update LED gpio name Ninad Palsule
@ 2024-12-13 14:50 ` Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 7/8] ARM: dts: aspeed: system1: Mark GPIO line high/low Ninad Palsule
` (2 subsequent siblings)
8 siblings, 0 replies; 15+ messages in thread
From: Ninad Palsule @ 2024-12-13 14:50 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, joel, andrew, devicetree, eajames, ninad,
linux-arm-kernel, linux-aspeed, linux-kernel
Cc: NINAD PALSULE
From: NINAD PALSULE <ninadpalsule@us.ibm.com>
Removing voltage regulators max8952 from device tree. Those are fully
controlled by hardware and firmware should not thouch them.
Signed-off-by: Ninad Palsule <ninad@linux.ibm.com>
---
.../dts/aspeed/aspeed-bmc-ibm-system1.dts | 34 -------------------
1 file changed, 34 deletions(-)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
index 149b9ad23dbb..ca2d4a292687 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
@@ -514,23 +514,6 @@ eeprom@50 {
compatible = "atmel,24c64";
reg = <0x50>;
};
-
- regulator@60 {
- compatible = "maxim,max8952";
- reg = <0x60>;
-
- max8952,default-mode = <0>;
- max8952,dvs-mode-microvolt = <1250000>, <1200000>,
- <1050000>, <950000>;
- max8952,sync-freq = <0>;
- max8952,ramp-speed = <0>;
-
- regulator-name = "VR_v77_1v4";
- regulator-min-microvolt = <770000>;
- regulator-max-microvolt = <1400000>;
- regulator-always-on;
- regulator-boot-on;
- };
};
&i2c1 {
@@ -1227,23 +1210,6 @@ eeprom@50 {
compatible = "atmel,24c64";
reg = <0x50>;
};
-
- regulator@60 {
- compatible = "maxim,max8952";
- reg = <0x60>;
-
- max8952,default-mode = <0>;
- max8952,dvs-mode-microvolt = <1250000>, <1200000>,
- <1050000>, <950000>;
- max8952,sync-freq = <0>;
- max8952,ramp-speed = <0>;
-
- regulator-name = "VR_v77_1v4";
- regulator-min-microvolt = <770000>;
- regulator-max-microvolt = <1400000>;
- regulator-always-on;
- regulator-boot-on;
- };
};
&i2c11 {
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v1 7/8] ARM: dts: aspeed: system1: Mark GPIO line high/low
2024-12-13 14:50 [PATCH v1 0/8] DTS updates for system1 BMC Ninad Palsule
` (5 preceding siblings ...)
2024-12-13 14:50 ` [PATCH v1 6/8] ARM: dts: aspeed: system1: Remove VRs max8952 Ninad Palsule
@ 2024-12-13 14:50 ` Ninad Palsule
2024-12-13 15:49 ` Krzysztof Kozlowski
2024-12-13 14:50 ` [PATCH v1 8/8] ARM: dts: aspeed: system1: Disable gpio pull down Ninad Palsule
2024-12-16 16:29 ` [PATCH v1 0/8] DTS updates for system1 BMC Rob Herring (Arm)
8 siblings, 1 reply; 15+ messages in thread
From: Ninad Palsule @ 2024-12-13 14:50 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, joel, andrew, devicetree, eajames, ninad,
linux-arm-kernel, linux-aspeed, linux-kernel
Cc: NINAD PALSULE
From: NINAD PALSULE <ninadpalsule@us.ibm.com>
- Mark following GPIO lines as input high:
- GPIOL4 (reset PCH registers)
- GPIOL5 (reset portition of intel ME)
- Mark isolate errors from cpu1 gpio (GPIOO6) as active low output.
- The fan controller reset line should be active high.
Signed-off-by: Ninad Palsule <ninad@linux.ibm.com>
---
.../dts/aspeed/aspeed-bmc-ibm-system1.dts | 28 +++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
index ca2d4a292687..be0cd6152c61 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
@@ -383,6 +383,34 @@ &gpio0 {
/*X0-X7*/ "fpga-pgood","power-chassis-good","pch-pgood","","","","","",
/*Y0-Y7*/ "","","","","","","","",
/*Z0-Z7*/ "","","","","","","","";
+
+ rtc_reset {
+ gpio-hog;
+ gpios = <ASPEED_GPIO(L, 4) GPIO_ACTIVE_HIGH>;
+ input;
+ line-name = "RST_RTCRST_N";
+ };
+
+ srtc_reset {
+ gpio-hog;
+ gpios = <ASPEED_GPIO(L, 5) GPIO_ACTIVE_HIGH>;
+ input;
+ line-name = "RST_SRTCRST_N";
+ };
+
+ fan_controller_reset {
+ gpio-hog;
+ gpios = <ASPEED_GPIO(L, 6) GPIO_ACTIVE_HIGH>;
+ output-high;
+ line-name = "BMC_FAN_E3_SVC_PEX_INT_N";
+ };
+
+ isolate_errs_cpu1 {
+ gpio-hog;
+ gpios = <ASPEED_GPIO(O, 6) GPIO_ACTIVE_LOW>;
+ output-low;
+ line-name = "isolate_errs_cpu1";
+ };
};
&emmc_controller {
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v1 8/8] ARM: dts: aspeed: system1: Disable gpio pull down
2024-12-13 14:50 [PATCH v1 0/8] DTS updates for system1 BMC Ninad Palsule
` (6 preceding siblings ...)
2024-12-13 14:50 ` [PATCH v1 7/8] ARM: dts: aspeed: system1: Mark GPIO line high/low Ninad Palsule
@ 2024-12-13 14:50 ` Ninad Palsule
2024-12-16 16:29 ` [PATCH v1 0/8] DTS updates for system1 BMC Rob Herring (Arm)
8 siblings, 0 replies; 15+ messages in thread
From: Ninad Palsule @ 2024-12-13 14:50 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, joel, andrew, devicetree, eajames, ninad,
linux-arm-kernel, linux-aspeed, linux-kernel
Disable internal pull down for the following GPIO lines.
- GPIOL4 - Reset PCH registers in the rtc.
- GPIOL5 - Reset portition of Intel ME
- GPIOL6 - FM smi active
- GPIOL7 - psu all dc power good.
Signed-off-by: Ninad Palsule <ninad@linux.ibm.com>
---
.../dts/aspeed/aspeed-bmc-ibm-system1.dts | 28 +++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
index be0cd6152c61..c9575dd59b03 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
@@ -355,7 +355,35 @@ &uhci {
status = "okay";
};
+&pinctrl {
+ pinctrl_gpiol4_unbiased: gpiol4 {
+ pins = "C15";
+ bias-disable;
+ };
+
+ pinctrl_gpiol5_unbiased: gpiol5 {
+ pins = "F15";
+ bias-disable;
+ };
+
+ pinctrl_gpiol6_unbiased: gpiol6 {
+ pins = "B14";
+ bias-disable;
+ };
+
+ pinctrl_gpiol7_unbiased: gpiol7 {
+ pins = "C14";
+ bias-disable;
+ };
+};
+
&gpio0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_gpiol4_unbiased
+ &pinctrl_gpiol5_unbiased
+ &pinctrl_gpiol6_unbiased
+ &pinctrl_gpiol7_unbiased>;
+
gpio-line-names =
/*A0-A7*/ "","","","","","","","",
/*B0-B7*/ "","","","","bmc-tpm-reset","","","",
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH v1 1/8] ARM: dts: aspeed: system1: Add IPMB device
2024-12-13 14:50 ` [PATCH v1 1/8] ARM: dts: aspeed: system1: Add IPMB device Ninad Palsule
@ 2024-12-13 15:48 ` Krzysztof Kozlowski
0 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-13 15:48 UTC (permalink / raw)
To: Ninad Palsule, robh, krzk+dt, conor+dt, joel, andrew, devicetree,
eajames, linux-arm-kernel, linux-aspeed, linux-kernel
Cc: NINAD PALSULE
On 13/12/2024 15:50, Ninad Palsule wrote:
> From: NINAD PALSULE <ninadpalsule@us.ibm.com>
>
> Add IPMB device sitting behind PCH module
>
> Signed-off-by: Ninad Palsule <ninad@linux.ibm.com>
> ---
> arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
> index 8f77bc9e860c..51a116d7041a 100644
> --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
> +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
> @@ -763,6 +763,16 @@ i2c3mux0chn7: i2c@7 {
>
> &i2c4 {
> status = "okay";
> + multi-master;
> + bus-frequency = <1000000>;
> +
> + //Set bmc' slave address;
Is this relevant/useful comment? Why is it even here?
> + bmc_slave@10 {
Node names should be generic. See also an explanation and list of
examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
Also: use DTS coding style (there are no underscores in node names) and
use preferred naming scheme (see general kernel coding style / naming).
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v1 7/8] ARM: dts: aspeed: system1: Mark GPIO line high/low
2024-12-13 14:50 ` [PATCH v1 7/8] ARM: dts: aspeed: system1: Mark GPIO line high/low Ninad Palsule
@ 2024-12-13 15:49 ` Krzysztof Kozlowski
2025-01-07 14:28 ` Ninad Palsule
0 siblings, 1 reply; 15+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-13 15:49 UTC (permalink / raw)
To: Ninad Palsule, robh, krzk+dt, conor+dt, joel, andrew, devicetree,
eajames, linux-arm-kernel, linux-aspeed, linux-kernel
Cc: NINAD PALSULE
On 13/12/2024 15:50, Ninad Palsule wrote:
> From: NINAD PALSULE <ninadpalsule@us.ibm.com>
>
> - Mark following GPIO lines as input high:
> - GPIOL4 (reset PCH registers)
> - GPIOL5 (reset portition of intel ME)
> - Mark isolate errors from cpu1 gpio (GPIOO6) as active low output.
> - The fan controller reset line should be active high.
>
> Signed-off-by: Ninad Palsule <ninad@linux.ibm.com>
> ---
> .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 28 +++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
> index ca2d4a292687..be0cd6152c61 100644
> --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
> +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
> @@ -383,6 +383,34 @@ &gpio0 {
> /*X0-X7*/ "fpga-pgood","power-chassis-good","pch-pgood","","","","","",
> /*Y0-Y7*/ "","","","","","","","",
> /*Z0-Z7*/ "","","","","","","","";
> +
> + rtc_reset {
Node names should be generic. See also an explanation and list of
examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
It does not look like you tested the DTS against bindings. Please run
`make dtbs_check W=1` (see
Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).
Maybe you need to update your dtschema and yamllint. Don't rely on
distro packages for dtschema and be sure you are using the latest
released dtschema.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v1 3/8] ARM: dts: aspeed: system1: Add RGMII support
2024-12-13 14:50 ` [PATCH v1 3/8] ARM: dts: aspeed: system1: Add RGMII support Ninad Palsule
@ 2024-12-13 22:03 ` Andrew Lunn
0 siblings, 0 replies; 15+ messages in thread
From: Andrew Lunn @ 2024-12-13 22:03 UTC (permalink / raw)
To: Ninad Palsule
Cc: robh, krzk+dt, conor+dt, joel, andrew, devicetree, eajames,
linux-arm-kernel, linux-aspeed, linux-kernel, NINAD PALSULE
> +&mac0 {
> + status = "okay";
> +
> + phy-mode = "rgmii-rxid";
Why is everybody getting RGMII wrong this week?
Do you have an extra long clock line on the PCB for the TX clock?
> + phy-handle = <ðphy0>;
> +
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_rgmii1_default>;
> +};
> +
> &mac2 {
> status = "okay";
> +
> + phy-mode = "rgmii";
Do you have extra long clock lines on the PCB for both Rx and Tx
clock?
I suspect you don't and the RGMII delays are messed up somehow.
Andrew
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v1 0/8] DTS updates for system1 BMC
2024-12-13 14:50 [PATCH v1 0/8] DTS updates for system1 BMC Ninad Palsule
` (7 preceding siblings ...)
2024-12-13 14:50 ` [PATCH v1 8/8] ARM: dts: aspeed: system1: Disable gpio pull down Ninad Palsule
@ 2024-12-16 16:29 ` Rob Herring (Arm)
2025-01-07 14:46 ` Ninad Palsule
8 siblings, 1 reply; 15+ messages in thread
From: Rob Herring (Arm) @ 2024-12-16 16:29 UTC (permalink / raw)
To: Ninad Palsule
Cc: andrew, linux-arm-kernel, krzk+dt, eajames, joel, devicetree,
linux-aspeed, linux-kernel, conor+dt
On Fri, 13 Dec 2024 08:50:26 -0600, Ninad Palsule wrote:
> Hello
>
> Please review the patch set. It has various device tree changes for
> system1 BMC after hardware testing.
>
> NINAD PALSULE (7):
> ARM: dts: aspeed: system1: Add IPMB device
> ARM: dts: aspeed: system1: Add GPIO line name
> ARM: dts: aspeed: system1: Add RGMII support
> ARM: dts: aspeed: system1: Reduce sgpio speed
> ARM: dts: aspeed: system1: Update LED gpio name
> ARM: dts: aspeed: system1: Remove VRs max8952
> ARM: dts: aspeed: system1: Mark GPIO line high/low
>
> Ninad Palsule (1):
> ARM: dts: aspeed: system1: Disable gpio pull down
>
> .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 178 ++++++++++++------
> 1 file changed, 119 insertions(+), 59 deletions(-)
>
> --
> 2.43.0
>
>
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y aspeed/aspeed-bmc-ibm-system1.dtb' for 20241213145037.3784931-1-ninad@linux.ibm.com:
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtb: ethernet@1e660000: phy-mode:0: 'rgmii-rxid' is not one of ['rgmii', 'rmii']
from schema $id: http://devicetree.org/schemas/net/faraday,ftgmac100.yaml#
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtb: gpio@1e780000: 'fan_controller_reset', 'isolate_errs_cpu1', 'rtc_reset', 'srtc_reset' do not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/gpio/aspeed,ast2400-gpio.yaml#
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtb: rtc_reset: $nodename:0: 'rtc_reset' does not match '^(hog-[0-9]+|.+-hog(-[0-9]+)?)$'
from schema $id: http://devicetree.org/schemas/gpio/gpio-hog.yaml#
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtb: srtc_reset: $nodename:0: 'srtc_reset' does not match '^(hog-[0-9]+|.+-hog(-[0-9]+)?)$'
from schema $id: http://devicetree.org/schemas/gpio/gpio-hog.yaml#
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtb: fan_controller_reset: $nodename:0: 'fan_controller_reset' does not match '^(hog-[0-9]+|.+-hog(-[0-9]+)?)$'
from schema $id: http://devicetree.org/schemas/gpio/gpio-hog.yaml#
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtb: isolate_errs_cpu1: $nodename:0: 'isolate_errs_cpu1' does not match '^(hog-[0-9]+|.+-hog(-[0-9]+)?)$'
from schema $id: http://devicetree.org/schemas/gpio/gpio-hog.yaml#
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtb: /ahb/apb@1e780000/bus@1e78a000/i2c@280/bmc_slave@10: failed to match any schema with compatible: ['ipmb-dev']
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v1 7/8] ARM: dts: aspeed: system1: Mark GPIO line high/low
2024-12-13 15:49 ` Krzysztof Kozlowski
@ 2025-01-07 14:28 ` Ninad Palsule
0 siblings, 0 replies; 15+ messages in thread
From: Ninad Palsule @ 2025-01-07 14:28 UTC (permalink / raw)
To: Krzysztof Kozlowski, robh, krzk+dt, conor+dt, joel, andrew,
devicetree, eajames, linux-arm-kernel, linux-aspeed, linux-kernel
Cc: NINAD PALSULE
Hello Krzysztof,
Thanks for the review. Sorry for the delay as I was on vacation.
On 12/13/24 09:49, Krzysztof Kozlowski wrote:
> On 13/12/2024 15:50, Ninad Palsule wrote:
>> From: NINAD PALSULE <ninadpalsule@us.ibm.com>
>>
>> - Mark following GPIO lines as input high:
>> - GPIOL4 (reset PCH registers)
>> - GPIOL5 (reset portition of intel ME)
>> - Mark isolate errors from cpu1 gpio (GPIOO6) as active low output.
>> - The fan controller reset line should be active high.
>>
>> Signed-off-by: Ninad Palsule <ninad@linux.ibm.com>
>> ---
>> .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 28 +++++++++++++++++++
>> 1 file changed, 28 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
>> index ca2d4a292687..be0cd6152c61 100644
>> --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
>> +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
>> @@ -383,6 +383,34 @@ &gpio0 {
>> /*X0-X7*/ "fpga-pgood","power-chassis-good","pch-pgood","","","","","",
>> /*Y0-Y7*/ "","","","","","","","",
>> /*Z0-Z7*/ "","","","","","","","";
>> +
>> + rtc_reset {
> Node names should be generic. See also an explanation and list of
> examples (not exhaustive) in DT specification:
> https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
>
> It does not look like you tested the DTS against bindings. Please run
> `make dtbs_check W=1` (see
> Documentation/devicetree/bindings/writing-schema.rst or
> https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
> for instructions).
> Maybe you need to update your dtschema and yamllint. Don't rely on
> distro packages for dtschema and be sure you are using the latest
> released dtschema.
Changed name as per the requirement hog-0...3
Regards,
Ninad
>
> Best regards,
> Krzysztof
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v1 0/8] DTS updates for system1 BMC
2024-12-16 16:29 ` [PATCH v1 0/8] DTS updates for system1 BMC Rob Herring (Arm)
@ 2025-01-07 14:46 ` Ninad Palsule
0 siblings, 0 replies; 15+ messages in thread
From: Ninad Palsule @ 2025-01-07 14:46 UTC (permalink / raw)
To: Rob Herring (Arm)
Cc: andrew, linux-arm-kernel, krzk+dt, eajames, joel, devicetree,
linux-aspeed, linux-kernel, conor+dt
Hello Rob,
Thanks for the review. Sorry for the late reply due to vacation.
On 12/16/24 10:29, Rob Herring (Arm) wrote:
> On Fri, 13 Dec 2024 08:50:26 -0600, Ninad Palsule wrote:
>> Hello
>>
>> Please review the patch set. It has various device tree changes for
>> system1 BMC after hardware testing.
>>
>> NINAD PALSULE (7):
>> ARM: dts: aspeed: system1: Add IPMB device
>> ARM: dts: aspeed: system1: Add GPIO line name
>> ARM: dts: aspeed: system1: Add RGMII support
>> ARM: dts: aspeed: system1: Reduce sgpio speed
>> ARM: dts: aspeed: system1: Update LED gpio name
>> ARM: dts: aspeed: system1: Remove VRs max8952
>> ARM: dts: aspeed: system1: Mark GPIO line high/low
>>
>> Ninad Palsule (1):
>> ARM: dts: aspeed: system1: Disable gpio pull down
>>
>> .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 178 ++++++++++++------
>> 1 file changed, 119 insertions(+), 59 deletions(-)
>>
>> --
>> 2.43.0
>>
>>
>>
>
> My bot found new DTB warnings on the .dts files added or changed in this
> series.
>
> Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
> are fixed by another series. Ultimately, it is up to the platform
> maintainer whether these warnings are acceptable or not. No need to reply
> unless the platform maintainer has comments.
>
> If you already ran DT checks and didn't see these error(s), then
> make sure dt-schema is up to date:
>
> pip3 install dtschema --upgrade
>
>
> New warnings running 'make CHECK_DTBS=y aspeed/aspeed-bmc-ibm-system1.dtb' for 20241213145037.3784931-1-ninad@linux.ibm.com:
>
> arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtb: ethernet@1e660000: phy-mode:0: 'rgmii-rxid' is not one of ['rgmii', 'rmii']
> from schema $id: http://devicetree.org/schemas/net/faraday,ftgmac100.yaml#
Added rgmii-rxid mode in the yaml file.
> arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtb: gpio@1e780000: 'fan_controller_reset', 'isolate_errs_cpu1', 'rtc_reset', 'srtc_reset' do not match any of the regexes: 'pinctrl-[0-9]+'
> from schema $id: http://devicetree.org/schemas/gpio/aspeed,ast2400-gpio.yaml#
I am still not sure about this error.
/home/ninad/dev/sbp1/linux/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtb:
gpio@1e780000: 'hog-0', 'hog-1', 'hog-2', 'hog-3' do not match any of
the regexes: 'pinctrl-[0-9]+'
from schema $id:
http://devicetree.org/schemas/gpio/aspeed,ast2400-gpio.yaml#
> arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtb: rtc_reset: $nodename:0: 'rtc_reset' does not match '^(hog-[0-9]+|.+-hog(-[0-9]+)?)$'
> from schema $id: http://devicetree.org/schemas/gpio/gpio-hog.yaml#
> arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtb: srtc_reset: $nodename:0: 'srtc_reset' does not match '^(hog-[0-9]+|.+-hog(-[0-9]+)?)$'
> from schema $id: http://devicetree.org/schemas/gpio/gpio-hog.yaml#
> arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtb: fan_controller_reset: $nodename:0: 'fan_controller_reset' does not match '^(hog-[0-9]+|.+-hog(-[0-9]+)?)$'
> from schema $id: http://devicetree.org/schemas/gpio/gpio-hog.yaml#
> arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtb: isolate_errs_cpu1: $nodename:0: 'isolate_errs_cpu1' does not match '^(hog-[0-9]+|.+-hog(-[0-9]+)?)$'
> from schema $id: http://devicetree.org/schemas/gpio/gpio-hog.yaml#
Changed to generic name hog-0...3
> arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtb: /ahb/apb@1e780000/bus@1e78a000/i2c@280/bmc_slave@10: failed to match any schema with compatible: ['ipmb-dev']
Documented IPMB device interface.
Regards,
Ninad
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2025-01-07 14:52 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-13 14:50 [PATCH v1 0/8] DTS updates for system1 BMC Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 1/8] ARM: dts: aspeed: system1: Add IPMB device Ninad Palsule
2024-12-13 15:48 ` Krzysztof Kozlowski
2024-12-13 14:50 ` [PATCH v1 2/8] ARM: dts: aspeed: system1: Add GPIO line name Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 3/8] ARM: dts: aspeed: system1: Add RGMII support Ninad Palsule
2024-12-13 22:03 ` Andrew Lunn
2024-12-13 14:50 ` [PATCH v1 4/8] ARM: dts: aspeed: system1: Reduce sgpio speed Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 5/8] ARM: dts: aspeed: system1: Update LED gpio name Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 6/8] ARM: dts: aspeed: system1: Remove VRs max8952 Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 7/8] ARM: dts: aspeed: system1: Mark GPIO line high/low Ninad Palsule
2024-12-13 15:49 ` Krzysztof Kozlowski
2025-01-07 14:28 ` Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 8/8] ARM: dts: aspeed: system1: Disable gpio pull down Ninad Palsule
2024-12-16 16:29 ` [PATCH v1 0/8] DTS updates for system1 BMC Rob Herring (Arm)
2025-01-07 14:46 ` Ninad Palsule
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).