[PATCH linux dev-4.10 2/2] ipmi: add the KCS nodes into AST2500 device tree

Haiyue Wang haiyue.wang at linux.intel.com
Sun Dec 10 17:08:27 AEDT 2017


Add kcs1, kcs2, kcs3 into mfd node 'lpc-bmc at 0', and
add kcs4 into mfd node 'lpc-host at 80'.

Signed-off-by: Haiyue Wang <haiyue.wang at linux.intel.com>
---
 arch/arm/boot/dts/aspeed-g5.dtsi | 42 ++++++++++++++++++++++++++++++++++++----
 1 file changed, 38 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi
index ba3607c..5d67f55 100644
--- a/arch/arm/boot/dts/aspeed-g5.dtsi
+++ b/arch/arm/boot/dts/aspeed-g5.dtsi
@@ -135,8 +135,39 @@
 			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>;
+
+				#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 {
@@ -148,9 +179,12 @@
 				#size-cells = <1>;
 				ranges = <0x0 0x80 0x1e0>;
 
-				lpc_ctrl: lpc-ctrl at 0 {
-					compatible = "aspeed,ast2500-lpc-ctrl";
-					reg = <0x0 0x80>;
+				kcs4: kcs4 at 0 {
+					compatible = "aspeed,ast2500-kcs-bmc";
+					reg = <0x0 0xa0>;
+					interrupts = <8>;
+					kcs_chan = <4>;
+					kcs_addr = <0x0>;
 					status = "disabled";
 				};
 
-- 
2.7.4



More information about the Linux-aspeed mailing list