linux-sunxi.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 00/13] Add support for Allwinner R329
@ 2021-07-22  6:30 Icenowy Zheng
  2021-07-22  6:30 ` [RFC PATCH 01/13] sunxi: decide the inclusion of SCP by SCP_ADDR existence Icenowy Zheng
                   ` (12 more replies)
  0 siblings, 13 replies; 17+ messages in thread
From: Icenowy Zheng @ 2021-07-22  6:30 UTC (permalink / raw)
  To: Jagan Teki, Andre Przywara, Jernej Skrabec, Samuel Holland
  Cc: u-boot, linux-sunxi, Icenowy Zheng

This patchset adds Allwinner R329 support to U-Boot.

First, some code refactors happen for SoCs w/o SCP/MMC2.

Then the basical support for R329 come as several parts (memory map,
clocks, pinmux, DRAM, final Kconfig option).

Then, as the RFC part of this patchset, some device tree related
changes.

Finally it comes the defconfig file for a R329 board, Sipeed Maix IIA
Dock.

This patchset is RFC mainly because of the DT-related part, as no DT
binding is mainlined in Linux now (it's still WIP). All other patches
are ready for being reviewed and, if proper, merged.

Icenowy Zheng (13):
  sunxi: decide the inclusion of SCP by SCP_ADDR existence
  sunxi: only include alias for eMMC when mmc2 used
  mmc: sunxi: conditionally include MMC2 initialization code
  sunxi: add memory addresses for R329 SoC
  sunxi: add support for R329 clocks
  sunxi: add support for basical pinmux setup on R329
  sunxi: add support for R329 DRAM controller
  sunxi: add Kconfig option for R329
  sunxi: sync R329 CCU binding headers from internal WIP kernel tree
  clk: sunxi: add support for R329 in sunxi DM clock driver
  mmc: sunxi: add support for R329 MMC controller
  sunxi: sync R329 DTs from internal WIP kernel tree
  sunxi: add support for Sipeed Maix IIA Dock board

 arch/arm/cpu/armv8/fel_utils.S                |   2 +-
 arch/arm/dts/Makefile                         |   2 +
 arch/arm/dts/sun50i-r329-maix-iia-dock.dts    |  36 ++
 arch/arm/dts/sun50i-r329-maix-iia.dtsi        |  45 +++
 arch/arm/dts/sun50i-r329.dtsi                 | 225 +++++++++++
 arch/arm/dts/sunxi-u-boot.dtsi                |   8 +-
 arch/arm/include/asm/arch-sunxi/boot0.h       |   4 +-
 .../include/asm/arch-sunxi/clock_sun50i_h6.h  |  17 +
 arch/arm/include/asm/arch-sunxi/cpu.h         |   3 +
 .../include/asm/arch-sunxi/cpu_sun50i_r329.h  |  58 +++
 arch/arm/include/asm/arch-sunxi/dram.h        |   2 +
 .../include/asm/arch-sunxi/dram_sun50i_r329.h | 232 +++++++++++
 arch/arm/include/asm/arch-sunxi/gpio.h        |   3 +
 arch/arm/include/asm/arch-sunxi/prcm_sun50i.h |  33 ++
 arch/arm/mach-sunxi/Kconfig                   |  37 +-
 arch/arm/mach-sunxi/Makefile                  |   2 +
 arch/arm/mach-sunxi/board.c                   |   4 +
 arch/arm/mach-sunxi/clock_sun50i_h6.c         |  49 ++-
 arch/arm/mach-sunxi/cpu_info.c                |   2 +
 arch/arm/mach-sunxi/dram_sun50i_r329.c        | 377 ++++++++++++++++++
 arch/arm/mach-sunxi/dram_timings/Makefile     |   1 +
 arch/arm/mach-sunxi/dram_timings/ddr3_r329.c  |  89 +++++
 board/sunxi/MAINTAINERS                       |   5 +
 board/sunxi/board.c                           |  20 +
 common/spl/Kconfig                            |   1 +
 configs/sipeed_maix_iia_dock_defconfig        |   8 +
 drivers/clk/sunxi/Kconfig                     |   7 +
 drivers/clk/sunxi/Makefile                    |   1 +
 drivers/clk/sunxi/clk_r329.c                  |  94 +++++
 drivers/mmc/sunxi_mmc.c                       |   3 +
 include/configs/sunxi-common.h                |   3 +
 include/dt-bindings/clock/sun50i-r329-ccu.h   |  73 ++++
 include/dt-bindings/clock/sun50i-r329-r-ccu.h |  32 ++
 include/dt-bindings/reset/sun50i-r329-ccu.h   |  45 +++
 include/dt-bindings/reset/sun50i-r329-r-ccu.h |  23 ++
 35 files changed, 1535 insertions(+), 11 deletions(-)
 create mode 100644 arch/arm/dts/sun50i-r329-maix-iia-dock.dts
 create mode 100644 arch/arm/dts/sun50i-r329-maix-iia.dtsi
 create mode 100644 arch/arm/dts/sun50i-r329.dtsi
 create mode 100644 arch/arm/include/asm/arch-sunxi/cpu_sun50i_r329.h
 create mode 100644 arch/arm/include/asm/arch-sunxi/dram_sun50i_r329.h
 create mode 100644 arch/arm/mach-sunxi/dram_sun50i_r329.c
 create mode 100644 arch/arm/mach-sunxi/dram_timings/ddr3_r329.c
 create mode 100644 configs/sipeed_maix_iia_dock_defconfig
 create mode 100644 drivers/clk/sunxi/clk_r329.c
 create mode 100644 include/dt-bindings/clock/sun50i-r329-ccu.h
 create mode 100644 include/dt-bindings/clock/sun50i-r329-r-ccu.h
 create mode 100644 include/dt-bindings/reset/sun50i-r329-ccu.h
 create mode 100644 include/dt-bindings/reset/sun50i-r329-r-ccu.h

-- 
2.30.2


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-07-22 13:49 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-22  6:30 [RFC PATCH 00/13] Add support for Allwinner R329 Icenowy Zheng
2021-07-22  6:30 ` [RFC PATCH 01/13] sunxi: decide the inclusion of SCP by SCP_ADDR existence Icenowy Zheng
2021-07-22 13:35   ` Andre Przywara
2021-07-22  6:30 ` [RFC PATCH 02/13] sunxi: only include alias for eMMC when mmc2 used Icenowy Zheng
2021-07-22 13:46   ` Andre Przywara
2021-07-22  6:30 ` [RFC PATCH 03/13] mmc: sunxi: conditionally include MMC2 initialization code Icenowy Zheng
2021-07-22 13:48   ` Andre Przywara
2021-07-22  6:30 ` [RFC PATCH 04/13] sunxi: add memory addresses for R329 SoC Icenowy Zheng
2021-07-22  6:30 ` [RFC PATCH 05/13] sunxi: add support for R329 clocks Icenowy Zheng
2021-07-22  6:30 ` [RFC PATCH 06/13] sunxi: add support for basical pinmux setup on R329 Icenowy Zheng
2021-07-22  6:30 ` [RFC PATCH 07/13] sunxi: add support for R329 DRAM controller Icenowy Zheng
2021-07-22  6:30 ` [RFC PATCH 08/13] sunxi: add Kconfig option for R329 Icenowy Zheng
2021-07-22  6:30 ` [RFC PATCH 09/13] sunxi: sync R329 CCU binding headers from internal WIP kernel tree Icenowy Zheng
2021-07-22  6:30 ` [RFC PATCH 10/13] clk: sunxi: add support for R329 in sunxi DM clock driver Icenowy Zheng
2021-07-22  6:30 ` [RFC PATCH 11/13] mmc: sunxi: add support for R329 MMC controller Icenowy Zheng
2021-07-22  6:30 ` [RFC PATCH 12/13] sunxi: sync R329 DTs from internal WIP kernel tree Icenowy Zheng
2021-07-22  6:30 ` [RFC PATCH 13/13] sunxi: add support for Sipeed Maix IIA Dock board Icenowy Zheng

This is a public inbox, see mirroring instructions
on how to clone and mirror all data and code used for this inbox