[PATCH v5 14/27] clk: ti: am335x: add clock manager driver

2020-10-25 Thread Dario Binacchi
= "ti,am3-dpll-core-clock"; clocks = <&sys_clkin_ck>, <&sys_clkin_ck>; reg = <0x0490>, <0x045c>, <0x0468>; }; ... }; For DT binding details see Linux doc: - Documentation/devicetree/bindings/arm/omap/prcm.txt Signed-off-by: Da

[PATCH v5 04/27] arm: dts: sync am33xx with Linux 5.9-rc7

2020-10-25 Thread Dario Binacchi
nnect target module node. Signed-off-by: Dario Binacchi --- (no changes since v4) Changes in v4: - Remove a blank line at end of file arch/arm/dts/am33xx-l4.dtsi. arch/arm/dts/am335x-draco.dtsi | 11 +- arch/arm/dts/am335x-evm.dts |2 +- arch/arm/dts/am335x-evms

[PATCH v5 12/27] clk: ti: add support for clkctrl clocks

2020-10-25 Thread Dario Binacchi
-off-by: Dario Binacchi --- Changes in v5: - Move the clk-ti-ctrl.c file to drivers/clk/ti with the name clk-ctrl.c. Changes in v4: - Include device_compat.h header for dev_xxx macros. - Fix compilation errors on the dev parameter of the dev_xx macros. Changes in v3: - Fix access to registers

[PATCH v5 11/27] ti: am33xx: fix do_enable_clocks() to accept NULL parameters

2020-10-25 Thread Dario Binacchi
Up till this commit passing NULL as input parameter was allowed, but not handled properly. When a NULL parameter was passed to the function a data abort was raised. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v1) arch/arm/mach-omap2/am33xx/clock.c | 10

[PATCH v5 06/27] clk: ti: add mux clock driver

2020-10-25 Thread Dario Binacchi
binding details see: - Documentation/devicetree/bindings/clock/ti/mux.txt Signed-off-by: Dario Binacchi --- Changes in v5: - Create drivers/clk/ti directory. - Move the clk-ti-mux.c file to drivers/clk/ti and rename it clk-mux.c Changes in v4: - Include device_compat.h header for dev_xxx macros

[PATCH v5 10/27] clk: ti: add gate clock driver

2020-10-25 Thread Dario Binacchi
The patch adds support for TI gate clock binding. The code is based on the drivers/clk/ti/gate.c driver of the Linux kernel version 5.9-rc7. For DT binding details see: - Documentation/devicetree/bindings/clock/ti/gate.txt Signed-off-by: Dario Binacchi --- Changes in v5: - Move the clk-ti

[PATCH v5 08/27] clk: ti: am33xx: add DPLL clock drivers

2020-10-25 Thread Dario Binacchi
on/devicetree/bindings/clock/ti/dpll.txt Signed-off-by: Dario Binacchi --- Changes in v5: - Move the clk-ti-am3-dpll.c file to drivers/clk/ti with the name clk-am3-dpll.c. - Move the clk-ti-am3-dpll-x2.c file to drivers/clk/ti with the name clk-am3-dpll-x2.c. Changes in v4: - Include d

[PATCH v5 07/27] arm: ti: am33xx: add DPLL_EN_FAST_RELOCK_BYPASS macro

2020-10-25 Thread Dario Binacchi
Add missing DPLL_EN_FAST_RELOCK_BYPASS macro. Used to put the DPLL in idle bypass fast relock mode. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/include/asm/arch-am33xx/clock.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-am33xx/clock.h b

[PATCH v5 09/27] clk: ti: add divider clock driver

2020-10-25 Thread Dario Binacchi
/divider.txt Signed-off-by: Dario Binacchi --- Changes in v5: - Move the clk-ti.c file to drivers/clk/ti with the name clk.c. - Move the clk-ti.h file to drivers/clk/ti with the name clk.h. - Move the clk-ti-divider.c file to drivers/clk/ti with the name clk-divider.c. Changes in v4: - Include

[PATCH v5 03/27] bus: ti: add minimal sysc interconnect target driver

2020-10-25 Thread Dario Binacchi
ation/devicetree/bindings/bus/ti-sysc.txt Signed-off-by: Dario Binacchi --- (no changes since v4) Changes in v4: - Include device_compat.h header for dev_xxx macros. arch/arm/Kconfig | 1 + drivers/bus/Kconfig | 7 ++ drivers/bus/Makefile | 1 + drivers/bus/ti-sysc.c

[PATCH v5 05/27] clk: add clk_round_rate()

2020-10-25 Thread Dario Binacchi
y the clock hardware in any way. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass Reviewed-by: Sean Anderson --- (no changes since v4) Changes in v4: - Update clk_round_rate description. - Add Sean Anderson review. arch/sandbox/include/asm/clk.h | 9 + drivers/clk/clk-ucl

[PATCH v5 01/27] clk: export generic routines

2020-10-25 Thread Dario Binacchi
Export routines that can be used by other drivers avoiding duplicating code. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Add the clk_ prefix to the divider functions. - Add kernel-doc comments to the exported functions. drivers/clk/clk

[PATCH v5 02/27] dt-bindings: bus: ti-sysc: resync with Linux 5.9-rc7

2020-10-25 Thread Dario Binacchi
dra76x MCAN generic interconnect module has a its own format for the bits in the control registers. Signed-off-by: Dario Binacchi --- (no changes since v1) include/dt-bindings/bus/ti-sysc.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/dt-bindings/bus/ti-sysc.h b/include/dt

Re: [PATCH v4 23/27] video: omap: drop domain clock enabling by SOC api

2020-10-21 Thread Dario Binacchi
Hi Lokesh, > Il 20/10/2020 08:31 Lokesh Vutla ha scritto: > > > On 19/10/20 10:22 pm, Dario Binacchi wrote: > > Enabling the domain clock is performed by the sysc interconnect target > > module driver during the video device probing. > > >

[PATCH v4 00/27] Add DM support for omap PWM backlight

2020-10-19 Thread Dario Binacchi
D_DM_FLG_SIZE_CELLS_0 into the expression. - Lower-case the 0xC019 hex number. - Remove the 'ti_am3_scm_clocks' driver. Handle 'scm_clocks' node in the 'ti_am3_scm' driver. - Update the commit message. Dario Binacchi (27): clk: export generic routines dt-bindin

[PATCH v4 27/27] board: ti: am335x-ice: get CDCE913 clock device

2020-10-19 Thread Dario Binacchi
With support for other clock drivers, the potentially supported CDCE913 device can no longer be probed without specifying its DT node name. Signed-off-by: Dario Binacchi --- (no changes since v1) board/ti/am335x/board.c | 2 +- board/ti/am43xx/board.c | 2 +- 2 files changed, 2 insertions

[PATCH v4 25/27] video: omap: split the legacy code from the DM code

2020-10-19 Thread Dario Binacchi
a code replication until the pre-driver-model version is dropped. Signed-off-by: Dario Binacchi --- Changes in v4: - Include device_compat.h header for dev_xxx macros. drivers/video/Makefile | 5 +- drivers/video/am335x-fb.c| 336 --- drivers/video/am335x

[PATCH v4 22/27] video: omap: add panel driver

2020-10-19 Thread Dario Binacchi
the same driver. There are now two drivers, each with its own compatible string, functions and API. Furthermore, the panel driver, in addition to decoding the display timings, is now also able to manage the backlight. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- Changes in v4

[PATCH v4 23/27] video: omap: drop domain clock enabling by SOC api

2020-10-19 Thread Dario Binacchi
Enabling the domain clock is performed by the sysc interconnect target module driver during the video device probing. Signed-off-by: Dario Binacchi --- (no changes since v3) Changes in v3: - Remove clock domain enabling/disabling. - Update the commit message. arch/arm/mach-omap2/am33xx

[PATCH v4 24/27] video: omap: set LCD clock rate through DM API

2020-10-19 Thread Dario Binacchi
DPLL registers are removed from the LCD driver code because they are implemented inside the DPLL clock driver. Signed-off-by: Dario Binacchi --- (no changes since v3) Changes in v3: - Add clk.h header. - Fix an error code returned by the probe function. drivers/video/am335x-fb.c | 129

[PATCH v4 21/27] dm: core: add a function to decode display timings

2020-10-19 Thread Dario Binacchi
The patch adds a function to get display timings from the device tree node attached to the device. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v1) arch/sandbox/dts/test.dts | 46 ++ drivers/core/read.c | 6 +++ include/dm/read.h

[PATCH v4 26/27] video: omap: move drivers to 'ti' directory

2020-10-19 Thread Dario Binacchi
Add drivers/video/ti/ folder and move all TI's code in this folder for better maintenance. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/video/Kconfig | 5 + drivers/video/Makefile| 4 +--- drivers/video/ti/Kconfig

[PATCH v4 18/27] misc: am33xx: add control module driver

2020-10-19 Thread Dario Binacchi
#address-cells = <1>; #size-cells = <1>; ranges = <0 0 0x800>; scm_clocks: clocks { #address-cells = <1>; #size-cells = <0>; }; }; }; For DT bin

[PATCH v4 20/27] bus: ti: am33xx: add pwm subsystem driver

2020-10-19 Thread Dario Binacchi
The TI PWMSS driver is a simple bus driver for providing clock and power management for the PWM peripherals on TI AM33xx SoCs, namely eCAP, eHRPWM and eQEP. For DT binding details see Linux doc: - Documentation/devicetree/bindings/pwm/pwm-tipwmss.txt Signed-off-by: Dario Binacchi --- (no

[PATCH v4 16/27] fdt: translate address if #size-cells = <0>

2020-10-19 Thread Dario Binacchi
generated for the registers of the loaded drivers are those specified by the AM335x reference manual. Signed-off-by: Dario Binacchi Tested-by: Dario Binacchi Reviewed-by: Simon Glass --- Changes in v4: - Add Sphinx documentation for dm_flags. - Convert GD_DM_FLG_* to enum. - Include device

[PATCH v4 19/27] pwm: ti: am33xx: add enhanced pwm driver

2020-10-19 Thread Dario Binacchi
details see: - Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt Signed-off-by: Dario Binacchi --- Changes in v4: - Include device_compat.h header for dev_xxx macros. Changes in v3: - Adds PWM_TI_EHRPWM dependency on ARCH_OMAP2PLUS in Kconfig. - Add error message in case of invalid address

[PATCH v4 14/27] clk: ti: omap4: add clock manager driver

2020-10-19 Thread Dario Binacchi
This minimal driver is only used to bind child devices. For DT binding details see Linux doc: - Documentation/devicetree/bindings/arm/omap/prcm.txt Signed-off-by: Dario Binacchi --- (no changes since v3) Changes in v3: - doc/device-tree-bindings/arm/omap,prcm.txt. - Add to commit message the

[PATCH v4 15/27] clk: ti: am335x: add clock manager driver

2020-10-19 Thread Dario Binacchi
= "ti,am3-dpll-core-clock"; clocks = <&sys_clkin_ck>, <&sys_clkin_ck>; reg = <0x0490>, <0x045c>, <0x0468>; }; ... }; For DT binding details see Linux doc: - Documentation/devicetree/bindings/arm/omap/prcm.txt Signed-off-by: Dar

[PATCH v4 17/27] omap: timer: fix the rate setting

2020-10-19 Thread Dario Binacchi
The prescaler (PTV) setting must be taken into account even when the timer input clock frequency has been set. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/timer/omap-timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/timer/omap

[PATCH v4 13/27] clk: ti: move drivers to 'ti' directory

2020-10-19 Thread Dario Binacchi
Add drivers/clk/ti/ folder and move all TI's code in this folder for better maintenance. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/clk/Kconfig | 40 +- drivers/clk/Makefile | 8 +--- drivers/c

[PATCH v4 12/27] clk: ti: add support for clkctrl clocks

2020-10-19 Thread Dario Binacchi
-off-by: Dario Binacchi --- Changes in v4: - Include device_compat.h header for dev_xxx macros. - Fix compilation errors on the dev parameter of the dev_xx macros. Changes in v3: - Fix access to registers listed by device tree following resync of am33xx-clock.dtsi with Linux 5.9-rc7. - Remove

[PATCH v4 11/27] ti: am33xx: fix do_enable_clocks() to accept NULL parameters

2020-10-19 Thread Dario Binacchi
Up till this commit passing NULL as input parameter was allowed, but not handled properly. When a NULL parameter was passed to the function a data abort was raised. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v1) arch/arm/mach-omap2/am33xx/clock.c | 10

[PATCH v4 09/27] clk: ti: add divider clock driver

2020-10-19 Thread Dario Binacchi
/divider.txt Signed-off-by: Dario Binacchi --- Changes in v4: - Include device_compat.h header for dev_xxx macros. - Fix compilation errors on the dev parameter of the dev_xx macros. Changes in v3: - Remove doc/device-tree-bindings/clock/ti,autoidle.txt. - Remove doc/device-tree-bindings/clock/ti

[PATCH v4 10/27] clk: ti: add gate clock driver

2020-10-19 Thread Dario Binacchi
The patch adds support for TI gate clock binding. The code is based on the drivers/clk/ti/gate.c driver of the Linux kernel version 5.9-rc7. For DT binding details see: - Documentation/devicetree/bindings/clock/ti/gate.txt Signed-off-by: Dario Binacchi --- Changes in v4: - Include

[PATCH v4 07/27] arm: ti: am33xx: add DPLL_EN_FAST_RELOCK_BYPASS macro

2020-10-19 Thread Dario Binacchi
Add missing DPLL_EN_FAST_RELOCK_BYPASS macro. Used to put the DPLL in idle bypass fast relock mode. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/include/asm/arch-am33xx/clock.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-am33xx/clock.h b

[PATCH v4 08/27] clk: ti: am33xx: add DPLL clock drivers

2020-10-19 Thread Dario Binacchi
on/devicetree/bindings/clock/ti/dpll.txt Signed-off-by: Dario Binacchi --- Changes in v4: - Include device_compat.h header for dev_xxx macros. - Fix compilation errors on the dev parameter of the dev_xx macros. Changes in v3: - Remove doc/device-tree-bindings/clock/ti,dpll.txt. - Add to commit m

[PATCH v4 05/27] clk: add clk_round_rate()

2020-10-19 Thread Dario Binacchi
y the clock hardware in any way. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass Reviewed-by: Sean Anderson --- Changes in v4: - Update clk_round_rate description. - Add Sean Anderson review. arch/sandbox/include/asm/clk.h | 9 + drivers/clk/clk-uclass.c

[PATCH v4 06/27] clk: ti: add mux clock driver

2020-10-19 Thread Dario Binacchi
binding details see: - Documentation/devicetree/bindings/clock/ti/mux.txt Signed-off-by: Dario Binacchi --- Changes in v4: - Include device_compat.h header for dev_xxx macros. Changes in v3: - Remove doc/device-tree-bindings/clock/clock-bindings.txt. - Remove doc/device-tree-bindings/clock/ti

[PATCH v4 02/27] dt-bindings: bus: ti-sysc: resync with Linux 5.9-rc7

2020-10-19 Thread Dario Binacchi
dra76x MCAN generic interconnect module has a its own format for the bits in the control registers. Signed-off-by: Dario Binacchi --- (no changes since v1) include/dt-bindings/bus/ti-sysc.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/dt-bindings/bus/ti-sysc.h b/include/dt

[PATCH v4 04/27] arm: dts: sync am33xx with Linux 5.9-rc7

2020-10-19 Thread Dario Binacchi
nnect target module node. Signed-off-by: Dario Binacchi --- Changes in v4: - Remove a blank line at end of file arch/arm/dts/am33xx-l4.dtsi. arch/arm/dts/am335x-draco.dtsi | 11 +- arch/arm/dts/am335x-evm.dts |2 +- arch/arm/dts/am335x-evmsk.dts|2 +-

[PATCH v4 03/27] bus: ti: add minimal sysc interconnect target driver

2020-10-19 Thread Dario Binacchi
ation/devicetree/bindings/bus/ti-sysc.txt Signed-off-by: Dario Binacchi --- Changes in v4: - Include device_compat.h header for dev_xxx macros. arch/arm/Kconfig | 1 + drivers/bus/Kconfig | 7 ++ drivers/bus/Makefile | 1 + drivers/bus/ti-sysc.c

[PATCH v4 01/27] clk: export generic routines

2020-10-19 Thread Dario Binacchi
Export routines that can be used by other drivers avoiding duplicating code. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Add the clk_ prefix to the divider functions. - Add kernel-doc comments to the exported functions. drivers/clk/clk

Re: [PATCH v3 00/27] Add DM support for omap PWM backlight

2020-10-16 Thread Dario Binacchi
Hi Felix, > Il 16/10/2020 10:41 Felix Brack ha scritto: > > > Hello Dario, > > On 15.10.20 20:56, Dario Binacchi wrote: > > Hi Felix, > > > >> Il 15/10/2020 10:53 Felix Brack ha scritto: > >> > >> > >> Hello Dario, > &

Re: [PATCH v3 00/27] Add DM support for omap PWM backlight

2020-10-15 Thread Dario Binacchi
Hi Felix, > Il 15/10/2020 10:53 Felix Brack ha scritto: > > > Hello Dario, > > On 14.10.20 23:22, Dario Binacchi wrote: > > > >> Il 14/10/2020 10:22 Felix Brack ha scritto: > >> > >> > >> On 11.10.20 14:13, Dario Binacchi wrot

Re: [PATCH v3 00/27] Add DM support for omap PWM backlight

2020-10-15 Thread Dario Binacchi
> Il 14/10/2020 10:22 Felix Brack ha scritto: > > > On 11.10.20 14:13, Dario Binacchi wrote: > > 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 fo

[PATCH v2] clk: ccf: replace the get_rate helper

2020-10-14 Thread Dario Binacchi
The 12d152620d commit fixed the get_rate helper because the set_parent one did not re-parent the clock device to the new parent. The 4d139f3838 commit allows you to remove this workaround by calling the clk_get_parent_rate routine. Signed-off-by: Dario Binacchi --- Changes in v2: - Replace

[PATCH] clk: ccf: replace get_rate helper

2020-10-12 Thread Dario Binacchi
The 12d152620d commit fixed the get_rate helper because the set_parent one did not re-parent the clock device to the new parent. The 4d139f3838 commit allows you to remove this workaround by calling the clk_get_parent_rate routine. Signed-off-by: Dario Binacchi --- drivers/clk/clk-mux.c | 26

[PATCH v3 00/27] Add DM support for omap PWM backlight

2020-10-11 Thread Dario Binacchi
the expression. - Lower-case the 0xC019 hex number. - Remove the 'ti_am3_scm_clocks' driver. Handle 'scm_clocks' node in the 'ti_am3_scm' driver. - Update the commit message. Dario Binacchi (27): clk: export generic routines dt-bindings: bus: ti-sysc: resync wit

[PATCH 2/2] video: backlight: fix pwm's duty cycle calculation

2020-10-11 Thread Dario Binacchi
For levels equal to the maximum value, the duty cycle must be equal to the period. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- drivers/video/pwm_backlight.c | 2 +- test/dm/panel.c | 12 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a

[PATCH 0/2] PWM backlight patches from 'Add DM support for omap PWM backlight' series

2020-10-11 Thread Dario Binacchi
As suggested by Grygorii Strashko I have removed these patches from the 'Add DM support for omap PWM backlight' series and grouped them into this one. One of the two patches has already been reviewed by Simon Glass. Dario Binacchi (2): video: backlight: fix pwm data structure d

[PATCH 1/2] video: backlight: fix pwm data structure description

2020-10-11 Thread Dario Binacchi
The description of the 'max_level' field was incorrectly assigned to the 'min_level' field. Signed-off-by: Dario Binacchi --- drivers/video/pwm_backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/pwm_backlight.c b/drivers/video/p

[PATCH] dm: core: fix typo in device.h

2020-10-11 Thread Dario Binacchi
Replace 'a the' with 'the' in include/dm/device.h. Signed-off-by: Dario Binacchi --- include/dm/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dm/device.h b/include/dm/device.h index ac3b6c1b8a..993c9e6c5a 100644 --- a/include/dm/devic

[PATCH 1/2] dm: core: improve uclass_get_device_by_phandle_id() description

2020-10-11 Thread Dario Binacchi
Complete the devp parameter description. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- include/dm/uclass.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/dm/uclass.h b/include/dm/uclass.h index 67ff7466c8..7188304304 100644 --- a/include/dm/uclass.h

[PATCH 2/2] gpio: fix gpio_request_by_name() description

2020-10-11 Thread Dario Binacchi
Replace 'dev->dev' with '@desc->dev' in the gpio_request_by_name function desc parameter description. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- include/asm-generic/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/as

[PATCH 0/2] fix description patches from 'Add DM support for omap PWM backlight' series

2020-10-11 Thread Dario Binacchi
As suggested by Grygorii Strashko I have removed these patches from the 'Add DM support for omap PWM backlight' series and grouped them into this one. The patches have already been reviewed by Simon Glass. Dario Binacchi (2): dm: core: improve uclass_get_device_by_phandle_id() d

[PATCH 2/2] arch: sandbox: fix typo in clk.h

2020-10-11 Thread Dario Binacchi
Fix the 'devivce' typo in arch/sandbox/include/asm/clk.h. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- arch/sandbox/include/asm/clk.h | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/arch/sandbox/include/asm/clk.h b/ar

[PATCH 0/2] clk patches from 'Add DM support for omap PWM backlight' series

2020-10-11 Thread Dario Binacchi
As suggested by Grygorii Strashko I have removed these patches from the 'Add DM support for omap PWM backlight' series and grouped them into this one. The patches have already been reviewed by Simon Glass. Dario Binacchi (2): clk: remove a redundant header arch: sandbox: fix typ

[PATCH 1/2] clk: remove a redundant header

2020-10-11 Thread Dario Binacchi
The linux/err.h header file was included twice. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- include/linux/clk-provider.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 79dce8f0ad..a2630056de 100644 --- a

[PATCH v3 27/27] board: ti: am335x-ice: get CDCE913 clock device

2020-10-11 Thread Dario Binacchi
With support for other clock drivers, the potentially supported CDCE913 device can no longer be probed without specifying its DT node name. Signed-off-by: Dario Binacchi --- (no changes since v1) board/ti/am335x/board.c | 2 +- board/ti/am43xx/board.c | 2 +- 2 files changed, 2 insertions

[PATCH v3 26/27] video: omap: move drivers to 'ti' directory

2020-10-11 Thread Dario Binacchi
Add drivers/video/ti/ folder and move all TI's code in this folder for better maintenance. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/video/Kconfig | 5 + drivers/video/Makefile| 4 +--- drivers/video/ti/Kconfig

[PATCH v3 24/27] video: omap: set LCD clock rate through DM API

2020-10-11 Thread Dario Binacchi
DPLL registers are removed from the LCD driver code because they are implemented inside the DPLL clock driver. Signed-off-by: Dario Binacchi --- Changes in v3: - Add clk.h header. - Fix an error code returned by the probe function. drivers/video/am335x-fb.c | 129

[PATCH v3 25/27] video: omap: split the legacy code from the DM code

2020-10-11 Thread Dario Binacchi
a code replication until the pre-driver-model version is dropped. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/video/Makefile | 5 +- drivers/video/am335x-fb.c| 336 --- drivers/video/am335x-fb.h| 35 --- drivers/video/tilcdc-panel.c

[PATCH v3 19/27] pwm: ti: am33xx: add enhanced pwm driver

2020-10-11 Thread Dario Binacchi
details see: - Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt Signed-off-by: Dario Binacchi --- Changes in v3: - Adds PWM_TI_EHRPWM dependency on ARCH_OMAP2PLUS in Kconfig. - Add error message in case of invalid address. - Remove doc/device-tree-bindings/pwm/ti,ehrpwm.txt. - Add to commit

[PATCH v3 21/27] dm: core: add a function to decode display timings

2020-10-11 Thread Dario Binacchi
The patch adds a function to get display timings from the device tree node attached to the device. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v1) arch/sandbox/dts/test.dts | 46 ++ drivers/core/read.c | 6 +++ include/dm/read.h

[PATCH v3 23/27] video: omap: drop domain clock enabling by SOC api

2020-10-11 Thread Dario Binacchi
Enabling the domain clock is performed by the sysc interconnect target module driver during the video device probing. Signed-off-by: Dario Binacchi --- Changes in v3: - Remove clock domain enabling/disabling. - Update the commit message. arch/arm/mach-omap2/am33xx/clock_am33xx.c | 2 +- 1

[PATCH v3 22/27] video: omap: add panel driver

2020-10-11 Thread Dario Binacchi
the same driver. There are now two drivers, each with its own compatible string, functions and API. Furthermore, the panel driver, in addition to decoding the display timings, is now also able to manage the backlight. Signed-off-by: Dario Binacchi --- Changes in v3: - Update the DTS lcdc node of

[PATCH v3 20/27] bus: ti: am33xx: add pwm subsystem driver

2020-10-11 Thread Dario Binacchi
The TI PWMSS driver is a simple bus driver for providing clock and power management for the PWM peripherals on TI AM33xx SoCs, namely eCAP, eHRPWM and eQEP. For DT binding details see Linux doc: - Documentation/devicetree/bindings/pwm/pwm-tipwmss.txt Signed-off-by: Dario Binacchi --- Changes

[PATCH v3 18/27] misc: am33xx: add control module driver

2020-10-11 Thread Dario Binacchi
#address-cells = <1>; #size-cells = <1>; ranges = <0 0 0x800>; scm_clocks: clocks { #address-cells = <1>; #size-cells = <0>; }; }; }; For DT bin

[PATCH v3 17/27] omap: timer: fix the rate setting

2020-10-11 Thread Dario Binacchi
The prescaler (PTV) setting must be taken into account even when the timer input clock frequency has been set. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/timer/omap-timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/timer/omap

[PATCH v3 16/27] fdt: translate address if #size-cells = <0>

2020-10-11 Thread Dario Binacchi
generated for the registers of the loaded drivers are those specified by the AM335x reference manual. Signed-off-by: Dario Binacchi Tested-by: Dario Binacchi Reviewed-by: Simon Glass --- Changes in v3: - Comment dm_flags field in the global_data structure. Changes in v2: - Fix a mis

[PATCH v3 13/27] clk: ti: move drivers to 'ti' directory

2020-10-11 Thread Dario Binacchi
Add drivers/clk/ti/ folder and move all TI's code in this folder for better maintenance. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/clk/Kconfig | 40 +- drivers/clk/Makefile | 8 +--- drivers/c

[PATCH v3 11/27] ti: am33xx: fix do_enable_clocks() to accept NULL parameters

2020-10-11 Thread Dario Binacchi
Up till this commit passing NULL as input parameter was allowed, but not handled properly. When a NULL parameter was passed to the function a data abort was raised. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v1) arch/arm/mach-omap2/am33xx/clock.c | 10

[PATCH v3 15/27] clk: ti: am335x: add clock manager driver

2020-10-11 Thread Dario Binacchi
= "ti,am3-dpll-core-clock"; clocks = <&sys_clkin_ck>, <&sys_clkin_ck>; reg = <0x0490>, <0x045c>, <0x0468>; }; ... }; For DT binding details see Linux doc: - Documentation/devicetree/bindings/arm/omap/prcm.txt Signed-off-by:

[PATCH v3 14/27] clk: ti: omap4: add clock manager driver

2020-10-11 Thread Dario Binacchi
This minimal driver is only used to bind child devices. For DT binding details see Linux doc: - Documentation/devicetree/bindings/arm/omap/prcm.txt Signed-off-by: Dario Binacchi --- Changes in v3: - doc/device-tree-bindings/arm/omap,prcm.txt. - Add to commit message the references to linux

[PATCH v3 09/27] clk: ti: add divider clock driver

2020-10-11 Thread Dario Binacchi
/divider.txt Signed-off-by: Dario Binacchi --- Changes in v3: - Remove doc/device-tree-bindings/clock/ti,autoidle.txt. - Remove doc/device-tree-bindings/clock/ti,divider.txt. - Add to commit message the references to linux kernel dt binding documentation. Changes in v2: - Merged to patch [09/31

[PATCH v3 10/27] clk: ti: add gate clock driver

2020-10-11 Thread Dario Binacchi
The patch adds support for TI gate clock binding. The code is based on the drivers/clk/ti/gate.c driver of the Linux kernel version 5.9-rc7. For DT binding details see: - Documentation/devicetree/bindings/clock/ti/gate.txt Signed-off-by: Dario Binacchi --- Changes in v3: - Remove doc/device

[PATCH v3 12/27] clk: ti: add support for clkctrl clocks

2020-10-11 Thread Dario Binacchi
-off-by: Dario Binacchi --- Changes in v3: - Fix access to registers listed by device tree following resync of am33xx-clock.dtsi with Linux 5.9-rc7. - Remove doc/device-tree-bindings/clock/ti,clkctrl.txt. - Add to commit message the references to linux kernel dt binding documentation

[PATCH v3 08/27] clk: ti: am33xx: add DPLL clock drivers

2020-10-11 Thread Dario Binacchi
on/devicetree/bindings/clock/ti/dpll.txt Signed-off-by: Dario Binacchi --- Changes in v3: - Remove doc/device-tree-bindings/clock/ti,dpll.txt. - Add to commit message the references to linux kernel dt binding documentation. drivers/clk/Kconfig | 7 + drivers/clk/Makefile

[PATCH v3 06/27] clk: ti: add mux clock driver

2020-10-11 Thread Dario Binacchi
binding details see: - Documentation/devicetree/bindings/clock/ti/mux.txt Signed-off-by: Dario Binacchi --- Changes in v3: - Remove doc/device-tree-bindings/clock/clock-bindings.txt. - Remove doc/device-tree-bindings/clock/ti,mux.txt. - Add to commit message the references to linux kernel dt

[PATCH v3 07/27] arm: ti: am33xx: add DPLL_EN_FAST_RELOCK_BYPASS macro

2020-10-11 Thread Dario Binacchi
Add missing DPLL_EN_FAST_RELOCK_BYPASS macro. Used to put the DPLL in idle bypass fast relock mode. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/include/asm/arch-am33xx/clock.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-am33xx/clock.h b

[PATCH v3 05/27] clk: add clk_round_rate()

2020-10-11 Thread Dario Binacchi
y the clock hardware in any way. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v1) arch/sandbox/include/asm/clk.h | 9 + drivers/clk/clk-uclass.c | 15 +++ drivers/clk/clk_sandbox.c | 17 + drivers/clk/clk_sandbox_t

[PATCH v3 03/27] bus: ti: add minimal sysc interconnect target driver

2020-10-11 Thread Dario Binacchi
ation/devicetree/bindings/bus/ti-sysc.txt Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/Kconfig | 1 + drivers/bus/Kconfig | 7 ++ drivers/bus/Makefile | 1 + drivers/bus/ti-sysc.c | 165 ++ 4 files changed, 174 inser

[PATCH v3 04/27] arm: dts: sync am33xx with Linux 5.9-rc7

2020-10-11 Thread Dario Binacchi
nnect target module node. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/dts/am335x-draco.dtsi | 11 +- arch/arm/dts/am335x-evm.dts |2 +- arch/arm/dts/am335x-evmsk.dts|2 +- arch/arm/dts/am335x-guardian-u-boot.dtsi |5 - arch/ar

[PATCH v3 02/27] dt-bindings: bus: ti-sysc: resync with Linux 5.9-rc7

2020-10-11 Thread Dario Binacchi
dra76x MCAN generic interconnect module has a its own format for the bits in the control registers. Signed-off-by: Dario Binacchi --- (no changes since v1) include/dt-bindings/bus/ti-sysc.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/dt-bindings/bus/ti-sysc.h b/include/dt

[PATCH v3 01/27] clk: export generic routines

2020-10-11 Thread Dario Binacchi
Export routines that can be used by other drivers avoiding duplicating code. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Add the clk_ prefix to the divider functions. - Add kernel-doc comments to the exported functions. drivers/clk/clk

Re: [PATCH v2 00/30] Add DM support for omap PWM backlight

2020-09-17 Thread Dario Binacchi
Hi Grygorii, > Il 17/09/2020 08:57 Grygorii Strashko ha scritto: > > > Hi Dario, > > On 06/09/2020 15:08, Dario Binacchi wrote: > > > > The series was born from the need to manage the PWM backlight of the > > display connected to my beaglebone board. To

Re: [PATCH v2 19/30] pwm: ti: am33xx: add subsystem driver

2020-09-10 Thread Dario Binacchi
Hi Lokesh, > Il 07/09/2020 07:32 Lokesh Vutla ha scritto: > > > Hi Dario, > > On 06/09/20 5:41 pm, Dario Binacchi wrote: > > The TI PWMSS driver is a simple bus driver for providing clock and power > > management for the PWM peripherals on TI AM33xx SoCs, na

[PATCH v2 00/30] Add DM support for omap PWM backlight

2020-09-06 Thread Dario Binacchi
LLS_0 macro to test without recompiling. - Update the OF_CHECK_COUNTS macro in order to have just one #define by bringing the GD_DM_FLG_SIZE_CELLS_0 into the expression. - Lower-case the 0xC019 hex number. - Remove the 'ti_am3_scm_clocks' driver. Handle 'scm_clocks' node in

[PATCH v2 30/30] board: ti: am335x-ice: get CDCE913 clock device

2020-09-06 Thread Dario Binacchi
With support for other clock drivers, the potentially supported CDCE913 device can no longer be probed without specifying its DT node name. Signed-off-by: Dario Binacchi --- (no changes since v1) board/ti/am335x/board.c | 2 +- board/ti/am43xx/board.c | 2 +- 2 files changed, 2 insertions

[PATCH v2 29/30] video: omap: move drivers to 'ti' directory

2020-09-06 Thread Dario Binacchi
Add drivers/video/ti/ folder and move all TI's code in this folder for better maintenance. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/video/Kconfig | 5 + drivers/video/Makefile| 4 +--- drivers/video/ti/Kconfig

[PATCH v2 26/30] video: omap: enable LCD clock domain through DM API

2020-09-06 Thread Dario Binacchi
er node is not the child of any interconnection node in the current device tree, I added the domain clock reference inside the LCD controller node. I think getting the domain clock from the device tree and using the driver model API is still an improvement. In the future, when possible, we c

[PATCH v2 28/30] video: omap: split the legacy code from the DM code

2020-09-06 Thread Dario Binacchi
a code replication until the pre-driver-model version is dropped. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/video/Makefile | 5 +- drivers/video/am335x-fb.c| 350 drivers/video/am335x-fb.h| 35 --- drivers/video/tilcdc-panel.c

[PATCH v2 27/30] video: omap: set LCD clock rate through DM API

2020-09-06 Thread Dario Binacchi
DPLL registers are removed from the LCD driver code because they are implemented inside the DPLL clock driver. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/video/am335x-fb.c | 127 ++ 1 file changed, 101 insertions(+), 26 deletions(-) diff

[PATCH v2 25/30] video: omap: add panel driver

2020-09-06 Thread Dario Binacchi
the same driver. There are now two drivers, each with its own compatible string, functions and API. Furthermore, the panel driver, in addition to decoding the display timings, is now also able to manage the backlight. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/dts/am335x

[PATCH v2 23/30] gpio: fix gpio_request_by_name() description

2020-09-06 Thread Dario Binacchi
Replace 'dev->dev' with '@desc->dev' in the gpio_request_by_name function desc parameter description. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v1) include/asm-generic/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v2 24/30] dm: core: add a function to decode display timings

2020-09-06 Thread Dario Binacchi
The patch adds a function to get display timings from the device tree node attached to the device. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v1) arch/sandbox/dts/test.dts | 46 ++ drivers/core/read.c | 6 +++ include/dm/read.h

[PATCH v2 22/30] dm: core: improve uclass_get_device_by_phandle_id() description

2020-09-06 Thread Dario Binacchi
Complete the devp parameter description. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v1) include/dm/uclass.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/dm/uclass.h b/include/dm/uclass.h index 67ff7466c8..7188304304 100644

[PATCH v2 20/30] video: backlight: fix pwm's duty cycle calculation

2020-09-06 Thread Dario Binacchi
For levels equal to the maximum value, the duty cycle must be equal to the period. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v1) drivers/video/pwm_backlight.c | 2 +- test/dm/panel.c | 12 ++-- 2 files changed, 7 insertions(+), 7

[PATCH v2 21/30] video: backlight: fix pwm data structure description

2020-09-06 Thread Dario Binacchi
The description of the 'max_level' field was incorrectly assigned to the 'min_level' field. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/video/pwm_backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/pwm_backlig

[PATCH v2 18/30] pwm: ti: am33xx: add enhanced pwm driver

2020-09-06 Thread Dario Binacchi
Enhanced high resolution PWM module (EHRPWM) hardware can be used to generate PWM output over 2 channels. This commit adds PWM driver support for EHRPWM device present on AM33XX SOC. The code is based on the drivers/pwm/pwm-tiehrpwm.c driver of the Linux kernel. Signed-off-by: Dario Binacchi

<    1   2   3   4   5   6   7   8   >