Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp756387rwb; Thu, 12 Jan 2023 11:55:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXsZph4Y6/FhvSUjIMFMrHPRy3GEH5JMPrgUzkLUTS6XLER/vpXGaPceXT2/koGwQaC8gq8/ X-Received: by 2002:a05:6a00:1f19:b0:58b:451f:bf53 with SMTP id be25-20020a056a001f1900b0058b451fbf53mr7346636pfb.5.1673553312669; Thu, 12 Jan 2023 11:55:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673553312; cv=none; d=google.com; s=arc-20160816; b=UZSkTCaqC5WwmcqdeR5+GoaipxIBFjCtVbgIt+ApzjPZ/qFR0a5cw0mw9KXbwCadjw B0nyp2gtEEzfLnpVUwhzqwIE7iYOYwZeOs5fX3v2POlKt0Fq4x5pZRl+NFm2ix18p2bq Yt5JkXvokEzJNxXtJW/2OxlVZvnLWiHyKRI1W/T68aTeLjI37q3gz0wtzgsopx6W2rSw MparCqmYTSHHvw8Au/ruSDyJA1KB50anfI29qkheFas7UhY34S2LLuqttGVPSVP01+PJ a+wQhaG5ouhF7Ny4tXdQI9USFIoyBX7Rwho9d+AYm5RS+mypc0lsE97n5woZdtgnfMnS JN9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WOXCTYL9h+oQUFMtf4dOJM5rDv/G+tTzBK0rPEUpjBQ=; b=QAk3fOn1gLj0Z/kEdodw8RVCVcTPsKVXy7lgt2LJxma54/1CQIzslWWRETUOGDgtPj /aV2IUVFixZ27u6TC6ARrJnrrPdSFFNktTlAut0YnQ0UlfQKwEZxQxx0UnAmmE/eFcij nI9halyof8X21sVXPL0poewhaJJQiY/I5s5CJYrr+fVRZUZ9qEuK/v93QfU0bFqoWxFZ tcD40F+bb1fqNDjvnpsDwqG0GcynfuU0TkD94+Js7rIRjoaYJsZjgH8NxuyaH07Kt/O3 TjLHs2mVFRo0yGzCRdMbd2rELtLOyP2OfYTRE76PnKD6NgcQt0FD0lODij4somiJ5zPE mHtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CfxDrEYP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g136-20020a62528e000000b005383ec972b3si17596984pfb.72.2023.01.12.11.55.06; Thu, 12 Jan 2023 11:55:12 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CfxDrEYP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231708AbjALTjY (ORCPT + 50 others); Thu, 12 Jan 2023 14:39:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240699AbjALTi5 (ORCPT ); Thu, 12 Jan 2023 14:38:57 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0FCDBC93; Thu, 12 Jan 2023 11:31:11 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3B8ACB8201C; Thu, 12 Jan 2023 19:30:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EFDEC433D2; Thu, 12 Jan 2023 19:30:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673551809; bh=9M4Qgev96bLgOABkSP/gBl9aDcrGQTN4+95208uj1t4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CfxDrEYPeDGPKgPehnJzyQ/y3i7IsLzKtBWdZUwhXi7BIEgHs6V9M3ddKqHvF4qxW hGlRhZTaReK4hRo+hMYWObxByFEizEHlO05g7Vi6JszUa2zMVaBdVuKqg6uByCEnCl 0MNj5a+cKbJstCy5F0Dn3kxjetHurTj3yMjHJxdnCqgZmsfKG1FR8GIzy5ocfWZjL1 DNE3lpMupnlTugpkRCzVLkqy3ZdDdbX1fND7shU0BWMRjijHL90DmRhlzm3WoC6iU1 6IqBowE1fGWu2C+4JhA3tdSp++bgp0PKyEcRtkzreeIcL6B00m36wBmiaI3X8rJKv7 5k1zKZh47MFGw== Date: Thu, 12 Jan 2023 19:30:05 +0000 From: Conor Dooley To: Hal Feng Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, Palmer Dabbelt , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Emil Renner Berthing , Jianlong Huang , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/5] Basic pinctrl support for StarFive JH7110 RISC-V SoC Message-ID: References: <20221220005529.34744-1-hal.feng@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="+7GE2eStfBy4cbGi" Content-Disposition: inline In-Reply-To: <20221220005529.34744-1-hal.feng@starfivetech.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 --+7GE2eStfBy4cbGi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Hal Feng, On Tue, Dec 20, 2022 at 08:55:24AM +0800, Hal Feng wrote: > This patch series adds basic pinctrl support for StarFive JH7110 SoC. > You can simply get or review the patches at the link [1]. > [1]: https://github.com/hal-feng/linux/commits/visionfive2-minimal Do you intend submitting a new version of the patchset to address the comments about the bindings, or are you waiting for comments on the code? Thanks, Conor. > Changes since v2: > - Rebased on tag v6.1. > Patch 1: > - Renamed pinctrl-starfive-jh7110.h to > starfive,jh7110-pinctrl.h. (by Krzysztof) > - Separated the register values in the binding header and stored them in > a new file arch/riscv/boot/dts/starfive/jh7110-pinfunc.h. (by Krzysztof) > - Split patch 1 into sys part and aon part. Merged them into patch 2 > and patch 3 respectively. > Patch 2 & 3: > - Dropped "reg-names" and the description of "interrupts". Dropped quotes > behind "$ref" and kept consisitent quotes. (by Krzysztof) > - Moved gpio properties behind interrupt properties. > - Moved "required" behind "patternProperties". (by Krzysztof) > - Rewrote the examples of bindings. (by Krzysztof and Emil) > - Added Co-developed-by tag for Emil. > - Dropped unused "clocks" property in patch 3. > Patch 4 & 5: > - Renamed "pinctrl-starfive.*" to "pinctrl-starfive-jh7110.*" and replaced > all "starfive_" prefix with "jh7110_" in these files. (by Emil) > - Dropped macro GPIO_NUM_PER_WORD. (by Emil) > - Dropped unused flag member in starfive_pinctrl_soc_info structure. (by = Emil) > - Renamed "pinctrl-jh7110-sys.c" to "pinctrl-starfive-jh7110-sys.c". > Renamed "pinctrl-jh7110-aon.c" to "pinctrl-starfive-jh7110-aon.c". (by = Emil) > - Added individual Kconfig options for sys and aon pinctrl drivers. (by E= mil) > - Made the sys and aon pinctrl drivers be modules. (by Emil) > - Added "JH7110_" prefix for macro SYS_GPO_PDA_0_74_CFG, > SYS_GPO_PDA_89_94_CFG and AON_GPO_PDA_0_5_CFG. (by Emil) > - Dropped jh7110_sys_pinctrl_probe() and jh7110_aon_pinctrl_probe(). > Got the match data in the common jh7110_pinctrl_probe() and used it > to probe. (by Emil) > - Dropped the of_match_ptr macro(). (by Emil) > - Set the MODULE_LICENSE as "GPL" according to commit bf7fbeeae6db. >=20 > v2: https://lore.kernel.org/all/20221118011108.70715-1-hal.feng@starfiv= etech.com/ >=20 > 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. >=20 > v1: https://lore.kernel.org/all/20220929143225.17907-1-hal.feng@linux.s= tarfivetech.com/ >=20 > Jianlong Huang (5): > riscv: dts: starfive: Add StarFive JH7110 pin function 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 >=20 > .../pinctrl/starfive,jh7110-aon-pinctrl.yaml | 126 +++ > .../pinctrl/starfive,jh7110-sys-pinctrl.yaml | 142 +++ > MAINTAINERS | 9 +- > arch/riscv/boot/dts/starfive/jh7110-pinfunc.h | 308 ++++++ > drivers/pinctrl/starfive/Kconfig | 33 + > drivers/pinctrl/starfive/Makefile | 4 + > .../starfive/pinctrl-starfive-jh7110-aon.c | 177 ++++ > .../starfive/pinctrl-starfive-jh7110-sys.c | 449 ++++++++ > .../starfive/pinctrl-starfive-jh7110.c | 979 ++++++++++++++++++ > .../starfive/pinctrl-starfive-jh7110.h | 70 ++ > .../pinctrl/starfive,jh7110-pinctrl.h | 137 +++ > 11 files changed, 2431 insertions(+), 3 deletions(-) > create mode 100644 Documentation/devicetree/bindings/pinctrl/starfive,jh= 7110-aon-pinctrl.yaml > create mode 100644 Documentation/devicetree/bindings/pinctrl/starfive,jh= 7110-sys-pinctrl.yaml > create mode 100644 arch/riscv/boot/dts/starfive/jh7110-pinfunc.h > create mode 100644 drivers/pinctrl/starfive/pinctrl-starfive-jh7110-aon.c > create mode 100644 drivers/pinctrl/starfive/pinctrl-starfive-jh7110-sys.c > create mode 100644 drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c > create mode 100644 drivers/pinctrl/starfive/pinctrl-starfive-jh7110.h > create mode 100644 include/dt-bindings/pinctrl/starfive,jh7110-pinctrl.h >=20 >=20 > base-commit: 830b3c68c1fb1e9176028d02ef86f3cf76aa2476 > --=20 > 2.38.1 >=20 --+7GE2eStfBy4cbGi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCY8BfvQAKCRB4tDGHoIJi 0jicAQDpd58lcug0jLR0d3ZBCfGJREtWqXWojElhKKTnaBVt/wD/fEJEOoEDLicn rE8j7Kiv1yzRhnRxiQU5zZqRlLGFiAg= =MdQF -----END PGP SIGNATURE----- --+7GE2eStfBy4cbGi--