From patchwork Mon May 16 06:48:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Chen X-Patchwork-Id: 12851376 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 DF400C433F5 for ; Mon, 16 May 2022 20:03:18 +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:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=T+Z1gaNK+EyQ4mQ6fvpMhPba1P/cFQm3Hr96witmHa8=; b=qV+ATlj8RunCyE 7Uz3i/rGdEQiIE+MrkynK41sh3nrLcwJnVXVf+O4sSS0hMtCFbd240tBUXMEPz8FQLV3Xr07tFzDn Vk1QbNPU9tJFq/qrgoadFCM6+E+PKOE3VhkAI1A0PEo1ArHCdnEzGU5dZI3BW0YuzxlUWEn6hbSRf TxhgSyjpPX6fjYoG2u33c3E1OTNGVM01F/yDlHM4V93tfA67hLHdiSCzovAFnAHLRM2uorzKgPA9W qO0kpCFBn8wFoY43E3GK8eaBiy8WBJhyFMRGcLwr8WK2h3IYKDsx1HqK0cmgkhGKAjXplJFKLaVyC T+9/p+8bO0Uc3zMt1RFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqguv-009wMP-Uk; Mon, 16 May 2022 20:02:10 +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 1nqgut-009wLg-Nq for linux-arm-kernel@bombadil.infradead.org; Mon, 16 May 2022 20:02:07 +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:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=ZuYMXzC68MNU5InmbSvO6FbS7OwJxifKQdlXDfPM5Z4=; b=XgGfGBoFN3EUIf2ilrsohiyu7a KtYI5vq9XYqonP1Cbv05ssItwV8WdKO14JTfpBlFJXPTyS0GfoX8dMN8f0ggyowir2LuxTfyPaY+u VIADxcU4H1s8SzG5gYpcyr+RHvFkum0xAq3r8UvCEblgHPikMLirWs6qqHi4q2ltTc9p/4Po65rcK DNZZ9JLhJpZy/AV8ZZW7qY+GSTIwt4GQJc+g2XazJYCY603DpRrC2rGjDDO65ejGX1Kqbmv5FNqFX I4eC8gjIMZRsKrtBTTyNoxCypb3+ort3VtmODCdtSNRx85HuKxog15xYP8+6/nPO8AryC8t8hUuxr QaTaxbCQ==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqUY0-000suJ-B8 for linux-arm-kernel@lists.infradead.org; Mon, 16 May 2022 06:49:43 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 24G6ZVWc064016; Mon, 16 May 2022 14:35:31 +0800 (GMT-8) (envelope-from ryan_chen@aspeedtech.com) Received: from localhost.localdomain (192.168.10.9) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 16 May 2022 14:49:04 +0800 From: ryan_chen To: Joel Stanley , Andrew Jeffery , Philipp Zabel , , , , CC: Subject: [PATCH v3 0/3] Add ASPEED AST2600 I2C new controller driver Date: Mon, 16 May 2022 14:48:57 +0800 Message-ID: <20220516064900.30517-1-ryan_chen@aspeedtech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [192.168.10.9] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 24G6ZVWc064016 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220516_074941_316198_AD7372B3 X-CRM114-Status: UNSURE ( 9.00 ) 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 set driver. The i2c new register set have new clock divider option for more flexiable generation. And also have separate i2c master and slave register set for control. v3: -fix i2c global clock divide default value -remove i2c slave no used dev_dbg info. v2: -add i2c global ymal file commit -rename file name from new to ast2600. aspeed-i2c-new-global.c -> i2c-ast2600-global.c aspeed-i2c-new-global.h -> i2c-ast2600-global.h i2c-new-aspeed.c -> i2c-ast2600.c -rename all driver function name to ast2600 ryan_chen (3): dt-bindings: i2c-ast2600: Add bindings for AST2600 i2C global register controller dt-bindings: i2c-ast2600: Add bindings for AST2600 i2C driver i2c:aspeed:support ast2600 i2c new register mode driver .../i2c/aspeed,i2c-ast2600-global.ymal | 44 + .../bindings/i2c/aspeed,i2c-ast2600.ymal | 78 + drivers/i2c/busses/Kconfig | 11 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-ast2600-global.c | 94 + drivers/i2c/busses/i2c-ast2600-global.h | 19 + drivers/i2c/busses/i2c-ast2600.c | 1703 +++++++++++++++++ 7 files changed, 1950 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/aspeed,i2c-ast2600-global.ymal create mode 100644 Documentation/devicetree/bindings/i2c/aspeed,i2c-ast2600.ymal create mode 100644 drivers/i2c/busses/i2c-ast2600-global.c create mode 100644 drivers/i2c/busses/i2c-ast2600-global.h create mode 100644 drivers/i2c/busses/i2c-ast2600.c