Merge tag 'v2022.04-rc5' into next
authorTom Rini <trini@konsulko.com>
Mon, 28 Mar 2022 16:36:49 +0000 (12:36 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 28 Mar 2022 16:36:49 +0000 (12:36 -0400)
Prepare v2022.04-rc5

1  2 
MAINTAINERS
Makefile
arch/arm/dts/Makefile
doc/usage/index.rst
drivers/bootcount/Kconfig
drivers/pinctrl/Makefile
drivers/video/video-uclass.c

diff --combined MAINTAINERS
@@@ -397,6 -397,9 +397,9 @@@ M: Philipp Tomsich <philipp.tomsich@vru
  M:    Kever Yang <kever.yang@rock-chips.com>
  S:    Maintained
  T:    git https://source.denx.de/u-boot/custodians/u-boot-rockchip.git
+ F:    arch/arm/dts/rk3*
+ F:    arch/arm/dts/rockchip*
+ F:    arch/arm/dts/rv1108*
  F:    arch/arm/include/asm/arch-rockchip/
  F:    arch/arm/mach-rockchip/
  F:    board/rockchip/
@@@ -414,6 -417,7 +417,7 @@@ F: tools/rkcommon.
  F:    tools/rkimage.c
  F:    tools/rksd.c
  F:    tools/rkspi.c
+ N:    rockchip
  
  ARM SAMSUNG
  M:    Minkyu Kang <mk7.kang@samsung.com>
@@@ -617,10 -621,8 +621,10 @@@ F:       drivers/i2c/muxes/pca954x.
  F:    drivers/i2c/zynq_i2c.c
  F:    drivers/mmc/zynq_sdhci.c
  F:    drivers/mtd/nand/raw/zynq_nand.c
 +F:    drivers/net/phy/ethernet_id.c
  F:    drivers/net/phy/xilinx_phy.c
  F:    drivers/net/zynq_gem.c
 +F:    drivers/pinctrl/pinctrl-zynqmp.c
  F:    drivers/serial/serial_zynq.c
  F:    drivers/spi/zynq_qspi.c
  F:    drivers/spi/zynq_spi.c
@@@ -638,7 -640,6 +642,7 @@@ F: arch/arm/mach-zynqmp
  F:    drivers/clk/clk_zynqmp.c
  F:    driver/firmware/firmware-zynqmp.c
  F:    drivers/fpga/zynqpl.c
 +F:    drivers/gpio/gpio_slg7xl45106.c
  F:    drivers/gpio/zynq_gpio.c
  F:    drivers/gpio/zynqmp_gpio_modepin.c
  F:    drivers/i2c/i2c-cdns.c
@@@ -658,6 -659,7 +662,6 @@@ F: drivers/soc/soc_xilinx_zynqmp.
  F:    drivers/spi/zynq_qspi.c
  F:    drivers/spi/zynq_spi.c
  F:    drivers/timer/cadence-ttc.c
 -F:    drivers/usb/host/ehci-zynq.c
  F:    drivers/video/seps525.c
  F:    drivers/watchdog/cdns_wdt.c
  F:    include/zynqmppl.h
@@@ -811,25 -813,6 +815,25 @@@ S:       Maintaine
  F:    doc/usage/environment.rst
  F:    scripts/env2string.awk
  
 +EROFS
 +M:    Huang Jianan <jnhuang95@gmail.com>
 +L:    linux-erofs@lists.ozlabs.org
 +S:    Maintained
 +F:    cmd/erofs.c
 +F:    fs/erofs/
 +F:    include/erofs.h
 +F:    test/py/tests/test_fs/test_erofs.py
 +
 +EVENTS
 +M:    Simon Glass <sjg@chromium.org>
 +S:    Maintained
 +F:    cmd/event.c
 +F:    common/event.c
 +F:    include/event.h
 +F:    scripts/event_dump.py
 +F:    test/common/event.c
 +F:    test/py/tests/test_event_dump.py
 +
  FASTBOOT
  S:    Orphaned
  F:    cmd/fastboot.c
@@@ -1136,14 -1119,14 +1140,14 @@@ F:   drivers/timer/andes_plmt_timer.
  F:    drivers/timer/sifive_clint_timer.c
  F:    tools/prelink-riscv.c
  
- RISC-V KENDRYTE
+ RISC-V CANAAN KENDRYTE K210
  M:    Sean Anderson <seanga2@gmail.com>
  S:    Maintained
- F:    doc/device-tree-bindings/mfd/kendryte,k210-sysctl.txt
- F:    doc/device-tree-bindings/pinctrl/kendryte,k210-fpioa.txt
- F:    drivers/clk/clk_kendryte.c
- F:    drivers/pinctrl/pinctrl-kendryte.c
- F:    include/kendryte/
+ F:    doc/device-tree-bindings/mfd/canaan,k210-sysctl.txt
+ F:    doc/device-tree-bindings/pinctrl/canaan,k210-fpioa.txt
+ F:    drivers/clk/clk_k210.c
+ F:    drivers/pinctrl/pinctrl-k210.c
+ F:    include/k210/
  
  RNG
  M:    Sughosh Ganu <sughosh.ganu@linaro.org>
diff --combined Makefile
+++ b/Makefile
@@@ -3,7 -3,7 +3,7 @@@
  VERSION = 2022
  PATCHLEVEL = 04
  SUBLEVEL =
- EXTRAVERSION = -rc4
+ EXTRAVERSION = -rc5
  NAME =
  
  # *DOCUMENTATION*
@@@ -521,8 -521,7 +521,8 @@@ env_h := include/generated/environment.
  
  no-dot-config-targets := clean clobber mrproper distclean \
                         help %docs check% coccicheck \
 -                       ubootversion backup tests check qcheck tcheck pylint
 +                       ubootversion backup tests check qcheck tcheck pylint \
 +                       pylint_err
  
  config-targets := 0
  mixed-targets  := 0
@@@ -683,16 -682,10 +683,16 @@@ endi
  
  ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
  KBUILD_CFLAGS += -Os
 -else
 +endif
 +
 +ifdef CONFIG_CC_OPTIMIZE_FOR_SPEED
  KBUILD_CFLAGS += -O2
  endif
  
 +ifdef CONFIG_CC_OPTIMIZE_FOR_DEBUG
 +KBUILD_CFLAGS += -Og
 +endif
 +
  LTO_CFLAGS :=
  LTO_FINAL_LDFLAGS :=
  export LTO_CFLAGS LTO_FINAL_LDFLAGS
@@@ -1087,7 -1080,7 +1087,7 @@@ define deprecate
                echo >&2 "for $(2)). Please update the board to use"; \
                echo >&2 "$(firstword $(1)) before the $(3) release. Failure to"; \
                echo >&2 "update by the deadline may result in board removal."; \
-               echo >&2 "See doc/driver-model/migration.rst for more info."; \
+               echo >&2 "See doc/develop/driver-model/migration.rst for more info."; \
                echo >&2 "===================================================="; \
        fi; fi
  
@@@ -1128,7 -1121,7 +1128,7 @@@ ifneq ($(CONFIG_DM),y
        @echo >&2 "This board does not use CONFIG_DM. CONFIG_DM will be"
        @echo >&2 "compulsory starting with the v2020.01 release."
        @echo >&2 "Failure to update may result in board removal."
-       @echo >&2 "See doc/driver-model/migration.rst for more info."
+       @echo >&2 "See doc/develop/driver-model/migration.rst for more info."
        @echo >&2 "===================================================="
  endif
        $(call deprecated,CONFIG_WDT,DM watchdog,v2019.10,\
@@@ -2193,7 -2186,8 +2193,8 @@@ CLEAN_DIRS  += $(MODVERDIR) 
               $(foreach d, spl tpl, $(patsubst %,$d/%, \
                        $(filter-out include, $(shell ls -1 $d 2>/dev/null))))
  
- CLEAN_FILES += include/bmp_logo.h include/bmp_logo_data.h tools/version.h \
+ CLEAN_FILES += include/bmp_logo.h include/bmp_logo_data.h \
+              drivers/video/u_boot_logo.S tools/version.h \
               u-boot* MLO* SPL System.map fit-dtb.blob* \
               u-boot-ivt.img.log u-boot-dtb.imx.log SPL.log u-boot.imx.log \
               lpc32xx-* bl31.c bl31.elf bl31_*.bin image.map tispl.bin* \
@@@ -2268,7 -2262,7 +2269,7 @@@ distclean: mrprope
        @rm -f boards.cfg CHANGELOG
  
  # See doc/develop/python_cq.rst
 -PHONY += pylint
 +PHONY += pylint pylint_err
  PYLINT_BASE := scripts/pylint.base
  PYLINT_CUR := pylint.cur
  PYLINT_DIFF := pylint.diff
@@@ -2310,11 -2304,6 +2311,11 @@@ pylint
                        echo "No pylint regressions"; \
                fi
  
 +# Check for errors only
 +pylint_err:
 +      $(Q)pylint -E  -j 0 --ignore-imports=yes \
 +              $(shell find tools test -name "*.py")
 +
  backup:
        F=`basename $(srctree)` ; cd .. ; \
        gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
diff --combined arch/arm/dts/Makefile
@@@ -137,6 -137,7 +137,7 @@@ dtb-$(CONFIG_ROCKCHIP_RK3399) += 
        rk3399-ficus.dtb \
        rk3399-firefly.dtb \
        rk3399-gru-bob.dtb \
+       rk3399-gru-kevin.dtb \
        rk3399-khadas-edge.dtb \
        rk3399-khadas-edge-captain.dtb \
        rk3399-khadas-edge-v.dtb \
@@@ -349,7 -350,6 +350,7 @@@ dtb-$(CONFIG_ARCH_ZYNQMP) += 
        zynqmp-zcu104-revA.dtb                  \
        zynqmp-zcu104-revC.dtb                  \
        zynqmp-zcu106-revA.dtb                  \
 +      zynqmp-zcu106-rev1.0.dtb                \
        zynqmp-zcu111-revA.dtb                  \
        zynqmp-zcu1275-revA.dtb                 \
        zynqmp-zcu1275-revB.dtb                 \
@@@ -1105,9 -1105,6 +1106,9 @@@ dtb-$(CONFIG_ARCH_BCM63158) += 
  dtb-$(CONFIG_ARCH_BCM68360) += \
        bcm968360bg.dtb
  
 +dtb-$(CONFIG_ARCH_BCM6753) += \
 +      bcm96753ref.dtb
 +
  dtb-$(CONFIG_ARCH_BCM6858) += \
        bcm968580xref.dtb
  
@@@ -1189,7 -1186,6 +1190,7 @@@ dtb-$(CONFIG_TARGET_VEXPRESS64_JUNO) +
  dtb-$(CONFIG_TARGET_TOTAL_COMPUTE) += total_compute.dtb
  
  dtb-$(CONFIG_TARGET_DURIAN) += phytium-durian.dtb
 +dtb-$(CONFIG_TARGET_POMELO) += phytium-pomelo.dtb
  
  dtb-$(CONFIG_TARGET_PRESIDIO_ASIC) += ca-presidio-engboard.dtb
  
diff --combined doc/usage/index.rst
@@@ -29,7 -29,6 +29,7 @@@ Shell command
     x86/cbsysinfo
     conitrace
     echo
 +   event
     exception
     extension
     exit
@@@ -53,3 -52,4 +53,4 @@@
     size
     true
     ums
+    wdt
@@@ -68,15 -68,15 +68,15 @@@ config BOOTCOUNT_EN
          "bootcount" is stored in the environment. To prevent a
          saveenv on all reboots, the environment variable
          "upgrade_available" is used. If "upgrade_available" is
-         0, "bootcount" is always 0, if "upgrade_available" is
-         1 "bootcount" is incremented in the environment.
+         0, "bootcount" is always 0. If "upgrade_available" is 1,
+           "bootcount" is incremented in the environment.
          So the Userspace Application must set the "upgrade_available"
-         and "bootcount" variable to 0, if a boot was successfully.
+         and "bootcount" variables to 0, if the system booted successfully.
  
  config BOOTCOUNT_RAM
        bool "Boot counter in RAM"
        help
-         Store the bootcount in DRAM protected against against bit errors
+         Store the bootcount in DRAM protected against bit errors
          due to short power loss or holding a system in RESET.
  
  config BOOTCOUNT_I2C
@@@ -127,13 -127,6 +127,13 @@@ config DM_BOOTCOUNT_I2C_EEPRO
          pointing to the underlying i2c eeprom device) and an optional 'offset'
          property are supported.
  
 +config DM_BOOTCOUNT_PMIC_PFUZE100
 +      bool "Enable Bootcount driver for PMIC PFUZE100"
 +      depends on DM_PMIC_PFUZE100
 +      help
 +        Enable support for the bootcounter using PMIC PFUZE100 registers.
 +        This works only, if the PMIC is not connected.
 +
  config DM_BOOTCOUNT_SPI_FLASH
        bool "Support SPI flash devices as a backing store for bootcount"
        depends on DM_SPI_FLASH
@@@ -173,7 -166,7 +173,7 @@@ config BOOTCOUNT_BOOTLIMI
        help
          Set the Maximum number of reboot cycles allowed without the boot
          counter being cleared.
-         If set to 0 do not set a boot limit in the environment.
+         If set to 0, do not set a boot limit in the environment.
  
  config BOOTCOUNT_ALEN
        int "I2C address length"
diff --combined drivers/pinctrl/Makefile
@@@ -18,7 -18,7 +18,7 @@@ obj-$(CONFIG_PINCTRL_SANDBOX) += pinctr
  obj-$(CONFIG_PINCTRL_UNIPHIER)        += uniphier/
  obj-$(CONFIG_PINCTRL_PIC32)   += pinctrl_pic32.o
  obj-$(CONFIG_PINCTRL_EXYNOS)  += exynos/
- obj-$(CONFIG_PINCTRL_K210)    += pinctrl-kendryte.o
+ obj-$(CONFIG_PINCTRL_K210)    += pinctrl-k210.o
  obj-$(CONFIG_PINCTRL_MESON)   += meson/
  obj-$(CONFIG_PINCTRL_MTK)     += mediatek/
  obj-$(CONFIG_PINCTRL_MSCC)    += mscc/
@@@ -30,4 -30,3 +30,4 @@@ obj-$(CONFIG_PINCTRL_STI)     += pinctrl-st
  obj-$(CONFIG_PINCTRL_STM32)   += pinctrl_stm32.o
  obj-$(CONFIG_$(SPL_)PINCTRL_STMFX)    += pinctrl-stmfx.o
  obj-y                         += broadcom/
 +obj-$(CONFIG_PINCTRL_ZYNQMP)  += pinctrl-zynqmp.o
@@@ -33,7 -33,8 +33,8 @@@
   * information represents the requires size and alignment of the frame buffer
   * for the device. The values can be an over-estimate but cannot be too
   * small. The actual values will be suppled (in the same manner) by the bind()
-  * method after relocation.
+  * method after relocation. Additionally driver can allocate frame buffer
+  * itself by setting plat->base.
   *
   * This information is then picked up by video_reserve() which works out how
   * much memory is needed for all devices. This is allocated between
@@@ -78,6 -79,10 +79,10 @@@ static ulong alloc_fb(struct udevice *d
        if (!plat->size)
                return 0;
  
+       /* Allow drivers to allocate the frame buffer themselves */
+       if (plat->base)
+               return 0;
        align = plat->align ? plat->align : 1 << 20;
        base = *addrp - plat->size;
        base &= ~(align - 1);
@@@ -204,7 -209,7 +209,7 @@@ int video_sync(struct udevice *vid, boo
        struct video_priv *priv = dev_get_uclass_priv(vid);
        static ulong last_sync;
  
 -      if (force || get_timer(last_sync) > 10) {
 +      if (force || get_timer(last_sync) > 100) {
                sandbox_sdl_sync(priv->fb);
                last_sync = get_timer(0);
        }