Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp879592pxb; Wed, 27 Oct 2021 14:20:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRMSrKTYhJyf7knpAOGVOctXERCJRd9dTKUapCbLsM97onXjGkPQBc4LPNX65q96zIwHKj X-Received: by 2002:a17:906:4fc8:: with SMTP id i8mr64248ejw.342.1635369643846; Wed, 27 Oct 2021 14:20:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635369643; cv=none; d=google.com; s=arc-20160816; b=RIdvO8vgperqvUngPf8GelPsMifpiKDVll7YuYZXngKqxI+PfdH+mQ5Ilb4T7Bkzt0 gW3v9P4zSeFWmn3yFytXA9oiK6fFOBpXMY1cViOce/PpXJ8hIt0b0A0z2kTTfQiM0ycc hkS3JAeaGrHVaBiShmowshmRE1VUU2Y7sbrdlXclrDWkLdfmcV24bJ6q6w+XxpFdZxGm qRNMNtIFGIFtY/KTyNxwh9rx90hsHe6oD8R2PzuqfL5K5BrMp5oI4OvdYX/Z9oAsykC7 mux23/oq/63EaKRAo84uxm0lRTcHxbJqJbYpKnS+rU7adATBUk98KcSjuQD4rOPfDYgO t6BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=EKr2QPNgvld6bHgGFu9VdTmdSThIn7dNK98xyMZN/Fg=; b=C8H7PR7yD3BPvzIUnglSbSgtln9+Ke/U1O1TtSpz6OoI7DIxxdggbYDHxt4LGHgl0v Ffek/GP7t9ourdIZuppO4hmeBv7dpuvcQCFRwR0+shFnHTIQt5RcT4qWASrnwgO/2f64 kEdU88ZnMvaQ+uy6Em9asqlnyBt0EzTC9/vRBX2Qe1VVPkuvNRXOYFaBOG5aErvpfVbD sXTtR11eltFA37ZVomKsiEDE4ZHSI+pa3AKFxXHH6dUj34rpZ5pmH1YFCP0yDZGjLOlX qLEf4LpCITUwBL6tXmCRI48kMlnwGMBrfaMkqXUQYgZMZSSqrmwAtOvQuauZXVLVVRPy Xg1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cicOtjHG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ji3si1592538ejc.508.2021.10.27.14.20.20; Wed, 27 Oct 2021 14:20:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cicOtjHG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241033AbhJ0I6B (ORCPT + 97 others); Wed, 27 Oct 2021 04:58:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231566AbhJ0I6A (ORCPT ); Wed, 27 Oct 2021 04:58:00 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A59FC061570; Wed, 27 Oct 2021 01:55:35 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id n36-20020a17090a5aa700b0019fa884ab85so4530330pji.5; Wed, 27 Oct 2021 01:55:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=EKr2QPNgvld6bHgGFu9VdTmdSThIn7dNK98xyMZN/Fg=; b=cicOtjHGnv+iHPnA4D9Y7spZmxHA/TPT9GULlIdkGpwYA399ZtG/SZgKmS2d9bD0L+ UCowrRDINCixO8X/AmwLB0kDiPDIZLH4UmSA45xnEug4CCd3rFEtYdswxBVj2dZZYAj7 wprJePSMNVRL1sgZg4Ti9Na97+qryima/cHBfXRbUNH8USJfdTzX6/wrzM5wVZ6aGecr y/nndcnKBsPB/a5W917ZLciaazalA0NoCGxQQ10ctMSKj8JVltfzmy5GQ5gzZhPb7ZS5 ICxUQtg4gefv6p9AnPi6ZGGFWM14iEh4rTG+4USumXB4MzBqlw1hkKjYliYB9tOLpVqn +MNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=EKr2QPNgvld6bHgGFu9VdTmdSThIn7dNK98xyMZN/Fg=; b=3QsJJgvnj+X9bFXJV934TnpAnQ9wd94bgjumfg9csaEu8l/9iFrwLE+Wb4hpfWX75O 9xfbQoc64L+fSVma/PrnTSjJ2qywCPriT3GMAJwMKx/gVipipsSB9xL1EXMARo1hDxNW xavJHliUGuXyhLBTmB38CmV1M1n/zb1OyMQj0TjOgiBW/c3CXLxKWgDJ3FZzg9OiFNfQ 7kdiXWWtw9KaHOjk3/fR1JA2zmfR37FJac1qoaAidxpe6X4AV6KgYQitQJqa394fbT08 WY49CqLdBfHXpcrYFHwIbgecXlBoTInksI0/27x8E0FHpiQcIeQD+BbgHok6SKrmPJVU vEOg== X-Gm-Message-State: AOAM531ZSyFdtzXfTh3vxtFscgn3Mv/izsIh2IGXS4oHubmqqivak6c8 cMRXdspAvcU5Wb1Ek1aB/Fw= X-Received: by 2002:a17:902:8682:b0:13f:8e12:c977 with SMTP id g2-20020a170902868200b0013f8e12c977mr26635511plo.62.1635324934982; Wed, 27 Oct 2021 01:55:34 -0700 (PDT) Received: from scdiu3.sunplus.com ([113.196.136.192]) by smtp.googlemail.com with ESMTPSA id a15sm8336773pfv.64.2021.10.27.01.55.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Oct 2021 01:55:34 -0700 (PDT) From: Wells Lu X-Google-Original-From: Wells Lu To: linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: qinjian@cqplus1.com, dvorkin@tibbo.com, Wells Lu Subject: [PATCH 0/3] Add pin control driver for Sunplus SP7021 SoC Date: Wed, 27 Oct 2021 16:55:23 +0800 Message-Id: <1635324926-22319-1-git-send-email-wells.lu@sunplus.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a patch series for pinctrl driver for Sunplus SP7021 SoC. Sunplus SP7021 is an ARM Cortex A7 (4 cores) based SoC. It integrates many peripherals (ex: UART, I2C, SPI, SDIO, eMMC, USB, SD card and etc.) into a single chip. It is designed for industrial control. Refer to: https://sunplus-tibbo.atlassian.net/wiki/spaces/doc/overview https://tibbo.com/store/plus1.html Wells Lu (3): pinctrl: Add driver for Sunplus SP7021 dt-bindings: pinctrl: Add dt-bindings for Sunplus SP7021 devicetree: bindings: pinctrl: Add bindings doc for Sunplus SP7021. .../bindings/pinctrl/sunplus,sp7021-pinctrl.yaml | 277 ++++++++++ MAINTAINERS | 10 + drivers/pinctrl/Kconfig | 1 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/sunplus/Kconfig | 32 ++ drivers/pinctrl/sunplus/Makefile | 11 + drivers/pinctrl/sunplus/gpio_inf_sp7021.c | 48 ++ drivers/pinctrl/sunplus/pinctrl_inf_sp7021.c | 501 +++++++++++++++++ drivers/pinctrl/sunplus/sppctl.c | 359 +++++++++++++ drivers/pinctrl/sunplus/sppctl.h | 181 +++++++ drivers/pinctrl/sunplus/sppctl_gpio.c | 136 +++++ drivers/pinctrl/sunplus/sppctl_gpio.h | 73 +++ drivers/pinctrl/sunplus/sppctl_gpio_ops.c | 288 ++++++++++ drivers/pinctrl/sunplus/sppctl_gpio_ops.h | 75 +++ drivers/pinctrl/sunplus/sppctl_pinctrl.c | 593 +++++++++++++++++++++ drivers/pinctrl/sunplus/sppctl_pinctrl.h | 33 ++ drivers/pinctrl/sunplus/sppctl_sysfs.c | 385 +++++++++++++ drivers/pinctrl/sunplus/sppctl_sysfs.h | 33 ++ include/dt-bindings/pinctrl/sppctl-sp7021.h | 136 +++++ include/dt-bindings/pinctrl/sppctl.h | 40 ++ 20 files changed, 3213 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/sunplus,sp7021-pinctrl.yaml create mode 100644 drivers/pinctrl/sunplus/Kconfig create mode 100644 drivers/pinctrl/sunplus/Makefile create mode 100644 drivers/pinctrl/sunplus/gpio_inf_sp7021.c create mode 100644 drivers/pinctrl/sunplus/pinctrl_inf_sp7021.c create mode 100644 drivers/pinctrl/sunplus/sppctl.c create mode 100644 drivers/pinctrl/sunplus/sppctl.h create mode 100644 drivers/pinctrl/sunplus/sppctl_gpio.c create mode 100644 drivers/pinctrl/sunplus/sppctl_gpio.h create mode 100644 drivers/pinctrl/sunplus/sppctl_gpio_ops.c create mode 100644 drivers/pinctrl/sunplus/sppctl_gpio_ops.h create mode 100644 drivers/pinctrl/sunplus/sppctl_pinctrl.c create mode 100644 drivers/pinctrl/sunplus/sppctl_pinctrl.h create mode 100644 drivers/pinctrl/sunplus/sppctl_sysfs.c create mode 100644 drivers/pinctrl/sunplus/sppctl_sysfs.h create mode 100644 include/dt-bindings/pinctrl/sppctl-sp7021.h create mode 100644 include/dt-bindings/pinctrl/sppctl.h -- 2.7.4