Received: by 10.223.185.116 with SMTP id b49csp6491083wrg; Wed, 28 Feb 2018 10:16:12 -0800 (PST) X-Google-Smtp-Source: AH8x226XQcebGJBYilnbagSLsIoxqcoqTcgaaJoc6pi7apgV38Zmb05aUgYzVkj0SBcHPRaxxD3I X-Received: by 10.101.97.207 with SMTP id j15mr14738662pgv.266.1519841772174; Wed, 28 Feb 2018 10:16:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519841772; cv=none; d=google.com; s=arc-20160816; b=JJ92YC2+tWOLIgJKYEkqZxEVtDd/gRlWud8UKxiNLVXid0d+AK4UuEt6ua93XfUBTF nh8FD/IlQLSLlsT5LpMvFxwPNP6HK2aec9sQUXfT1EpvbYz+XPIFPn1QdauRL8sO9a36 coqLkGyBATL7HCGQyn1EiLvvgTMmofgo5SmpmGnSp8H1VjcSAMUoNQY7IcABDoE86X9W +S869fAb/0ARMdyUj/0Y3+SZsbkx0MzpABp6KPK7jdHMpcBdGZtBFiOHwKRUYf4uA+hN nBEBTUCwa7VZU0XJEzC5+i2pw31wG2vLrMqKeLz/Qav9E9RxPftMTvIJldu5VuilAIBl W9mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=HSKVjLhawedZqQde1aDDpkmsvz0AxopDoBcbPC0BEN0=; b=ziBuGgxyV4LNfmy8qzBbl97NM0Q5geMBA8j1rqNJt3u6rWGd5IFjlBXxDbHsTlPkdi JdMRIPd2rJc9es+NDNTe3O59ZTf4b1CmCeWLytvjJ9NKgGwn/CD3lNiM4ly2HIfGgO6n wpPkwOR/8UletgXX14MngwS1ctIux+H8lG1XwxqqSyC1y5vYn1FzVJxZw5bM0IzjLyA5 XNR8OkQIWK0p+jnT8D9dghUY2O/osKasYXKffuGJqKHp05INYAi0TOBrppRltf++Krwr 0FI88ngbMgrTaZFWLpcGQda/d/9JyKUY0NK0oK7fPPyi9l/CQ6LDdjtm5znxMBAnbDa0 0Guw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GbZFNyFx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13si1304528pgt.481.2018.02.28.10.15.56; Wed, 28 Feb 2018 10:16:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GbZFNyFx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752969AbeB1SPR (ORCPT + 99 others); Wed, 28 Feb 2018 13:15:17 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:38813 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752848AbeB1SPP (ORCPT ); Wed, 28 Feb 2018 13:15:15 -0500 Received: by mail-pl0-f66.google.com with SMTP id d4-v6so1995689pll.5 for ; Wed, 28 Feb 2018 10:15:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=HSKVjLhawedZqQde1aDDpkmsvz0AxopDoBcbPC0BEN0=; b=GbZFNyFxH32NmIVKIWWP2GCi9WuO9x97qNeRYONeP1rkdzdSx1R10QlEPfJiPr1bRg Ce4ZJf1RY4NkBKSBkJLuGcBoOOiMpGCg0jKaMsSbVpguz2xt8MhuST6Ufwb+eXPLmr4B KziScDzlSGg2bYtG17xwO2Ia8M56vGXW1BBwg= 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; bh=HSKVjLhawedZqQde1aDDpkmsvz0AxopDoBcbPC0BEN0=; b=kMzw+rk+fy9Rum+tKifH1n9hBM9rpXQWIdfeF5enn5bCeGVleFjmt2U+WBXsr9oVX1 WfQl0eHQo/9u4x4A9+jjVCzhDwTjvmxf3XCDkYxG800tiJHHA8oeOsiOv84gfbqQLEAg OaPUfJHGJWd2nHweY+hOEDOktStJu0W7YWUYhGZeCgb06kqvcCCdbPKTz9uCERHv9E7W bLfQ4omr7hNccpBiYDpxlkfaoKA6AmLLyFs8PwW7MTJbIEjidpKqO/DI8r5WiLQPrgjo GgTWhT1AYuIrRMb2q+WVMyyyNsSoM7mUrlnjRAlyVuUz1MRG9G5EHAd5FGQAMLHlzSm3 A5Lg== X-Gm-Message-State: APf1xPBNIL2fjPPgioQVOT0nBzV7EkhpQcbAm5gCe7v4dkXF5Jhr5695 49jhLQQAAUnAVTAElFDn1hPh X-Received: by 2002:a17:902:5482:: with SMTP id e2-v6mr18747018pli.65.1519841714428; Wed, 28 Feb 2018 10:15:14 -0800 (PST) Received: from localhost.localdomain ([2405:204:7380:867e:a4dd:d27b:1244:f453]) by smtp.gmail.com with ESMTPSA id u27sm4980258pfk.172.2018.02.28.10.15.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 10:15:13 -0800 (PST) From: Manivannan Sadhasivam To: linus.walleij@linaro.org, robh+dt@kernel.org, afaerber@suse.de Cc: liuwei@actions-semi.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, Manivannan Sadhasivam Subject: [PATCH v3 00/10] Add Actions Semi S900 pinctrl and gpio support Date: Wed, 28 Feb 2018 23:44:22 +0530 Message-Id: <20180228181432.26847-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds pinctrl and gpio support for Actions Semi S900 SoC. Pinctrl and gpio subsystems share the common set of register range but implemented as individual drivers for making it less complex. Pinmux functions are only accessible for pin groups while pinconf parameters are available for both pin groups and individual pins. gpio-line-names has been added for the Bubblegum-96 board matching the 96Boards CE specification v1.0. Both pinctrl and gpio drivers are verified using the Bubblegum-96 board. This patchset depends on the clock driver which is still under review: https://lkml.org/lkml/2018/2/9/831 There is also S500 pinctrl and gpio driver developed by Andreas Farber independently to this patchset. https://github.com/afaerber/linux/commits/bg96-next If this patchseries seems to be good enough to add base OWL pinctrl and gpio support. Then, we may decide on adding S500 support on top of this later by reusing the pinctrl definitions from Andreas. Thanks, Mani Changes in v3: * Simplified owl_gpio_set_reg() with _relaxed functions * Added interrupt controller properties to gpio node bindings as suggested by Rob * Minor code cleanups Changes in v2: * Implemented each GPIO bank as its own gpio-controller * Added gpio-ranges property * Modified pin group to follow pad names instead of register names * Incorporated review comments from Andy * Incorporated review comments from Andreas * Fixed the MODULE_LICENSE with respect to SPDX tag * Added Reviewed by tag from Rob for pinctrl binding Manivannan Sadhasivam (10): dt-bindings: pinctrl: Add bindings for Actions S900 SoC arm64: dts: actions: Add pinctrl node for S900 arm64: actions: Enable PINCTRL in platforms Kconfig pinctrl: actions: Add Actions S900 pinctrl driver dt-bindings: gpio: Add gpio nodes for Actions S900 SoC arm64: dts: actions: Add S900 gpio nodes arm64: dts: actions: Add gpio line names to Bubblegum-96 board gpio: Add gpio driver for Actions OWL S900 SoC MAINTAINERS: Add reviewer for ACTIONS platforms MAINTAINERS: Add Actions Semi S900 pinctrl and gpio entries .../devicetree/bindings/gpio/actions,owl-gpio.txt | 95 + .../bindings/pinctrl/actions,s900-pinctrl.txt | 178 ++ MAINTAINERS | 5 + arch/arm64/Kconfig.platforms | 1 + arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 201 ++ arch/arm64/boot/dts/actions/s900.dtsi | 54 + drivers/gpio/Kconfig | 8 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-owl.c | 218 ++ drivers/pinctrl/Kconfig | 1 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/actions/Kconfig | 12 + drivers/pinctrl/actions/Makefile | 2 + drivers/pinctrl/actions/pinctrl-owl.c | 571 +++++ drivers/pinctrl/actions/pinctrl-owl.h | 142 ++ drivers/pinctrl/actions/pinctrl-s900.c | 2505 ++++++++++++++++++++ 16 files changed, 3995 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/actions,owl-gpio.txt create mode 100644 Documentation/devicetree/bindings/pinctrl/actions,s900-pinctrl.txt create mode 100644 drivers/gpio/gpio-owl.c create mode 100644 drivers/pinctrl/actions/Kconfig create mode 100644 drivers/pinctrl/actions/Makefile create mode 100644 drivers/pinctrl/actions/pinctrl-owl.c create mode 100644 drivers/pinctrl/actions/pinctrl-owl.h create mode 100644 drivers/pinctrl/actions/pinctrl-s900.c -- 2.14.1