Add back channel GPIO support.
dt-bindings: media: ti,ds90ub953: Add new range for remote GPIO data
media: i2c: ds90ub953: Add back channel GPIO support
Use helper macro to simplify code.
media: i2c: ds90ub953: use devm_mutex_init() to simplify code
media: i2c: ds90ub953: use guard() to simplify code
Signed-off-by: Guoniu Zhou <guoniu.zhou@nxp.com>
---
Changes in v3:
- Make GPIO range from 0-3 to 0-7 to support GPIO data from remote
compatible deserializer suggested by Rob instead of adding third
cell for GPIO controller.
- Update driver to expand GPIO range.
- Link to v2: https://lore.kernel.org/r/20250911-ds90ub953-v2-0-03ee76eb6b59@nxp.com
Changes in v2:
- Remove new property ti,gpio-data added in patch 1.
- Add third cell for GPIO controller to select GPIO output source.
- Move PTR_ERR() in dev_err_probe();
- Link to v1: https://lore.kernel.org/r/20250910-ds90ub953-v1-0-a7813ffbdf11@nxp.com
---
Guoniu Zhou (4):
dt-bindings: media: ti,ds90ub953: Add new range for remote GPIO data
media: i2c: ds90ub953: Add back channel GPIO support
media: i2c: ds90ub953: use devm_mutex_init() to simplify code
media: i2c: ds90ub953: use guard() to simplify code
.../bindings/media/i2c/ti,ds90ub953.yaml | 8 +-
drivers/media/i2c/ds90ub953.c | 114 +++++++++++----------
2 files changed, 68 insertions(+), 54 deletions(-)
---
base-commit: 34837c444cd42236b2b43ce871f30d83776a3431
change-id: 20250901-ds90ub953-168628c53a00
Best regards,
--
Guoniu Zhou <guoniu.zhou@nxp.com>