Various V3/S3/V3s fixes and improvements
v3 cover Various V3/S3/V3s fixes and improvements
From: Paul Kocialkowski <[email protected]>
Changes since v2:
- Dropped MACH_SUN8I_V3 rename and split
- Dropped unused pin introductions
Changes since v1:
- Added a common MACH_SUN8I_V3_V3S option;
- Disabled secure RAM;
- Switched to OF_UPSTREAM;
- Added some pinmux support.
- Removed internal PHY default value;
Paul Kocialkowski (3):
sunxi: Disable secure SRAM on sun8i platforms missing it
power: axp: Add default voltages for V3s/V3/S3
sunxi: Add support for the Lichee Pi Zero with Dock
arch/arm/cpu/armv7/Kconfig | 10 ++++++---- configs/Bananapi_M2_Ultra_defconfig | 1 - configs/LicheePi_Zero_Dock_defconfig | 6 ++++++ configs/LicheePi_Zero_defconfig | 1 - configs/bananapi_m2_berry_defconfig | 1 - configs/netcube_kumquat_defconfig | 1 - configs/pinecube_defconfig | 3 --- drivers/power/Kconfig | 8 ++++++-- 8 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 configs/LicheePi_Zero_Dock_defconfig
Signature · 1 line
2.54.0
PATCH v3 1/3 sunxi: Disable secure SRAM on sun8i platforms missing it
From: Paul Kocialkowski <[email protected]>
While most sun8i platforms have secure SRAM available, some do not. This is the case for the R40/V40 (based on sun7i) and V3/V3s.
Add the exceptions to the Kconfig default and update affected defconfigs to reflect the new default.
Also cleanup indent and breaking for related options.
--- arch/arm/cpu/armv7/Kconfig | 10 ++++++---- configs/Bananapi_M2_Ultra_defconfig | 1 - configs/LicheePi_Zero_defconfig | 1 - configs/bananapi_m2_berry_defconfig | 1 - configs/netcube_kumquat_defconfig | 1 - configs/pinecube_defconfig | 1 - 6 files changed, 6 insertions(+), 9 deletions(-)
arch/arm/cpu/armv7/Kconfig +6 -4
@@ -29,8 +29,10 @@ config ARMV7_BOOT_SEC_DEFAULT config HAS_ARMV7_SECURE_BASE bool "Enable support for a hardware secure memory area" - default y if ARCH_LS1021A || ARCH_MX7 || ARCH_MX7ULP || ARCH_STM32MP \ - || MACH_SUN6I || MACH_SUN7I || MACH_SUN8I || TEGRA124 + default y if ARCH_LS1021A || ARCH_MX7 || ARCH_MX7ULP || \ + ARCH_STM32MP || MACH_SUN6I || MACH_SUN7I || \ + (MACH_SUN8I && !MACH_SUN8I_R40 && !MACH_SUN8I_V3S) || \ + TEGRA124 config ARMV7_SECURE_BASE hex "Base address for secure mode memory"
@@ -53,8 +55,8 @@ config ARMV7_SECURE_RESERVE_SIZE config ARMV7_SECURE_MAX_SIZE hex - depends on ARMV7_SECURE_BASE && ARCH_STM32MP || MACH_SUN6I \ - || MACH_SUN7I || MACH_SUN8I + depends on ARMV7_SECURE_BASE && \ + (ARCH_STM32MP || MACH_SUN6I || MACH_SUN7I || MACH_SUN8I) default 0xbc00 if MACH_SUN8I && !MACH_SUN8I_H3 default 0x3c00 if MACH_SUN8I && MACH_SUN8I_H3 default 0x10000
configs/Bananapi_M2_Ultra_defconfig +0 -1
@@ -7,7 +7,6 @@ CONFIG_MACH_SUN8I_R40=y CONFIG_MMC_SUNXI_SLOT_EXTRA=2 CONFIG_SPL_SUNXI_LED_STATUS=y CONFIG_SPL_SUNXI_LED_STATUS_GPIO=244 -# CONFIG_HAS_ARMV7_SECURE_BASE is not set CONFIG_AHCI=y # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set CONFIG_SPL_I2C=y
configs/LicheePi_Zero_defconfig +0 -1
@@ -3,5 +3,4 @@ CONFIG_ARCH_SUNXI=y CONFIG_DEFAULT_DEVICE_TREE="allwinner/sun8i-v3s-licheepi-zero" CONFIG_SPL=y CONFIG_MACH_SUN8I_V3S=y -# CONFIG_HAS_ARMV7_SECURE_BASE is not set CONFIG_NO_NET=y
configs/bananapi_m2_berry_defconfig +0 -1
@@ -6,7 +6,6 @@ CONFIG_SPL=y CONFIG_MACH_SUN8I_R40=y CONFIG_SPL_SUNXI_LED_STATUS=y CONFIG_SPL_SUNXI_LED_STATUS_GPIO=244 -# CONFIG_HAS_ARMV7_SECURE_BASE is not set CONFIG_AHCI=y # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set CONFIG_SPL_I2C=y
configs/netcube_kumquat_defconfig +0 -1
@@ -5,7 +5,6 @@ CONFIG_DEFAULT_DEVICE_TREE="allwinner/sun8i-v3s-netcube-kumquat" CONFIG_SPL=y CONFIG_MACH_SUN8I_V3S=y CONFIG_SPL_SPI_SUNXI=y -# CONFIG_HAS_ARMV7_SECURE_BASE is not set # CONFIG_TIMESTAMP is not set CONFIG_BOOTDELAY=1 CONFIG_PREBOOT=""
configs/pinecube_defconfig +0 -1
@@ -7,7 +7,6 @@ CONFIG_MACH_SUN8I_V3S=y CONFIG_SUNXI_DRAM_DDR3_1333=y CONFIG_DRAM_ODT_EN=y CONFIG_I2C0_ENABLE=y -# CONFIG_HAS_ARMV7_SECURE_BASE is not set CONFIG_SPL_I2C=y CONFIG_SPL_SYS_I2C_LEGACY=y CONFIG_SYS_I2C_MVTWSI=y
Signature · 1 line
2.54.0
PATCH v3 2/3 power: axp: Add default voltages for V3s/V3/S3
In reply to Paul KocialkowskiFrom: Paul Kocialkowski <[email protected]>
The default voltages used by V3s boards differs from the usual AXP209 default that are used on older chips.
Correct the default voltages based on the Allwinner reference design schematics, which match boards found in the wild such as the Pinecube. Update the affected config.
--- configs/pinecube_defconfig | 2 -- drivers/power/Kconfig | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-)
configs/pinecube_defconfig +0 -2
@@ -16,7 +16,5 @@ CONFIG_MTD=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_SUN8I_EMAC=y CONFIG_AXP209_POWER=y -CONFIG_AXP_DCDC2_VOLT=1250 -CONFIG_AXP_DCDC3_VOLT=3300 CONFIG_CONS_INDEX=3 CONFIG_SPI=y
drivers/power/Kconfig +6 -2
@@ -187,10 +187,11 @@ config AXP_DCDC2_VOLT int "axp pmic dcdc2 voltage" depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER || AXP313_POWER || AXP717_POWER || AXP803_POWER default 900 if AXP818_POWER - default 1400 if AXP152_POWER || AXP209_POWER + default 1400 if AXP152_POWER || (AXP209_POWER && !MACH_SUN8I_V3S) default 1000 if AXP313_POWER default 1000 if AXP717_POWER default 1000 if AXP803_POWER + default 1250 if MACH_SUN8I_V3S default 1200 if MACH_SUN6I default 1100 if MACH_SUN8I default 0 if MACH_SUN9I
@@ -203,6 +204,7 @@ config AXP_DCDC2_VOLT On A80 boards dcdc2 powers the GPU and can be left off. On A83T boards dcdc2 is used for VDD-CPUA(cluster 0) and should be 0.9V. On R40 boards dcdc2 is VDD-CPU and should be 1.1V + On V3s/V3/S3 boards dcdc2 is VDD-CPU/VDD-SYS and should be 1.25V. On boards using the AXP313 or AXP717 it's often VDD-CPU. config AXP_DCDC3_VOLT
@@ -210,9 +212,10 @@ config AXP_DCDC3_VOLT depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER || AXP313_POWER || AXP717_POWER default 900 if AXP809_POWER || AXP818_POWER default 1500 if AXP152_POWER - default 1250 if AXP209_POWER + default 1250 if (AXP209_POWER && !MACH_SUN8I_V3S) default 1100 if AXP313_POWER default 1100 if MACH_SUN8I_R40 + default 3300 if MACH_SUN8I_V3S default 1200 if MACH_SUN6I || MACH_SUN8I ---help--- Set the voltage (mV) to program the axp pmic dcdc3 at, set to 0 to
@@ -224,6 +227,7 @@ config AXP_DCDC3_VOLT On A80 boards dcdc3 is used for VDD-CPUA(cluster 0) and should be 0.9V. On A83T boards dcdc3 is used for VDD-CPUB(cluster 1) and should be 0.9V. On R40 boards dcdc3 is VDD-SYS and VDD-GPU and should be 1.1V. + On V3s/V3/S3 boards dcdc3 is VCC-IO and should be 3.3V. On boards using the AXP313 or AXP717 it's often VDD-DRAM and should be 1.1V for LPDDR4.
Signature · 1 line
2.54.0
PATCH v3 3/3 sunxi: Add support for the Lichee Pi Zero with Dock
In reply to Paul KocialkowskiFrom: Paul Kocialkowski <[email protected]>
This adds a U-Boot config and device-tree build for the Lichee Pi Zero with Dock. Compared to the Lichee Pi Zero, it has an ethernet port (with internal PHY) so the EMAC driver and network support are enabled.
--- configs/LicheePi_Zero_Dock_defconfig | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 configs/LicheePi_Zero_Dock_defconfig
configs/LicheePi_Zero_Dock_defconfig new file +6 -0
@@ -0,0 +1,6 @@ +CONFIG_ARM=y +CONFIG_ARCH_SUNXI=y +CONFIG_DEFAULT_DEVICE_TREE="allwinner/sun8i-v3s-licheepi-zero-dock" +CONFIG_SPL=y +CONFIG_MACH_SUN8I_V3S=y +CONFIG_SUN8I_EMAC=y
Signature · 1 line
2.54.0