From patchwork Thu May 5 08:37:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 12839222 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 972CAC4332F for ; Thu, 5 May 2022 08:38:20 +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=Y90vH3vmc3bhdI2eqSLn91GZTCOsKDnFIY2p84RuyfQ=; b=AuC3PUf8ALRQXw gjRxOk17G6rPaCfEykH/EqZc+K4xPQg4/ZM9Ovck83oVZoCpnD0pw52avC9eLKZj7BmXsNwaaibYP 3CCGSfv+jb0Q4+9rA+PTaylCkULKg20VurBiwxYoWN/6wGqEHi+vdNdY/Md7qxlyCPtihjvQu8KMf hmnxQdHP7TAa6ChlqCYC0GB0vzpko+1gSKIE2igXH1cJCw+HlXf260P+6OjawHoHxepoFjUC0DPNr wqrJmFGI9WTkE/ORvokF9Ds1+GhFRXsSxb9QzYLubcD3PNoLAvA6y5C78YB035otOi+EuKfSXdxwY rEKIeJWb50MMXUUFjbBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmX03-00ElD3-8k; Thu, 05 May 2022 08:38:15 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmWzr-00El88-PT; Thu, 05 May 2022 08:38:05 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id 9693D1F44D89 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651739882; bh=GG/aQvm160HNrLsBR/Wn4O1iJB98SCXd0wcCiCnTZ2k=; h=From:To:Cc:Subject:Date:From; b=IJjYCqKIAHur+ynfwheOhrsyDhMKFmurcoe841TfGUmVWA0yWR1LQiLz5WV/WKie2 0A7Jt9499oDrPEsAZ+TvqXZDZ46OGDYvXeMecP1OluiHy28l+nRD6gci9cwhnjYbh6 ZVNJwszIpybG/tpw0fktnEsPg2q0W8KkbAMExuP5k9UHvl9mBkUDhyF2Mw/Zx+Ic8X LE/P4+/RhbBOyd6RH7OsMUtjPNhyuDNuHZAby8OSTypImvRWZybstwaEmABQdRyFwQ 4IqnhYEeh+zUC+kg3Mg7ARIkB08iN6L2jXYRSCPfwoB4VfiMAoVJicXoDho4A9RZdF 92XD423LPZZrw== From: AngeloGioacchino Del Regno To: linus.walleij@linaro.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, sean.wang@kernel.org, angelogioacchino.delregno@collabora.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com, nfraprado@collabora.com Subject: [PATCH v3 0/2] MediaTek Helio X10 MT6795 - Pinctrl driver Date: Thu, 5 May 2022 10:37:55 +0200 Message-Id: <20220505083757.11288-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220505_013803_995501_4A631C0F X-CRM114-Status: UNSURE ( 9.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org In an effort to give some love to the apparently forgotten MT6795 SoC, I am upstreaming more components that are necessary to support platforms powered by this one apart from a simple boot to serial console. This series introduces a pinctrl driver for the Helio X10 SoC. Tested on a Sony Xperia M5 (codename "Holly") smartphone. Changes in v3: - Fixed $id in yaml file Changes in v2: - Reordered commits, dt-bindings first, driver last - Fixed yaml issues AngeloGioacchino Del Regno (2): dt-bindings: pinctrl: Add MediaTek MT6795 pinctrl bindings pinctrl: mediatek: Add pinctrl driver for MT6795 Helio X10 .../pinctrl/mediatek,pinctrl-mt6795.yaml | 224 +++ drivers/pinctrl/mediatek/Kconfig | 7 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt6795.c | 623 ++++++ drivers/pinctrl/mediatek/pinctrl-mtk-mt6795.h | 1698 +++++++++++++++++ include/dt-bindings/pinctrl/mt6795-pinfunc.h | 908 +++++++++ 6 files changed, 3461 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/mediatek,pinctrl-mt6795.yaml create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt6795.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt6795.h create mode 100644 include/dt-bindings/pinctrl/mt6795-pinfunc.h