[GIT PULL v2] TI changes for v2021.10 next

Hi Tom, Please find the PR for master branch targeted for v2021.10-next branch with checkpatch warnings fixed. Details about the PR are updated in the tag message.
Gitlab CI report: https://source.denx.de/u-boot/custodians/u-boot-ti/-/pipelines/7817
The following changes since commit e8f720ee1707b43a0e14ade87b40a1f84baeb2f3:
Merge branch '2021-06-08-kconfig-migrations' into next (2021-06-09 08:19:13 -0400)
are available in the Git repository at:
https://source.denx.de/u-boot/custodians/u-boot-ti.git tags/ti-v2021.10-next-v2
for you to fetch changes up to 5abb694d6016eaf497c3d9a3ec79382e217e7508:
dma: ti: k3-udma: Add support for native configuration of chan/flow (2021-06-11 19:18:52 +0530)
---------------------------------------------------------------- - HSM re-architecture support for all K3 platforms - AM64 USB support - Driver model support for Davinci RTC
---------------------------------------------------------------- Aswath Govindraju (10): tools: k3_fit_atf: Add support for providing ATF load address using a Kconfig symbol arm: mach-k3: am642_init: Add support for USB boot mode arm: mach-k3: am642_init: Do USB fixups to facilitate host and device boot modes board: ti: am64x: Set the core voltage of USB PHY to 0.85V arm: dts: k3-am64-main: Add USB DT nodes arm: dts: k3-am642-*-evm: Add USB support arm: dts: k3-am642-evm-u-boot: Add U-Boot tags and fix the dr_mode to peripheral for USB subsystem configs: am64x_evm_*_defconfig: Rearrange the components in SRAM to satisfy the limitations for USB DFU boot mode arm: dts: k3-am64-main: Update the location of ATF in SRAM and increase its max size configs: am64: Enable configs to support USB host and device modes
Dario Binacchi (8): rtc: davinci: enable compilation for omap architectures rtc: davinci: fix compiler errors rtc: davinci: replace 32bit access with 8bit access rtc: davinci: check BUSY bit before set TC registers rtc: davinci: use unlock/lock mechanism arm: dts: sync rtc node of am335x boards with Linux 5.9-rc7 rtc: davinci: add driver model support rtc: davinci: fix date loaded on reset
Dave Gerlach (4): arm: mach-k3: Add platform data for j721e and j7200 arm: mach-k3: common: Drop main r5 start arm: mach-k3: j721e_init: Force early probe of clk-k3 driver configs: j7200_evm_r5: Enable raw access power management features
Kevin Scholz (1): arm: dts: k3-j7200: ddr: Update to 0.5.0 version of DDR for LPDDR 2666MTs
Lokesh Vutla (1): common: fit: Update board_fit_image_post_process() to pass fit and node_offset
Pali Rohár (1): Nokia RX-51: Enable CONFIG_WDT to remove deprecation warning
Tero Kristo (21): lib: rational: copy the rational fraction lib routines from Linux arm: mach-k3: introduce new config option for sysfw split remoteproc: k3-r5: remove sysfw PM calls if not supported clk: fixed_rate: add API for directly registering fixed rate clocks clk: fix clock tree dump to properly dump out every registered clock clk: do not attempt to fetch clock pointer with null device clk: add support for setting clk rate from cmdline clk: sci-clk: fix return value of set_rate clk: fix assigned-clocks to pass with deferring provider clk: fix set_rate to clean up cached rates for the hierarchy clk: add support for TI K3 SoC PLL clk: add support for TI K3 SoC clocks power: domain: Introduce driver for raw TI K3 PDs cmd: ti: pd: Add debug command for K3 power domains tools: k3_fit_atf: add DM binary to the FIT image arm: mach-k3: add support for detecting firmware images from FIT arm: mach-k3: do board config for PM only if supported arm: mach-k3: sysfw-loader: pass boardcfg to sciserver configs: j721e_evm_r5: Enable raw access power management features board: ti: j72xx: README: update build instructions and image formats arm: dts: k3-j72xx: correct MCU timer1 frequency
Vignesh Raghavendra (7): mailbox: k3-sec-proxy: Add DM to DMSC communication thread firmware: ti_sci: Implement GET_RANGE with static data firmware: ti_sci: Add support for Resoure Management at R5 SPL stage. ARM: dts: j72xx-r5-common-proc-board: Add DM firmware node ARM: dts: k3: Add cfg register space for ringacc and udmap soc: ti: k3-navss-ringacc: Add support for native configuration of rings dma: ti: k3-udma: Add support for native configuration of chan/flow
arch/arm/dts/am335x-bone-common.dtsi | 5 + arch/arm/dts/am335x-evm.dts | 5 + arch/arm/dts/am335x-evmsk.dts | 5 + arch/arm/dts/am335x-osd335x-common.dtsi | 6 + arch/arm/dts/k3-am64-main.dtsi | 32 +- arch/arm/dts/k3-am642-evm-u-boot.dtsi | 13 + arch/arm/dts/k3-am642-evm.dts | 18 + arch/arm/dts/k3-am642-r5-evm.dts | 18 + arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 14 + .../arm/dts/k3-j7200-common-proc-board-u-boot.dtsi | 28 +- ...p4-1600.dtsi => k3-j7200-ddr-evm-lp4-2666.dtsi} | 437 ++++++------ arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 19 +- .../arm/dts/k3-j721e-common-proc-board-u-boot.dtsi | 16 +- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 18 + arch/arm/mach-k3/Kconfig | 18 + arch/arm/mach-k3/Makefile | 2 +- arch/arm/mach-k3/am642_init.c | 46 +- arch/arm/mach-k3/common.c | 87 ++- arch/arm/mach-k3/common.h | 1 + arch/arm/mach-k3/config.mk | 5 + arch/arm/mach-k3/include/mach/am64_hardware.h | 11 +- arch/arm/mach-k3/include/mach/am64_spl.h | 6 +- arch/arm/mach-k3/j7200/Makefile | 5 + arch/arm/mach-k3/j7200/clk-data.c | 547 +++++++++++++++ arch/arm/mach-k3/j7200/dev-data.c | 77 ++ arch/arm/mach-k3/j721e/Makefile | 5 + arch/arm/mach-k3/j721e/clk-data.c | 781 +++++++++++++++++++++ arch/arm/mach-k3/j721e/dev-data.c | 75 ++ arch/arm/mach-k3/j721e_init.c | 12 + arch/arm/mach-k3/security.c | 2 +- arch/arm/mach-k3/sysfw-loader.c | 111 ++- arch/arm/mach-keystone/mon.c | 3 +- arch/arm/mach-socfpga/board.c | 3 +- board/nokia/rx51/rx51.c | 37 +- board/ti/am335x/board.c | 3 +- board/ti/am43xx/board.c | 3 +- board/ti/am57xx/board.c | 3 +- board/ti/am64x/evm.c | 14 + board/ti/dra7xx/evm.c | 3 +- board/ti/j721e/README | 9 +- cmd/clk.c | 80 ++- cmd/ti/Kconfig | 8 + cmd/ti/Makefile | 1 + cmd/ti/pd.c | 185 +++++ common/image-fit.c | 2 +- common/spl/spl_fit.c | 2 +- configs/am64x_evm_a53_defconfig | 40 ++ configs/am64x_evm_r5_defconfig | 38 +- configs/j7200_evm_r5_defconfig | 14 +- configs/j721e_evm_r5_defconfig | 12 +- configs/nokia_rx51_defconfig | 2 + .../firmware/ti,j721e-dm-sci.txt | 32 + drivers/clk/clk-uclass.c | 39 + drivers/clk/clk_fixed_rate.c | 45 ++ drivers/clk/ti/Kconfig | 24 + drivers/clk/ti/Makefile | 2 + drivers/clk/ti/clk-k3-pll.c | 283 ++++++++ drivers/clk/ti/clk-k3.c | 374 ++++++++++ drivers/clk/ti/clk-sci.c | 6 +- drivers/dma/ti/k3-udma-u-boot.c | 177 +++++ drivers/dma/ti/k3-udma.c | 42 +- drivers/firmware/ti_sci.c | 107 +++ drivers/firmware/ti_sci_static_data.h | 92 +++ drivers/mailbox/k3-sec-proxy.c | 2 +- drivers/power/domain/Kconfig | 7 + drivers/power/domain/Makefile | 1 + drivers/power/domain/ti-power-domain.c | 368 ++++++++++ drivers/remoteproc/ti_k3_r5f_rproc.c | 30 +- drivers/rtc/Kconfig | 7 + drivers/rtc/davinci.c | 460 ++++++++++-- drivers/soc/ti/k3-navss-ringacc-u-boot.c | 61 ++ drivers/soc/ti/k3-navss-ringacc.c | 36 +- include/configs/am64x_evm.h | 15 +- include/configs/nokia_rx51.h | 3 - include/image.h | 5 +- include/k3-clk.h | 176 +++++ include/k3-dev.h | 85 +++ include/linux/clk-provider.h | 3 + include/linux/rational.h | 20 + lib/Kconfig | 7 + lib/Makefile | 2 + lib/rational.c | 99 +++ tools/k3_fit_atf.sh | 28 +- 83 files changed, 5167 insertions(+), 358 deletions(-) rename arch/arm/dts/{k3-j7200-ddr-evm-lp4-1600.dtsi => k3-j7200-ddr-evm-lp4-2666.dtsi} (90%) create mode 100644 arch/arm/mach-k3/j7200/Makefile create mode 100644 arch/arm/mach-k3/j7200/clk-data.c create mode 100644 arch/arm/mach-k3/j7200/dev-data.c create mode 100644 arch/arm/mach-k3/j721e/Makefile create mode 100644 arch/arm/mach-k3/j721e/clk-data.c create mode 100644 arch/arm/mach-k3/j721e/dev-data.c create mode 100644 cmd/ti/pd.c create mode 100644 doc/device-tree-bindings/firmware/ti,j721e-dm-sci.txt create mode 100644 drivers/clk/ti/clk-k3-pll.c create mode 100644 drivers/clk/ti/clk-k3.c create mode 100644 drivers/dma/ti/k3-udma-u-boot.c create mode 100644 drivers/firmware/ti_sci_static_data.h create mode 100644 drivers/power/domain/ti-power-domain.c create mode 100644 drivers/soc/ti/k3-navss-ringacc-u-boot.c create mode 100644 include/k3-clk.h create mode 100644 include/k3-dev.h create mode 100644 include/linux/rational.h create mode 100644 lib/rational.c

On Fri, Jun 11, 2021 at 09:40:14PM +0530, Lokesh Vutla wrote:
Hi Tom, Please find the PR for master branch targeted for v2021.10-next branch with checkpatch warnings fixed. Details about the PR are updated in the tag message.
Gitlab CI report: https://source.denx.de/u-boot/custodians/u-boot-ti/-/pipelines/7817
The following changes since commit e8f720ee1707b43a0e14ade87b40a1f84baeb2f3:
Merge branch '2021-06-08-kconfig-migrations' into next (2021-06-09 08:19:13 -0400)
are available in the Git repository at:
https://source.denx.de/u-boot/custodians/u-boot-ti.git tags/ti-v2021.10-next-v2
for you to fetch changes up to 5abb694d6016eaf497c3d9a3ec79382e217e7508:
dma: ti: k3-udma: Add support for native configuration of chan/flow (2021-06-11 19:18:52 +0530)
I've applied this to u-boot/next now. But please follow up to fix: w+(j7200_evm_a72 j721e_evm_a72 j721e_hs_evm_a72 j7200_evm_r5 j721e_evm_r5 j721e_hs_evm_r5) arch/arm/dts/k3-j7200-common-proc-board.dtb: Warning (reg_format): /bus@100000/bus@28380000/mcu-navss/ringacc@2b800000:reg: property has invalid length (80 bytes) (#address-cells == 2, #size-cells == 1)
and all of the other dtc warnings. Thanks!

On 13/06/2021 19:49, Tom Rini wrote:
On Fri, Jun 11, 2021 at 09:40:14PM +0530, Lokesh Vutla wrote:
Hi Tom, Please find the PR for master branch targeted for v2021.10-next branch with checkpatch warnings fixed. Details about the PR are updated in the tag message.
Gitlab CI report: https://source.denx.de/u-boot/custodians/u-boot-ti/-/pipelines/7817
The following changes since commit e8f720ee1707b43a0e14ade87b40a1f84baeb2f3:
Merge branch '2021-06-08-kconfig-migrations' into next (2021-06-09 08:19:13 -0400)
are available in the Git repository at:
https://source.denx.de/u-boot/custodians/u-boot-ti.git tags/ti-v2021.10-next-v2
for you to fetch changes up to 5abb694d6016eaf497c3d9a3ec79382e217e7508:
dma: ti: k3-udma: Add support for native configuration of chan/flow (2021-06-11 19:18:52 +0530)
I've applied this to u-boot/next now. But please follow up to fix: w+(j7200_evm_a72 j721e_evm_a72 j721e_hs_evm_a72 j7200_evm_r5 j721e_evm_r5 j721e_hs_evm_r5) arch/arm/dts/k3-j7200-common-proc-board.dtb: Warning (reg_format): /bus@100000/bus@28380000/mcu-navss/ringacc@2b800000:reg: property has invalid length (80 bytes) (#address-cells == 2, #size-cells == 1)
and all of the other dtc warnings. Thanks!
Thanks a lot Tom!
I think those DTC warnings are coming out of the DMA support series from Vignesh. Vignesh, any comments?
-Tero

On 6/14/21 1:35 PM, Tero Kristo wrote:
On 13/06/2021 19:49, Tom Rini wrote:
On Fri, Jun 11, 2021 at 09:40:14PM +0530, Lokesh Vutla wrote:
Hi Tom, Please find the PR for master branch targeted for v2021.10-next branch with checkpatch warnings fixed. Details about the PR are updated in the tag message.
Gitlab CI report: https://source.denx.de/u-boot/custodians/u-boot-ti/-/pipelines/7817
The following changes since commit e8f720ee1707b43a0e14ade87b40a1f84baeb2f3:
Merge branch '2021-06-08-kconfig-migrations' into next (2021-06-09 08:19:13 -0400)
are available in the Git repository at:
https://source.denx.de/u-boot/custodians/u-boot-ti.git tags/ti-v2021.10-next-v2
for you to fetch changes up to 5abb694d6016eaf497c3d9a3ec79382e217e7508:
dma: ti: k3-udma: Add support for native configuration of chan/flow (2021-06-11 19:18:52 +0530)
I've applied this to u-boot/next now. But please follow up to fix: w+(j7200_evm_a72 j721e_evm_a72 j721e_hs_evm_a72 j7200_evm_r5 j721e_evm_r5 j721e_hs_evm_r5) arch/arm/dts/k3-j7200-common-proc-board.dtb: Warning (reg_format): /bus@100000/bus@28380000/mcu-navss/ringacc@2b800000:reg: property has invalid length (80 bytes) (#address-cells == 2, #size-cells == 1)
and all of the other dtc warnings. Thanks!
Thanks a lot Tom!
I think those DTC warnings are coming out of the DMA support series from Vignesh. Vignesh, any comments?
I had provided a diff to squash at [1]. Looks like that was not picked up. Will send a follow up patch.
[1] https://lore.kernel.org/u-boot/c8a8bad1-cd13-344e-5701-02748bb005b3@ti.com/
participants (4)
-
Lokesh Vutla
-
Tero Kristo
-
Tom Rini
-
Vignesh Raghavendra