Skip to contentSkip to conversation

DTS updates for system1 BMC

PATCH Superseded Ninad Palsule 4 participants 27 messages Jan 8, 2025 – Jan 14, 2025

Subsystems (5)

v3 of 9 Superseded Latest is v9 →

lore
Share & tools
lore
#0 lore raw

v3 cover DTS updates for system1 BMC

Hello,

Please review the patch set.

V3:
---
- Fixed dt_binding_check warnings in ipmb-dev.yaml
- Updated title and description in ipmb-dev.yaml file.
- Updated i2c-protocol description in ipmb-dev.yaml file.

V2:
---
Fixed CHECK_DTBS errors by
- Using generic node names
- Documenting phy-mode rgmii-rxid in ftgmac100.yaml
- Adding binding documentation for IPMB device interface

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 (3):
dt-bindings: net: faraday,ftgmac100: Add phys mode
bindings: ipmi: Add binding for IPMB device intf
ARM: dts: aspeed: system1: Disable gpio pull down

 .../devicetree/bindings/ipmi/ipmb-dev.yaml    |  44 +++++
 .../bindings/net/faraday,ftgmac100.yaml       |   3 +
 .../dts/aspeed/aspeed-bmc-ibm-system1.dts     | 177 ++++++++++++------
 3 files changed, 165 insertions(+), 59 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml
Signature · 1 line
2.43.0
#1 lore raw

PATCH v3 1/10 dt-bindings: net: faraday,ftgmac100: Add phys mode

Aspeed device supports rgmii, rgmii-id, rgmii-rxid, rgmii-txid so document them.

---
 Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml +3 -0
index 9bcbacb6640d..55d6a8379025 100644
@@ -44,6 +44,9 @@ properties:
   phy-mode:
     enum:
       - rgmii
+      - rgmii-id
+      - rgmii-rxid
+      - rgmii-txid
       - rmii
 
   phy-handle: true
Signature · 1 line
2.43.0
#3 lore raw

Re: [PATCH v3 01/10] dt-bindings: net: faraday,ftgmac100: Add phys mode

Hi Rob,

Quoted 10 lines · Rob Herring (Arm)
Quoted 8 lines · Ninad Palsule

Aspeed device supports rgmii, rgmii-id, rgmii-rxid, rgmii-txid so document them.

---
  Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml | 3 +++
  1 file changed, 3 insertions(+)

Thanks for the review.

Regards,

Ninad

Quoted 2 lines
#4 lore raw

PATCH v3 2/10 bindings: ipmi: Add binding for IPMB device intf

In reply to Ninad Palsule

Add device tree binding document for the IPMB device interface. This device is already in use in both driver and .dts files.

---
 .../devicetree/bindings/ipmi/ipmb-dev.yaml    | 44 +++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml
Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml new file +44 -0
new file mode 100644
index 000000000000..a8f46f1b883e
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/ipmi/ipmb-dev.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: IPMB Device
+
+description: IPMB Device interface to receive request and send response
+
+maintainers:
+  - Ninad Palsule <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - ipmb-dev
+
+  reg:
+    maxItems: 1
+
+  i2c-protocol:
+    description:
+      Use I2C block transfer instead of SMBUS block transfer.
+    type: boolean
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        ipmb-dev@10 {
+            compatible = "ipmb-dev";
+            reg = <0x10>;
+            i2c-protocol;
+        };
+    };
Signature · 1 line
2.43.0
maintainer
#5 lore raw

Re: [PATCH v3 02/10] bindings: ipmi: Add binding for IPMB device intf

Quoted 15 lines · Ninad Palsule

Add device tree binding document for the IPMB device interface. This device is already in use in both driver and .dts files.

---
 .../devicetree/bindings/ipmi/ipmb-dev.yaml    | 44 +++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml
Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml new file +0 -0
new file mode 100644
index 000000000000..a8f46f1b883e

Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml line 9

Quoted 9 lines
Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml new file +9 -0
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/ipmi/ipmb-dev.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: IPMB Device
+
+description: IPMB Device interface to receive request and send response

IPMB is not defined anywhere.

Which side of the interface does this apply to? How do I know if I have an ipmb-dev?

This document needs to stand on its own. Bindings exist in a standalone tree without kernel drivers or docs.

Quoted 38 lines
Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml new file +35 -0
+
+maintainers:
+  - Ninad Palsule <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - ipmb-dev
+
+  reg:
+    maxItems: 1
+
+  i2c-protocol:
+    description:
+      Use I2C block transfer instead of SMBUS block transfer.
+    type: boolean
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        ipmb-dev@10 {
+            compatible = "ipmb-dev";
+            reg = <0x10>;
+            i2c-protocol;
+        };
+    };
Signature · 1 line
2.43.0
maintainer
#6 lore raw

Re: [PATCH v3 02/10] bindings: ipmi: Add binding for IPMB device intf

Quoted 10 lines · Rob Herring
Quoted 9 lines · Ninad Palsule

Add device tree binding document for the IPMB device interface. This device is already in use in both driver and .dts files.

---
 .../devicetree/bindings/ipmi/ipmb-dev.yaml    | 44 +++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml
Quoted 15 lines
Quoted 6 lines
Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml new file +0 -0
new file mode 100644
index 000000000000..a8f46f1b883e

Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml line 9

Quoted 9 lines
Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml new file +9 -0
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/ipmi/ipmb-dev.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: IPMB Device
+
+description: IPMB Device interface to receive request and send response

First, thank you, this does need to be documented.

Quoted 2 lines

IPMB is not defined anywhere.

Indeed. At least reference the spec, but better do that and provide a basic description.

Quoted 6 lines

Which side of the interface does this apply to? How do I know if I have an ipmb-dev?

This document needs to stand on its own. Bindings exist in a standalone tree without kernel drivers or docs.

At least to someone who knows what IPMB is, it's pretty clear that you are saying "The i2c device this node is in is on an IPMB bus." However, to someone who is not, this is all a foreign language. This definitely needs better documentation.

Why do you have a "reg" property? I don't see it referenced in the driver. I assume that's the I2C address, but that's going to be the same as what's in the containing I2C node. I don't think it's necessary.

-corey

Quoted 39 lines
Quoted 39 lines
Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml new file +35 -0
+
+maintainers:
+  - Ninad Palsule <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - ipmb-dev
+
+  reg:
+    maxItems: 1
+
+  i2c-protocol:
+    description:
+      Use I2C block transfer instead of SMBUS block transfer.
+    type: boolean
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        ipmb-dev@10 {
+            compatible = "ipmb-dev";
+            reg = <0x10>;
+            i2c-protocol;
+        };
+    };
Signature · 1 line
2.43.0
#7 lore raw

Re: [PATCH v3 02/10] bindings: ipmi: Add binding for IPMB device intf

Hi Corey,

Quoted 11 lines · Corey Minyard
Quoted 10 lines · Rob Herring
Quoted 9 lines · Ninad Palsule

Add device tree binding document for the IPMB device interface. This device is already in use in both driver and .dts files.

---
  .../devicetree/bindings/ipmi/ipmb-dev.yaml    | 44 +++++++++++++++++++
  1 file changed, 44 insertions(+)

create mode 100644 Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml

Quoted 16 lines
Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml new file +1 -0
new file mode 100644
index 000000000000..a8f46f1b883e
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Quoted 8 lines

Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml line 9

Quoted 8 lines
Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml new file +8 -0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/ipmi/ipmb-dev.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: IPMB Device
+
+description: IPMB Device interface to receive request and send response

First, thank you, this does need to be documented.

Thanks for the review.

Quoted 15 lines
Quoted 2 lines

IPMB is not defined anywhere.

Indeed. At least reference the spec, but better do that and provide a basic description.

Quoted 5 lines

Which side of the interface does this apply to? How do I know if I have an ipmb-dev?

This document needs to stand on its own. Bindings exist in a standalone tree without kernel drivers or docs.

At least to someone who knows what IPMB is, it's pretty clear that you are saying "The i2c device this node is in is on an IPMB bus." However, to someone who is not, this is all a foreign language. This definitely needs better documentation.

Quoted 6 lines

Why do you have a "reg" property? I don't see it referenced in the driver. I assume that's the I2C address, but that's going to be the same as what's in the containing I2C node. I don't think it's necessary.

-corey

I have improved the documentation in version 4. Please check.

Regards,

Ninad

#8 lore raw

Re: [PATCH v3 02/10] bindings: ipmi: Add binding for IPMB device intf

In reply to Corey Minyard

Hello Cprey,

Quoted 42 lines · Corey Minyard
Quoted 10 lines · Rob Herring
Quoted 9 lines · Ninad Palsule

Add device tree binding document for the IPMB device interface. This device is already in use in both driver and .dts files.

---
  .../devicetree/bindings/ipmi/ipmb-dev.yaml    | 44 +++++++++++++++++++
  1 file changed, 44 insertions(+)

create mode 100644 Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml

Quoted 15 lines
Quoted 6 lines
Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml new file +0 -0
new file mode 100644
index 000000000000..a8f46f1b883e

Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml line 9

Quoted 9 lines
Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml new file +9 -0
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/ipmi/ipmb-dev.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: IPMB Device
+
+description: IPMB Device interface to receive request and send response

First, thank you, this does need to be documented.

Quoted 1 line

IPMB is not defined anywhere.

Indeed. At least reference the spec, but better do that and provide a basic description.

Quoted 5 lines

Which side of the interface does this apply to? How do I know if I have an ipmb-dev?

This document needs to stand on its own. Bindings exist in a standalone tree without kernel drivers or docs.

At least to someone who knows what IPMB is, it's pretty clear that you are saying "The i2c device this node is in is on an IPMB bus." However, to someone who is not, this is all a foreign language. This definitely needs better documentation.

Quoted 4 lines

Why do you have a "reg" property? I don't see it referenced in the driver. I assume that's the I2C address, but that's going to be the same as what's in the containing I2C node. I don't think it's necessary.

Sorry forgot to answer this question. We are setting extra values for reg for I2C slave.

I am not sure how it is used in the driver.

Regards,

Ninad

Quoted 41 lines

-corey

Quoted 38 lines
Quoted 38 lines
Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml new file +35 -0
+
+maintainers:
+  - Ninad Palsule <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - ipmb-dev
+
+  reg:
+    maxItems: 1
+
+  i2c-protocol:
+    description:
+      Use I2C block transfer instead of SMBUS block transfer.
+    type: boolean
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        ipmb-dev@10 {
+            compatible = "ipmb-dev";
+            reg = <0x10>;
+            i2c-protocol;
+        };
+    };
Signature · 1 line
2.43.0
#9 lore raw

Re: [PATCH v3 02/10] bindings: ipmi: Add binding for IPMB device intf

In reply to Rob Herring

Hi Rob,

Quoted 27 lines · Rob Herring
Quoted 15 lines · Ninad Palsule

Add device tree binding document for the IPMB device interface. This device is already in use in both driver and .dts files.

---
  .../devicetree/bindings/ipmi/ipmb-dev.yaml    | 44 +++++++++++++++++++
  1 file changed, 44 insertions(+)

create mode 100644 Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml

Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml new file +0 -0
new file mode 100644
index 000000000000..a8f46f1b883e

Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml line 9

Quoted 9 lines
Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml new file +9 -0
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/ipmi/ipmb-dev.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: IPMB Device
+
+description: IPMB Device interface to receive request and send response

IPMB is not defined anywhere.

Quoted 5 lines

Which side of the interface does this apply to? How do I know if I have an ipmb-dev?

This document needs to stand on its own. Bindings exist in a standalone tree without kernel drivers or docs.

Thanks for the review. I improved the documentation. Please check.

Regards,

Ninad

#10 lore raw

PATCH v3 3/10 ARM: dts: aspeed: system1: Add IPMB device

In reply to Ninad Palsule

Add IPMB device sitting behind PCH module

---
 arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +9 -0
index 8f77bc9e860c..2921a5e5d8ac 100644
@@ -763,6 +763,15 @@ i2c3mux0chn7: i2c@7 {
 
 &i2c4 {
 	status = "okay";
+	multi-master;
+	bus-frequency = <1000000>;
+
+	i2c@10 {
+		compatible = "ipmb-dev";
+		reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
+
+		i2c-protocol;
+	};
 };
 
 &i2c5 {
Signature · 1 line
2.43.0
#11 lore raw

PATCH v3 4/10 ARM: dts: aspeed: system1: Add GPIO line name

In reply to Ninad Palsule

Add following GPIO line name so that userspace can control them
- Flash write override
- pch-reset

---
 arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +1 -1
index 2921a5e5d8ac..d11a922c9d44 100644
@@ -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","",
Signature · 1 line
2.43.0
#12 lore raw

PATCH v3 5/10 ARM: dts: aspeed: system1: Add RGMII support

In reply to Ninad Palsule

system1 has 2 transceiver connected through the RGMII interfaces. Added device tree entry to enable RGMII support.

ASPEED AST2600 documentation recommends using 'rgmii-rxid' as a 'phy-mode' for mac0 and mac1 to enable the RX interface delay from the PHY chip.

---
 .../dts/aspeed/aspeed-bmc-ibm-system1.dts     | 38 ++++++++++++++++---
 1 file changed, 33 insertions(+), 5 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +33 -5
index d11a922c9d44..0f4658074709 100644
@@ -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 = <&ethphy0>;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_rgmii1_default>;
+};
+
 &mac2 {
 	status = "okay";
+
+	phy-mode = "rgmii";
+	phy-handle = <&ethphy2>;
+
 	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 {
Signature · 1 line
2.43.0
#13 lore raw

Re: [PATCH v3 05/10] ARM: dts: aspeed: system1: Add RGMII support

Quoted 6 lines · Ninad Palsule

system1 has 2 transceiver connected through the RGMII interfaces. Added device tree entry to enable RGMII support.

ASPEED AST2600 documentation recommends using 'rgmii-rxid' as a 'phy-mode' for mac0 and mac1 to enable the RX interface delay from the PHY chip.

You appear to if ignored my comment. Please don't do that. If you have no idea about RGMII delays, please say so, so i can help you debug what is wrong.

NACK

Andrew

#14 lore raw

Re: [PATCH v3 05/10] ARM: dts: aspeed: system1: Add RGMII support

Hello Andrew,

Quoted 4 lines · Andrew Lunn
Quoted 3 lines · Ninad Palsule

system1 has 2 transceiver connected through the RGMII interfaces. Added device tree entry to enable RGMII support.

Quoted 8 lines
Quoted 3 lines

ASPEED AST2600 documentation recommends using 'rgmii-rxid' as a 'phy-mode' for mac0 and mac1 to enable the RX interface delay from the PHY chip.

You appear to if ignored my comment. Please don't do that. If you have no idea about RGMII delays, please say so, so i can help you debug what is wrong.

NACK

I think there is a misunderstanding. I did not ignore your comment. I have contacted ASPEED and asked them to respond. I think Jacky from Aspeed replied to your mail.

Regards,

Ninad

Quoted 3 lines

Andrew

#15 lore raw

Re: [PATCH v3 05/10] ARM: dts: aspeed: system1: Add RGMII support

Quoted 15 lines · Ninad Palsule

Hello Andrew,

Quoted 11 lines · Andrew Lunn
Quoted 6 lines · Ninad Palsule

system1 has 2 transceiver connected through the RGMII interfaces. Added device tree entry to enable RGMII support.

ASPEED AST2600 documentation recommends using 'rgmii-rxid' as a 'phy-mode' for mac0 and mac1 to enable the RX interface delay from the PHY chip.

You appear to if ignored my comment. Please don't do that. If you have no idea about RGMII delays, please say so, so i can help you debug what is wrong.

Quoted 5 lines
Quoted 1 line

NACK

I think there is a misunderstanding. I did not ignore your comment. I have contacted ASPEED and asked them to respond. I think Jacky from Aspeed replied to your mail.

You did not mention in the cover letter, or the patch. I asked for a detailed explanation in the commit message why it is correct, which you did not do.

Now we have more details, it is clear Ethernet support for this board needs to wait until we figure out how to fix the MAC driver. Please either wait with this patchset until that is done, or drop this one patch for the moment and submit it later once the MAC driver is fixed.

Andrew

#16 lore raw

Re: [PATCH v3 05/10] ARM: dts: aspeed: system1: Add RGMII support

Hi Andrew,

Quoted 16 lines · Andrew Lunn
Quoted 15 lines · Ninad Palsule

Hello Andrew,

Quoted 11 lines · Andrew Lunn
Quoted 6 lines · Ninad Palsule

system1 has 2 transceiver connected through the RGMII interfaces. Added device tree entry to enable RGMII support.

ASPEED AST2600 documentation recommends using 'rgmii-rxid' as a 'phy-mode' for mac0 and mac1 to enable the RX interface delay from the PHY chip.

You appear to if ignored my comment. Please don't do that. If you have no idea about RGMII delays, please say so, so i can help you debug what is wrong.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

NACK

I think there is a misunderstanding. I did not ignore your comment. I have contacted ASPEED and asked them to respond. I think Jacky from Aspeed replied to your mail.

You did not mention in the cover letter, or the patch. I asked for a detailed explanation in the commit message why it is correct, which you did not do.

Ah, ok. Sorry about that.

Quoted 5 lines

Now we have more details, it is clear Ethernet support for this board needs to wait until we figure out how to fix the MAC driver. Please either wait with this patchset until that is done, or drop this one patch for the moment and submit it later once the MAC driver is fixed.

ok, Thanks!

Regards,

Ninad

Quoted 4 lines

Andrew

#17 lore raw

Re: [PATCH v3 05/10] ARM: dts: aspeed: system1: Add RGMII support

In reply to Andrew Lunn

Hi Andrew,

Quoted 7 lines · Andrew Lunn
Quoted 6 lines · Ninad Palsule

system1 has 2 transceiver connected through the RGMII interfaces. Added device tree entry to enable RGMII support.

ASPEED AST2600 documentation recommends using 'rgmii-rxid' as a 'phy-mode' for mac0 and mac1 to enable the RX interface delay from the PHY chip.

Quoted 7 lines

You appear to if ignored my comment. Please don't do that. If you have no idea about RGMII delays, please say so, so i can help you debug what is wrong.

NACK

Andrew

Thanks for the review. I have dropped this patch from version 4 until Jacky fixes the driver.

Regards,

Ninad

Quoted 1 line
#18 lore raw

PATCH v3 6/10 ARM: dts: aspeed: system1: Reduce sgpio speed

In reply to Ninad Palsule

Reduce sgpio speed to improve stability with the current PCB layout.

---
 arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +1 -1
index 0f4658074709..a37dfd359836 100644
@@ -401,7 +401,7 @@ &emmc {
 &sgpiom0 {
 	status = "okay";
 	ngpios = <128>;
-	bus-frequency = <1000000>;
+	bus-frequency = <500000>;
 };
 
 &ibt {
Signature · 1 line
2.43.0
#19 lore raw

PATCH v3 7/10 ARM: dts: aspeed: system1: Update LED gpio name

In reply to Ninad Palsule

Rename LEDs with meaningful names for easier identification.

---
 .../dts/aspeed/aspeed-bmc-ibm-system1.dts     | 36 +++++++++----------
 1 file changed, 18 insertions(+), 18 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +18 -18
index a37dfd359836..5e6824836213 100644
@@ -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","","","","",
Signature · 1 line
2.43.0
#20 lore raw

PATCH v3 8/10 ARM: dts: aspeed: system1: Remove VRs max8952

In reply to Ninad Palsule

Removing voltage regulators max8952 from device tree. Those are fully controlled by hardware and firmware should not touch them.

---
 .../dts/aspeed/aspeed-bmc-ibm-system1.dts     | 34 -------------------
 1 file changed, 34 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +0 -34
index 5e6824836213..90570b4d6d35 100644
@@ -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 {
@@ -1226,23 +1209,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 {
Signature · 1 line
2.43.0
#21 lore raw

PATCH v3 9/10 ARM: dts: aspeed: system1: Mark GPIO line high/low

In reply to Ninad Palsule

- 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.

---
 .../dts/aspeed/aspeed-bmc-ibm-system1.dts     | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +28 -0
index 90570b4d6d35..8026c67ecaee 100644
@@ -383,6 +383,34 @@ &gpio0 {
 	/*X0-X7*/	"fpga-pgood","power-chassis-good","pch-pgood","","","","","",
 	/*Y0-Y7*/	"","","","","","","","",
 	/*Z0-Z7*/	"","","","","","","","";
+
+	hog-0 {
+		gpio-hog;
+		gpios = <ASPEED_GPIO(L, 4) GPIO_ACTIVE_HIGH>;
+		input;
+		line-name = "RST_RTCRST_N";
+	};
+
+	hog-1 {
+		gpio-hog;
+		gpios = <ASPEED_GPIO(L, 5) GPIO_ACTIVE_HIGH>;
+		input;
+		line-name = "RST_SRTCRST_N";
+	};
+
+	hog-2 {
+		gpio-hog;
+		gpios = <ASPEED_GPIO(L, 6) GPIO_ACTIVE_HIGH>;
+		output-high;
+		line-name = "BMC_FAN_E3_SVC_PEX_INT_N";
+	};
+
+	hog-3 {
+		gpio-hog;
+		gpios = <ASPEED_GPIO(O, 6) GPIO_ACTIVE_LOW>;
+		output-low;
+		line-name = "isolate_errs_cpu1";
+	};
 };
 
 &emmc_controller {
Signature · 1 line
2.43.0
#22 lore raw

PATCH v3 10/10 ARM: dts: aspeed: system1: Disable gpio pull down

In reply to Ninad Palsule

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.

---
 .../dts/aspeed/aspeed-bmc-ibm-system1.dts     | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +28 -0
index 8026c67ecaee..cf511d0a9421 100644
@@ -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","","","",
Signature · 1 line
2.43.0
#23 lore raw
In reply to Ninad Palsule
Quoted 31 lines · Ninad Palsule

Hello,

Please review the patch set.

V3:
---
- Fixed dt_binding_check warnings in ipmb-dev.yaml
- Updated title and description in ipmb-dev.yaml file.
- Updated i2c-protocol description in ipmb-dev.yaml file.

V2:
---
Fixed CHECK_DTBS errors by
- Using generic node names
- Documenting phy-mode rgmii-rxid in ftgmac100.yaml
- Adding binding documentation for IPMB device interface

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 (3):
dt-bindings: net: faraday,ftgmac100: Add phys mode
bindings: ipmi: Add binding for IPMB device intf
ARM: dts: aspeed: system1: Disable gpio pull down

Quoted 11 lines
 .../devicetree/bindings/ipmi/ipmb-dev.yaml    |  44 +++++
 .../bindings/net/faraday,ftgmac100.yaml       |   3 +
 .../dts/aspeed/aspeed-bmc-ibm-system1.dts     | 177 ++++++++++++------
 3 files changed, 165 insertions(+), 59 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml

--
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 [email protected]:

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#

#24 lore raw

Hello,

Quoted 55 lines · Rob Herring (Arm)
Quoted 31 lines · Ninad Palsule

Hello,

Please review the patch set.

V3:
---
- Fixed dt_binding_check warnings in ipmb-dev.yaml
- Updated title and description in ipmb-dev.yaml file.
- Updated i2c-protocol description in ipmb-dev.yaml file.

V2:
---
Fixed CHECK_DTBS errors by
- Using generic node names
- Documenting phy-mode rgmii-rxid in ftgmac100.yaml
- Adding binding documentation for IPMB device interface

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 (3):
dt-bindings: net: faraday,ftgmac100: Add phys mode
bindings: ipmi: Add binding for IPMB device intf
ARM: dts: aspeed: system1: Disable gpio pull down

Quoted 11 lines
  .../devicetree/bindings/ipmi/ipmb-dev.yaml    |  44 +++++
  .../bindings/net/faraday,ftgmac100.yaml       |   3 +
  .../dts/aspeed/aspeed-bmc-ibm-system1.dts     | 177 ++++++++++++------
  3 files changed, 165 insertions(+), 59 deletions(-)

create mode 100644 Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml

--
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:

Quoted 7 lines
   pip3 install dtschema --upgrade

New warnings running 'make CHECK_DTBS=y aspeed/aspeed-bmc-ibm-system1.dtb' for [email protected]:

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#

This is a false positive. So ignoring it.

Regards,

Ninad

Quoted 6 lines
maintainer
#25 lore raw
Quoted 61 lines · Ninad Palsule

Hello,

Quoted 58 lines · Rob Herring (Arm)
Quoted 31 lines · Ninad Palsule

Hello,

Please review the patch set.

V3:
---
- Fixed dt_binding_check warnings in ipmb-dev.yaml
- Updated title and description in ipmb-dev.yaml file.
- Updated i2c-protocol description in ipmb-dev.yaml file.

V2:
---
Fixed CHECK_DTBS errors by
- Using generic node names
- Documenting phy-mode rgmii-rxid in ftgmac100.yaml
- Adding binding documentation for IPMB device interface

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 (3):
dt-bindings: net: faraday,ftgmac100: Add phys mode
bindings: ipmi: Add binding for IPMB device intf
ARM: dts: aspeed: system1: Disable gpio pull down

Quoted 11 lines
  .../devicetree/bindings/ipmi/ipmb-dev.yaml    |  44 +++++
  .../bindings/net/faraday,ftgmac100.yaml       |   3 +
  .../dts/aspeed/aspeed-bmc-ibm-system1.dts     | 177 ++++++++++++------
  3 files changed, 165 insertions(+), 59 deletions(-)

create mode 100644 Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml

--
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
Quoted 6 lines
Quoted 4 lines

New warnings running 'make CHECK_DTBS=y aspeed/aspeed-bmc-ibm-system1.dtb' for [email protected]:

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#

This is a false positive. So ignoring it.

No, it is not. You need to define hog nodes in aspeed,ast2400-gpio.yaml. See other GPIO controller bindings that do this.

Rob

#26 lore raw

Hello Rob,

Quoted 14 lines · Rob Herring
Quoted 14 lines
Quoted 14 lines

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
Quoted 7 lines
Quoted 5 lines
Quoted 4 lines

New warnings running 'make CHECK_DTBS=y aspeed/aspeed-bmc-ibm-system1.dtb' for [email protected]:

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#

This is a false positive. So ignoring it.

No, it is not. You need to define hog nodes in aspeed,ast2400-gpio.yaml. See other GPIO controller bindings that do this.

ok, I fixed it. Thanks for the review.

Regards,

Ninad

Quoted 2 lines

Rob