From: Samuel Holland <samuel@sholland.org> To: Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Linus Walleij <linus.walleij@linaro.org> Cc: Samuel Holland <samuel@sholland.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Maxime Ripard <mripard@kernel.org>, Ondrej Jirman <x@xff.cz>, Rob Herring <robh+dt@kernel.org>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH 0/6] pinctrl: sunxi: Allwinner D1/D1s support Date: Sat, 25 Jun 2022 21:11:41 -0500 [thread overview] Message-ID: <20220626021148.56740-1-samuel@sholland.org> (raw) This series adds pinctrl support for the Allwinner D1/D1s SoCs. First, it updates the I/O bias code to support the new mode found on the D1/D1s (as well as some existing SoCs). Then it refactors the driver to support the new register layout found on the D1/D1s. Finally, it adds the new driver. The code size impact of the dynamic register layout ends up being just over 100 bytes: text data bss dec hex filename 11293 564 0 11857 2e51 pinctrl-sunxi.o (patch 3) 11405 564 0 11969 2ec1 pinctrl-sunxi.o (patch 6) This series was tested on A64, H6, and D1. Samuel Holland (6): dt-bindings: pinctrl: Add compatibles for Allwinner D1/D1s pinctrl: sunxi: Add I/O bias setting for H6 R-PIO pinctrl: sunxi: Support the 2.5V I/O bias mode pinctrl: sunxi: Refactor register/offset calculation pinctrl: sunxi: Make some layout parameters dynamic pinctrl: sunxi: Add driver for Allwinner D1/D1s .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 15 + drivers/pinctrl/sunxi/Kconfig | 5 + drivers/pinctrl/sunxi/Makefile | 1 + drivers/pinctrl/sunxi/pinctrl-sun20i-d1.c | 860 ++++++++++++++++++ drivers/pinctrl/sunxi/pinctrl-sun50i-a100-r.c | 1 + drivers/pinctrl/sunxi/pinctrl-sun50i-a100.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun50i-h6-r.c | 1 + drivers/pinctrl/sunxi/pinctrl-sun50i-h616.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 156 +++- drivers/pinctrl/sunxi/pinctrl-sunxi.h | 110 +-- 10 files changed, 1022 insertions(+), 131 deletions(-) create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun20i-d1.c -- 2.35.1
WARNING: multiple messages have this Message-ID (diff)
From: Samuel Holland <samuel@sholland.org> To: Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Linus Walleij <linus.walleij@linaro.org> Cc: Samuel Holland <samuel@sholland.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Maxime Ripard <mripard@kernel.org>, Ondrej Jirman <x@xff.cz>, Rob Herring <robh+dt@kernel.org>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH 0/6] pinctrl: sunxi: Allwinner D1/D1s support Date: Sat, 25 Jun 2022 21:11:41 -0500 [thread overview] Message-ID: <20220626021148.56740-1-samuel@sholland.org> (raw) This series adds pinctrl support for the Allwinner D1/D1s SoCs. First, it updates the I/O bias code to support the new mode found on the D1/D1s (as well as some existing SoCs). Then it refactors the driver to support the new register layout found on the D1/D1s. Finally, it adds the new driver. The code size impact of the dynamic register layout ends up being just over 100 bytes: text data bss dec hex filename 11293 564 0 11857 2e51 pinctrl-sunxi.o (patch 3) 11405 564 0 11969 2ec1 pinctrl-sunxi.o (patch 6) This series was tested on A64, H6, and D1. Samuel Holland (6): dt-bindings: pinctrl: Add compatibles for Allwinner D1/D1s pinctrl: sunxi: Add I/O bias setting for H6 R-PIO pinctrl: sunxi: Support the 2.5V I/O bias mode pinctrl: sunxi: Refactor register/offset calculation pinctrl: sunxi: Make some layout parameters dynamic pinctrl: sunxi: Add driver for Allwinner D1/D1s .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 15 + drivers/pinctrl/sunxi/Kconfig | 5 + drivers/pinctrl/sunxi/Makefile | 1 + drivers/pinctrl/sunxi/pinctrl-sun20i-d1.c | 860 ++++++++++++++++++ drivers/pinctrl/sunxi/pinctrl-sun50i-a100-r.c | 1 + drivers/pinctrl/sunxi/pinctrl-sun50i-a100.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun50i-h6-r.c | 1 + drivers/pinctrl/sunxi/pinctrl-sun50i-h616.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 156 +++- drivers/pinctrl/sunxi/pinctrl-sunxi.h | 110 +-- 10 files changed, 1022 insertions(+), 131 deletions(-) create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun20i-d1.c -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2022-06-26 2:11 UTC|newest] Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-06-26 2:11 Samuel Holland [this message] 2022-06-26 2:11 ` [PATCH 0/6] pinctrl: sunxi: Allwinner D1/D1s support Samuel Holland 2022-06-26 2:11 ` [PATCH 1/6] dt-bindings: pinctrl: Add compatibles for Allwinner D1/D1s Samuel Holland 2022-06-26 2:11 ` Samuel Holland 2022-06-26 10:37 ` Krzysztof Kozlowski 2022-06-26 10:37 ` Krzysztof Kozlowski 2022-07-01 13:02 ` Heiko Stuebner 2022-07-01 13:02 ` Heiko Stuebner 2022-07-11 8:58 ` Linus Walleij 2022-07-11 8:58 ` Linus Walleij 2022-07-12 10:14 ` Samuel Holland 2022-07-12 10:14 ` Samuel Holland 2022-07-13 2:56 ` Samuel Holland 2022-07-13 2:56 ` Samuel Holland 2022-06-26 2:11 ` [PATCH 2/6] pinctrl: sunxi: Add I/O bias setting for H6 R-PIO Samuel Holland 2022-06-26 2:11 ` Samuel Holland 2022-06-27 20:34 ` Jernej Škrabec 2022-06-27 20:34 ` Jernej Škrabec 2022-06-28 3:18 ` Samuel Holland 2022-06-28 3:18 ` Samuel Holland 2022-07-01 13:03 ` Heiko Stuebner 2022-07-01 13:03 ` Heiko Stuebner 2022-06-26 2:11 ` [PATCH 3/6] pinctrl: sunxi: Support the 2.5V I/O bias mode Samuel Holland 2022-06-26 2:11 ` Samuel Holland 2022-06-27 20:43 ` Jernej Škrabec 2022-06-27 20:43 ` Jernej Škrabec 2022-06-28 3:29 ` Samuel Holland 2022-06-28 3:29 ` Samuel Holland 2022-07-02 19:48 ` Jernej Škrabec 2022-07-02 19:48 ` Jernej Škrabec 2022-07-01 13:04 ` Heiko Stuebner 2022-07-01 13:04 ` Heiko Stuebner 2022-06-26 2:11 ` [PATCH 4/6] pinctrl: sunxi: Refactor register/offset calculation Samuel Holland 2022-06-26 2:11 ` Samuel Holland 2022-07-01 13:07 ` Heiko Stuebner 2022-07-01 13:07 ` Heiko Stuebner 2022-07-02 20:29 ` Jernej Škrabec 2022-07-02 20:29 ` Jernej Škrabec 2022-06-26 2:11 ` [PATCH 5/6] pinctrl: sunxi: Make some layout parameters dynamic Samuel Holland 2022-06-26 2:11 ` Samuel Holland 2022-07-01 13:09 ` Heiko Stuebner 2022-07-01 13:09 ` Heiko Stuebner 2022-07-02 20:33 ` Jernej Škrabec 2022-07-02 20:33 ` Jernej Škrabec 2022-06-26 2:11 ` [PATCH 6/6] pinctrl: sunxi: Add driver for Allwinner D1/D1s Samuel Holland 2022-06-26 2:11 ` Samuel Holland 2022-07-01 13:13 ` Heiko Stuebner 2022-07-01 13:13 ` Heiko Stuebner 2022-07-01 15:16 ` Samuel Holland 2022-07-01 15:16 ` Samuel Holland 2022-07-02 14:47 ` Andre Przywara 2022-07-02 14:47 ` Andre Przywara 2022-07-02 15:43 ` Samuel Holland 2022-07-02 15:43 ` Samuel Holland 2022-07-04 9:42 ` Andre Przywara 2022-07-04 9:42 ` Andre Przywara
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220626021148.56740-1-samuel@sholland.org \ --to=samuel@sholland.org \ --cc=devicetree@vger.kernel.org \ --cc=jernej.skrabec@gmail.com \ --cc=krzysztof.kozlowski+dt@linaro.org \ --cc=linus.walleij@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-gpio@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-sunxi@lists.linux.dev \ --cc=mripard@kernel.org \ --cc=robh+dt@kernel.org \ --cc=wens@csie.org \ --cc=x@xff.cz \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.