From patchwork Thu Aug 26 06:16:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiaWei Wang X-Patchwork-Id: 12459255 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5D85C432BE for ; Thu, 26 Aug 2021 07:49:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 972D0610CA for ; Thu, 26 Aug 2021 07:49:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 972D0610CA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aspeedtech.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Bq5qwBFPiWFaGVGYRY/1Kxf+lnkO8zh6o5MzPF7FSHs=; b=EfQrlzUHCt5Xo9 s/GYzA+vLWGuxPZpKHHW9MUBRw1jloP6GLSylDGBC8yoz24wXy3vNwQO2/uAp/zYsBBIJo2YzJmNO JdObNGkWhN+IxtUaTuwzgLmymQbH718CxAvFGohnsRUksLk+o7DKD1hfBoLzvSgzVLXvzrA7Sgg+1 WdHVri37LI7GvDbjCiysMKoOKTGPwKE2eXFV5QnY/YzgEMfPTXttG+VmFGDdyjrQhBDbQuI0kpAQq +AZDPZyI+vEAoQJ1b9KeBWC6ruuMeLko3lrv6gaV7WzxukOpc5uz3twAXXJ1R+Nl13o9qux1zeovl 0waYZd/ibczLlKxgQ28w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mJA6c-009S9r-Dl; Thu, 26 Aug 2021 07:47:22 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mJA66-009S52-Ij for linux-arm-kernel@bombadil.infradead.org; Thu, 26 Aug 2021 07:46:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=eqqBvNHjj290sUDiRTjh5ZAeEafFXCQuIt80ckdVmN8=; b=kgh3CNBKBX1u1DPfvmmHQgmddt p4dyHVg6T/NirMnoRNqB+Qbdt2YltxAs9Mtuuqy+D7IZsB758Jkw23MotvnOrIMFdbGmxGTlUN0yC VKUMOnFZ4DELuhG5jLy1aaEnyMghiI6DDWj/44yiFNuQtPoYCEnO0KfjgrnNbTgS+dkqpepl/OnQn /Ip8s4Gv/vZo5gxbO0ea0Eh589eJNKFilYEK1JY1+vvMM8Q3VGZHnfak57Iab477v2QdsDtOnYuQo WRCFg3GIh8ad9LAro6ynVmnHvJzc7gFXJZHZHPIgEzAPDLyTBVpWQD5T6GG5b+tiWLRzOakRkRxPO uL1OaANA==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mJ8h2-00D7xY-7q for linux-arm-kernel@lists.infradead.org; Thu, 26 Aug 2021 06:16:56 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 17Q5vjo0058460; Thu, 26 Aug 2021 13:57:45 +0800 (GMT-8) (envelope-from chiawei_wang@aspeedtech.com) Received: from ChiaWeiWang-PC.aspeed.com (192.168.2.66) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 26 Aug 2021 14:16:25 +0800 From: Chia-Wei Wang To: , , , , , , , Subject: [PATCH v3 0/4] arm: aspeed: Add eSPI support Date: Thu, 26 Aug 2021 14:16:19 +0800 Message-ID: <20210826061623.6352-1-chiawei_wang@aspeedtech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [192.168.2.66] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 17Q5vjo0058460 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210826_071652_909856_B289C06C X-CRM114-Status: GOOD ( 12.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch series add the driver support for the eSPI controller of Aspeed 5/6th generation SoCs. This controller is a slave device communicating with a master over Enhanced Serial Peripheral Interface (eSPI). It supports all of the 4 eSPI channels, namely peripheral, virtual wire, out-of-band, and flash, and operates at max frequency of 66MHz. v3: - remove the redundant patch "clk: aspeed: Add eSPI reset bit" - fix missing header inclusion reported by test bot - fix dt-bindings error reported by yamllint v2: - remove irqchip implementation - merge per-channel drivers into single one to avoid the racing issue among eSPI handshake process and driver probing. Chia-Wei Wang (4): dt-bindings: aspeed: Add eSPI controller MAINTAINER: Add ASPEED eSPI driver entry soc: aspeed: Add eSPI driver ARM: dts: aspeed: Add eSPI node .../devicetree/bindings/soc/aspeed/espi.yaml | 157 +++++ MAINTAINERS | 9 + arch/arm/boot/dts/aspeed-g6.dtsi | 17 + drivers/soc/aspeed/Kconfig | 11 + drivers/soc/aspeed/Makefile | 1 + drivers/soc/aspeed/aspeed-espi-ctrl.c | 205 ++++++ drivers/soc/aspeed/aspeed-espi-ctrl.h | 304 +++++++++ drivers/soc/aspeed/aspeed-espi-flash.h | 380 +++++++++++ drivers/soc/aspeed/aspeed-espi-ioc.h | 153 +++++ drivers/soc/aspeed/aspeed-espi-oob.h | 611 ++++++++++++++++++ drivers/soc/aspeed/aspeed-espi-perif.h | 539 +++++++++++++++ drivers/soc/aspeed/aspeed-espi-vw.h | 142 ++++ 12 files changed, 2529 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/aspeed/espi.yaml create mode 100644 drivers/soc/aspeed/aspeed-espi-ctrl.c create mode 100644 drivers/soc/aspeed/aspeed-espi-ctrl.h create mode 100644 drivers/soc/aspeed/aspeed-espi-flash.h create mode 100644 drivers/soc/aspeed/aspeed-espi-ioc.h create mode 100644 drivers/soc/aspeed/aspeed-espi-oob.h create mode 100644 drivers/soc/aspeed/aspeed-espi-perif.h create mode 100644 drivers/soc/aspeed/aspeed-espi-vw.h