Enable pinctrl to modify SPI1 strap bits
Status from this message: Applied to dev-4.7.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest1 patch 4 repliesApplied
- v11 patch 5 repliesSuperseded
Changes in v2 from the cover letter
- Allowed modifying partial bits of SPI1 strap bitmask instead of strictly allowing only bitmask == BIT[13:12] to go through
- Rename HW_STRAP_RESET to HW_STRAP_CLEAR and removed (to be obsoleted) macro
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | pinctrl: aspeed: Enable ASPEED pinctrl driver to modify SPI1 strap bitsdrivers/ drivers/ | +21 | 2 replies |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Andrew Jeffery |
|---|---|
| 1/1 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH linux dev-4.7 v2 0/1] Enable pinctrl to modify SPI1 strap bits
Hi,
Context: re. Andrew's suggestion to a previous RFC proposal[1].
To modify SPI1 mode at runtime, pinctrl subsystem will need to add exception to the read-only HWSTRAP rule. This patch does precisely that.
Sending this out as a standalone patch since it seems to me this change could also make boot time SPI1 mode configuration easier. Instead of configuring the strap bits in mach-aspeed/aspeed.c AND make sure device tree pinctrl settings match what was configured, with this change device tree entry should dictate default SPI1 mode regardless of what's set previously. E.g. following node will be able to configure spi1 in master mode.
&spi1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spi1_default>;
};I saw Joel sent out a patch that configures SPI1 to master for every AST2500 machine, do we not have any uses currently for other modes?
[1] https://lists.ozlabs.org/pipermail/openbmc/2016-October/005194.html
Thanks,
Kun
Changes since v1:
- Allowed modifying partial bits of SPI1 strap bitmask instead of strictly allowing only bitmask == BIT[13:12] to go through
- Rename HW_STRAP_RESET to HW_STRAP_CLEAR and removed (to be obsoleted) macro
Kun Yi (1):
pinctrl: aspeed: Enable ASPEED pinctrl driver to modify SPI1 strap
bits
drivers/pinctrl/aspeed/pinctrl-aspeed.c | 22 ++++++++++++++++++++-- drivers/pinctrl/aspeed/pinctrl-aspeed.h | 2 +- 2 files changed, 21 insertions(+), 3 deletions(-)
Signature · 1 line
2.8.0.rc3.226.g39d4020