[PATCH v8 25/28] video: omap: set LCD clock rate through DM API

2020-12-29 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 v8 26/28] video: omap: split the legacy code from the DM code

2020-12-29 Thread Dario Binacchi
a code replication until the pre-driver-model version is dropped. Signed-off-by: Dario Binacchi --- (no changes since v7) Changes in v7: - Add linux/err.h header in am335x-fb.c to fix building errors for brxre1_defconfig. Changes in v4: - Include device_compat.h header for dev_xxx macros

[PATCH v8 23/28] video: omap: add panel driver

2020-12-29 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 v8

[PATCH v8 15/28] arm: dts: am335x: enable prcm_clocks auto binding

2020-12-29 Thread Dario Binacchi
Adding the 'simple-bus' compatible string to the prcm_clocks node will allow its automatic binding. Signed-off-by: Dario Binacchi --- (no changes since v6) Changes in v6: - Remove the 'am3-prcm' driver. - Add the 'simple-bus' compatible string to the pr

[PATCH v8 24/28] video: omap: drop domain clock enabling by SOC api

2020-12-29 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 v8 17/28] fdt: translate address if #size-cells = <0>

2020-12-29 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 --- (no changes since v7) Changes in v7: - Add gd_size_cells_0 macro to fix building errors for boards that do

[PATCH v8 21/28] bus: ti: am33xx: add pwm subsystem driver

2020-12-29 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 v8 20/28] pwm: ti: am33xx: add enhanced pwm driver

2020-12-29 Thread Dario Binacchi
details see: - Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt Signed-off-by: Dario Binacchi --- (no changes since v4) 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

[PATCH v8 22/28] dm: core: add a function to decode display timings

2020-12-29 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 v8 19/28] arm: dts: am335x: enable scm_clocks auto binding

2020-12-29 Thread Dario Binacchi
Adding the 'simple-bus' compatible string to the scm_clocks node will allow its automatic binding. Signed-off-by: Dario Binacchi --- (no changes since v7) Changes in v7: - Add dm8168-evm-u-boot.dtsi to fix building errors for ti816x_evm_defconfig. Changes in v6: - Remove th

[PATCH v8 18/28] omap: timer: fix the rate setting

2020-12-29 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 v8 16/28] clk: move clk-ti-sci driver to 'ti' directory

2020-12-29 Thread Dario Binacchi
The patch moves the clk-ti-sci.c file to the 'ti' directory along with all the other TI's drivers, and renames it clk-sci.c. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/clk/Kconfig| 8 drivers/clk/Makefile

[PATCH v8 14/28] clk: ti: omap4: add clock manager driver

2020-12-29 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 v8 13/28] clk: ti: add support for clkctrl clocks

2020-12-29 Thread Dario Binacchi
-off-by: Dario Binacchi --- (no changes since v5) 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

[PATCH v8 12/28] ti: am33xx: fix do_enable_clocks() to accept NULL parameters

2020-12-29 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 v8 04/28] arm: dts: sync am33xx with Linux 5.9-rc7

2020-12-29 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 v8 11/28] arm: dts: am335x: include am33xx-u-boot.dtsi

2020-12-29 Thread Dario Binacchi
Include the SoC U-boot DTS in each am335x--u-boot.dtsi. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/dts/am335x-chiliboard-u-boot.dtsi | 2 ++ arch/arm/dts/am335x-evm-u-boot.dtsi| 2 ++ arch/arm/dts/am335x-evmsk-u-boot.dtsi | 2 ++ arch/arm/dts/am335x

[PATCH v8 09/28] clk: ti: add divider clock driver

2020-12-29 Thread Dario Binacchi
/divider.txt Signed-off-by: Dario Binacchi --- (no changes since v5) 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

[PATCH v8 10/28] clk: ti: add gate clock driver

2020-12-29 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 --- (no changes since v5) Changes in v5

[PATCH v8 08/28] clk: ti: am33xx: add DPLL clock drivers

2020-12-29 Thread Dario Binacchi
on/devicetree/bindings/clock/ti/dpll.txt Signed-off-by: Dario Binacchi --- (no changes since v5) 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

[PATCH v8 07/28] arm: ti: am33xx: add DPLL_EN_FAST_RELOCK_BYPASS macro

2020-12-29 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 v8 06/28] clk: ti: add mux clock driver

2020-12-29 Thread Dario Binacchi
binding details see: - Documentation/devicetree/bindings/clock/ti/mux.txt Signed-off-by: Dario Binacchi --- (no changes since v5) 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

[PATCH v8 03/28] bus: ti: add minimal sysc interconnect target driver

2020-12-29 Thread Dario Binacchi
ation/devicetree/bindings/bus/ti-sysc.txt Signed-off-by: Dario Binacchi --- Changes in v8: - Imply CONFIG_TI_SYSC only if CONFIG_DM and CONFIG_OF_CONTROL are enabled. - Revert change on cm_t335_defconfig added on version 7 of the series. Changes in v7: - Not all OMAP2 platform need CONFIG_TI

[PATCH v8 05/28] clk: add clk_round_rate()

2020-12-29 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 v8 02/28] dt-bindings: bus: ti-sysc: resync with Linux 5.9-rc7

2020-12-29 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 v8 01/28] clk: export generic routines

2020-12-29 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 v7 00/28] Add DM support for omap PWM backlight

2020-12-24 Thread Dario Binacchi
IZE_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 (28): clk: export generic routines dt-bindings: bus: ti-sysc

[PATCH v7 28/28] board: ti: am335x-ice: get CDCE913 clock device

2020-12-23 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 v7 26/28] video: omap: split the legacy code from the DM code

2020-12-23 Thread Dario Binacchi
a code replication until the pre-driver-model version is dropped. Signed-off-by: Dario Binacchi --- Changes in v7: - Add linux/err.h header in am335x-fb.c to fix building errors for brxre1_defconfig. Changes in v4: - Include device_compat.h header for dev_xxx macros. drivers/video/Makefile

[PATCH v7 23/28] video: omap: add panel driver

2020-12-23 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 --- (no changes since

[PATCH v7 27/28] video: omap: move drivers to 'ti' directory

2020-12-23 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 --- Changes in v7: - Fix building errors for: brppt1_mmc_defconfig brppt1_nand_defconfig brppt1_spi_defconfig brxre1_defconfig brsmarc1_defconfig boar

[PATCH v7 25/28] video: omap: set LCD clock rate through DM API

2020-12-23 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 v7 22/28] dm: core: add a function to decode display timings

2020-12-23 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 v7 24/28] video: omap: drop domain clock enabling by SOC api

2020-12-23 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 v7 21/28] bus: ti: am33xx: add pwm subsystem driver

2020-12-23 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 v7 16/28] clk: move clk-ti-sci driver to 'ti' directory

2020-12-23 Thread Dario Binacchi
The patch moves the clk-ti-sci.c file to the 'ti' directory along with all the other TI's drivers, and renames it clk-sci.c. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/clk/Kconfig| 8 drivers/clk/Makefile

[PATCH v7 17/28] fdt: translate address if #size-cells = <0>

2020-12-23 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 v7: - Add gd_size_cells_0 macro to fix building errors for boards that do not use CONFIG_

[PATCH v7 20/28] pwm: ti: am33xx: add enhanced pwm driver

2020-12-23 Thread Dario Binacchi
details see: - Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt Signed-off-by: Dario Binacchi --- (no changes since v4) 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

[PATCH v7 18/28] omap: timer: fix the rate setting

2020-12-23 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 v7 19/28] arm: dts: am335x: enable scm_clocks auto binding

2020-12-23 Thread Dario Binacchi
Adding the 'simple-bus' compatible string to the scm_clocks node will allow its automatic binding. Signed-off-by: Dario Binacchi --- Changes in v7: - Add dm8168-evm-u-boot.dtsi to fix building errors for ti816x_evm_defconfig. Changes in v6: - Remove the 'am3-scm' drive

[PATCH v7 15/28] arm: dts: am335x: enable prcm_clocks auto binding

2020-12-23 Thread Dario Binacchi
Adding the 'simple-bus' compatible string to the prcm_clocks node will allow its automatic binding. Signed-off-by: Dario Binacchi --- (no changes since v6) Changes in v6: - Remove the 'am3-prcm' driver. - Add the 'simple-bus' compatible string to the pr

[PATCH v7 14/28] clk: ti: omap4: add clock manager driver

2020-12-23 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 v7 04/28] arm: dts: sync am33xx with Linux 5.9-rc7

2020-12-23 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 v7 10/28] clk: ti: add gate clock driver

2020-12-23 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 --- (no changes since v5) Changes in v5

[PATCH v7 13/28] clk: ti: add support for clkctrl clocks

2020-12-23 Thread Dario Binacchi
-off-by: Dario Binacchi --- (no changes since v5) 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

[PATCH v7 09/28] clk: ti: add divider clock driver

2020-12-23 Thread Dario Binacchi
/divider.txt Signed-off-by: Dario Binacchi --- (no changes since v5) 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

[PATCH v7 11/28] arm: dts: am335x: include am33xx-u-boot.dtsi

2020-12-23 Thread Dario Binacchi
Include the SoC U-boot DTS in each am335x--u-boot.dtsi. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/dts/am335x-chiliboard-u-boot.dtsi | 2 ++ arch/arm/dts/am335x-evm-u-boot.dtsi| 2 ++ arch/arm/dts/am335x-evmsk-u-boot.dtsi | 2 ++ arch/arm/dts/am335x

[PATCH v7 12/28] ti: am33xx: fix do_enable_clocks() to accept NULL parameters

2020-12-23 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 v7 08/28] clk: ti: am33xx: add DPLL clock drivers

2020-12-23 Thread Dario Binacchi
on/devicetree/bindings/clock/ti/dpll.txt Signed-off-by: Dario Binacchi --- (no changes since v5) 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

[PATCH v7 06/28] clk: ti: add mux clock driver

2020-12-23 Thread Dario Binacchi
binding details see: - Documentation/devicetree/bindings/clock/ti/mux.txt Signed-off-by: Dario Binacchi --- (no changes since v5) 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

[PATCH v7 03/28] bus: ti: add minimal sysc interconnect target driver

2020-12-23 Thread Dario Binacchi
ation/devicetree/bindings/bus/ti-sysc.txt Signed-off-by: Dario Binacchi --- Changes in v7: - Not all OMAP2 platform need CONFIG_TI_SYSC. Set CONFIG_TI_SYSC as imply and disable it to fix building errors in: nokia_rx51_defconfig cm_t335_defconfig Changes in v4: - Include device_compat.h h

[PATCH v7 05/28] clk: add clk_round_rate()

2020-12-23 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 v7 07/28] arm: ti: am33xx: add DPLL_EN_FAST_RELOCK_BYPASS macro

2020-12-23 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 v7 02/28] dt-bindings: bus: ti-sysc: resync with Linux 5.9-rc7

2020-12-23 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 v7 01/28] clk: export generic routines

2020-12-23 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 v6 00/28] Add DM support for omap PWM backlight

2020-12-23 Thread Dario Binacchi
Hi Lokesh, > Il 23/12/2020 08:57 Lokesh Vutla ha scritto: > > > On 23/12/20 12:00 am, Dario Binacchi wrote: > > Hi Lokesh, > > > >> Il 22/12/2020 14:52 Lokesh Vutla ha scritto: > >> > >> > >> Hi Dario, > >> > >&

Re: [PATCH v6 00/28] Add DM support for omap PWM backlight

2020-12-22 Thread Dario Binacchi
Hi Lokesh, > Il 22/12/2020 14:52 Lokesh Vutla ha scritto: > > > Hi Dario, > > On 22/11/20 9:41 pm, 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

[PATCH v6 00/28] Add DM support for omap PWM backlight

2020-11-22 Thread Dario Binacchi
he 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 the 'ti_am3_scm' driver. - Update the commit message. Dario Binacchi (28): clk: export generic routines dt-bind

[PATCH v6 26/28] video: omap: split the legacy code from the DM code

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

[PATCH v6 28/28] board: ti: am335x-ice: get CDCE913 clock device

2020-11-22 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 v6 27/28] video: omap: move drivers to 'ti' directory

2020-11-22 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 v6 23/28] video: omap: add panel driver

2020-11-22 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 --- (no changes since

[PATCH v6 21/28] bus: ti: am33xx: add pwm subsystem driver

2020-11-22 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 v6 20/28] pwm: ti: am33xx: add enhanced pwm driver

2020-11-22 Thread Dario Binacchi
details see: - Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt Signed-off-by: Dario Binacchi --- (no changes since v4) 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

[PATCH v6 22/28] dm: core: add a function to decode display timings

2020-11-22 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 v6 25/28] video: omap: set LCD clock rate through DM API

2020-11-22 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 v6 24/28] video: omap: drop domain clock enabling by SOC api

2020-11-22 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 v6 19/28] arm: dts: am335x: enable scm_clocks auto binding

2020-11-22 Thread Dario Binacchi
Adding the 'simple-bus' compatible string to the scm_clocks node will allow its automatic binding. Signed-off-by: Dario Binacchi --- Changes in v6: - Remove the 'am3-scm' driver. - Add the 'simple-bus' compatible string to the scm_clocks node. Changes in v4: -

[PATCH v6 18/28] omap: timer: fix the rate setting

2020-11-22 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 v6 17/28] fdt: translate address if #size-cells = <0>

2020-11-22 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 --- (no changes since v4) Changes in v4: - Add Sphinx documentation for dm_flags. - Convert GD_DM_FLG_* to enum

[PATCH v6 16/28] clk: move clk-ti-sci driver to 'ti' directory

2020-11-22 Thread Dario Binacchi
The patch moves the clk-ti-sci.c file to the 'ti' directory along with all the other TI's drivers, and renames it clk-sci.c. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/clk/Kconfig| 8 drivers/clk/Makefile

[PATCH v6 15/28] arm: dts: am335x: enable prcm_clocks auto binding

2020-11-22 Thread Dario Binacchi
Adding the 'simple-bus' compatible string to the prcm_clocks node will allow its automatic binding. Signed-off-by: Dario Binacchi --- Changes in v6: - Remove the 'am3-prcm' driver. - Add the 'simple-bus' compatible string to the prcm_clocks node. Changes in

[PATCH v6 13/28] clk: ti: add support for clkctrl clocks

2020-11-22 Thread Dario Binacchi
-off-by: Dario Binacchi --- (no changes since v5) 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

[PATCH v6 14/28] clk: ti: omap4: add clock manager driver

2020-11-22 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 v6 12/28] ti: am33xx: fix do_enable_clocks() to accept NULL parameters

2020-11-22 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 v6 11/28] arm: dts: am335x: include am33xx-u-boot.dtsi

2020-11-22 Thread Dario Binacchi
Include the SoC U-boot DTS in each am335x--u-boot.dtsi. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/dts/am335x-chiliboard-u-boot.dtsi | 2 ++ arch/arm/dts/am335x-evm-u-boot.dtsi| 2 ++ arch/arm/dts/am335x-evmsk-u-boot.dtsi | 2 ++ arch/arm/dts/am335x

[PATCH v6 04/28] arm: dts: sync am33xx with Linux 5.9-rc7

2020-11-22 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 v6 09/28] clk: ti: add divider clock driver

2020-11-22 Thread Dario Binacchi
/divider.txt Signed-off-by: Dario Binacchi --- (no changes since v5) 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

[PATCH v6 10/28] clk: ti: add gate clock driver

2020-11-22 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 --- (no changes since v5) Changes in v5

[PATCH v6 08/28] clk: ti: am33xx: add DPLL clock drivers

2020-11-22 Thread Dario Binacchi
on/devicetree/bindings/clock/ti/dpll.txt Signed-off-by: Dario Binacchi --- (no changes since v5) 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

[PATCH v6 06/28] clk: ti: add mux clock driver

2020-11-22 Thread Dario Binacchi
binding details see: - Documentation/devicetree/bindings/clock/ti/mux.txt Signed-off-by: Dario Binacchi --- (no changes since v5) 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

[PATCH v6 07/28] arm: ti: am33xx: add DPLL_EN_FAST_RELOCK_BYPASS macro

2020-11-22 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 v6 05/28] clk: add clk_round_rate()

2020-11-22 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 v6 03/28] bus: ti: add minimal sysc interconnect target driver

2020-11-22 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 v6 02/28] dt-bindings: bus: ti-sysc: resync with Linux 5.9-rc7

2020-11-22 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 v6 01/28] clk: export generic routines

2020-11-22 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 v5 18/27] misc: am33xx: add control module driver

2020-11-08 Thread Dario Binacchi
Hi Simon, I still have some doubts and therefore I would like to also add Lokesh on this matter to finally decide what to do. > Il 03/11/2020 16:12 Simon Glass ha scritto: > > > Hi Dario, > > On Sun, 1 Nov 2020 at 02:13, Dario Binacchi wrote: > > > > Hi Simon,

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

2020-11-01 Thread Dario Binacchi
Hi Simon, > Il 28/10/2020 03:10 Simon Glass ha scritto: > > > On Sun, 25 Oct 2020 at 06:40, Dario Binacchi wrote: > > > > The implementation of this driver was needed to bind the device tree > > sub-nodes of the 'clocks' node. In fact, the lack of th

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

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

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

2020-10-25 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 v5 24/27] video: omap: set LCD clock rate through DM API

2020-10-25 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 v5 23/27] video: omap: drop domain clock enabling by SOC api

2020-10-25 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 v5 21/27] dm: core: add a function to decode display timings

2020-10-25 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 v5 26/27] video: omap: move drivers to 'ti' directory

2020-10-25 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 v5 22/27] video: omap: add panel driver

2020-10-25 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 --- (no changes since

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

2020-10-25 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 --- (no changes since v4) Changes in v4: - Add Sphinx documentation for dm_flags. - Convert GD_DM_FLG_* to enum

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

2020-10-25 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 v5 18/27] misc: am33xx: add control module driver

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

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

2020-10-25 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 v5 19/27] pwm: ti: am33xx: add enhanced pwm driver

2020-10-25 Thread Dario Binacchi
details see: - Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt Signed-off-by: Dario Binacchi --- (no changes since v4) 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

<    1   2   3   4   5   6   7   8   >