From: Heiko Stuebner <heiko@sntech.de>
To: Fabio Estevam <festevam@gmail.com>
Cc: jonas@kwiboo.se, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
Fabio Estevam <festevam@nabladev.com>
Subject: Re: [PATCH v5 2/4] ARM: dts: rockchip: Add support for RV1103B
Date: Mon, 09 Mar 2026 22:24:52 +0100 [thread overview]
Message-ID: <47923648.fMDQidcC6G@phil> (raw)
In-Reply-To: <20260216010219.2131484-2-festevam@gmail.com>
Am Montag, 16. Februar 2026, 02:02:17 Mitteleuropäische Normalzeit schrieb Fabio Estevam:
> From: Fabio Estevam <festevam@nabladev.com>
>
> Add the initial RV1103B devicetree.
>
> Based on the 5.10 Rockchip vendor kernel.
>
> Signed-off-by: Fabio Estevam <festevam@nabladev.com>
> ---
> The <dt-bindings/clock/rockchip,rv1103b-cru.h> header comes from another
> series:
>
> https://lore.kernel.org/linux-devicetree/20260210022620.172570-1-festevam@gmail.com/
>
> Maybe Heiko could apply the clock series as well?
>
> Changes since v4:
> - None.
>
> .../boot/dts/rockchip/rv1103b-pinctrl.dtsi | 816 ++++++++++++++++++
> arch/arm/boot/dts/rockchip/rv1103b.dtsi | 257 ++++++
> 2 files changed, 1073 insertions(+)
> create mode 100644 arch/arm/boot/dts/rockchip/rv1103b-pinctrl.dtsi
> create mode 100644 arch/arm/boot/dts/rockchip/rv1103b.dtsi
> diff --git a/arch/arm/boot/dts/rockchip/rv1103b.dtsi b/arch/arm/boot/dts/rockchip/rv1103b.dtsi
> new file mode 100644
> index 000000000000..5955b249d4ce
> --- /dev/null
> +++ b/arch/arm/boot/dts/rockchip/rv1103b.dtsi
> @@ -0,0 +1,257 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Copyright (c) 2024 Rockchip Electronics Co., Ltd.
> + */
> +
> +#include <dt-bindings/clock/rockchip,rv1103b-cru.h>
> +#include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/interrupt-controller/irq.h>
> +#include <dt-bindings/interrupt-controller/arm-gic.h>
> +#include <dt-bindings/pinctrl/rockchip.h>
> +#include <dt-bindings/soc/rockchip,boot-mode.h>
> +
> +/ {
> + #address-cells = <1>;
> + #size-cells = <1>;
> +
> + compatible = "rockchip,rv1103b";
> +
> + interrupt-parent = <&gic>;
> +
> + arm-pmu {
> + compatible = "arm,cortex-a7-pmu";
> + interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-affinity = <&cpu0>;
> + };
> +
> + xin32k: oscillator-32k {
> + compatible = "fixed-clock";
> + clock-frequency = <32768>;
> + clock-output-names = "xin32k";
> + #clock-cells = <0>;
> + };
Please double-check where that xin32k is coming from in device-schematics.
Yes the xin24m is normally a dedicated oscillator, but the xin32k in
most cases is generated from the system-pmic.
So please check and most likely move that to the board dts.
Also, please sort node-names alphabetically (if there is no address)
> + xin24m: oscillator-24m {
> + compatible = "fixed-clock";
> + clock-frequency = <24000000>;
> + clock-output-names = "xin24m";
> + #clock-cells = <0>;
> + };
> +
> + cpus {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + cpu0: cpu@0 {
> + device_type = "cpu";
> + compatible = "arm,cortex-a7";
> + reg = <0x0>;
> + clocks = <&cru ARMCLK>;
> + };
> + };
> +
> + timer {
> + compatible = "arm,armv7-timer";
> + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>,
> + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>;
> + clock-frequency = <24000000>;
> + };
> +
> + pinctrl: pinctrl {
> + compatible = "rockchip,rv1103b-pinctrl";
> + rockchip,grf = <&ioc>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges;
> +
> + gpio0: gpio@20520000 {
> + compatible = "rockchip,gpio-bank";
> + reg = <0x20520000 0x200>;
> + interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&cru PCLK_PMU_GPIO0>, <&cru DBCLK_PMU_GPIO0>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + };
> +
> + gpio1: gpio@20d80000 {
> + compatible = "rockchip,gpio-bank";
> + reg = <0x20d80000 0x200>;
> + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&cru PCLK_GPIO1>, <&cru DBCLK_GPIO1>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + };
> +
> + gpio2: gpio@20840000 {
> + compatible = "rockchip,gpio-bank";
> + reg = <0x20840000 0x200>;
> + interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&cru PCLK_GPIO2>, <&cru DBCLK_GPIO2>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + };
> + };
> +
> + soc {
> + compatible = "simple-bus";
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges;
> +
> + cru: clock-controller@20000000 {
> + compatible = "rockchip,rv1103b-cru";
> + reg = <0x20000000 0x81000>;
> + #clock-cells = <1>;
> + #reset-cells = <1>;
> + bootph-all;
I don't think we want u-boot-specific properties in mainline.
They are normally kept in separate -u-boot.dtsi files
> + };
[...]
> + uart1: serial@20870000 {
> + compatible = "rockchip,rv1103b-uart", "snps,dw-apb-uart";
uart compatible, does not seem to have landed in the uart tree
> + reg = <0x20870000 0x100>;
> + interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
> + reg-shift = <2>;
> + reg-io-width = <4>;
> + clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
> + clock-names = "baudclk", "apb_pclk";
> + pinctrl-names = "default";
> + pinctrl-0 = <&uart1m0_xfer>;
> + status = "disabled";
> + };
[...]
> + wdt: watchdog@208d0000 {
> + compatible = "snps,dw-wdt";
please add a new compatible to the dw-wdt watchdog binding
> + reg = <0x208d0000 0x100>;
> + clocks = <&cru TCLK_WDT_NS>, <&cru PCLK_WDT_NS>;
> + clock-names = "tclk", "pclk";
> + interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
> + status = "disabled";
> + };
> +
Heiko
next prev parent reply other threads:[~2026-03-09 21:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-16 1:02 [PATCH v5 1/4] dt-bindings: soc: rockchip: grf: Add RV1103B compatibles Fabio Estevam
2026-02-16 1:02 ` [PATCH v5 2/4] ARM: dts: rockchip: Add support for RV1103B Fabio Estevam
2026-03-09 21:24 ` Heiko Stuebner [this message]
2026-03-10 23:26 ` Fabio Estevam
2026-02-16 1:02 ` [PATCH v5 3/4] dt-bindings: arm: rockchip: Add Omega4 Evaluation board Fabio Estevam
2026-02-16 17:47 ` Conor Dooley
2026-02-16 1:02 ` [PATCH v5 4/4] ARM: dts: rockchip: Add Onion Omega4 Evaluation Board Fabio Estevam
2026-03-09 14:57 ` [PATCH v5 1/4] dt-bindings: soc: rockchip: grf: Add RV1103B compatibles Fabio Estevam
2026-03-09 19:40 ` Heiko Stuebner
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=47923648.fMDQidcC6G@phil \
--to=heiko@sntech.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=festevam@nabladev.com \
--cc=jonas@kwiboo.se \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=robh@kernel.org \
/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