1 From 096ebfb74b19f2d4bdcbc33ae02e857ff4b3e0a0 Mon Sep 17 00:00:00 2001
2 From: Jagan Teki <jagan@amarulasolutions.com>
3 Date: Thu, 12 Jan 2023 16:29:02 +0530
4 Subject: [PATCH] arm64: dts: rockchip: Add Radxa Compute Module 3 IO board
6 Radxa Compute Module 3(CM3) IO board is an application board from Radxa
7 and is compatible with Raspberry Pi CM4 IO form factor.
21 - 40-pin GPIO expansion header
24 Radxa CM3 needs to mount on top of this IO board in order to create
25 complete Radxa CM3 IO board platform.
27 Add support for Radxa CM3 IO Board.
29 Co-developed-by: FUKAUMI Naoki <naoki@radxa.com>
30 Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
31 Co-developed-by: Manoj Sai <abbaraju.manojsai@amarulasolutions.com>
32 Signed-off-by: Manoj Sai <abbaraju.manojsai@amarulasolutions.com>
33 Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
34 Link: https://lore.kernel.org/r/20230112105902.192852-3-jagan@amarulasolutions.com
35 Signed-off-by: Heiko Stuebner <heiko@sntech.de>
37 arch/arm64/boot/dts/rockchip/Makefile | 1 +
38 .../boot/dts/rockchip/rk3566-radxa-cm3-io.dts | 179 ++++++++++++++++++
39 2 files changed, 180 insertions(+)
40 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts
42 --- a/arch/arm64/boot/dts/rockchip/Makefile
43 +++ b/arch/arm64/boot/dts/rockchip/Makefile
44 @@ -70,6 +70,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pi
45 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pinenote-v1.2.dtb
46 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-quartz64-a.dtb
47 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-quartz64-b.dtb
48 +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-radxa-cm3-io.dtb
49 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-roc-pc.dtb
50 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-soquartz-cm4.dtb
51 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb
53 +++ b/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts
55 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
57 + * Copyright (c) 2022 Radxa Limited
58 + * Copyright (c) 2022 Amarula Solutions(India)
62 +#include <dt-bindings/soc/rockchip,vop2.h>
63 +#include "rk3566.dtsi"
64 +#include "rk3566-radxa-cm3.dtsi"
67 + model = "Radxa Compute Module 3(CM3) IO Board";
68 + compatible = "radxa,radxa-cm3-io", "radxa,radxa-cm3", "rockchip,rk3566";
75 + stdout-path = "serial2:1500000n8";
79 + compatible = "hdmi-connector";
83 + hdmi_con_in: endpoint {
84 + remote-endpoint = <&hdmi_out_con>;
90 + compatible = "gpio-leds";
93 + gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_LOW>;
94 + color = <LED_COLOR_ID_GREEN>;
95 + function = LED_FUNCTION_ACTIVITY;
96 + linux,default-trigger = "heartbeat";
97 + pinctrl-names = "default";
98 + pinctrl-0 = <&pi_nled_activity>;
102 + vcc5v0_usb30: vcc5v0-usb30-regulator {
103 + compatible = "regulator-fixed";
104 + regulator-name = "vcc5v0_usb30";
105 + enable-active-high;
106 + gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_HIGH>;
107 + pinctrl-names = "default";
108 + pinctrl-0 = <&vcc5v0_usb30_en_h>;
109 + regulator-always-on;
110 + regulator-min-microvolt = <5000000>;
111 + regulator-max-microvolt = <5000000>;
112 + vin-supply = <&vcc_sys>;
115 + vcca1v8_image: vcca1v8-image-regulator {
116 + compatible = "regulator-fixed";
117 + regulator-name = "vcca1v8_image";
118 + regulator-always-on;
120 + regulator-min-microvolt = <1800000>;
121 + regulator-max-microvolt = <1800000>;
122 + vin-supply = <&vcc_1v8_p>;
125 + vdda0v9_image: vdda0v9-image-regulator {
126 + compatible = "regulator-fixed";
127 + regulator-name = "vcca0v9_image";
128 + regulator-always-on;
130 + regulator-min-microvolt = <900000>;
131 + regulator-max-microvolt = <900000>;
132 + vin-supply = <&vdda_0v9>;
141 + avdd-0v9-supply = <&vdda0v9_image>;
142 + avdd-1v8-supply = <&vcca1v8_image>;
147 + hdmi_in_vp0: endpoint {
148 + remote-endpoint = <&vp0_out_hdmi>;
153 + hdmi_out_con: endpoint {
154 + remote-endpoint = <&hdmi_con_in>;
164 + pi_nled_activity: pi-nled-activity {
165 + rockchip,pins = <4 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
170 + sdmmc_pwren: sdmmc-pwren {
171 + rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
176 + vcc5v0_usb30_en_h: vcc5v0-host-en-h {
177 + rockchip,pins = <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
187 + vqmmc-supply = <&vccio_sd>;
188 + pinctrl-names = "default";
189 + pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det &sdmmc0_pwren>;
198 + phy-supply = <&vcc5v0_usb30>;
219 + assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
220 + assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
229 + vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
230 + reg = <ROCKCHIP_VOP2_EP_HDMI0>;
231 + remote-endpoint = <&hdmi_in_vp0>;