Skip to contentSkip to conversation

ARM: dts: aspeed-g5: Add IPMI KCS node

PATCH In review Haiyue Wang 2 participants 4 messages Mar 7, 2018 – May 25, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: aspeed-g5: Add IPMI KCS node

The IPMI KCS device part of the LPC interface and is used for communication with the host processor.

---
 arch/arm/boot/dts/aspeed-g5.dtsi | 43 +++++++++++++++++++++++++++++++++++++++-
 1 file changed, 42 insertions(+), 1 deletion(-)
arch/arm/boot/dts/aspeed-g5.dtsi +42 -1
index 8eac57c..f443169 100644
@@ -267,8 +267,40 @@
 				ranges = <0x0 0x1e789000 0x1000>;
 
 				lpc_bmc: lpc-bmc@0 {
-					compatible = "aspeed,ast2500-lpc-bmc";
+					compatible = "aspeed,ast2500-lpc-bmc", "simple-mfd", "syscon";
 					reg = <0x0 0x80>;
+					reg-io-width = <4>;
+
+					#address-cells = <1>;
+					#size-cells = <1>;
+					ranges = <0x0 0x0 0x80>;
+
+					kcs1: kcs1@0 {
+						compatible = "aspeed,ast2500-kcs-bmc";
+						reg = <0x0 0x80>;
+						interrupts = <8>;
+						kcs_chan = <1>;
+						kcs_addr = <0x0>;
+						status = "disabled";
+					};
+
+					kcs2: kcs2@0 {
+						compatible = "aspeed,ast2500-kcs-bmc";
+						reg = <0x0 0x80>;
+						interrupts = <8>;
+						kcs_chan = <2>;
+						kcs_addr = <0x0>;
+						status = "disabled";
+					};
+
+					kcs3: kcs3@0 {
+						compatible = "aspeed,ast2500-kcs-bmc";
+						reg = <0x0 0x80>;
+						interrupts = <8>;
+						kcs_chan = <3>;
+						kcs_addr = <0x0>;
+						status = "disabled";
+					};
 				};
 
 				lpc_host: lpc-host@80 {
@@ -294,6 +326,15 @@
 						status = "disabled";
 					};
 
+					kcs4: kcs4@0 {
+						compatible = "aspeed,ast2500-kcs-bmc";
+						reg = <0x0 0xa0>;
+						interrupts = <8>;
+						kcs_chan = <4>;
+						kcs_addr = <0x0>;
+						status = "disabled";
+					};
+
 					lhc: lhc@20 {
 						compatible = "aspeed,ast2500-lhc";
 						reg = <0x20 0x24 0x48 0x8>;
Signature · 1 line
2.7.4
#1 lore raw

Hi Joel and Andrew,

Have time to review this patch ? Hope for your comments. :-)

BR,
Haiyue

Quoted 70 lines · Haiyue Wang

The IPMI KCS device part of the LPC interface and is used for communication with the host processor.

---
  arch/arm/boot/dts/aspeed-g5.dtsi | 43 +++++++++++++++++++++++++++++++++++++++-
  1 file changed, 42 insertions(+), 1 deletion(-)
arch/arm/boot/dts/aspeed-g5.dtsi +42 -1
index 8eac57c..f443169 100644
@@ -267,8 +267,40 @@
  				ranges = <0x0 0x1e789000 0x1000>;
 
  				lpc_bmc: lpc-bmc at 0 {
-					compatible = "aspeed,ast2500-lpc-bmc";
+					compatible = "aspeed,ast2500-lpc-bmc", "simple-mfd", "syscon";
  					reg = <0x0 0x80>;
+					reg-io-width = <4>;
+
+					#address-cells = <1>;
+					#size-cells = <1>;
+					ranges = <0x0 0x0 0x80>;
+
+					kcs1: kcs1 at 0 {
+						compatible = "aspeed,ast2500-kcs-bmc";
+						reg = <0x0 0x80>;
+						interrupts = <8>;
+						kcs_chan = <1>;
+						kcs_addr = <0x0>;
+						status = "disabled";
+					};
+
+					kcs2: kcs2 at 0 {
+						compatible = "aspeed,ast2500-kcs-bmc";
+						reg = <0x0 0x80>;
+						interrupts = <8>;
+						kcs_chan = <2>;
+						kcs_addr = <0x0>;
+						status = "disabled";
+					};
+
+					kcs3: kcs3 at 0 {
+						compatible = "aspeed,ast2500-kcs-bmc";
+						reg = <0x0 0x80>;
+						interrupts = <8>;
+						kcs_chan = <3>;
+						kcs_addr = <0x0>;
+						status = "disabled";
+					};
  				};
 
  				lpc_host: lpc-host at 80 {
@@ -294,6 +326,15 @@
  						status = "disabled";
  					};
 
+					kcs4: kcs4 at 0 {
+						compatible = "aspeed,ast2500-kcs-bmc";
+						reg = <0x0 0xa0>;
+						interrupts = <8>;
+						kcs_chan = <4>;
+						kcs_addr = <0x0>;
+						status = "disabled";
+					};
+
  					lhc: lhc at 20 {
  						compatible = "aspeed,ast2500-lhc";
  						reg = <0x20 0x24 0x48 0x8>;
maintainer
#2 lore raw

Hello Andrew,

Quoted 14 lines · Haiyue

Hi Joel and Andrew,

Have time to review this patch ? Hope for your comments. :-)

BR,
Haiyue

Quoted 5 lines · Haiyue Wang

The IPMI KCS device part of the LPC interface and is used for communication with the host processor.

Do you have time to take a look at these? The device tree doesn't make sense to me.

Cheers,

Joel

Quoted 75 lines
Quoted 73 lines
---
  arch/arm/boot/dts/aspeed-g5.dtsi | 43
+++++++++++++++++++++++++++++++++++++++-
  1 file changed, 42 insertions(+), 1 deletion(-)
arch/arm/boot/dts/aspeed-g5.dtsi +27 -1
index 8eac57c..f443169 100644
@@ -267,8 +267,40 @@
                                ranges = <0x0 0x1e789000 0x1000>;
                                lpc_bmc: lpc-bmc at 0 {
-                                       compatible =
 "aspeed,ast2500-lpc-bmc";
+                                       compatible =
 "aspeed,ast2500-lpc-bmc", "simple-mfd", "syscon";
                                        reg = <0x0 0x80>;
+                                       reg-io-width = <4>;
+
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+                                       ranges = <0x0 0x0 0x80>;
+
+                                       kcs1: kcs1 at 0 {
+                                               compatible =
 "aspeed,ast2500-kcs-bmc";
+                                               reg = <0x0 0x80>;
+                                               interrupts = <8>;
+                                               kcs_chan = <1>;
+                                               kcs_addr = <0x0>;
+                                               status = "disabled";
+                                       };
+
+                                       kcs2: kcs2 at 0 {
+                                               compatible =
 "aspeed,ast2500-kcs-bmc";
+                                               reg = <0x0 0x80>;
+                                               interrupts = <8>;
+                                               kcs_chan = <2>;
+                                               kcs_addr = <0x0>;
+                                               status = "disabled";
+                                       };
+
+                                       kcs3: kcs3 at 0 {
+                                               compatible =

"aspeed,ast2500-kcs-bmc";

arch/arm/boot/dts/aspeed-g5.dtsi +14 -0
+                                               reg = <0x0 0x80>;
+                                               interrupts = <8>;
+                                               kcs_chan = <3>;
+                                               kcs_addr = <0x0>;
+                                               status = "disabled";
+                                       };
                                };
                                lpc_host: lpc-host at 80 {
@@ -294,6 +326,15 @@
                                                status = "disabled";
                                        };
  +                                     kcs4: kcs4 at 0 {
+                                               compatible =
 "aspeed,ast2500-kcs-bmc";
+                                               reg = <0x0 0xa0>;
+                                               interrupts = <8>;
+                                               kcs_chan = <4>;
+                                               kcs_addr = <0x0>;
+                                               status = "disabled";
+                                       };
+
                                        lhc: lhc at 20 {
                                                compatible =
"aspeed,ast2500-lhc";
                                                reg = <0x20 0x24 0x48

0x8>;

#3 lore raw

Hi Joel & Andrew

This patch is out of date. ;-)

New: https://patchwork.ozlabs.org/patch/893720/

Quoted 97 lines · Joel Stanley

Hello Andrew,

Quoted 13 lines · Haiyue

Hi Joel and Andrew,

Have time to review this patch ? Hope for your comments. :-)

BR,
Haiyue

Quoted 4 lines · Haiyue Wang

The IPMI KCS device part of the LPC interface and is used for communication with the host processor.

Do you have time to take a look at these? The device tree doesn't make sense to me.

Cheers,

Joel

Quoted 74 lines
Quoted 73 lines
---
   arch/arm/boot/dts/aspeed-g5.dtsi | 43
+++++++++++++++++++++++++++++++++++++++-
   1 file changed, 42 insertions(+), 1 deletion(-)
arch/arm/boot/dts/aspeed-g5.dtsi +27 -1
index 8eac57c..f443169 100644
@@ -267,8 +267,40 @@
                                 ranges = <0x0 0x1e789000 0x1000>;
                                 lpc_bmc: lpc-bmc at 0 {
-                                       compatible =
 "aspeed,ast2500-lpc-bmc";
+                                       compatible =
 "aspeed,ast2500-lpc-bmc", "simple-mfd", "syscon";
                                         reg = <0x0 0x80>;
+                                       reg-io-width = <4>;
+
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+                                       ranges = <0x0 0x0 0x80>;
+
+                                       kcs1: kcs1 at 0 {
+                                               compatible =
 "aspeed,ast2500-kcs-bmc";
+                                               reg = <0x0 0x80>;
+                                               interrupts = <8>;
+                                               kcs_chan = <1>;
+                                               kcs_addr = <0x0>;
+                                               status = "disabled";
+                                       };
+
+                                       kcs2: kcs2 at 0 {
+                                               compatible =
 "aspeed,ast2500-kcs-bmc";
+                                               reg = <0x0 0x80>;
+                                               interrupts = <8>;
+                                               kcs_chan = <2>;
+                                               kcs_addr = <0x0>;
+                                               status = "disabled";
+                                       };
+
+                                       kcs3: kcs3 at 0 {
+                                               compatible =

"aspeed,ast2500-kcs-bmc";

arch/arm/boot/dts/aspeed-g5.dtsi +14 -0
+                                               reg = <0x0 0x80>;
+                                               interrupts = <8>;
+                                               kcs_chan = <3>;
+                                               kcs_addr = <0x0>;
+                                               status = "disabled";
+                                       };
                                 };
                                 lpc_host: lpc-host at 80 {
@@ -294,6 +326,15 @@
                                                 status = "disabled";
                                         };
   +                                     kcs4: kcs4 at 0 {
+                                               compatible =
 "aspeed,ast2500-kcs-bmc";
+                                               reg = <0x0 0xa0>;
+                                               interrupts = <8>;
+                                               kcs_chan = <4>;
+                                               kcs_addr = <0x0>;
+                                               status = "disabled";
+                                       };
+
                                         lhc: lhc at 20 {
                                                 compatible =
"aspeed,ast2500-lhc";
                                                 reg = <0x20 0x24 0x48

0x8>;