From: Yao Zi <ziyao@disroot.org>
To: Jonas Karlman <jonas@kwiboo.se>
Cc: Simon Glass <sjg@chromium.org>,
Philipp Tomsich <philipp.tomsich@vrull.eu>,
Kever Yang <kever.yang@rock-chips.com>,
Tom Rini <trini@konsulko.com>, Sumit Garg <sumit.garg@kernel.org>,
Heiko Stuebner <heiko@sntech.de>,
"u-boot@lists.denx.de" <u-boot@lists.denx.de>
Subject: Re: [PATCH 2/2] board: rockchip: Add FriendlyElec NanoPi Zero2
Date: Mon, 20 Oct 2025 02:27:50 +0000 [thread overview]
Message-ID: <aPWeJiP1gnrR0Px2@pie> (raw)
In-Reply-To: <55af1d20-4dd0-4b77-8cab-035921c405a0@kwiboo.se>
On Sun, Oct 19, 2025 at 12:52:17PM +0200, Jonas Karlman wrote:
> Hi Yao Zi,
>
> On 10/19/2025 7:26 AM, Yao Zi wrote:
> > FriendlElec NanoPi Zero2 is a super-tiny development board based on
> > RK3528A SoC. Add board-level configuration and U-Boot-specific
> > devicetree piece for it.
> >
> > Signed-off-by: Yao Zi <ziyao@disroot.org>
> > ---
> > arch/arm/dts/rk3528-nanopi-zero2-u-boot.dtsi | 11 +++++
> > arch/arm/mach-rockchip/rk3528/MAINTAINERS | 6 +++
> > configs/nanopi-zero2_defconfig | 46 ++++++++++++++++++++
> > doc/board/rockchip/rockchip.rst | 1 +
> > 4 files changed, 64 insertions(+)
> > create mode 100644 arch/arm/dts/rk3528-nanopi-zero2-u-boot.dtsi
> > create mode 100644 configs/nanopi-zero2_defconfig
> >
> > diff --git a/arch/arm/dts/rk3528-nanopi-zero2-u-boot.dtsi b/arch/arm/dts/rk3528-nanopi-zero2-u-boot.dtsi
> > new file mode 100644
> > index 00000000000..3f65d2e1ff1
> > --- /dev/null
> > +++ b/arch/arm/dts/rk3528-nanopi-zero2-u-boot.dtsi
> > @@ -0,0 +1,11 @@
> > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> > +
> > +#include "rk3528-u-boot.dtsi"
> > +
> > +&vdd_arm {
> > + regulator-init-microvolt = <953000>;
> > +};
> > +
> > +&vdd_logic {
> > + regulator-init-microvolt = <901000>;
> > +};
> > diff --git a/arch/arm/mach-rockchip/rk3528/MAINTAINERS b/arch/arm/mach-rockchip/rk3528/MAINTAINERS
> > index f343f71cf7f..853480a58ce 100644
> > --- a/arch/arm/mach-rockchip/rk3528/MAINTAINERS
> > +++ b/arch/arm/mach-rockchip/rk3528/MAINTAINERS
> > @@ -9,3 +9,9 @@ M: Jonas Karlman <jonas@kwiboo.se>
> > S: Maintained
> > F: arch/arm/dts/rk3528-radxa-e20c*
> > F: configs/radxa-e20c-rk3528_defconfig
> > +
> > +NANOPI-ZERO2
> > +M: Yao Zi <ziyao@disroot.org>
>
> Feel free to also add me as a maintainer (or reviewer):
>
> M: Jonas Karlman <jonas@kwiboo.se>
Sure, will add you as a maintainer.
> > +S: Maintained
> > +F: arch/arm/dts/rk3528-nanopi-zero2*
> > +F: configs/nanopi-zero2_defconfig
>
> The defconfig should be named nanopi-zero2-rk3528_defconfig to match the
> Rockchip board defconfig naming scheme.
>
> > diff --git a/configs/nanopi-zero2_defconfig b/configs/nanopi-zero2_defconfig
> > new file mode 100644
> > index 00000000000..af14589568c
> > --- /dev/null
> > +++ b/configs/nanopi-zero2_defconfig
>
> As mentioned above, please name this nanopi-zero2-rk3528_defconfig.
>
> > @@ -0,0 +1,46 @@
> > +CONFIG_ARM=y
> > +CONFIG_SKIP_LOWLEVEL_INIT=y
> > +CONFIG_COUNTER_FREQUENCY=24000000
> > +CONFIG_ARCH_ROCKCHIP=y
> > +CONFIG_DEFAULT_DEVICE_TREE="rockchip/rk3528-nanopi-zero2"
> > +CONFIG_ROCKCHIP_RK3528=y
> > +CONFIG_SYS_LOAD_ADDR=0xc00800
> > +CONFIG_DEBUG_UART_BASE=0xFF9F0000
> > +CONFIG_DEBUG_UART_CLOCK=24000000
> > +CONFIG_DEBUG_UART=y
> > +# CONFIG_BOOTMETH_VBE is not set
>
> There should be no need to drop this, I only drop it in generic Rockchip
> defconfig because it that defconfig is supposed to be as minimal and
> generic as possible.
>
> > +CONFIG_DEFAULT_FDT_FILE="rockchip/rk3528-nanopi-zero2.dtb"
> > +# CONFIG_DISPLAY_CPUINFO is not set
>
> Please add following to seed random generator for linux.
>
> CONFIG_BOARD_RNG_SEED=y
>
> > +CONFIG_SPL_MAX_SIZE=0x40000
> > +# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
> > +CONFIG_CMD_MEMINFO=y
> > +CONFIG_CMD_MEMINFO_MAP=y
>
> Please add following to add the adc command:
>
> CONFIG_CMD_ADC=y
>
> > +CONFIG_CMD_GPIO=y
> > +CONFIG_CMD_GPT=y
> > +CONFIG_CMD_MISC=y
> > +CONFIG_CMD_MMC=y
>
> Please add following USB commands to future proof:
>
> CONFIG_CMD_USB=y
> CONFIG_CMD_ROCKUSB=y
> CONFIG_CMD_USB_MASS_STORAGE=y
>
> > +# CONFIG_CMD_SETEXPR is not set
> > +CONFIG_CMD_RNG=y
>
> Please add following to enable regulator debug:
>
> CONFIG_CMD_REGULATOR=y
>
> > +# CONFIG_SPL_DOS_PARTITION is not set
> > +CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
> > +CONFIG_BUTTON=y
> > +CONFIG_BUTTON_ADC=y
>
> Please add following to simplify addition of USB related Kconfig options:
>
> # CONFIG_USB_FUNCTION_FASTBOOT is not set
>
> > +CONFIG_ROCKCHIP_GPIO=y
> > +CONFIG_LED=y
> > +CONFIG_LED_GPIO=y
> > +CONFIG_SUPPORT_EMMC_RPMB=y
> > +CONFIG_MMC_DW=y
> > +CONFIG_MMC_DW_ROCKCHIP=y
> > +CONFIG_MMC_SDHCI=y
> > +CONFIG_MMC_SDHCI_SDMA=y
> > +CONFIG_MMC_SDHCI_ROCKCHIP=y
> > +CONFIG_PHY_REALTEK=y
>
> Please add following:
>
> CONFIG_DM_MDIO=y
>
> > +CONFIG_DWC_ETH_QOS=y
> > +CONFIG_DWC_ETH_QOS_ROCKCHIP=y
> > +CONFIG_PHY_ROCKCHIP_INNO_USB2=y
>
> Please add following to prepare for USB3/PCIe:
>
> CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
>
> Please add following to actually enable support for initializing the two
> pwm-regulators on this board.
>
> CONFIG_REGULATOR_PWM=y
>
> > +CONFIG_DM_REGULATOR_GPIO=y
> > +CONFIG_PWM_ROCKCHIP=y
> > +CONFIG_BAUDRATE=1500000
> > +CONFIG_DEBUG_UART_SHIFT=2
> > +CONFIG_SYS_NS16550_MEM32=y
>
> Please add following to prepare for future USB support:
>
> CONFIG_USB=y
> CONFIG_USB_XHCI_HCD=y
> CONFIG_USB_EHCI_HCD=y
> CONFIG_USB_EHCI_GENERIC=y
> CONFIG_USB_DWC3=y
> CONFIG_USB_DWC3_GENERIC=y
> CONFIG_USB_GADGET=y
> CONFIG_USB_GADGET_DOWNLOAD=y
> CONFIG_USB_FUNCTION_ROCKUSB=y
>
> > +CONFIG_ERRNO_STR=y
> > diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst
> > index de3aa79cb5c..b2b7de4e43a 100644
> > --- a/doc/board/rockchip/rockchip.rst
> > +++ b/doc/board/rockchip/rockchip.rst
> > @@ -100,6 +100,7 @@ List of mainline supported Rockchip boards:
> > - Theobroma Systems RK3399-Q7 SoM - Puma (puma_rk3399)
> >
> > * rk3528
> > + - FriendlyElec NanoPi Zero2 (nanopi-zero2)
>
> Please update to include the rk3528 suffix after the defconfig name.
>
> > - Generic RK3528 (generic-rk3528)
> > - Radxa E20C (radxa-e20c-rk3528)
> >
>
> With above adjustments this closely matches the defconfig I have been
> carrying in my rk3528 branch at [1] a few months.
>
> So with above fixed this is:
>
> Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
Thanks, these changes are all reasonable and I'll adapt them in v2.
Seems I did something wrong when doing savedefconfig and lost some
defconfig changes...
> [1] https://source.denx.de/u-boot/contributors/kwiboo/u-boot/-/commits/rk3528
>
> I plan to send out a series with the ROCK-2 and Sige1 board additions shortly.
>
> Regards,
> Jonas
Best regards,
Yao Zi
next prev parent reply other threads:[~2025-10-20 2:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-19 5:26 [PATCH 0/2] Add support for FriendlyElec NanoPi Zero2 board Yao Zi
2025-10-19 5:26 ` [PATCH 1/2] arm64: dts: rockchip: Add FriendlyElec NanoPi Zero2 Yao Zi
2025-10-19 5:26 ` [PATCH 2/2] board: " Yao Zi
2025-10-19 10:52 ` Jonas Karlman
2025-10-20 2:27 ` Yao Zi [this message]
2026-01-09 1:26 ` Jonas Karlman
2026-01-09 5:59 ` Yao Zi
2025-10-20 17:02 ` Quentin Schulz
2025-10-20 18:03 ` Jonas Karlman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aPWeJiP1gnrR0Px2@pie \
--to=ziyao@disroot.org \
--cc=heiko@sntech.de \
--cc=jonas@kwiboo.se \
--cc=kever.yang@rock-chips.com \
--cc=philipp.tomsich@vrull.eu \
--cc=sjg@chromium.org \
--cc=sumit.garg@kernel.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox