Skip to content

Commit 2151759

Browse files
committed
Merge remote-tracking branch 'asus/rk3288_linux_release_v2.4.0_20210520' into HEAD
Change-Id: I12a4ddca7529cfabc2622a1c0a115bb4229539e6
2 parents d424d01 + 3518b90 commit 2151759

File tree

121 files changed

+12726
-6955
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+12726
-6955
lines changed

arch/arm/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,6 @@ config ARCH_NR_GPIO
14941494
default 416 if ARCH_SUNXI
14951495
default 392 if ARCH_U8500
14961496
default 352 if ARCH_VT8500
1497-
default 288 if ARCH_ROCKCHIP
14981497
default 264 if MACH_H4700
14991498
default 0
15001499
help

arch/arm/boot/dts/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,8 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
547547
rk3288-evb-android-rk818-lvds.dtb \
548548
rk3288-evb-android-rk818-mipi.dtb \
549549
rk3288-evb-android-rk818-mipi-edp.dtb \
550+
rk3288-evb-rk628-hdmi2csi-avb.dtb \
551+
rk3288-evb-rk628-hdmi2dsi-avb.dtb \
550552
rk3288-evb-rk628-hdmi2gvi-avb.dtb \
551553
rk3288-evb-rk628-rgb2dsi-avb.dtb \
552554
rk3288-evb-rk628-rgb2gvi-avb.dtb \

arch/arm/boot/dts/rk312x.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
#size-cells = <1>;
5757

5858
aliases {
59+
ethernet0 = &gmac;
5960
serial0 = &uart0;
6061
serial1 = &uart1;
6162
serial2 = &uart2;

arch/arm/boot/dts/rk322x.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
interrupt-parent = <&gic>;
5656

5757
aliases {
58+
ethernet0 = &gmac;
5859
serial0 = &uart0;
5960
serial1 = &uart1;
6061
serial2 = &uart2;
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
// Copyright (c) 2020 Fuzhou Rockchip Electronics Co., Ltd
3+
4+
/dts-v1/;
5+
#include "rk3288-evb-rk628.dtsi"
6+
7+
/ {
8+
model = "Rockchip RK3288 EVB RK628 Board";
9+
compatible = "rockchip,rk3288-evb-rk628", "rockchip,rk3288";
10+
11+
chosen {
12+
bootargs = "rootwait earlycon=uart8250,mmio32,0xff690000 vmalloc=496M swiotlb=1 console=ttyFIQ0 androidboot.baseband=N/A androidboot.veritymode=enforcing androidboot.hardware=rk30board androidboot.console=ttyFIQ0 init=/init kpti=0 androidboot.selinux=permissive";
13+
};
14+
15+
hdmiin-sound {
16+
compatible = "rockchip,rockchip-rt5651-rk628-sound";
17+
rockchip,cpu = <&i2s>;
18+
rockchip,codec = <&rt5651>;
19+
status = "okay";
20+
};
21+
};
22+
23+
&firmware_android {
24+
compatible = "android,firmware";
25+
boot_devices = "ff0f0000.dwmmc";
26+
27+
vbmeta {
28+
compatible = "android,vbmeta";
29+
parts = "vbmeta,boot,system,vendor,dtbo";
30+
};
31+
32+
fstab {
33+
compatible = "android,fstab";
34+
35+
vendor {
36+
compatible = "android,vendor";
37+
dev = "/dev/block/by-name/vendor";
38+
type = "ext4";
39+
mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
40+
fsmgr_flags = "wait,avb";
41+
};
42+
};
43+
};
44+
45+
&video_phy {
46+
status = "okay";
47+
};
48+
49+
&hdmi {
50+
status = "okay";
51+
};
52+
53+
&hdmi_in_vopb {
54+
status = "disabled";
55+
};
56+
57+
&hdmi_in_vopl {
58+
status = "okay";
59+
};
60+
61+
&route_hdmi {
62+
connect = <&vopl_out_hdmi>;
63+
status = "disabled";
64+
};
65+
66+
&rk628 {
67+
reg = <0x51>;
68+
interrupt-parent = <&gpio7>;
69+
interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
70+
enable-gpios = <&gpio5 RK_PC3 GPIO_ACTIVE_HIGH>;
71+
reset-gpios = <&gpio7 RK_PB4 GPIO_ACTIVE_LOW>;
72+
status = "okay";
73+
};
74+
75+
&rk628_combrxphy {
76+
status = "okay";
77+
};
78+
79+
&rk628_combtxphy {
80+
status = "okay";
81+
};
82+
83+
&rk628_csi {
84+
status = "okay";
85+
/*
86+
* If the hpd output level is inverted on the circuit,
87+
* the following configuration needs to be enabled.
88+
*/
89+
/* hpd-output-inverted; */
90+
plugin-det-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
91+
power-gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
92+
rockchip,camera-module-index = <0>;
93+
rockchip,camera-module-facing = "back";
94+
rockchip,camera-module-name = "RK628-CSI";
95+
rockchip,camera-module-lens-name = "NC";
96+
97+
port {
98+
hdmiin_out0: endpoint {
99+
remote-endpoint = <&mipi_in>;
100+
data-lanes = <1 2 3 4>;
101+
};
102+
};
103+
};
104+
105+
&mipi_phy_rx0 {
106+
status = "okay";
107+
108+
ports {
109+
#address-cells = <1>;
110+
#size-cells = <0>;
111+
112+
port@0 {
113+
reg = <0>;
114+
#address-cells = <1>;
115+
#size-cells = <0>;
116+
117+
mipi_in: endpoint@1 {
118+
reg = <1>;
119+
remote-endpoint = <&hdmiin_out0>;
120+
data-lanes = <1 2 3 4>;
121+
};
122+
};
123+
124+
port@1 {
125+
reg = <1>;
126+
#address-cells = <1>;
127+
#size-cells = <0>;
128+
129+
dphy_rx_out: endpoint@0 {
130+
reg = <0>;
131+
remote-endpoint = <&isp_mipi_in>;
132+
};
133+
};
134+
};
135+
};
136+
137+
&rkisp1 {
138+
status = "okay";
139+
port {
140+
#address-cells = <1>;
141+
#size-cells = <0>;
142+
143+
isp_mipi_in: endpoint@0 {
144+
reg = <0>;
145+
remote-endpoint = <&dphy_rx_out>;
146+
};
147+
};
148+
};
149+
150+
&isp_mmu {
151+
status = "okay";
152+
};

0 commit comments

Comments
 (0)