From patchwork Sun Oct 11 02:48:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11830623 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B7DF7139F for ; Sun, 11 Oct 2020 02:49:28 +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 808362084C for ; Sun, 11 Oct 2020 02:49:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BQ7jiuBl"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="weHpStTx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 808362084C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.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=s1t756TjR4j8d8ZU/qmvqc5LcD9qD6EB4J3gXrG1EF8=; b=BQ7jiuBlJ0R1LPeZVqQFJ/yyRZ W4Xfq7WNoLKj1dmUm1YtWvNUXc48jMB9UplYbQ5yKBdK1knwqtHY1o7lCL8/7/O0tqLxnIrvwiO4I UnH1S/ywaevwtxPkAH8xOk1ODjBV3ZA5/FgRpWyr/MpLN/SEJFD2g+IZYC28+WT+Kjuzc5+IEkpVX 9YytPQuYtQdgLScypj1+nzaf4m5tTAas7lgAdyfX/p+7cNb5HaSGCg2hr5dUCSeU5nLy0vFp37cil Zh+qJlsPqC1K+L51acOPRL1lMZ4ghNynf4w4Wt45W4atuLHpCXp7pXJGj88H882GhnpqGwTIRGXgb V9aJ/9Fw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kRRPv-0001YF-75; Sun, 11 Oct 2020 02:48:59 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kRRPn-0001Vf-Vf for linux-arm-kernel@lists.infradead.org; Sun, 11 Oct 2020 02:48:54 +0000 Received: by mail-pf1-x442.google.com with SMTP id a200so10316973pfa.10 for ; Sat, 10 Oct 2020 19:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CRG92oMXy4E775EIK8O0DpmZIGdIMTpQqj/5ZSVtoLY=; b=weHpStTxuhYPS7lmPZL9/pJezwwh8vwwWkoW6OYqSbVgsTSXnrXBooo9Sk4tOL5x3P +mfDH6ATV9zyNC5hHUn2edNR+Z5+Q0RRNkweW7QjWgScac4PPlgLsgmAAXCCqnLEh3OP 3lW437RBQZLGsCOK7W4+YS0hpVROGZ/Iy7v1k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CRG92oMXy4E775EIK8O0DpmZIGdIMTpQqj/5ZSVtoLY=; b=mRV7tYhdAQ7VloRm2OtKSS/HgAXe2+fM7sL9qLOd8luuUlXgJtcUA+047uT8bJH9Sf QMiPzQIQyq5iSYQN74qmIsJbrZZVRS2GgUq90J6Tx1izi1efgPN2UIyx2zFDBoDtRrdk lKkZidxph/mXeWup1uyQlp2mxgjAaV3cSacm+9fxAVZCRhH4sUNU4zZTjSo6UHtjf6ze c8nLGmu/pYPdmTKMpeHqVV/8G2K2IxEBCW5KAlYS4uH8E9qsC0EG7zRux0v9k3VVs2LA b/XZ5qYg9DC4iQgsJZxLxWdVtPOvjKFFPJvUEg42F5hINlcMcz3GwNcA2psULpHlLbS5 e3+g== X-Gm-Message-State: AOAM532A9A3AXbRzj2V3axTNoraH9+XTCHGA4CEim/qzD+MDmp68ERfp EupnS3KOHuzvBpFQfe1s8fM+HA== X-Google-Smtp-Source: ABdhPJwrGvROYt9PDnRCZ4PKLbJHDLKQcNIcm4hxT8GdAjhU/1yIldti4tw2fiIbvwwvQMG0mp8Z5w== X-Received: by 2002:a17:90b:128f:: with SMTP id fw15mr9908083pjb.107.1602384523344; Sat, 10 Oct 2020 19:48:43 -0700 (PDT) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id z25sm14832836pgl.6.2020.10.10.19.48.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Oct 2020 19:48:42 -0700 (PDT) From: Daniel Palmer To: linux-gpio@vger.kernel.org Subject: [PATCH 0/5] Add GPIO support for MStar/SigmaStar ARMv7 Date: Sun, 11 Oct 2020 11:48:26 +0900 Message-Id: <20201011024831.3868571-1-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201010_224852_302467_FF17FA3D X-CRM114-Status: GOOD ( 16.16 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:442 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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, Daniel Palmer , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org At the moment the MStar/SigmaStar support is only really capable of shell from an initramfs and not much else. Most of the interesting drivers are blocked on clock and pinctrl drivers and those are going to take me a little while to get cleaned up. Clock and pinctrl aren't needed for basic GPIO to work (all pins start off as GPIOs..) and it makes it possible to actually do something so this series adds everything that is needed for the main GPIO block in these chips. Daniel Palmer (5): dt-bindings: gpio: Binding for MStar MSC313 GPIO controller dt-bindings: gpio: Add a binding header for the MSC313 GPIO driver gpio: msc313: MStar MSC313 GPIO driver ARM: mstar: Add gpio controller to MStar base dtsi ARM: mstar: Fill in GPIO controller properties for infinity .../bindings/gpio/mstar,msc313-gpio.yaml | 69 ++++ MAINTAINERS | 3 + arch/arm/boot/dts/mstar-infinity.dtsi | 16 + arch/arm/boot/dts/mstar-v7.dtsi | 7 + drivers/gpio/Kconfig | 9 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-msc313.c | 341 ++++++++++++++++++ include/dt-bindings/gpio/msc313-gpio.h | 95 +++++ 8 files changed, 541 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/mstar,msc313-gpio.yaml create mode 100644 drivers/gpio/gpio-msc313.c create mode 100644 include/dt-bindings/gpio/msc313-gpio.h