Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2879000rwb; Thu, 17 Nov 2022 18:08:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf6K277NwsYQwSY4KYQZM8HsXHw+BxWPkCeNfIDh8QSsLioptP8+n9F9KFldB0XLDOfH2top X-Received: by 2002:aa7:9ed0:0:b0:571:8549:89c3 with SMTP id r16-20020aa79ed0000000b00571854989c3mr5653892pfq.26.1668737325897; Thu, 17 Nov 2022 18:08:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668737325; cv=none; d=google.com; s=arc-20160816; b=ur6+FRkcypIfVcDSp1nTAHQRYuQEfClECBYBSYX6A4MMHBT/G9Z+DKU4PhWNs+H8F3 1bnnlAn38OmkTAXD8dzCF6SsSkYad7FVTlFmE+QYSoVIxL8GjfzNh7dxDT/KxTnEMKc8 hYf9dCaS6A8kaojJzlxllu06V5gD7XmqQADzd8njp3gmzd3btX2k7xDOxrDhhAOuwnFP nNx1p5Tu/mmBX+Mb2lgVKxIXzbcAQd+B7mzDTmoTMTAZI8nXg6vAKjUwxsBbipjCrWn9 LO31MgOu+pRE3a4o3mMYBkkETV0eGmpKJE9/0v0TgtLuO9sNnSVP4ZRIX+ZNp5b0jyuj njEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=SNxgZ21ZmkWESnoYQgI44DFqsm8RVqcqEYEqJOMW7z4=; b=z9ySgT0QOVudaeXWixz5+FDVzad4ldyRvQRGCuge7s/BkkAmTxLxzrD3yt38J2m1vV eTlae4VKlAmVrJaNCwFvRUbfrFvVRlzcbHTR2DcIahGWTiGuKoDxnKU7Igt5qRoyBXqE Qu6Hlc5izY4WpwfaBvICK14FSy4Qu4CDN6Q0rtteSs8VIkMoHVbc7J4y5khm2N6+DY9s ks9Wr8d/onnqwa4OXoyjLmfz5JAuzuq8P6TVkEUu6elRvrvzU4s24RaWi6Wd97FM8lxd O9U7lxU4hw7r0K6gqDYBBvFAVN/9t9EZ5ZTL1FnT2lKtPb03seovVC8ZFubIe2jwMo+1 EMNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 29-20020a63135d000000b0043908386679si2498414pgt.373.2022.11.17.18.08.34; Thu, 17 Nov 2022 18:08:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234695AbiKRBq3 convert rfc822-to-8bit (ORCPT + 91 others); Thu, 17 Nov 2022 20:46:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240834AbiKRBqY (ORCPT ); Thu, 17 Nov 2022 20:46:24 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 619B0742E1; Thu, 17 Nov 2022 17:46:22 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 5301224E1D3; Fri, 18 Nov 2022 09:11:11 +0800 (CST) Received: from EXMBX072.cuchost.com (172.16.6.82) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 18 Nov 2022 09:11:11 +0800 Received: from ubuntu.localdomain (183.27.96.116) by EXMBX072.cuchost.com (172.16.6.82) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 18 Nov 2022 09:11:10 +0800 From: Hal Feng To: , , CC: Conor Dooley , Palmer Dabbelt , "Rob Herring" , Krzysztof Kozlowski , Linus Walleij , Emil Renner Berthing , Hal Feng , Jianlong Huang , Subject: [PATCH v2 0/5] Basic pinctrl support for StarFive JH7110 RISC-V SoC Date: Fri, 18 Nov 2022 09:11:03 +0800 Message-ID: <20221118011108.70715-1-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.96.116] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX072.cuchost.com (172.16.6.82) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The original patch series "Basic StarFive JH7110 RISC-V SoC support" [1] is split into 3 patch series. They respectively add basic clock&reset, pinctrl and device tree support for StarFive JH7110 SoC. These patch series are independent, but the Visionfive2 board can boot up successfully only if all these patches series applied. This one adds basic pinctrl support. This patch series is pulled out from the patch 22~26 of v1 [1]. You can simply get or review the patches at the link [2]. [1]: https://lore.kernel.org/all/20220929143225.17907-1-hal.feng@linux.starfivetech.com/ [2]: https://github.com/hal-feng/linux/commits/visionfive2-minimal Changes since v1: - Rebased on tag v6.1-rc5. - Dropped patch 22 and 23 since they were merged in v6.1-rc1. - Removed some unused macros and register values which do not belong to bindings. Simplified pinctrl definitions in patch 24. (by Krzysztof) - Split the bindings into sys pinctrl bindings and aon pinctrl bindings, and split patch 25 into two patches. - Made the bindings follow generic pinctrl bindings. (by Krzysztof) - Fixed some wrong indentation in bindings, and checked it with `make dt_binding_check`. - Split the patch 26 into two patches which added sys and aon pinctrl driver respectively. - Restructured the pinctrl drivers so made them follow generic pinctrl bindings. Rewrote `dt_node_to_map` and extracted the public code to make it clearer. v1: https://lore.kernel.org/all/20220929143225.17907-1-hal.feng@linux.starfivetech.com/ Jianlong Huang (5): dt-bindings: pinctrl: Add StarFive JH7110 pinctrl definitions dt-bindings: pinctrl: Add StarFive JH7110 sys pinctrl dt-bindings: pinctrl: Add StarFive JH7110 aon pinctrl pinctrl: starfive: Add StarFive JH7110 sys controller driver pinctrl: starfive: Add StarFive JH7110 aon controller driver .../pinctrl/starfive,jh7110-aon-pinctrl.yaml | 134 +++ .../pinctrl/starfive,jh7110-sys-pinctrl.yaml | 165 +++ MAINTAINERS | 7 +- drivers/pinctrl/starfive/Kconfig | 21 + drivers/pinctrl/starfive/Makefile | 5 + drivers/pinctrl/starfive/pinctrl-jh7110-aon.c | 192 ++++ drivers/pinctrl/starfive/pinctrl-jh7110-sys.c | 464 +++++++++ drivers/pinctrl/starfive/pinctrl-starfive.c | 972 ++++++++++++++++++ drivers/pinctrl/starfive/pinctrl-starfive.h | 72 ++ .../pinctrl/pinctrl-starfive-jh7110.h | 427 ++++++++ 10 files changed, 2456 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/pinctrl/starfive,jh7110-aon-pinctrl.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/starfive,jh7110-sys-pinctrl.yaml create mode 100644 drivers/pinctrl/starfive/pinctrl-jh7110-aon.c create mode 100644 drivers/pinctrl/starfive/pinctrl-jh7110-sys.c create mode 100644 drivers/pinctrl/starfive/pinctrl-starfive.c create mode 100644 drivers/pinctrl/starfive/pinctrl-starfive.h create mode 100644 include/dt-bindings/pinctrl/pinctrl-starfive-jh7110.h base-commit: 094226ad94f471a9f19e8f8e7140a09c2625abaa prerequisite-patch-id: 6b1b43a55b9773bec61ab6c1bbaa54dccbac0837 prerequisite-patch-id: 09c98554df52d17ba5fd604125f8cdd62cbe80d1 prerequisite-patch-id: 29fe0b0c19b6f0cd31114ee9fe17fe9732047f33 prerequisite-patch-id: c59d9908de90e09ba2b9a81aadbf9fb9f00c8f04 prerequisite-patch-id: 94ac03d518993921bcfc9cc9f58d7da0c3528b51 prerequisite-patch-id: 694f7400375f5b85581fc1821e427334507826f2 prerequisite-patch-id: 699d49c4439dadb4b7cf900857f027d050cd6093 prerequisite-patch-id: 40d773f5a19912f731ee5fd4739ed2e3c2157b07 prerequisite-patch-id: 2bc3fd6df5dda116efe882045863d6c88aa81b3a prerequisite-patch-id: 735e62255c75801bdc4c0b4107850bce821ff7f5 prerequisite-patch-id: b2a923b922e661fa6085185f33c1f1e733db9110 prerequisite-patch-id: b2bbc28354075432f059344eba5a127a653475cf prerequisite-patch-id: 70eab7b7eee728afcd90e40f6743d1356f6d81ab prerequisite-patch-id: 6276b2a23818c65ff2ad3d65b562615690cffee9 -- 2.38.1