389 lines
		
	
	
		
			8.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			389 lines
		
	
	
		
			8.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| /*
 | |
|  * (C) Copyright 2016 Rockchip Electronics Co., Ltd
 | |
|  *
 | |
|  * SPDX-License-Identifier:     GPL-2.0+
 | |
|  */
 | |
| 
 | |
| /dts-v1/;
 | |
| 
 | |
| #include "rv1108.dtsi"
 | |
| #include "rv1108-u-boot.dtsi"
 | |
| #include "rv1108-sdram-ddr3-400.dtsi"
 | |
| #include <dt-bindings/input/input.h>
 | |
| 
 | |
| / {
 | |
| 	model = "Rockchip RV1108 Evaluation board";
 | |
| 	compatible = "rockchip,rv1108-evb", "rockchip,rv1108";
 | |
| 
 | |
| 	memory@60000000 {
 | |
| 		device_type = "memory";
 | |
| 		reg = <0x60000000 0x08000000>;
 | |
| 	};
 | |
| 
 | |
| 	chosen {
 | |
| 		stdout-path = "serial2:1500000n8";
 | |
| 	};
 | |
| 
 | |
| 	adc-keys {
 | |
| 		compatible = "adc-keys";
 | |
| 		io-channels = <&saradc 0>;
 | |
| 		volup-key {
 | |
| 			linux,code = <KEY_VOLUMEUP>;
 | |
| 			label = "volume up";
 | |
| 			press-threshold-microvolt = <18000>;
 | |
| 		};
 | |
| 	};
 | |
| 
 | |
| 	backlight: backlight {
 | |
| 		compatible = "pwm-backlight";
 | |
| 		pwms = <&pwm0 0 25000 0>;
 | |
| 		default-brightness-level = <200>;
 | |
| 		brightness-levels = <
 | |
| 			  0   1   2   3   4   5   6   7
 | |
| 			  8   9  10  11  12  13  14  15
 | |
| 			 16  17  18  19  20  21  22  23
 | |
| 			 24  25  26  27  28  29  30  31
 | |
| 			 32  33  34  35  36  37  38  39
 | |
| 			 40  41  42  43  44  45  46  47
 | |
| 			 48  49  50  51  52  53  54  55
 | |
| 			 56  57  58  59  60  61  62  63
 | |
| 			 64  65  66  67  68  69  70  71
 | |
| 			 72  73  74  75  76  77  78  79
 | |
| 			 80  81  82  83  84  85  86  87
 | |
| 			 88  89  90  91  92  93  94  95
 | |
| 			 96  97  98  99 100 101 102 103
 | |
| 			104 105 106 107 108 109 110 111
 | |
| 			112 113 114 115 116 117 118 119
 | |
| 			120 121 122 123 124 125 126 127
 | |
| 			128 129 130 131 132 133 134 135
 | |
| 			136 137 138 139 140 141 142 143
 | |
| 			144 145 146 147 148 149 150 151
 | |
| 			152 153 154 155 156 157 158 159
 | |
| 			160 161 162 163 164 165 166 167
 | |
| 			168 169 170 171 172 173 174 175
 | |
| 			176 177 178 179 180 181 182 183
 | |
| 			184 185 186 187 188 189 190 191
 | |
| 			192 193 194 195 196 197 198 199
 | |
| 			200 201 202 203 204 205 206 207
 | |
| 			208 209 210 211 212 213 214 215
 | |
| 			216 217 218 219 220 221 222 223
 | |
| 			224 225 226 227 228 229 230 231
 | |
| 			232 233 234 235 236 237 238 239
 | |
| 			240 241 242 243 244 245 246 247
 | |
| 			248 249 250 251 252 253 254 255>;
 | |
| 	};
 | |
| 
 | |
| 	vcc5v0_otg: vcc5v0-otg-drv {
 | |
| 		compatible = "regulator-fixed";
 | |
| 		enable-active-high;
 | |
| 		regulator-name = "vcc5v0_otg";
 | |
| 		gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
 | |
| 		regulator-min-microvolt = <5000000>;
 | |
| 		regulator-max-microvolt = <5000000>;
 | |
| 	};
 | |
| 
 | |
| 	vcc_phy: vcc-phy-regulator {
 | |
| 		compatible = "regulator-fixed";
 | |
| 		enable-active-high;
 | |
| 		regulator-name = "vcc_phy";
 | |
| 		regulator-min-microvolt = <3300000>;
 | |
| 		regulator-max-microvolt = <3300000>;
 | |
| 		regulator-always-on;
 | |
| 		regulator-boot-on;
 | |
| 	};
 | |
| };
 | |
| 
 | |
| &display_subsystem {
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &dsi {
 | |
| 	status = "okay";
 | |
| 
 | |
| 	panel: panel@0 {
 | |
| 		compatible = "simple-panel-dsi";
 | |
| 		reset-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_LOW>;
 | |
| 		enable-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
 | |
| 		prepare-delay-ms = <20>;
 | |
| 		reset-delay-ms = <20>;
 | |
| 		init-delay-ms = <20>;
 | |
| 		enable-delay-ms = <20>;
 | |
| 		reg =<0>;
 | |
| 		dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
 | |
| 			      MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
 | |
| 		dsi,format = <MIPI_DSI_FMT_RGB888>;
 | |
| 		dsi,lanes = <4>;
 | |
| 		status = "okay";
 | |
| 
 | |
| 		panel-init-sequence = [
 | |
| 			39 00 06 F0 55 AA 52 08 00
 | |
| 			39 00 05 B0 0F 0F 1E 14
 | |
| 			15 00 02 B2 00
 | |
| 			15 00 02 B6 03
 | |
| 			39 00 15 C0 03 00 06 07 08 09 00 00 00 00 02 00 0A 0B 0C 0D 00 00 00 00
 | |
| 			39 00 11 C1 08 24 24 01 18 24 9F 85 08 24 24 01 18 24 95 85
 | |
| 			39 00 19 C2 03 05 1B 24 13 31 01 05 1B 24 13 31 03 05 1B 38 00 11 02 05 1B 38 00 11
 | |
| 			39 00 19 C3 02 05 1B 24 13 11 03 05 1B 24 13 11 03 05 1B 38 00 11 02 05 1B 38 00 11
 | |
| 			39 00 06 F0 55 AA 52 08 01
 | |
| 			15 00 02 B5 1E
 | |
| 			15 00 02 B6 2D
 | |
| 			15 00 02 B7 04
 | |
| 			15 00 02 B8 05
 | |
| 			15 00 02 B9 04
 | |
| 			15 00 02 BA 14
 | |
| 			15 00 02 BB 2F
 | |
| 			15 00 02 BE 12
 | |
| 			39 00 04 C2 00 35 07
 | |
| 			39 00 06 F0 55 AA 52 08 02
 | |
| 			15 00 02 C9 13
 | |
| 			39 00 04 D4 02 04 2C
 | |
| 			39 00 24 E1 00 91 AE CB E6 54 FF 1e 33 43 55 4F 66 78 8B 55 9D AC C0 CF 55 E0 e8 F2 FB AA 03 0D 15 1F AA 27 2C 31 34
 | |
| 			39 00 24 E2 00 AD C6 E4 FD 55 11 2A 3B 49 55 54 6B 7C 8F 55 A1 AF C3 D1 55 E2 EA F3 FC AA 04 0E 15 20 AA 28 2D 32 35
 | |
| 			39 00 24 E3 55 05 1E 37 4B 55 5A 64 72 7F 55 8B A3 B8 D1 A5 E4 F6 0E 23 AA 39 42 4F 59 AA 64 70 7A 86 AA 90 96 9C 9F
 | |
| 			39 00 07 8F 5A 96 3C C3 A5 69
 | |
| 			15 00 02 89 00
 | |
| 			39 00 04 8C 55 49 53
 | |
| 			15 00 02 9A 5A
 | |
| 			39 00 05 FF A5 5A 13 86
 | |
| 			39 00 03 FE 01 54
 | |
| 			15 00 02 35 00
 | |
| 			15 96 02 11 00
 | |
| 			15 32 02 29 00
 | |
| 		];
 | |
| 
 | |
| 		display-timings {
 | |
| 			native-mode = <&timing_e555hbm2>;
 | |
| 
 | |
| 			timing_e555hbm2: timing0 {
 | |
| 				clock-frequency = <62000000>;
 | |
| 				hactive = <720>;
 | |
| 				vactive = <1280>;
 | |
| 				hsync-len = <4>;
 | |
| 				hback-porch = <20>;
 | |
| 				hfront-porch = <32>;
 | |
| 				vsync-len = <4>;
 | |
| 				vback-porch = <15>;
 | |
| 				vfront-porch = <15>;
 | |
| 				hsync-active = <0>;
 | |
| 				vsync-active = <0>;
 | |
| 				de-active = <0>;
 | |
| 				pixelclk-active = <0>;
 | |
| 			};
 | |
| 		};
 | |
| 	};
 | |
| };
 | |
| 
 | |
| &gmac {
 | |
| 	status = "okay";
 | |
| 	clock_in_out ="output";
 | |
| 	phy-supply = <&vcc_phy>;
 | |
| 	snps,reset-active-low;
 | |
| 	snps,reset-delays-us = <0 10000 1000000>;
 | |
| 	snps,reset-gpio = <&gpio1 RK_PC1 GPIO_ACTIVE_LOW>;
 | |
| };
 | |
| 
 | |
| &emmc {
 | |
| 	bus-width = <8>;
 | |
| 	cap-mmc-highspeed;
 | |
| 	supports-emmc;
 | |
| 	disable-wp;
 | |
| 	non-removable;
 | |
| 	num-slots = <1>;
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &mipi_dphy {
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &pwm0 {
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &route_dsi {
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &saradc {
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &sdmmc {
 | |
| 	bus-width = <4>;
 | |
| 	cap-mmc-highspeed;
 | |
| 	cap-sd-highspeed;
 | |
| 	disable-wp;
 | |
| 	max-frequency = <150000000>;
 | |
| 	pinctrl-names = "default";
 | |
| 	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &sfc {
 | |
| 	compatible = "rockchip,rksfc";
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &u2phy {
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &u2phy_otg {
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &u2phy_host {
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &uart0 {
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &uart1 {
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &uart2 {
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &usb20_otg {
 | |
| 	vbus-supply = <&vcc5v0_otg>;
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &usb_host_ehci {
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &usb_host_ohci {
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &vop {
 | |
| 	status = "okay";
 | |
| };
 | |
| 
 | |
| &i2c0 {
 | |
| 	i2c-scl-rising-time-ns = <275>;
 | |
| 	i2c-scl-falling-time-ns = <16>;
 | |
| 	clock-frequency = <200000>;
 | |
| 	nack-retry = <1>;
 | |
| 	status = "okay";
 | |
| 
 | |
| 	rk805: pmic@18 {
 | |
| 		compatible = "rockchip,rk805";
 | |
| 		status = "okay";
 | |
| 		reg = <0x18>;
 | |
| 		interrupt-parent = <&gpio1>;
 | |
| 		interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
 | |
| 		pinctrl-names = "default";
 | |
| 		pinctrl-0 = <&pmic_int_l>;
 | |
| 		rockchip,system-power-controller;
 | |
| 		wakeup-source;
 | |
| 		gpio-controller;
 | |
| 		#gpio-cells = <2>;
 | |
| 		#clock-cells = <1>;
 | |
| 		clock-output-names = "xin32k", "rk805-clkout2";
 | |
| 
 | |
| 		pwrkey {
 | |
| 			status = "okay";
 | |
| 		};
 | |
| 
 | |
| 		regulators {
 | |
| 			vdd_arm: DCDC_REG1 {
 | |
| 				regulator-name = "vdd_arm";
 | |
| 				regulator-min-microvolt = <712500>;
 | |
| 				regulator-max-microvolt = <1450000>;
 | |
| 				regulator-ramp-delay = <6001>;
 | |
| 				regulator-boot-on;
 | |
| 				regulator-always-on;
 | |
| 				regulator-state-mem {
 | |
| 					regulator-on-in-suspend;
 | |
| 					regulator-suspend-microvolt = <1000000>;
 | |
| 				};
 | |
| 			};
 | |
| 
 | |
| 			vdd_cam: DCDC_REG2 {
 | |
| 				regulator-name = "vdd_cam";
 | |
| 				regulator-min-microvolt = <712500>;
 | |
| 				regulator-max-microvolt = <2000000>;
 | |
| 				regulator-ramp-delay = <6001>;
 | |
| 				regulator-boot-on;
 | |
| 				regulator-always-on;
 | |
| 				regulator-state-mem {
 | |
| 					regulator-on-in-suspend;
 | |
| 					regulator-suspend-microvolt = <2000000>;
 | |
| 				};
 | |
| 			};
 | |
| 
 | |
| 			vcc_ddr: DCDC_REG3 {
 | |
| 				regulator-name = "vcc_ddr";
 | |
| 				regulator-boot-on;
 | |
| 				regulator-always-on;
 | |
| 				regulator-state-mem {
 | |
| 					regulator-on-in-suspend;
 | |
| 				};
 | |
| 			};
 | |
| 
 | |
| 			vcc_io: DCDC_REG4 {
 | |
| 				regulator-name = "vcc_io";
 | |
| 				regulator-min-microvolt = <3300000>;
 | |
| 				regulator-max-microvolt = <3300000>;
 | |
| 				regulator-boot-on;
 | |
| 				regulator-always-on;
 | |
| 				regulator-state-mem {
 | |
| 					regulator-on-in-suspend;
 | |
| 					regulator-suspend-microvolt = <3300000>;
 | |
| 				};
 | |
| 			};
 | |
| 
 | |
| 			vdd_10: LDO_REG1 {
 | |
| 				regulator-name = "vdd_10";
 | |
| 				regulator-min-microvolt = <1000000>;
 | |
| 				regulator-max-microvolt = <1000000>;
 | |
| 				regulator-boot-on;
 | |
| 				regulator-always-on;
 | |
| 				regulator-state-mem {
 | |
| 					regulator-on-in-suspend;
 | |
| 					regulator-suspend-microvolt = <1000000>;
 | |
| 				};
 | |
| 			};
 | |
| 
 | |
| 			vcc_18emmc: LDO_REG2 {
 | |
| 				regulator-name = "vcc_18emmc";
 | |
| 				regulator-min-microvolt = <1800000>;
 | |
| 				regulator-max-microvolt = <1800000>;
 | |
| 				regulator-boot-on;
 | |
| 				regulator-always-on;
 | |
| 				regulator-state-mem {
 | |
| 					regulator-on-in-suspend;
 | |
| 					regulator-suspend-microvolt = <1800000>;
 | |
| 				};
 | |
| 			};
 | |
| 
 | |
| 			vdd_10_pmu: LDO_REG3 {
 | |
| 				regulator-name = "vdd_10_pmu";
 | |
| 				regulator-min-microvolt = <1000000>;
 | |
| 				regulator-max-microvolt = <1000000>;
 | |
| 				regulator-boot-on;
 | |
| 				regulator-always-on;
 | |
| 				regulator-state-mem {
 | |
| 					regulator-on-in-suspend;
 | |
| 					regulator-suspend-microvolt = <1000000>;
 | |
| 				};
 | |
| 			};
 | |
| 		};
 | |
| 	};
 | |
| };
 | |
| 
 | |
| &pinctrl {
 | |
| 	pmic {
 | |
| 		pmic_int_l: pmic-int-l {
 | |
| 		rockchip,pins =
 | |
| 			<0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>;
 | |
| 		};
 | |
| 	};
 | |
| };
 |