Add Tegra268 pinmux support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 2 repliesIn review
- v23 patches 1 replySuperseded
- v13 patches 1 replySuperseded
Changes in v3 from the cover letter
- Rebased on next-20261111.
- soc/tegra: Drop "depends on !CPU_BIG_ENDIAN", which has been removed from the other Tegra SoC symbols now that arm64 no longer supports big-endian kernels.
- dt-bindings: Drop the explanatory comment from the common binding (Rob).
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | soc/tegra: Add Tegra268 Kconfig symboldrivers/ | +8 | 0 replies | |
| 2/3 | dt-bindings: pinctrl: Document Tegra268 pin controllersDocumentation/ Documentation/ Documentation/ +1 more | +353 | 1 reply | |
| 3/3 | pinctrl: tegra: Add support for Tegra268drivers/ drivers/ drivers/ | +1754 | 0 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Rob Herring (Arm) |
|---|---|
| 1/3 | |
| 2/3 | R-b |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/3] Add Tegra268 pinmux support
This series adds pinctrl support for the three pin controllers (MAIN, UPHY and AON) found on Tegra268. The pin, function and pin group data is self-contained in the new driver.
Patch 1 adds the ARCH_TEGRA_268_SOC Kconfig symbol. This symbol gates the Tegra268 specific support code, and PINCTRL_TEGRA268 in patch 3 uses it as its default. It is kept as a separate patch because drivers/soc/tegra is merged through the Tegra tree rather than the pinctrl tree.
Patch 2 documents the three compatible strings and describes the pins and functions they provide. Patch 3 adds the driver and the PINCTRL_TEGRA268 Kconfig symbol.
Patches 2 and 3 build without patch 1. PINCTRL_TEGRA268 only references ARCH_TEGRA_268_SOC in a "default m if" expression, and Kconfig treats an unknown symbol in that position as false, so the driver simply defaults to off if patch 1 is not present. Patches 2 and 3 can therefore be applied to the pinctrl tree independently of patch 1, and no temporary build break occurs if the trees are merged in either order.
There is no Tegra268 device tree in the tree yet. The device tree nodes for these controllers will be posted together with the Tegra268 device tree once that work is ready. If it is preferred that the bindings land alongside their first consumer instead, patch 2 can be held back and reposted with the device tree.
Changes in v3:
- Rebased on next-20261111.
- soc/tegra: Drop "depends on !CPU_BIG_ENDIAN", which has been removed from the other Tegra SoC symbols now that arm64 no longer supports big-endian kernels.
- dt-bindings: Drop the explanatory comment from the common binding (Rob).
Changes in v2:
- pinctrl: Mark open-drain, io-reset and rcv-sel as unsupported (-1) in every pin group. They previously defaulted to 0, so setting one of these parameters wrote bit 0 of the mux register and changed the selected function instead of being rejected.
- pinctrl: Remove pin, drive group and function definitions for pads that do not exist on Tegra268.
- pinctrl: Return -ENODEV from probe if no match data is found.
- dt-bindings: Drop the functions that no Tegra268 pin group provides, and rename the example node to match the pin it configures.
v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/
Prathamesh Shete (3):
soc/tegra: Add Tegra268 Kconfig symbol
dt-bindings: pinctrl: Document Tegra268 pin controllers
pinctrl: tegra: Add support for Tegra268
.../pinctrl/nvidia,tegra268-pinmux-aon.yaml | 78 + .../nvidia,tegra268-pinmux-common.yaml | 64 + .../pinctrl/nvidia,tegra268-pinmux-main.yaml | 136 ++ .../pinctrl/nvidia,tegra268-pinmux-uphy.yaml | 75 + drivers/pinctrl/tegra/Kconfig | 11 + drivers/pinctrl/tegra/Makefile | 1 + drivers/pinctrl/tegra/pinctrl-tegra268.c | 1742 +++++++++++++++++ drivers/soc/tegra/Kconfig | 8 + 8 files changed, 2115 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/nvidia,tegra268-pinmux-aon.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/nvidia,tegra268-pinmux-common.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/nvidia,tegra268-pinmux-main.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/nvidia,tegra268-pinmux-uphy.yaml create mode 100644 drivers/pinctrl/tegra/pinctrl-tegra268.c
base-commit: aaa2f954c21b205a0bcd0961e5b2be4e82e58455
Signature · 1 line
2.43.0