According to upstream commit d64420e816 ("arm64: dts: rockchip:
bulk convert gpios to their constant counterparts") replace
RK_FUNC_x -> x and RK_GPIOx -> x.
sed -i -e "
/rockchip,pins *=/bcheck
b # to end of script
:append-next-line
N
:check
/^[^;]*$/bappend-next-line
s/<RK_GPIO\([0-9]\) /<\1 /g
s/<\([^ ][^ ]* *\)0 /<\1RK_PA0 /g
s/<\([^ ][^ ]* *\)1 /<\1RK_PA1 /g
s/<\([^ ][^ ]* *\)2 /<\1RK_PA2 /g
s/<\([^ ][^ ]* *\)3 /<\1RK_PA3 /g
s/<\([^ ][^ ]* *\)4 /<\1RK_PA4 /g
s/<\([^ ][^ ]* *\)5 /<\1RK_PA5 /g
s/<\([^ ][^ ]* *\)6 /<\1RK_PA6 /g
s/<\([^ ][^ ]* *\)7 /<\1RK_PA7 /g
s/<\([^ ][^ ]* *\)8 /<\1RK_PB0 /g
s/<\([^ ][^ ]* *\)9 /<\1RK_PB1 /g
s/<\([^ ][^ ]* *\)10 /<\1RK_PB2 /g
s/<\([^ ][^ ]* *\)11 /<\1RK_PB3 /g
s/<\([^ ][^ ]* *\)12 /<\1RK_PB4 /g
s/<\([^ ][^ ]* *\)13 /<\1RK_PB5 /g
s/<\([^ ][^ ]* *\)14 /<\1RK_PB6 /g
s/<\([^ ][^ ]* *\)15 /<\1RK_PB7 /g
s/<\([^ ][^ ]* *\)16 /<\1RK_PC0 /g
s/<\([^ ][^ ]* *\)17 /<\1RK_PC1 /g
s/<\([^ ][^ ]* *\)18 /<\1RK_PC2 /g
s/<\([^ ][^ ]* *\)19 /<\1RK_PC3 /g
s/<\([^ ][^ ]* *\)20 /<\1RK_PC4 /g
s/<\([^ ][^ ]* *\)21 /<\1RK_PC5 /g
s/<\([^ ][^ ]* *\)22 /<\1RK_PC6 /g
s/<\([^ ][^ ]* *\)23 /<\1RK_PC7 /g
s/<\([^ ][^ ]* *\)24 /<\1RK_PD0 /g
s/<\([^ ][^ ]* *\)25 /<\1RK_PD1 /g
s/<\([^ ][^ ]* *\)26 /<\1RK_PD2 /g
s/<\([^ ][^ ]* *\)27 /<\1RK_PD3 /g
s/<\([^ ][^ ]* *\)28 /<\1RK_PD4 /g
s/<\([^ ][^ ]* *\)29 /<\1RK_PD5 /g
s/<\([^ ][^ ]* *\)30 /<\1RK_PD6 /g
s/<\([^ ][^ ]* *\)31 /<\1RK_PD7 /g
s/<\([^ ][^ ]* *[^ ][^ ]* *\)0 /<\1RK_FUNC_GPIO /g
s/<\([^ ][^ ]* *[^ ][^ ]* *\)RK_FUNC_\([1-9]\) /<\1\2 /g
" *.dts *.dtsi
Change-Id: I789e702620a4d0331d54474d48aaf68133795859
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
190 lines
3.7 KiB
Plaintext
190 lines
3.7 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include "rk3368-808.dtsi"
|
|
|
|
/ {
|
|
model = "Rockchip rk3368 808 evb board";
|
|
compatible = "rockchip,rk3368-808-evb", "rockchip,rk3368";
|
|
};
|
|
|
|
&chosen {
|
|
bootargs = "earlycon=uart8250,mmio32,0xff690000 console=ttyFIQ0 androidboot.baseband=N/A androidboot.veritymode=enforcing androidboot.hardware=rk30board androidboot.console=ttyFIQ0 androidboot.selinux=permissive init=/init kpti=0";
|
|
};
|
|
|
|
&fiq_debugger {
|
|
status = "okay";
|
|
};
|
|
|
|
&cif {
|
|
status = "disabled";
|
|
};
|
|
|
|
&cif_clkout {
|
|
/* cif_clkout */
|
|
rockchip,pins = <1 RK_PB3 1 &pcfg_pull_none_4ma>;
|
|
};
|
|
|
|
&dmc {
|
|
vop-dclk-mode = <1>;
|
|
status = "okay";
|
|
};
|
|
|
|
&isp_dvp_d2d9 {
|
|
rockchip,pins =
|
|
/* cif_data4 ... cif_data9 */
|
|
<1 RK_PA2 1 &pcfg_pull_down>,
|
|
<1 RK_PA3 1 &pcfg_pull_down>,
|
|
<1 RK_PA4 1 &pcfg_pull_down>,
|
|
<1 RK_PA5 1 &pcfg_pull_down>,
|
|
<1 RK_PA6 1 &pcfg_pull_down>,
|
|
<1 RK_PA7 1 &pcfg_pull_down>,
|
|
/* cif_sync, cif_href */
|
|
<1 RK_PB0 1 &pcfg_pull_down>,
|
|
<1 RK_PB1 1 &pcfg_pull_down>,
|
|
/* cif_clkin */
|
|
<1 RK_PB2 1 &pcfg_pull_down>;
|
|
};
|
|
|
|
&isp_dvp_d10d11 {
|
|
rockchip,pins =
|
|
/* cif_data10, cif_data11 */
|
|
<1 RK_PB6 1 &pcfg_pull_down>,
|
|
<1 RK_PB7 1 &pcfg_pull_down>;
|
|
};
|
|
|
|
&i2c3 {
|
|
status = "okay";
|
|
|
|
gc2145: gc2145@3c {
|
|
compatible = "galaxycore,gc2145";
|
|
reg = <0x3c>;
|
|
clocks = <&cru SCLK_VIP_OUT>;
|
|
clock-names = "xvclk";
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&isp_dvp_d2d9 &isp_dvp_d10d11 &cif_clkout>;
|
|
power-gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
|
|
pwdn-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>;
|
|
rockchip,camera-module-index = <1>;
|
|
rockchip,camera-module-facing = "front";
|
|
rockchip,camera-module-name = "CameraKing";
|
|
rockchip,camera-module-lens-name = "Largan";
|
|
port {
|
|
gc2145_out: endpoint {
|
|
remote-endpoint = <&isp_dvp_in>;
|
|
};
|
|
};
|
|
};
|
|
|
|
ov5695: ov5695@36 {
|
|
compatible = "ovti,ov5695";
|
|
reg = <0x36>;
|
|
clocks = <&cru SCLK_VIP_OUT>;
|
|
clock-names = "xvclk";
|
|
pwdn-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&cif_clkout>;
|
|
rockchip,camera-module-index = <0>;
|
|
rockchip,camera-module-facing = "back";
|
|
rockchip,camera-module-name = "TongJu";
|
|
rockchip,camera-module-lens-name = "CHT842-MD";
|
|
port {
|
|
ov5695_out: endpoint {
|
|
remote-endpoint = <&mipi_in>;
|
|
data-lanes = <1 2>;
|
|
};
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
&isp {
|
|
status = "disabled";
|
|
};
|
|
|
|
&isp_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&mipi_dphy_rx0 {
|
|
status = "okay";
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
mipi_in: endpoint@1 {
|
|
reg = <1>;
|
|
remote-endpoint = <&ov5695_out>;
|
|
data-lanes = <1 2>;
|
|
};
|
|
};
|
|
|
|
port@1 {
|
|
reg = <1>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
dphy_rx_out: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&isp_mipi_in>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&pinctrl {
|
|
pcfg_pull_none_4ma: pcfg-pull-none-4ma {
|
|
bias-disable;
|
|
drive-strength = <4>;
|
|
};
|
|
};
|
|
|
|
&rkisp1 {
|
|
status = "okay";
|
|
port {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
isp_dvp_in: endpoint@1 {
|
|
reg = <1>;
|
|
remote-endpoint = <&gc2145_out>;
|
|
};
|
|
|
|
isp_mipi_in: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&dphy_rx_out>;
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
/*
|
|
* In sleep mode, should be close vcca_33 and vcc_lan,
|
|
* but due to small defects in hardware settings and
|
|
* the system sleeps and wakes up, 4g module can not disconnect the network,
|
|
* so system sleep mode cannot be turned off vcca_33 and vcc_lan.
|
|
* This configuration will result in increased power consumption,
|
|
* please configure according to the actual needs of the project.
|
|
*/
|
|
&vcca_33 {
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
};
|
|
};
|
|
|
|
&vcc_lan {
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
};
|
|
};
|