devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Chia-Wei, Wang" <chiawei_wang@aspeedtech.com>
To: <robh+dt@kernel.org>, <joel@jms.id.au>, <andrew@aj.id.au>,
	<tglx@linutronix.de>, <maz@kernel.org>, <p.zabel@pengutronix.de>,
	<linux-aspeed@lists.ozlabs.org>, <openbmc@lists.ozlabs.org>,
	<devicetree@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>
Cc: <BMC-SW@aspeedtech.com>
Subject: [PATCH 6/6] ARM: dts: aspeed: Add AST2600 eSPI nodes
Date: Wed, 6 Jan 2021 13:59:39 +0800	[thread overview]
Message-ID: <20210106055939.19386-7-chiawei_wang@aspeedtech.com> (raw)
In-Reply-To: <20210106055939.19386-1-chiawei_wang@aspeedtech.com>

Add eSPI nodes for the device tree of Aspeed 6th generation SoCs.

Signed-off-by: Chia-Wei, Wang <chiawei_wang@aspeedtech.com>
---
 arch/arm/boot/dts/aspeed-g6.dtsi | 57 ++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi
index 810b0676ab03..d457baf11e37 100644
--- a/arch/arm/boot/dts/aspeed-g6.dtsi
+++ b/arch/arm/boot/dts/aspeed-g6.dtsi
@@ -3,7 +3,9 @@
 
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/interrupt-controller/aspeed-scu-ic.h>
+#include <dt-bindings/interrupt-controller/aspeed-espi-ic.h>
 #include <dt-bindings/clock/ast2600-clock.h>
+#include <dt-bindings/gpio/aspeed-gpio.h>
 
 / {
 	model = "Aspeed BMC";
@@ -75,6 +77,61 @@
 		interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
 	};
 
+	espi: espi@1e6ee000 {
+		compatible = "aspeed,ast2600-espi", "simple-mfd", "syscon";
+		reg = <0x1e6ee000 0x1000>;
+
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0x0 0x1e6ee000 0x1000>;
+
+		espi_ic: espi-ic {
+			#interrupt-cells = <1>;
+			compatible = "aspeed,ast2600-espi-ic";
+			interrupts-extended = <&gic GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
+					      <&gpio0 ASPEED_GPIO(W, 7) IRQ_TYPE_EDGE_FALLING>;
+			interrupt-controller;
+			status = "disabled";
+		};
+
+		espi_ctrl: espi-ctrl {
+			compatible = "aspeed,ast2600-espi-ctrl";
+			interrupts-extended = <&espi_ic ASPEED_ESPI_IC_CTRL_EVENT>,
+					      <&espi_ic ASPEED_ESPI_IC_CTRL_RESET>;
+			clocks = <&syscon ASPEED_CLK_GATE_ESPICLK>;
+			resets = <&syscon ASPEED_RESET_ESPI>;
+			status = "disabled";
+		};
+
+		espi_peripheral: espi-peripheral-channel {
+			compatible = "aspeed,ast2600-espi-peripheral";
+			interrupts-extended = <&espi_ic ASPEED_ESPI_IC_PERIF_EVENT>,
+					      <&espi_ic ASPEED_ESPI_IC_CHAN_RESET>;
+			status = "disabled";
+		};
+
+		espi_vw: espi-vw-channel {
+			compatible = "aspeed,ast2600-espi-vw";
+			interrupts-extended = <&espi_ic ASPEED_ESPI_IC_VW_EVENT>,
+					      <&espi_ic ASPEED_ESPI_IC_CHAN_RESET>;
+			status = "disabled";
+		};
+
+		espi_oob: espi-oob-channel {
+			compatible = "aspeed,ast2600-espi-oob";
+			interrupts-extended = <&espi_ic ASPEED_ESPI_IC_OOB_EVENT>,
+					      <&espi_ic ASPEED_ESPI_IC_CHAN_RESET>;
+			status = "disabled";
+		};
+
+		espi_flash: espi-flash-channel {
+			compatible = "aspeed,ast2600-espi-flash";
+			interrupts-extended = <&espi_ic ASPEED_ESPI_IC_FLASH_EVENT>,
+					      <&espi_ic ASPEED_ESPI_IC_CHAN_RESET>;
+			status = "disabled";
+		};
+	};
+
 	ahb {
 		compatible = "simple-bus";
 		#address-cells = <1>;
-- 
2.17.1


      parent reply	other threads:[~2021-01-06  6:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-06  5:59 [PATCH 0/6] arm: aspeed: Add eSPI support Chia-Wei, Wang
2021-01-06  5:59 ` [PATCH 1/6] dt-bindings: aspeed: Add eSPI controller Chia-Wei, Wang
2021-01-06 15:07   ` Rob Herring
2021-01-07  2:31     ` ChiaWei Wang
2021-01-06  5:59 ` [PATCH 2/6] MAINTAINER: Add ASPEED eSPI driver entry Chia-Wei, Wang
2021-01-06  5:59 ` [PATCH 3/6] clk: ast2600: Add eSPI reset bit Chia-Wei, Wang
2021-01-06  5:59 ` [PATCH 4/6] irqchip/aspeed: Add Aspeed eSPI interrupt controller Chia-Wei, Wang
2021-01-06 10:59   ` Marc Zyngier
2021-01-07  2:59     ` ChiaWei Wang
2021-01-07 10:17       ` Marc Zyngier
2021-01-08  2:33         ` ChiaWei Wang
2021-01-06  5:59 ` [PATCH 5/6] soc: aspeed: Add eSPI driver Chia-Wei, Wang
2021-01-06  7:51   ` kernel test robot
2021-01-06 15:32   ` Rob Herring
2021-01-07  2:35     ` ChiaWei Wang
2021-01-08  2:59       ` Joel Stanley
2021-01-08  3:09         ` Ryan Chen
2021-01-06  5:59 ` Chia-Wei, Wang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210106055939.19386-7-chiawei_wang@aspeedtech.com \
    --to=chiawei_wang@aspeedtech.com \
    --cc=BMC-SW@aspeedtech.com \
    --cc=andrew@aj.id.au \
    --cc=devicetree@vger.kernel.org \
    --cc=joel@jms.id.au \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-aspeed@lists.ozlabs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maz@kernel.org \
    --cc=openbmc@lists.ozlabs.org \
    --cc=p.zabel@pengutronix.de \
    --cc=robh+dt@kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).