Add DM support for omap PWM backlight
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest posting 3/30 of 27 patches 0 repliesNew
- v3 posting 2/30 of 27 patches 0 repliesSuperseded
- v3 posting 1/30 of 27 patches 0 repliesSuperseded
Patches in v3 posting 3/3 No applies recorded yet
None of the 27 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 00/27] Add DM support for omap PWM backlight
Hello Dario,
Quoted 225 lines · Dario Binacchi
Hi Felix,
Quoted 223 lines
Il 15/10/2020 10:53 Felix Brack <[email protected]> ha scritto:
Hello Dario,
Quoted 50 lines · Dario Binacchi
Quoted 49 lines
Il 14/10/2020 10:22 Felix Brack <[email protected]> ha scritto:
Quoted 43 lines · Dario Binacchi
The series was born from the need to manage the PWM backlight of the display connected to my beaglebone board. To hit the target, I had to develop drivers for PWM management which in turn relied on drivers for managing timers and clocks, all developed according to the driver model. My intention was to use the SoC-specific API only at strictly necessary points in the code. My previous patches for migrating the AM335x display driver to the driver model had required the implementation of additional functions outside the concerns of the driver, (settings for dividing the pixel clock rate, configuring the display DPLL rate, ....) not being able to use the API of the related clock drivers. This series shouldn't have repeated the same kind of mistake. Furthermore, I also wanted to fix that kind of forced choice. Almost everything should have been accessible via the driver model API. In the series there are also some patches that could be submitted separately, but which I have however inserted to avoid applying future patches to incorporate them.
With this last consideration, I hope I have convincingly justified the large number of patches in the series.The patch enabling address translation into a CPU physical address from device-tree even in case of crossing levels with #size-cells = <0>, is crucial for the series. The previous implementation was unable to perform the address translation required by the am33xx device tree. I tried to apply in a conservative way as few changes as possible and to verify the execution of all the tests already developed, as well as the new ones I added for the new feature.
As recommended by Grygorii Strashko I have removed some patches to upload them in new different series:
- [v2,01/30] clk: remove a redundant header
- [v2,03/30] arch: sandbox: fix typo inclk.h
- [v2,20/30] video: backlight: fix pwm's duty cycle calculation
- [v2,21/30] video: backlight: fix pwm data structure description
- [v2,22/30] dm: core: improveuclass_get_device_by_phandle_id()description
- [v2,23/30] gpio: fixgpio_request_by_name()descriptionGrygorii suggested to remove also other patches that I have kept in the series to allow anyone who wants to be able to test it. Moreover after the addition of a patch that has largely changed the device tree. The patches removed are the one and only ones that do not affect the series in any way. I hope that the next version of this series will require only minimal changes allowing me to split it according to Grygorii's suggestions.
----Quoted 7 lines
Quoted 3 lines
I must be missing something as this patch series does not apply without errors to U-Boot master:
Hi Felix,
I applied the patch of the series downloaded from patchwork on master and I compiled it without errors.Did you do that against a recently cloned master?
Quoted 31 lines
Quoted 8 lines
error:
drivers/clk/clk-ti-am3-dpll-x2.c: No such file or directory
error:drivers/clk/clk-ti-am3-dpll.c: No such file or directory
error:drivers/clk/clk-ti-ctrl.c: No such file or directory
error:drivers/clk/clk-ti-divider.c: No such file or directory
error:drivers/clk/clk-ti-gate.c: No such file or directory
error:drivers/clk/clk-ti-mux.c: No such file or directory
error:drivers/clk/clk-ti.c: No such file or directory
error:drivers/clk/clk-ti.h: No such file or directoryAfter applying the patch you should find:
lsdrivers/clk/tiam3-prcm.cclk-am3-dpll.cclk-am3-dpll-x2.cclk.cclk-ctrl.cclk-divider.cclk-gate.cclk.hclk-mux.cclk-sci.cKconfigMakefileomap4-cm.cQuoted 5 lines
error:
drivers/video/tilcdc-panel.c: No such file or directory
error:drivers/video/tilcdc-panel.h: No such file or directory
error:drivers/video/tilcdc.c: No such file or directory
error:drivers/video/tilcdc.h: No such file or directoryQuoted 11 lines
and
lsdrivers/video/tiam335x-fb.cam335x-fb.hKconfigMakefiletilcdc.ctilcdc.htilcdc-panel.ctilcdc-panel.hAs the patch series does not apply I don't see these files.
Quoted 8 lines
Quoted 1 line
Does it probably depend on some other patches?
No, the series patch does not depend on other patches
Quoted 2 lines
regards, Felix
Best regards
DarioTwo hours ago I did:
1. git clone https://gitlab.denx.de/u-boot/u-boot.git
2. downloaded Add-DM-support-for-omap-PWM-backlight.patch from
https://patchwork.ozlabs.org/project/uboot/list/?series=207124
3. git apply Add-DM-support-for-omap-PWM-backlight.patch --check -vresult:
Checking patch
drivers/clk/clk-divider.c...
Checking patchinclude/linux/clk-provider.h...
Checking patchinclude/dt-bindings/bus/ti-sysc.h...
...
Checking patchdrivers/clk/ti/Kconfig...
Checking patchdrivers/clk/ti/Makefile...
Checking patchdrivers/clk/clk-ti-am3-dpll-x2.c=>drivers/clk/ti/clk-am3-dpll-x2.c...
error:drivers/clk/clk-ti-am3-dpll-x2.c: No such file or directory Checking patchdrivers/clk/clk-ti-am3-dpll.c=>drivers/clk/ti/clk-am3-dpll.c...
error:drivers/clk/clk-ti-am3-dpll.c: No such file or directory Checking patchdrivers/clk/clk-ti-ctrl.c=>drivers/clk/ti/clk-ctrl.c...
error:drivers/clk/clk-ti-ctrl.c: No such file or directory Checking patchdrivers/clk/clk-ti-divider.c=>drivers/clk/ti/clk-divider.c...
error:drivers/clk/clk-ti-divider.c: No such file or directory Checking patchdrivers/clk/clk-ti-gate.c=>drivers/clk/ti/clk-gate.c...
error:drivers/clk/clk-ti-gate.c: No such file or directory Checking patchdrivers/clk/clk-ti-mux.c=>drivers/clk/ti/clk-mux.c...
error:drivers/clk/clk-ti-mux.c: No such file or directory Checking patchdrivers/clk/clk-ti-sci.c=>drivers/clk/ti/clk-sci.c... Checking patchdrivers/clk/clk-ti.c=>drivers/clk/ti/clk.c...
error:drivers/clk/clk-ti.c: No such file or directory Checking patchdrivers/clk/clk-ti.h=>drivers/clk/ti/clk.h...
error:drivers/clk/clk-ti.h: No such file or directory Checking patchdrivers/clk/ti/Makefile...
Checking patchdrivers/clk/ti/omap4-cm.c...
Checking patchdrivers/clk/ti/Makefile...
Checking patchdrivers/clk/ti/am3-prcm.c...
Checking patcharch/sandbox/dts/test.dts...
Checking patchcommon/fdt_support.c...
Checking patchdrivers/core/Kconfig...
Checking patchdrivers/core/fdtaddr.c...
Checking patchdrivers/core/of_addr.c...
Checking patchdrivers/core/ofnode.c...
Checking patchdrivers/core/root.c...
Checking patchinclude/asm-generic/global_data.h...
error: while searching for:
structglobal_data*new_gd; /* relocated global data */#ifdef
CONFIG_DMstruct udevice *dm_root; /* Root instance for Driver Model */ struct udevice *dm_root_f; /* Pre-relocation root instance */ struct list_head uclass_root; /* Head of core tree */error: patch failed:
include/asm-generic/global_data.h:64
error:include/asm-generic/global_data.h: patch does not apply Checking patchtest/dm/test-fdt.c...
Checking patchdrivers/timer/omap-timer.c...
Checking patchdrivers/misc/Kconfig...
...
Checking patchdrivers/video/ti/Kconfig...
Checking patchdrivers/video/ti/Makefile...
Checking patchdrivers/video/am335x-fb.c=>drivers/video/ti/am335x-fb.c... Checking patchdrivers/video/am335x-fb.h=>drivers/video/ti/am335x-fb.h... Checking patchdrivers/video/tilcdc-panel.c=>drivers/video/ti/tilcdc-panel.c...
error:drivers/video/tilcdc-panel.c: No such file or directory Checking patchdrivers/video/tilcdc-panel.h=>drivers/video/ti/tilcdc-panel.h...
error:drivers/video/tilcdc-panel.h: No such file or directory Checking patchdrivers/video/tilcdc.c=>drivers/video/ti/tilcdc.c...
error:drivers/video/tilcdc.c: No such file or directory Checking patchdrivers/video/tilcdc.h=>drivers/video/ti/tilcdc.h...
error:drivers/video/tilcdc.h: No such file or directory Checking patchboard/ti/am335x/board.c...
Checking patchboard/ti/am43xx/board.c...Applying the patches 1 to 15 manually works but then patch 16 fails with:
Checking patch
arch/sandbox/dts/test.dts... Checking patchcommon/fdt_support.c... Checking patchdrivers/core/Kconfig... Checking patchdrivers/core/fdtaddr.c... Checking patchdrivers/core/of_addr.c... Checking patchdrivers/core/ofnode.c... Checking patchdrivers/core/root.c... Checking patchinclude/asm-generic/global_data.h...
error: while searching for:
structglobal_data*new_gd; /* relocated global data */#ifdef
CONFIG_DMstruct udevice *dm_root; /* Root instance for Driver Model */ struct udevice *dm_root_f; /* Pre-relocation root instance */ struct list_head uclass_root; /* Head of core tree */error: patch failed:
include/asm-generic/global_data.h:64
error:include/asm-generic/global_data.h: patch does not apply Checking patchtest/dm/test-fdt.c...The
include/asm-generic/global_data.hin the master does not have a line
reading 'structglobal_data*new_gd; /* relocated global data */'.
Line 180 of the masterinclude/asm-generic/global_data.hfile however reads as follows: 'structglobal_data*new_gd;'
Quoted 7 lines
Quoted 1 line
regards Felix
Try with:
1. cd /tmp
2. git clone https://gitlab.denx.de/u-boot/u-boot.git
3. cd/tmp/u-boot
4. git checkout -b omap-pwm9885313b9a
No, I won't. It will be a pleasure to me testing this patch series on the board I'm maintaining, but only after it applies cleanly to the HEAD of the U-Boot master branch. Meanwhile I suggest you add a comment about the required starting point in the repository to all future versions of this patch series.
Quoted 5 lines
5. git am Add-DM-support-for-omap-PWM-backlight.patch
Regards,
Dario
regards, Felix