From patchwork Tue Dec 1 18:14:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 11942357 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=-11.3 required=3.0 tests=BAYES_00, DATE_IN_FUTURE_06_12,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=ham 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 E7664C64E8A for ; Tue, 1 Dec 2020 09:17:36 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 75F9220656 for ; Tue, 1 Dec 2020 09:17:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="yIuUQgGt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 75F9220656 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=toshiba.co.jp Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=S/MI7W3ALyOINIEOQ7/aGUBQxprbtmHg98pMLYwD0tU=; b=yIuUQgGtYiBBCDSzqVpQGdP+JR IUlwP/PfJkduNo/EuAuR0bDb/xu6AXhlgmsIRS+dYO+w+S8p0LSewUhREY7ejw94qlKG/3Zs8MXLw JgIiHI2fU1feLdikv8o72kvtMthz9EbB/y1s5aCxvu+cnIze2A0Jfk5Ln+VLkxp/3Ayv8ODVZOD4f gW+Ls9L8HAaVoFboMUfYpVRYP83l/LlLjE6gL/CLA36YYHNc1jMorsdOtZcf4/7UWb/gBack+RLJk cJgi6PkLXFeA2UZOqPzpB77lGtLDqTfcGZ5r9JCHyVQ+bJ/jl8FOG58H6ElMNDr63km2Npwb7cS9B PgPk/hbQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk1lf-00027U-Jm; Tue, 01 Dec 2020 09:16:15 +0000 Received: from mo-csw1516.securemx.jp ([210.130.202.155] helo=mo-csw.securemx.jp) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk1lX-00024s-9o for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2020 09:16:10 +0000 Received: by mo-csw.securemx.jp (mx-mo-csw1516) id 0B19Fwxw003761; Tue, 1 Dec 2020 18:15:59 +0900 X-Iguazu-Qid: 34trnO8aDoHi8rwigd X-Iguazu-QSIG: v=2; s=0; t=1606814158; q=34trnO8aDoHi8rwigd; m=CQIFhqIeZ/1OaGN+K0KBw/hoFYRMv2SIsojsKTfpIuc= Received: from imx2.toshiba.co.jp (imx2.toshiba.co.jp [106.186.93.51]) by relay.securemx.jp (mx-mr1510) id 0B19FwwH036934; Tue, 1 Dec 2020 18:15:58 +0900 Received: from enc01.toshiba.co.jp ([106.186.93.100]) by imx2.toshiba.co.jp with ESMTP id 0B19FvRW024694; Tue, 1 Dec 2020 18:15:57 +0900 (JST) Received: from hop001.toshiba.co.jp ([133.199.164.63]) by enc01.toshiba.co.jp with ESMTP id 0B19Fv1N031159; Tue, 1 Dec 2020 18:15:57 +0900 From: Nobuhiro Iwamatsu To: Rob Herring , Linus Walleij Subject: [PATCH v3 0/4] gpio: visconti: Add Toshiba Visconti GPIO support Date: Wed, 2 Dec 2020 03:14:02 +0900 X-TSB-HOP: ON Message-Id: <20201201181406.2371881-1-nobuhiro1.iwamatsu@toshiba.co.jp> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_041607_856905_76BBEBE5 X-CRM114-Status: GOOD ( 10.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, punit1.agrawal@toshiba.co.jp, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Nobuhiro Iwamatsu , yuji2.ishikawa@toshiba.co.jp, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This series is the GPIO driver for Toshiba's ARM SoC, Visconti[0]. This provides DT binding documentation, device driver, MAINTAINER files, and updates to DT files. Update: dt-bindings: gpio: Add bindings for Toshiba Visconti GPIO Controller: v2 -> v3: Fix dtschema/dtc warnings. dtschema/dtc warnings/errors: Documentation/devicetree/bindings/gpio/toshiba,gpio-visconti.example.dt.yaml: gpio@28020000: interrupts: [[0, 24, 4], [0, 25, 4], [0, 26, 4], [0, 27, 4], [0, 28, 4], [0, 29, 4], [0, 30, 4], [0, 31, 4], [0, 32, 4], [0, 33, 4], [0, 34, 4], [0, 35, 4], [0, 36, 4], [0, 37, 4], [0, 38, 4], [0, 39, 4]] is too short From schema: Documentation/devicetree/bindings/gpio/toshiba,gpio-visconti.yaml v1 -> v2: Fix typo. gpio: visoconti: Add Toshiba Visconti GPIO support: v2 -> v3: Add select GPIO_GENERIC Use genric MMIO GPIO library Use bgpio_init() as initialized the generic helpers. Use irqchip template instead of gpiochip_irqchip_add(). v1 -> v2: No update MAINTAINERS: Add entries for Toshiba Visconti GPIO controller: v2 -> v3: No update v1 -> v2: No update arm: dts: visconti: Add DT support for Toshiba Visconti5 GPIO driver: v2 -> v3: Fix compatible string. v1 -> v2: No update Best regards, Nobuhiro [0]: https://toshiba.semicon-storage.com/ap-en/semiconductor/product/image-recognition-processors-visconti.html Nobuhiro Iwamatsu (4): dt-bindings: gpio: Add bindings for Toshiba Visconti GPIO Controller gpio: visconti: Add Toshiba Visconti GPIO support MAINTAINERS: Add entries for Toshiba Visconti GPIO controller arm: dts: visconti: Add DT support for Toshiba Visconti5 GPIO driver .../bindings/gpio/toshiba,gpio-visconti.yaml | 85 +++++++ MAINTAINERS | 2 + .../boot/dts/toshiba/tmpv7708-rm-mbrc.dts | 4 + arch/arm64/boot/dts/toshiba/tmpv7708.dtsi | 27 ++ drivers/gpio/Kconfig | 9 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-visconti.c | 232 ++++++++++++++++++ drivers/pinctrl/visconti/pinctrl-common.c | 23 ++ 8 files changed, 383 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/toshiba,gpio-visconti.yaml create mode 100644 drivers/gpio/gpio-visconti.c