Skip to content

sunxi: add NetCube Nagami support and T113 secure boot enablement

Lukas Schmid u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 6 repliesIn review
  2. v16 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Add SID-derived read_rom_hwaddr support for SUN7I_GMAC through the DesignWare Ethernet driver.
- Drop the board-local get_unique_sid() wrapper and call sunxi_get_unique_sid() directly.
- Keep the sunxi SID MAC prototype out of designware.c block scope.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6sunxi: move SID MAC fallback from board env setup to EMAC read_rom_hwaddrarch/arm/include/asm/arch-sunxi/sys_proto.h arch/arm/mach-sunxi/cpu_info.c board/sunxi/board.c +3 more+102 -620 replies
2/6pinctrl: sunxi: add I2C3 mux for D1/T113-s3 (PG10/PG11)drivers/pinctrl/sunxi/pinctrl-sunxi.c+1 -00 replies
3/6sunxi: add SPC setup for R528/T113 secure boot handoffarch/arm/cpu/armv7/sunxi/Makefile arch/arm/cpu/armv7/sunxi/spc.c arch/arm/include/asm/arch-sunxi/cpu_sunxi_ncat2.h +3 more+65 -00 replies
4/6boot: allow SPL FIT signature verification without DMboot/Kconfig lib/rsa/rsa-verify.c+10 -72 replies
5/6sunxi: extend binman FIT description for signed SPL imagesarch/arm/dts/sunxi-u-boot.dtsi+64 -44 replies
6/6sunxi: add support for NetCube Systems Nagami and associated carrier boardsconfigs/netcube_nagami_basic_carrier_defconfig configs/netcube_nagami_basic_carrier_secureboot_defconfig configs/netcube_nagami_keypad_carrier_defconfig+138 -00 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchAndre Przywara
1/6
2/6R-b
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] sunxi: add NetCube Nagami support and T113 secure boot enablement

This series adds support for the NetCube Systems Nagami T113-based system-on-module and its associated carrier boards, along with the sunxi changes needed to boot signed FIT images from SPL in secure mode on R528/T113.

The Nagami module is based on the Allwinner T113-S3/T113-S4 family and the included defconfigs cover the basic carrier, keypad carrier, and a secure boot example configuration for the basic carrier.

To support the secure boot flow in SPL, the series adds the missing sunxi pieces for R528/T113: I2C3 pinmux support, early SPC setup for non-secure peripheral handoff, non-DM SPL FIT signature verification, and signed SPL image generation in the sunxi binman/FIT description.

The SID MAC fallback handling is also cleaned up. The original fix used a board-level check for whether nvmem-cells were present in the DT. This version moves the fallback into the Ethernet drivers instead of env_setup, so the sunxi EMAC and DesignWare GMAC paths share a generic implementation.

Changes in v2:
- Add SID-derived read_rom_hwaddr support for SUN7I_GMAC through the DesignWare Ethernet driver.
- Drop the board-local get_unique_sid() wrapper and call sunxi_get_unique_sid() directly.
- Keep the sunxi SID MAC prototype out of designware.c block scope.

Lukas Schmid (6):
sunxi: move SID MAC fallback from board env setup to EMAC
read_rom_hwaddr
pinctrl: sunxi: add I2C3 mux for D1/T113-s3 (PG10/PG11)
sunxi: add SPC setup for R528/T113 secure boot handoff
boot: allow SPL FIT signature verification without DM
sunxi: extend binman FIT description for signed SPL images
sunxi: add support for NetCube Systems Nagami and associated carrier
boards

 arch/arm/cpu/armv7/sunxi/Makefile             |  1 +
 arch/arm/cpu/armv7/sunxi/spc.c                | 20 ++++++
 arch/arm/dts/sunxi-u-boot.dtsi                | 68 +++++++++++++++++--
 .../include/asm/arch-sunxi/cpu_sunxi_ncat2.h  | 27 ++++++++
 arch/arm/include/asm/arch-sunxi/sys_proto.h   | 14 ++++
 arch/arm/mach-sunxi/board.c                   |  1 +
 arch/arm/mach-sunxi/clock_sun50i_h6.c         |  8 +++
 arch/arm/mach-sunxi/cpu_info.c                | 44 ++++++++++++
 board/sunxi/board.c                           | 64 +----------------
 boot/Kconfig                                  |  1 -
 .../netcube_nagami_basic_carrier_defconfig    | 43 ++++++++++++
 ..._nagami_basic_carrier_secureboot_defconfig | 52 ++++++++++++++
 .../netcube_nagami_keypad_carrier_defconfig   | 43 ++++++++++++
 drivers/net/designware.c                      | 20 ++++++
 drivers/net/sun8i_emac.c                      | 15 ++++
 drivers/net/sunxi_emac.c                      | 15 ++++
 drivers/pinctrl/sunxi/pinctrl-sunxi.c         |  1 +
 lib/rsa/rsa-verify.c                          | 16 +++--
 18 files changed, 380 insertions(+), 73 deletions(-)
 create mode 100644 arch/arm/cpu/armv7/sunxi/spc.c
 create mode 100644 configs/netcube_nagami_basic_carrier_defconfig
 create mode 100644 configs/netcube_nagami_basic_carrier_secureboot_defconfig
 create mode 100644 configs/netcube_nagami_keypad_carrier_defconfig
Signature · 1 line
2.47.3