478 lines
9.1 KiB
Plaintext
Executable File
478 lines
9.1 KiB
Plaintext
Executable File
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2021 Rockchip Electronics Co., Ltd.
|
|
*
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include "rk3588s-orangepi-cm5.dtsi"
|
|
#include "rk3588-linux.dtsi"
|
|
#include "rk3588s-orangepi-cm5-camera1.dtsi"
|
|
#include "rk3588s-orangepi-cm5-camera2.dtsi"
|
|
#include "rk3588s-orangepi-cm5-camera3.dtsi"
|
|
#include "rk3588s-orangepi-cm5-camera4.dtsi"
|
|
|
|
/ {
|
|
model = "Orange Pi CM5";
|
|
compatible = "rockchip,rk3588s-orangepi-cm5", "rockchip,rk3588";
|
|
|
|
vcc3v3_sys: vcc3v3-sys {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc3v3_sys";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
enable-active-high;
|
|
gpios = <&gpio4 RK_PA3 GPIO_ACTIVE_HIGH>;
|
|
startup-delay-us = <50000>;
|
|
};
|
|
|
|
vcc_1v1_nldo_s3: vcc-1v1-nldo-s3 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_1v1_nldo_s3";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1100000>;
|
|
regulator-max-microvolt = <1100000>;
|
|
vin-supply = <&vcc5v0_sys>;
|
|
};
|
|
|
|
vcc5v0_host: vcc5v0-host {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc5v0_host";
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
enable-active-high;
|
|
gpio = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>;
|
|
vin-supply = <&vcc5v0_usb>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&vcc5v0_host_en>;
|
|
};
|
|
|
|
leds: gpio-leds {
|
|
compatible = "gpio-leds";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 =<&leds_gpio>;
|
|
status = "okay";
|
|
|
|
lan1@0 {
|
|
gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_LOW>;
|
|
label = "lan1";
|
|
default-state = "on";
|
|
};
|
|
|
|
lan2@1 {
|
|
gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
|
|
label = "lan2";
|
|
default-state = "on";
|
|
};
|
|
|
|
wan@3 {
|
|
gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_LOW>;
|
|
label = "wan";
|
|
default-state = "on";
|
|
};
|
|
|
|
power@4 {
|
|
gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
|
|
label = "power";
|
|
default-state = "off";
|
|
};
|
|
};
|
|
|
|
gpio_keys: gpio-keys {
|
|
compatible = "gpio-keys";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&key1_pin>;
|
|
|
|
button@1 {
|
|
debounce-interval = <50>;
|
|
gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_LOW>;
|
|
label = "K1";
|
|
linux,code = <KEY_POWER>;
|
|
wakeup-source;
|
|
};
|
|
};
|
|
|
|
fan: pwm-fan {
|
|
compatible = "pwm-fan";
|
|
#cooling-cells = <2>;
|
|
pwms = <&pwm13 0 50000 0>;
|
|
cooling-levels = <0 50 100 150 200 255>;
|
|
rockchip,temp-trips = <
|
|
50000 1
|
|
55000 2
|
|
60000 3
|
|
65000 4
|
|
70000 5
|
|
>;
|
|
|
|
status = "okay";
|
|
};
|
|
|
|
ext_cam_ov5647_clk: external-camera-ov5647-clock {
|
|
compatible = "fixed-clock";
|
|
clock-frequency = <25000000>;
|
|
clock-output-names = "ext_cam_ov5647_clk";
|
|
#clock-cells = <0>;
|
|
};
|
|
};
|
|
|
|
&gmac1 {
|
|
/* Use rgmii-rxid mode to disable rx delay inside Soc */
|
|
phy-mode = "rgmii-rxid";
|
|
clock_in_out = "output";
|
|
|
|
snps,reset-gpio = <&gpio3 RK_PB2 GPIO_ACTIVE_LOW>;
|
|
snps,reset-active-low;
|
|
/* Reset time is 20ms, 100ms for rtl8211f */
|
|
snps,reset-delays-us = <0 20000 100000>;
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&gmac1_miim
|
|
&gmac1_tx_bus2
|
|
&gmac1_rx_bus2
|
|
&gmac1_rgmii_clk
|
|
&gmac1_rgmii_bus>;
|
|
|
|
tx_delay = <0x42>;
|
|
/* rx_delay = <0x3f>; */
|
|
|
|
phy-handle = <&rgmii_phy1>;
|
|
status = "okay";
|
|
};
|
|
|
|
&mdio1 {
|
|
rgmii_phy1: phy@1 {
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
reg = <0x1>;
|
|
};
|
|
};
|
|
|
|
&hdmi0 {
|
|
enable-gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
|
|
cec-enable;
|
|
status = "okay";
|
|
};
|
|
|
|
&hdmi0_in_vp0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&hdmi0_sound {
|
|
status = "okay";
|
|
};
|
|
|
|
&hdptxphy_hdmi0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&route_hdmi0{
|
|
status = "okay";
|
|
};
|
|
|
|
&i2s5_8ch {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2s1_8ch {
|
|
status = "disabled";
|
|
rockchip,i2s-tx-route = <3 2 1 0>;
|
|
rockchip,i2s-rx-route = <1 3 2 0>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2s1m0_sclk
|
|
&i2s1m0_lrck
|
|
&i2s1m0_sdi1
|
|
&i2s1m0_sdo3>;
|
|
};
|
|
|
|
&i2c0 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c0m2_xfer>;
|
|
|
|
vdd_cpu_big0_s0: vdd_cpu_big0_mem_s0: rk8602@42 {
|
|
compatible = "rockchip,rk8602";
|
|
reg = <0x42>;
|
|
vin-supply = <&vcc5v0_sys>;
|
|
regulator-compatible = "rk860x-reg";
|
|
regulator-name = "vdd_cpu_big0_s0";
|
|
regulator-min-microvolt = <550000>;
|
|
regulator-max-microvolt = <1050000>;
|
|
regulator-ramp-delay = <2300>;
|
|
rockchip,suspend-voltage-selector = <1>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vdd_cpu_big1_s0: vdd_cpu_big1_mem_s0: rk8603@43 {
|
|
compatible = "rockchip,rk8603";
|
|
reg = <0x43>;
|
|
vin-supply = <&vcc5v0_sys>;
|
|
regulator-compatible = "rk860x-reg";
|
|
regulator-name = "vdd_cpu_big1_s0";
|
|
regulator-min-microvolt = <550000>;
|
|
regulator-max-microvolt = <1050000>;
|
|
regulator-ramp-delay = <2300>;
|
|
rockchip,suspend-voltage-selector = <1>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
};
|
|
|
|
&i2c2 {
|
|
status = "okay";
|
|
|
|
vdd_npu_s0: vdd_npu_mem_s0: rk8602@42 {
|
|
compatible = "rockchip,rk8602";
|
|
reg = <0x42>;
|
|
vin-supply = <&vcc5v0_sys>;
|
|
regulator-compatible = "rk860x-reg";
|
|
regulator-name = "vdd_npu_s0";
|
|
regulator-min-microvolt = <550000>;
|
|
regulator-max-microvolt = <950000>;
|
|
regulator-ramp-delay = <2300>;
|
|
rockchip,suspend-voltage-selector = <1>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
};
|
|
|
|
&i2c1 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c1m2_xfer>;
|
|
|
|
hym8563: hym8563@51 {
|
|
compatible = "haoyu,hym8563";
|
|
reg = <0x51>;
|
|
#clock-cells = <0>;
|
|
clock-frequency = <32768>;
|
|
clock-output-names = "hym8563";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&hym8563_int>;
|
|
interrupt-parent = <&gpio0>;
|
|
interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
|
|
wakeup-source;
|
|
};
|
|
};
|
|
|
|
&pwm7 {
|
|
compatible = "rockchip,remotectl-pwm";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pwm7m0_pins>;
|
|
remote_pwm_id = <3>;
|
|
handle_cpu_id = <1>;
|
|
remote_support_psci = <0>;
|
|
status = "okay";
|
|
|
|
ir_key1 {
|
|
rockchip,usercode = <0xfb04>;
|
|
rockchip,key_table =
|
|
<0xa3 KEY_ENTER>,
|
|
<0xe4 388>,
|
|
<0xf5 KEY_BACK>,
|
|
<0xbb KEY_UP>,
|
|
<0xe2 KEY_DOWN>,
|
|
<0xe3 KEY_LEFT>,
|
|
<0xb7 KEY_RIGHT>,
|
|
<0xe0 KEY_HOME>,
|
|
<0xba KEY_VOLUMEUP>,
|
|
<0xda KEY_VOLUMEUP>,
|
|
<0xe6 KEY_VOLUMEDOWN>,
|
|
<0xdb KEY_VOLUMEDOWN>,
|
|
<0xbc KEY_SEARCH>,
|
|
<0xb2 KEY_POWER>,
|
|
<0xe5 KEY_POWER>,
|
|
<0xde KEY_POWER>,
|
|
<0xdc KEY_MUTE>,
|
|
<0xa2 KEY_MENU>,
|
|
<0xec KEY_1>,
|
|
<0xef KEY_2>,
|
|
<0xee KEY_3>,
|
|
<0xf0 KEY_4>,
|
|
<0xf3 KEY_5>,
|
|
<0xf2 KEY_6>,
|
|
<0xf4 KEY_7>,
|
|
<0xf7 KEY_8>,
|
|
<0xf6 KEY_9>,
|
|
<0xb8 KEY_0>;
|
|
};
|
|
};
|
|
|
|
/* watchdog */
|
|
&wdt {
|
|
status = "okay";
|
|
};
|
|
|
|
&mipi_dcphy0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&mipi_dcphy1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkcif {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkcif_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkisp0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&isp0_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkisp1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&isp1_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
//phy2
|
|
&pcie2x1l1 {
|
|
reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pcie2x1l2 {
|
|
reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
|
|
status = "okay";
|
|
};
|
|
|
|
&sdmmc {
|
|
status = "okay";
|
|
|
|
/delete-property/ vmmc-supply;
|
|
};
|
|
|
|
&pinctrl
|
|
{
|
|
gpio-func {
|
|
leds_gpio: leds-gpio {
|
|
rockchip,pins =
|
|
<0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>,
|
|
<0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>,
|
|
<0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&dsi0 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&dsi1 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&u2phy0_otg {
|
|
phy-supply = <&vcc5v0_host>;
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy2_host {
|
|
phy-supply = <&vcc5v0_host>;
|
|
status = "okay";
|
|
};
|
|
|
|
&sdhci {
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&emmc_rstnout &emmc_bus8 &emmc_clk &emmc_cmd &emmc_data_strobe>;
|
|
};
|
|
|
|
&pinctrl {
|
|
usb {
|
|
vcc5v0_host_en: vcc5v0-host-en {
|
|
rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
hym8563 {
|
|
hym8563_int: hym8563-int {
|
|
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|
|
|
|
gpio-key {
|
|
key1_pin: key1-pin {
|
|
rockchip,pins = <3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pwm13 {
|
|
status = "okay";
|
|
pinctrl-names = "active";
|
|
pinctrl-0 = <&pwm13m1_pins>;
|
|
};
|
|
|
|
&pwm14 {
|
|
status = "disabled";
|
|
pinctrl-names = "active";
|
|
pinctrl-0 = <&pwm14m1_pins>;
|
|
};
|
|
|
|
&pwm15 {
|
|
status = "disabled";
|
|
pinctrl-names = "active";
|
|
pinctrl-0 = <&pwm15m1_pins>;
|
|
};
|
|
|
|
&i2c7 {
|
|
status = "disabled";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c7m3_xfer>;
|
|
};
|
|
|
|
&uart4 {
|
|
status = "disabled";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart4m2_xfer>;
|
|
};
|
|
|
|
|
|
&uart7 {
|
|
status = "disabled";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart7m2_xfer>;
|
|
};
|
|
|
|
&can1 {
|
|
status = "disabled";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&can1m1_pins>;
|
|
assigned-clocks = <&cru CLK_CAN1>;
|
|
assigned-clock-rates = <200000000>;
|
|
};
|
|
|
|
&spi0 {
|
|
status = "disabled";
|
|
assigned-clocks = <&cru CLK_SPI0>;
|
|
assigned-clock-rates = <200000000>;
|
|
num-cs = <2>;
|
|
};
|