From patchwork Wed Mar 23 00:40:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Chen X-Patchwork-Id: 12789354 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 4DB3EC433EF for ; Wed, 23 Mar 2022 00:42:12 +0000 (UTC) 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=uSfj0XfKcZrYR4QyS/oty54mqad5aZVGpVPNYdxhk3I=; b=mcCqLGyCvQwZre bbo5XPzk93Vrz8aAR4gP6FvaLnZrl8wRFD/DMmvJtWUp+efP/udXTAnOd8BnURu5dd7MpATCsdEE3 7WxVEZKBGiRKHctVHzAxdk9ig3jzH0xGj2d1qIgT8PmvbMTadfHfo5K+Rc0XJ5G87AK6WQQBA/tuo 34Ubx0tbIkC/Ies4mrbWygU/sntIfmbzCYMFzeXH9240kgWGJr/GHf9Wm0iHncjbMQkeLTKwYfNEK lgrcQsIpTzCcr9mIJ1QSC2ALfQGE5HSXsEZlDId7Wmp5sAknc1n3qz74kohUqBehNhAtcaGB7n7mV CL5rWy2ILfvx7BFP+QVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nWp3X-00CUzE-1e; Wed, 23 Mar 2022 00:40:55 +0000 Received: from twspam01.aspeedtech.com ([211.20.114.71]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nWp3J-00CUwu-DW for linux-arm-kernel@lists.infradead.org; Wed, 23 Mar 2022 00:40:43 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 22N0Thp7001180; Wed, 23 Mar 2022 08:29:43 +0800 (GMT-8) (envelope-from ryan_chen@aspeedtech.com) Received: from localhost.localdomain (192.168.10.10) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 23 Mar 2022 08:40:15 +0800 From: ryan_chen To: , Rob Herring , Joel Stanley , Andrew Jeffery , Philipp Zabel , , , Subject: [PATCH 0/2] Add ASPEED AST2600 I2C new controller driver Date: Wed, 23 Mar 2022 08:40:07 +0800 Message-ID: <20220323004009.943298-1-ryan_chen@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [192.168.10.10] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 22N0Thp7001180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220322_174041_872531_D7C152B7 X-CRM114-Status: UNSURE ( 8.07 ) X-CRM114-Notice: Please train this message. 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 series add AST2600 i2c new register mode driver. The i2c new register mode have new clock divider option for more flexibale generation. And also have separate i2c master and slave register set for control. ryan_chen (2): dt-bindings: i2c-new: Add bindings for AST2600 i2C new controller i2c:aspeed:support ast2600 i2c new register mode driver .../bindings/i2c/aspeed,i2c-new.yaml | 78 + drivers/i2c/busses/Kconfig | 11 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/aspeed-i2c-new-global.c | 91 + drivers/i2c/busses/aspeed-i2c-new-global.h | 19 + drivers/i2c/busses/i2c-new-aspeed.c | 1698 +++++++++++++++++ 6 files changed, 1898 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/aspeed,i2c-new.yaml create mode 100644 drivers/i2c/busses/aspeed-i2c-new-global.c create mode 100644 drivers/i2c/busses/aspeed-i2c-new-global.h create mode 100644 drivers/i2c/busses/i2c-new-aspeed.c