[PATCH 0/2] pwm: Add pwm driver for Sophgo SG2042

Chen Wang unicornxw at gmail.com
Thu Sep 5 05:10:06 PDT 2024


From: Chen Wang <unicorn_wang at outlook.com>

Add driver for pwm controller of Sophgo SG2042 SoC.

Chen Wang (2):
  dt-bindings: pwm: sophgo: add bindings for sg2042
  pwm: sophgo: add driver for Sophgo SG2042 PWM

 .../bindings/pwm/sophgo,sg2042-pwm.yaml       |  52 ++++++
 drivers/pwm/Kconfig                           |   9 ++
 drivers/pwm/Makefile                          |   1 +
 drivers/pwm/pwm-sophgo-sg2042.c               | 148 ++++++++++++++++++
 4 files changed, 210 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pwm/sophgo,sg2042-pwm.yaml
 create mode 100644 drivers/pwm/pwm-sophgo-sg2042.c


base-commit: 431c1646e1f86b949fa3685efc50b660a364c2b6
-- 
2.34.1




More information about the linux-riscv mailing list