u-boot: add SCMI GPIO/Pinctrl support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 10 repliesIn review
- v14 patches 8 repliesSuperseded
Changes in v2 from the cover letter
Address Peng Fang's review comments.
Use the standard gpio-ranges to describe the pins instead of inventing a custom format.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | scmi: pinctrl: add pinctrl message IDsdrivers/ include/ | +9 | 0 replies | |
| 2/4 | scmi: update comments for scmi_pinctrl_config_set_in()include/ | +7 | 0 replies | |
| 3/4 | scmi: pinctrl: add pinctrl driver for SCMIdrivers/ drivers/ drivers/ +5 more | +1100 | 4 replies | |
| 4/4 | gpio: scmi: Add gpio_scmi driverdrivers/ drivers/ drivers/ | +255 | 5 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Peng Fan | Linus Walleij |
|---|---|---|
| 1/4 | R-b | R-b |
| 2/4 | A-b | |
| 3/4 | R-b | |
| 4/4 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/4] u-boot: add SCMI GPIO/Pinctrl support
There is an existing SCMI pinctrl driver in drivers/pinctrl/nxp/ which lets you configure the initial state of the pins via device tree. This patchset is a more generic version which provides GPIO as well.
I wrote two small cleanup patches to the NXP driver, one which renamed an enum and another which made some white space changes.
The next patch adds an pinctrl driver which lets you configure the initial state for the pins. But the main thing is that we need one driver to handle the SCMI pinctrl protocol so the pinctrl driver does this.
The last patch adds GPIO support over SCMI.
I tested this code using the SCP SCMI server on OP-TEE over Qemu. I created a custom mock pinctrl device in SCP.
Changes since v1:
Address Peng Fang's review comments.
Use the standard gpio-ranges to describe the pins instead of inventing a custom format.
Dan Carpenter (4):
scmi: pinctrl: add pinctrl message IDs
scmi: update comments for scmi_pinctrl_config_set_in()
scmi: pinctrl: add pinctrl driver for SCMI
gpio: scmi: Add gpio_scmi driver
drivers/firmware/scmi/Makefile | 1 + drivers/firmware/scmi/pinctrl.c | 365 +++++++++++++++++++++ drivers/firmware/scmi/scmi_agent-uclass.c | 4 +- drivers/gpio/Kconfig | 6 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio_scmi.c | 248 ++++++++++++++ drivers/pinctrl/Kconfig | 9 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/nxp/pinctrl-imx-scmi.c | 2 +- drivers/pinctrl/pinctrl-scmi.c | 365 +++++++++++++++++++++ include/scmi_agent-uclass.h | 2 +- include/scmi_protocols.h | 379 +++++++++++++++++++++- 12 files changed, 1371 insertions(+), 12 deletions(-) create mode 100644 drivers/firmware/scmi/pinctrl.c create mode 100644 drivers/gpio/gpio_scmi.c create mode 100644 drivers/pinctrl/pinctrl-scmi.c
Signature · 1 line
2.51.0