meson-gx: add pwm_AO_ab
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 of 3 patches 0 repliesNew
2 of 3 patches are in this archive. The cover letter announces 3.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 2/3 | pinctrl: meson: meson-gxl: add the pwm_ao_b pin | +0 | 0 replies | |
| 2/3 | pinctrl: meson: meson-gxl: add the pwm_ao_b pin | +0 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Kevin Hilman |
|---|---|
| 2/3 | A-b |
| 2/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] meson-gx: add pwm_AO_ab
Quoted 1 line · Martin Blumenstingl
This adds support for the PWM controller in the AO domain.
Patches 1,3 applied to Amlogic v4.11/dt64 branch.
Kevin
Quoted 49 lines
pinctrl support for GXBB already exists (in both,
pinctrl-meson-gxbb.candmeson-gxbb.dtsi). This patch adds at least thepwm_ao_bpin for GXL and GXM - these are not documented in Amlogic's kernel, so I had to borrow the magic numbers from the Khadas VIM kernel (released under the GPL): [0]The bits for
pwm_AO_a_pinsare unknown at the time of writing, but these can still be added later.I have successfully tested this on my GXL S905X based Khadas VIM board with the following .dts snippets (the PWM LED can simply be dimmed through sysfs):
&pwm_AO_ab { status = "okay"; pinctrl-0 = <&pwm_ao_b_pins>; pinctrl-names = "default"; clocks = <&clkc CLKID_FCLK_DIV4>; clock-names = "clkin0"; }; pwmleds { compatible = "pwm-leds"; power { label = "vim:red:power"; pwms = <&pwm_AO_ab 1 7812500 0>; max-brightness = <255>; }; };(if anyone is interested in more of my Khadas VIM patches - these are still work-in-progress, which is why I have not sent them yet - can take a look at this: [1])
NOTE: The .dts changes from this series are based on top of my SAR ADC patches.
[0] https://github.com/khadas/linux/blob/94602ef5562978a8d8b5c7770c113074a714dbdb/drivers/amlogic/led/led_trigger_breathe.c#L75
[1] https://github.com/xdarklight/linux/commits/meson-gx-integration-4.11-20170122Martin Blumenstingl (3):
ARM64: dts: meson-gx: add the missingpwm_AO_abnode
pinctrl: meson: meson-gxl: add thepwm_ao_bpin
ARM64: dts: meson-gxl: add thepwm_ao_bpinarch/arm64/boot/dts/amlogic/meson-gx.dtsi | 7 +++++++ arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 7 +++++++ drivers/pinctrl/meson/pinctrl-meson-gxl.c | 8 ++++++++ 3 files changed, 22 insertions(+)