xref: /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/rk3399-box-rev2.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2022 Rockchip Electronics Co., Ltd.
4 *
5 */
6
7/dts-v1/;
8#include "rk3399-box.dtsi"
9
10/ {
11	model = "Rockchip RK3399 Board rev2 (BOX)";
12	compatible = "rockchip-box-rev2","rockchip,rk3399-box";
13};
14
15&pinctrl {
16	pinctrl-names = "default";
17	pinctrl-0 = <&cpt_gpio>;
18
19	sdio0 {
20		sdio0_bus1: sdio0-bus1 {
21			rockchip,pins =
22				<2 RK_PC4 1 &pcfg_pull_up_20ma>;
23		};
24
25		sdio0_bus4: sdio0-bus4 {
26			rockchip,pins =
27				<2 RK_PC4 1 &pcfg_pull_up_20ma>,
28				<2 RK_PC5 1 &pcfg_pull_up_20ma>,
29				<2 RK_PC6 1 &pcfg_pull_up_20ma>,
30				<2 RK_PC7 1 &pcfg_pull_up_20ma>;
31		};
32
33		sdio0_cmd: sdio0-cmd {
34			rockchip,pins =
35				<2 RK_PD0 1 &pcfg_pull_up_20ma>;
36		};
37
38		sdio0_clk: sdio0-clk {
39			rockchip,pins =
40				<2 RK_PD1 1 &pcfg_pull_none_20ma>;
41		};
42	};
43
44	sdmmc {
45		sdmmc_bus1: sdmmc-bus1 {
46			rockchip,pins =
47				<4 RK_PB0 1 &pcfg_pull_up_8ma>;
48		};
49
50		sdmmc_bus4: sdmmc-bus4 {
51			rockchip,pins =
52				<4 RK_PB0 1 &pcfg_pull_up_8ma>,
53				<4 RK_PB1 1 &pcfg_pull_up_8ma>,
54				<4 RK_PB2 1 &pcfg_pull_up_8ma>,
55				<4 RK_PB3 1 &pcfg_pull_up_8ma>;
56		};
57
58		sdmmc_clk: sdmmc-clk {
59			rockchip,pins =
60				<4 RK_PB4 1 &pcfg_pull_none_18ma>;
61		};
62
63		sdmmc_cmd: sdmmc-cmd {
64			rockchip,pins =
65				<4 RK_PB5 1 &pcfg_pull_up_8ma>;
66		};
67	};
68
69	fusb30x {
70		fusb0_int: fusb0-int {
71			rockchip,pins =
72				<1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
73		};
74	};
75
76	compat {
77		cpt_gpio: cpt-gpio {
78			rockchip,pins =
79				<1 RK_PC2 RK_FUNC_GPIO &pcfg_output_low>;
80		};
81	};
82};
83
84&i2c4 {
85	status = "okay";
86	fusb0: fusb30x@22 {
87		compatible = "fairchild,fusb302";
88		reg = <0x22>;
89		pinctrl-names = "default";
90		pinctrl-0 = <&fusb0_int>;
91		vbus-5v-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
92		int-n-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
93		status = "okay";
94	};
95};
96
97&cdn_dp {
98	status = "okay";
99	extcon = <&fusb0>;
100};
101
102&hdmi_in_vopl {
103	status = "disabled";
104};
105
106&dp_in_vopb {
107	status = "disabled";
108};
109
110&route_hdmi {
111	status = "okay";
112};
113
114&hdmi {
115	status = "okay";
116	rockchip,phy-table =
117		<74250000 0x8009 0x0004 0x0272>,
118		<165000000 0x802b 0x0004 0x0209>,
119		<297000000 0x8039 0x0005 0x028d>,
120		<594000000 0x8039 0x0000 0x019d>,
121		<000000000 0x0000 0x0000 0x0000>;
122};
123