[PATCH v2] bus: ti-sysc: change in a normal driver

2021-03-16 Thread Dario Binacchi
to call the dm_scan_fdt_dev routine to work properly, but some tests on the board have shown otherwise. Signed-off-by: Dario Binacchi --- Changes in v2: - Remove UCLASS_SYSC id. - Change ti-sysc in a normal driver instead of an uclass driver. Previous tests, where I had removed the uclass driver

Re: [PATCH 1/2] of: addr: Abort address translation for parent nodes missing 'ranges'

2021-03-15 Thread Dario Binacchi
> Il 15/03/2021 19:23 Simon Glass ha scritto: > > > +Tom Rini too > > > On Tue, 16 Mar 2021 at 03:48, Bin Meng wrote: > > > > +Dario Binacchi > > > > On Mon, Mar 15, 2021 at 3:11 PM Simon Glass wrote: > > > > > > Hi B

[PATCH] bus: ti-sysc: fix uclass driver id

2021-03-15 Thread Dario Binacchi
The module defines a duplicate uclass driver for UCLASS_SIMPLE_BUS, but it is not allowed. This breaks of-platdata and makes the result non-deterministic. Since it must be an uclass driver to work properly, a new class id has been added. Signed-off-by: Dario Binacchi --- drivers/bus/ti-sysc.c

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

2021-03-15 Thread Dario Binacchi
Hi Simon, > Il 15/03/2021 04:01 Simon Glass ha scritto: > > > Hi Dario, > > On Wed, 30 Dec 2020 at 12:08, Dario Binacchi wrote: > > > > We can handle the sysc interconnect target module in a generic way for > > many TI SoCs. Initially let's just enable d

[PATCH v3 12/12] test: pinmux: add test for 'pinctrl-single' driver

2021-02-28 Thread Dario Binacchi
is used on sandbox. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Added Simon Glass review tag. - Added error checking when the 'width' property is missing. - Fix coding style. arch/sandbox/dts/test.dts| 72

[PATCH v3 11/12] pinctrl: single: add get_pin_muxing operation

2021-02-28 Thread Dario Binacchi
a generic type driver, and it can be useful for debug purposes. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- Changes in v3: - Added Simon Glass review tag. drivers/pinctrl/pinctrl-single.c | 222 +-- 1 file changed, 213 insertions(+), 9 deletions

[PATCH v3 08/12] pinctrl: single: add register access functions

2021-02-28 Thread Dario Binacchi
The configuration of pinmux registers was implemented with duplicate code which can be removed by adding two functions for read/write access. Access to 8-bit registers has also been added. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- Changes in v3: - Added Simon Glass review tag

[PATCH v3 09/12] pinctrl: single: add get_pins_count operation

2021-02-28 Thread Dario Binacchi
It returns the number of selectable pins. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Added Simon Glass review tag. drivers/pinctrl/pinctrl-single.c | 37 1 file changed, 37 insertions(+) diff --git

[PATCH v3 07/12] pinctrl: single: change function mask default value

2021-02-28 Thread Dario Binacchi
The patch is inspired by more recent versions of the Linux driver. Replacing the default value 0x of the function mask with 0 is certainly more conservative in case the "pinctrl-single,function-mask" DT property is missing. Signed-off-by: Dario Binacchi Reviewed-by: S

[PATCH v3 10/12] pinctrl: single: add get_pin_name operation

2021-02-28 Thread Dario Binacchi
It returns the name of the requested pin. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Added Simon Glass review tag. drivers/pinctrl/pinctrl-single.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/pinctrl

[PATCH v3 05/12] pinctrl: single: get register area size by device API

2021-02-28 Thread Dario Binacchi
Use dev_read_addr_size to get size of the controller's register area. Signed-off-by: Dario Binacchi Reviewed-by: Pratyush Yadav --- Changes in v3: - Added Pratyush Yadav review tag. Changes in v2: - Check dev_read_addr_size return value. drivers/pinctrl/pinctrl-single.c | 14

[PATCH v3 04/12] pinctrl: single: fix debug messages formatting

2021-02-28 Thread Dario Binacchi
The dev_dbg(dev, " reg/val 0x%pa/0x%08x\n", , val); prints the 'reg' address preceded by the prefix 0x0x instead of 0x. This because the printf '%pa' format specifier already prepends the prefix '0x' to the address displayed. Signed-off-by: Dario Binacchi Reviewed-by: Prat

[PATCH v3 03/12] pinctrl: single: fix offset management

2021-02-28 Thread Dario Binacchi
option than a physical address. Signed-off-by: Dario Binacchi Reviewed-by: Pratyush Yadav --- Changes in v3: - Added Pratyush Yadav review tag. drivers/pinctrl/pinctrl-single.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/drivers/pinctrl/pinctrl

[PATCH v3 02/12] pinctrl: single: fix the loop counter variable type

2021-02-28 Thread Dario Binacchi
The 'n' variable is used as a loop counter, not as a physical address, and is used in a comparison with an int. So it makes sense to change its type from phys_addr_t to int. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass Reviewed-by: Pratyush Yadav --- (no changes since v2) Changes

[PATCH v3 06/12] pinctrl: single: check "register-width" DT property

2021-02-28 Thread Dario Binacchi
Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Updated commit message. - Added Simon Glass review tag. drivers/pinctrl/pinctrl-single.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-

[PATCH v3 01/12] pinctrl: single: fix format of structure documentation

2021-02-28 Thread Dario Binacchi
U-Boot adopted the kernel-doc annotation style. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Added Simon Glass review tag. drivers/pinctrl/pinctrl-single.c | 45 +--- 1 file changed, 36 insertions(+), 9

[PATCH v3 00/12] Add support for pinmux status command on beaglebone

2021-02-28 Thread Dario Binacchi
w tag. - Added error checking when the 'width' property is missing. - Fix coding style. Dario Binacchi (12): pinctrl: single: fix format of structure documentation pinctrl: single: fix the loop counter variable type pinctrl: single: fix offset management pinctrl: single: fix debug messages forma

Re: [PATCH 2/3] am33xx: board: remove GPIO platforma data

2021-02-22 Thread Dario Binacchi
Hi Lokesh, > Il 22/02/2021 07:08 Lokesh Vutla ha scritto: > > > Hi Dario, > > On 13/02/21 4:30 pm, Dario Binacchi wrote: > > Since the board has been converted to driver model and DT is supported, > > GPIO platform are no more required and can be removed.

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

2021-02-14 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/arch/sandbox

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

2021-02-14 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 c871ea646d..cc9c430512 100644

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

2021-02-14 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 typo in clk.h

[PATCH] arm: dts: sync am33xx-clocks with Linux 5.9-rc7

2021-02-13 Thread Dario Binacchi
Signed-off-by: Dario Binacchi --- arch/arm/dts/am33xx-clocks.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/am33xx-clocks.dtsi b/arch/arm/dts/am33xx-clocks.dtsi index 87c4410ee2..5947a35a74 100644 --- a/arch/arm/dts/am33xx-clocks.dtsi +++ b/arch/arm/

[PATCH] clk: ti: improve debug messages for clkctrl driver

2021-02-13 Thread Dario Binacchi
The previous version printed the same debug message for both the enable and disable routines without highlighting whether you were enabling or disabling the module. It is now clear whether you are enabling or disabling the module. Signed-off-by: Dario Binacchi --- drivers/clk/ti/clk-ctrl.c | 4

[PATCH 2/3] am33xx: board: remove GPIO platforma data

2021-02-13 Thread Dario Binacchi
Since the board has been converted to driver model and DT is supported, GPIO platform are no more required and can be removed. Signed-off-by: Dario Binacchi --- arch/arm/mach-omap2/am33xx/board.c | 23 --- 1 file changed, 23 deletions(-) diff --git a/arch/arm/mach-omap2

[PATCH 3/3] dm: am33xx: drop GPIO domain clock enabling by SOC api

2021-02-13 Thread Dario Binacchi
Enabling the domain clock is performed by the sysc interconnect target module driver during the GPIO device probing. Signed-off-by: Dario Binacchi --- arch/arm/mach-omap2/am33xx/clock_am33xx.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-omap2/am33xx/clock_am33xx.c b

[PATCH 1/3] arm: dts: sync am33xx gpio nodes with Linux 5.9-rc7

2021-02-13 Thread Dario Binacchi
Move gpio controller nodes from am33xx.dtsi to am33xx-l4.dtsi. Now both files are more similar to those found in Linux 5.9-rc7. To be fully operational as before it was also necessary to fix the am33xx-clock.dtsi file. It too is now almost the same as the Linux kernel. Signed-off-by: Dario

[PATCH 0/3] arm: dts: sync am33xx gpio nodes with Linux 5.9-rc7

2021-02-13 Thread Dario Binacchi
o the HEAD of the master which at the time of release points to 7c82e12cc4 ("Merge tag 'u-boot-atmel-fixes-2021.04-a' of https://gitlab.denx.de/u-boot/custodians/u-boot-atmel;) commit. Dario Binacchi (3): arm: dts: sync am33xx gpio nodes with Linux 5.9-rc7 am33xx: board: remove GPIO platforma da

Re: [PATCH v2 00/12] Add support for pinmux status command on beaglebone

2021-02-05 Thread Dario Binacchi
Hi Lokesh, > Il 04/02/2021 19:02 Lokesh Vutla ha scritto: > > > On 29/01/21 3:54 am, Dario Binacchi wrote: > > > > The series was born from the need to check the pinmux setting of a > > peripheral on a beaglebone board. I then ran the 'pinmux status -a' > >

[PATCH v2 09/12] pinctrl: single: add get_pins_count operation

2021-01-28 Thread Dario Binacchi
It returns the number of selectable pins. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- Changes in v2: - Added Simon Glass review tag. drivers/pinctrl/pinctrl-single.c | 37 1 file changed, 37 insertions(+) diff --git a/drivers/pinctrl/pinctrl

[PATCH v2 11/12] pinctrl: single: add get_pin_muxing operation

2021-01-28 Thread Dario Binacchi
a generic type driver, and it can be useful for debug purposes. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/pinctrl/pinctrl-single.c | 222 +-- 1 file changed, 213 insertions(+), 9 deletions(-) diff --git a/drivers/pinctrl/pinctrl-single.c b

[PATCH v2 10/12] pinctrl: single: add get_pin_name operation

2021-01-28 Thread Dario Binacchi
It returns the name of the requested pin. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- Changes in v2: - Added Simon Glass review tag. drivers/pinctrl/pinctrl-single.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/pinctrl/pinctrl-single.c b

[PATCH v2 12/12] test: pinmux: add test for 'pinctrl-single' driver

2021-01-28 Thread Dario Binacchi
is used on sandbox. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- Changes in v2: - Added Simon Glass review tag. - Added error checking when the 'width' property is missing. - Fix coding style. arch/sandbox/dts/test.dts| 72 + configs

[PATCH v2 07/12] pinctrl: single: change function mask default value

2021-01-28 Thread Dario Binacchi
The patch is inspired by more recent versions of the Linux driver. Replacing the default value 0x of the function mask with 0 is certainly more conservative in case the "pinctrl-single,function-mask" DT property is missing. Signed-off-by: Dario Binacchi --- (no change

[PATCH v2 08/12] pinctrl: single: add register access functions

2021-01-28 Thread Dario Binacchi
The configuration of pinmux registers was implemented with duplicate code which can be removed by adding two functions for read/write access. Access to 8-bit registers has also been added. Signed-off-by: Dario Binacchi --- Changes in v2: - Updated commit message. - Remove pointer to access

[PATCH v2 03/12] pinctrl: single: fix offset management

2021-01-28 Thread Dario Binacchi
option than a physical address. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/pinctrl/pinctrl-single.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index

[PATCH v2 02/12] pinctrl: single: fix the loop counter variable type

2021-01-28 Thread Dario Binacchi
The 'n' variable is used as a loop counter, not as a physical address, and is used in a comparison with an int. So it makes sense to change its type from phys_addr_t to int. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass Reviewed-by: Pratyush Yadav --- Changes in v2: - Updated commit

[PATCH v2 06/12] pinctrl: single: check "register-width" DT property

2021-01-28 Thread Dario Binacchi
Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- Changes in v2: - Updated commit message. - Added Simon Glass review tag. drivers/pinctrl/pinctrl-single.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinct

[PATCH v2 04/12] pinctrl: single: fix debug messages formatting

2021-01-28 Thread Dario Binacchi
The dev_dbg(dev, " reg/val 0x%pa/0x%08x\n", , val); prints the 'reg' address preceded by the prefix 0x0x instead of 0x. This because the printf '%pa' format specifier already appends the prefix '0x' to the address displayed. Signed-off-by: Dario Binacchi --- Changes in v2: - Upda

[PATCH v2 05/12] pinctrl: single: get register area size by device API

2021-01-28 Thread Dario Binacchi
Use dev_read_addr_size to get size of the controller's register area. Signed-off-by: Dario Binacchi --- Changes in v2: - Check dev_read_addr_size return value drivers/pinctrl/pinctrl-single.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/pinctrl

[PATCH v2 00/12] Add support for pinmux status command on beaglebone

2021-01-28 Thread Dario Binacchi
Simon Glass review tag. - Added error checking when the 'width' property is missing. - Fix coding style. Dario Binacchi (12): pinctrl: single: fix format of structure documentation pinctrl: single: fix the loop counter variable type pinctrl: single: fix offset management pinctrl: single: fix

[PATCH v2 01/12] pinctrl: single: fix format of structure documentation

2021-01-28 Thread Dario Binacchi
U-Boot adopted the kernel-doc annotation style. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- Changes in v2: - Added Simon Glass review tag. drivers/pinctrl/pinctrl-single.c | 45 +--- 1 file changed, 36 insertions(+), 9 deletions(-) diff --git

Re: [PATCH 10/11] pinctrl: single: add get_pin_muxing operation

2021-01-26 Thread Dario Binacchi
Hi Simon, > Il 24/01/2021 03:03 Simon Glass ha scritto: > > > Hi Dario, > > On Sat, 23 Jan 2021 at 11:27, Dario Binacchi wrote: > > > > It allows to display the muxing of a given pin. Inspired by more recent > > versions of the Linux driver, in a

Re: [PATCH 03/11] pinctrl: single: fix debug messages formatting

2021-01-26 Thread Dario Binacchi
Hi Pratyush, > Il 25/01/2021 18:09 Pratyush Yadav ha scritto: > > > Hi Dario, > > On 23/01/21 07:27PM, Dario Binacchi wrote: > > The printf '%pa' format specifier appends the '0x' prefix to the > > displayed address. Furthermore, the offset variable is disp

[PATCH] ata: sunxi: fix debug messages

2021-01-24 Thread Dario Binacchi
It is useless and misleading to print the ret variable that is not set by the dev_read_addr routine. Also, move the '\n' character after the round bracket that contains the error code. Signed-off-by: Dario Binacchi --- drivers/ata/ahci_sunxi.c | 8 1 file changed, 4 insertions(+), 4

Re: [PATCH 07/11] pinctrl: single: use function pointer for register access

2021-01-24 Thread Dario Binacchi
Hi Simon, > Il 24/01/2021 03:03 Simon Glass ha scritto: > > > Hi Dario, > > On Sat, 23 Jan 2021 at 11:27, Dario Binacchi wrote: > > > > The patch allows you to call the read/write functions set during probing > > without having to check the typ

[PATCH] dm: replace auto_alloc_size with auto

2021-01-23 Thread Dario Binacchi
The auto_alloc_size members of struct driver has been renamed auto. 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 f5b4cd6876..e665558444 100644 --- a/include/dm/device.h

[PATCH] Replace video_uc_platdata with video_uc_plat

2021-01-23 Thread Dario Binacchi
The video_uc_platdata structure no longer exists. It has been renamed video_uc_plat. Signed-off-by: Dario Binacchi --- drivers/video/Kconfig | 4 ++-- drivers/video/nexell_display.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/Kconfig b/drivers

[PATCH 11/11] test: pinmux: add test for 'pinctrl-single' driver

2021-01-23 Thread Dario Binacchi
is used on sandbox. Signed-off-by: Dario Binacchi --- arch/sandbox/dts/test.dts| 65 + configs/sandbox_defconfig| 1 + drivers/pinctrl/pinctrl-single.c | 62 +++- test/dm/pinmux.c | 81

[PATCH 10/11] pinctrl: single: add get_pin_muxing operation

2021-01-23 Thread Dario Binacchi
a generic type driver, and it can be useful for debug purposes. Signed-off-by: Dario Binacchi --- drivers/pinctrl/pinctrl-single.c | 220 +-- 1 file changed, 211 insertions(+), 9 deletions(-) diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl

[PATCH 08/11] pinctrl: single: add get_pins_count operation

2021-01-23 Thread Dario Binacchi
It returns the number of selectable pins. Signed-off-by: Dario Binacchi --- drivers/pinctrl/pinctrl-single.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index eb69e53096..21a3bbaaa7 100644

[PATCH 09/11] pinctrl: single: add get_pin_name operation

2021-01-23 Thread Dario Binacchi
It returns the name of the requested pin. Signed-off-by: Dario Binacchi --- drivers/pinctrl/pinctrl-single.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index 21a3bbaaa7..04e2b00f7e 100644

[PATCH 07/11] pinctrl: single: use function pointer for register access

2021-01-23 Thread Dario Binacchi
The patch allows you to call the read/write functions set during probing without having to check the type of access at runtime. It also adds functions for 8-bit registers access. Signed-off-by: Dario Binacchi --- drivers/pinctrl/pinctrl-single.c | 98 1 file

[PATCH 05/11] pinctrl: single: check "register-width" DT property

2021-01-23 Thread Dario Binacchi
Signed-off-by: Dario Binacchi --- drivers/pinctrl/pinctrl-single.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index c80a42a193..8fd3bf66de 100644 --- a/drivers/pinctrl/pinctrl-single.c +++

[PATCH 06/11] pinctrl: single: change function mask default value

2021-01-23 Thread Dario Binacchi
The patch is inspired by more recent versions of the Linux driver. Replacing the default value 0x of the function mask with 0 is certainly more conservative in case the "pinctrl-single,function-mask" DT property is missing. Signed-off-by: Dario Binacchi --- drivers/pinct

[PATCH 04/11] pinctrl: single: get register area size by device API

2021-01-23 Thread Dario Binacchi
Use dev_read_addr_size to get size of the controller's register area. Signed-off-by: Dario Binacchi --- drivers/pinctrl/pinctrl-single.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index

[PATCH 03/11] pinctrl: single: fix debug messages formatting

2021-01-23 Thread Dario Binacchi
The printf '%pa' format specifier appends the '0x' prefix to the displayed address. Furthermore, the offset variable is displayed with the '%x' format specifier instead of '%pa'. Signed-off-by: Dario Binacchi --- drivers/pinctrl/pinctrl-single.c | 28 1 file

[PATCH 02/11] pinctrl: single: fix the loop counter variable type

2021-01-23 Thread Dario Binacchi
The patch changes the variable 'n' type from phys_addr_t to int. Signed-off-by: Dario Binacchi --- drivers/pinctrl/pinctrl-single.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index c9a6c272bf

[PATCH 01/11] pinctrl: single: fix format of structure documentation

2021-01-23 Thread Dario Binacchi
U-Boot adopted the kernel-doc annotation style. Signed-off-by: Dario Binacchi --- drivers/pinctrl/pinctrl-single.c | 45 +--- 1 file changed, 36 insertions(+), 9 deletions(-) diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index

[PATCH 00/11] Add support for pinmux status command on beaglebone

2021-01-23 Thread Dario Binacchi
can be cleanly applied to the HEAD of the master which at the time of release points to e716c9022970dac9be15856a6651a07132463578 commit (Revert "doc: update Kernel documentation build system"). Dario Binacchi (11): pinctrl: single: fix format of structure documentation pinctrl: s

[PATCH] configs: am335x_evm: enable CONFIG_SPL_ALLOC_BD

2021-01-18 Thread Dario Binacchi
With commit 38d6b7ebdaee ("spl: Drop bd_info in the data section") you need to enable this option to boot from mmc. Signed-off-by: Dario Binacchi --- configs/am335x_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm

[PATCH] dm: fix build errors generated by last merges

2021-01-15 Thread Dario Binacchi
to of_to_plat - plat_data_alloc_size to plat_auto - priv_auto_alloc_size to priv_auto - video_uc_platdata to video_uc_plat Signed-off-by: Dario Binacchi --- drivers/clk/ti/clk-am3-dpll.c | 2 +- drivers/clk/ti/clk-ctrl.c | 2 +- drivers/clk/ti/clk-divider.c| 2 +- drivers/clk/ti

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

2020-12-29 Thread Dario Binacchi
ELLS_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: resync with Linux 5.9-rc7 bus: t

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

2020-12-29 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 v8 27/28] video: omap: move drivers to 'ti' directory

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

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

2020-12-29 Thread Dario Binacchi
the 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
. This is 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 prcm_clocks node. Changes in v4

[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
erated 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 n

[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

[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

[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 the 'am3-scm

[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 | 1

[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

[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
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-evmsk.dts

[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
/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_SYSC

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

2020-12-29 Thread Dario Binacchi
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-uclass.c

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

2020-12-29 Thread Dario Binacchi
: The 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
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: resync with Linux 5.9-rc7 bus: ti: add minimal sysc interconnect target driver arm: dts: sync

[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
. This is 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 board/BuR

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

2020-12-23 Thread Dario Binacchi
the 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

[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 | 1

<    1   2   3   4   5   6   7   >