1. 22 Jun, 2023 4 commits
    • Jacky Huang's avatar
      clk: nuvoton: Use clk_parent_data instead of string for parent clock · f50a000b
      Jacky Huang authored
      For the declaration of parent clocks, use struct clk_parent_data instead
      of a string. Due to the change in the passed arguments, replace the usage
      of devm_clk_hw_register_mux() with clk_hw_register_mux_parent_data() for
      all cases.
      Signed-off-by: default avatarJacky Huang <ychuang3@nuvoton.com>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      f50a000b
    • Jacky Huang's avatar
      clk: nuvoton: Update all constant hex values to lowercase · ebd617b6
      Jacky Huang authored
      The constant hex values used to define register offsets were written
      in uppercase. This patch update all these constant hex values to
      be lowercase.
      Signed-off-by: default avatarJacky Huang <ychuang3@nuvoton.com>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      ebd617b6
    • Jacky Huang's avatar
      clk: nuvoton: Add clk-ma35d1.h for driver extern functions · a5e3f372
      Jacky Huang authored
      Moved the declaration of extern functions ma35d1_reg_clk_pll() and
      ma35d1_reg_adc_clkdiv() from the .c files to the newly created header
      file clk-ma35d1.h.
      Signed-off-by: default avatarJacky Huang <ychuang3@nuvoton.com>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      a5e3f372
    • Arnd Bergmann's avatar
      remoteproc: stm32: use correct format strings on 64-bit · 03bd158e
      Arnd Bergmann authored
      With CONFIG_ARCH_STM32 making it into arch/arm64, a couple of format
      strings no longer work, since they rely on size_t being compatible
      with %x, or they print an 'int' using %z:
      
      drivers/remoteproc/stm32_rproc.c: In function 'stm32_rproc_mem_alloc':
      drivers/remoteproc/stm32_rproc.c:122:22: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=]
      drivers/remoteproc/stm32_rproc.c:122:40: note: format string is defined here
        122 |         dev_dbg(dev, "map memory: %pa+%x\n", &mem->dma, mem->len);
            |                                       ~^
            |                                        |
            |                                        unsigned int
            |                                       %lx
      drivers/remoteproc/stm32_rproc.c:125:30: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=]
      drivers/remoteproc/stm32_rproc.c:125:65: note: format string is defined here
        125 |                 dev_err(dev, "Unable to map memory region: %pa+%x\n",
            |                                                                ~^
            |                                                                 |
            |                                                                 unsigned int
            |                                                                %lx
      drivers/remoteproc/stm32_rproc.c: In function 'stm32_rproc_get_loaded_rsc_table':
      drivers/remoteproc/stm32_rproc.c:646:30: error: format '%zx' expects argument of type 'size_t', but argument 4 has type 'int' [-Werror=format=]
      drivers/remoteproc/stm32_rproc.c:646:66: note: format string is defined here
        646 |                 dev_err(dev, "Unable to map memory region: %pa+%zx\n",
            |                                                                ~~^
            |                                                                  |
            |                                                                  long unsigned int
            |                                                                %x
      
      Fix up all three instances to work across architectures, and enable
      compile testing for this driver to ensure it builds everywhere.
      Reviewed-by: default avatarArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
      Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      03bd158e
  2. 20 Jun, 2023 1 commit
    • Arnd Bergmann's avatar
      Merge tag 'stm32-mp25-for-v6.5-1' of... · 868a11b6
      Arnd Bergmann authored
      Merge tag 'stm32-mp25-for-v6.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32 into soc/newsoc
      
      STM32 STM32MP25 for v6.5, round 1
      
      Highlights:
      ----------
      
      STM32MP25 family is composed of 4 SoCs defined as following:
      
        -STM32MP251: common part composed of 1*Cortex-A35,
         common peripherals like SDMMC, UART, SPI, I2C, PCIe, USB3,
         parallel and DSI display, 1*ETH ...
      
        -STM32MP253: STM32MP251 + 1*Cortex-A35 (dual CPU), a second ETH,
         CAN-FD and LVDS display.
      
        -STM32MP255: STM32MP253 + GPU/AI and video encode/decode.
        -STM32MP257: STM32MP255 + ETH TSN switch (2+1 ports).
      
        A second diversity layer exists for security features/A35 frequency:
        -STM32MP25xY, "Y" gives information:
          -Y = A means A35@1.2GHz + no cryp IP and no secure boot.
          -Y = C means A35@1.2GHz + cryp IP and secure boot.
          -Y = D means A35@1.5GHz + no cryp IP and no secure boot.
          -Y = F means A35@1.5GHz + cryp IP and secure boot.
      
      This PR adds the STM32MP257F EV1 board support. This board embeds a
      STM32MP257FAI SoC, with 4GB of DDR4, TSN switch (2+1 ports),
      2*USB typeA, 1*USB2 typeC, SNOR OctoSPI, mini PCIe, STPMIC2 for power distribution ...
      
      * tag 'stm32-mp25-for-v6.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32: (44 commits)
        MAINTAINERS: add entry for ARM/STM32 ARCHITECTURE
        arm64: defconfig: enable ARCH_STM32 and STM32 serial driver
        arm64: dts: st: add stm32mp257f-ev1 board support
        dt-bindings: stm32: document stm32mp257f-ev1 board
        arm64: dts: st: introduce stm32mp25 pinctrl files
        arm64: dts: st: introduce stm32mp25 SoCs family
        arm64: introduce STM32 family on Armv8 architecture
        dt-bindings: stm32: add st,stm32mp25-syscfg compatible for syscon
        pinctrl: stm32: add stm32mp257 pinctrl support
        dt-bindings: pinctrl: stm32: support for stm32mp257 and additional packages
        ARM: dts: stm32: fix i2s endpoint format property for stm32mp15xx-dkx
        ARM: dts: stm32: Fix audio routing on STM32MP15xx DHCOM PDK2
        ARM: dts: stm32: add required supplies of ov5640 in stm32mp157c-ev1
        ARM: dts: stm32: Update to generic ADC channel binding on DHSOM systems
        ARM: dts: stm32: adopt generic iio bindings for adc channels on dhcor-testbench
        ARM: dts: stm32: adopt generic iio bindings for adc channels on dhcor-drc
        ARM: dts: stm32: adopt generic iio bindings for adc channels on emstamp-argon
        ARM: dts: stm32: adopt generic iio bindings for adc channels on stm32mp157c-ed1
        ARM: dts: stm32: enable adc on stm32mp15xx-dkx boards
        ARM: dts: stm32: add vrefint support to adc2 on stm32mp15
        ...
      
      Link: https://lore.kernel.org/r/080fc303-45c1-6cc0-4c5e-694e730896a6@foss.st.comSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      868a11b6
  3. 08 Jun, 2023 12 commits
  4. 06 Jun, 2023 2 commits
  5. 05 Jun, 2023 10 commits
  6. 02 Jun, 2023 10 commits
  7. 30 May, 2023 1 commit