|
| 1 | +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | +// Copyright (c) 2019 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"; |
| 13 | + }; |
| 14 | + |
| 15 | + vcc_lcd1: vcc-lcd1 { |
| 16 | + compatible = "regulator-fixed"; |
| 17 | + regulator-name = "vcc_lcd1"; |
| 18 | + regulator-min-microvolt = <3300000>; |
| 19 | + regulator-max-microvolt = <3300000>; |
| 20 | + regulator-boot-on; |
| 21 | + gpio = <&gpio7 RK_PB0 GPIO_ACTIVE_HIGH>; |
| 22 | + enable-active-high; |
| 23 | + vin-supply = <&vcc_io>; |
| 24 | + }; |
| 25 | + |
| 26 | + panel { |
| 27 | + compatible = "simple-panel"; |
| 28 | + backlight = <&backlight>; |
| 29 | + power-supply = <&vcc_lcd1>; |
| 30 | + prepare-delay-ms = <20>; |
| 31 | + enable-gpios = <&gpio7 21 GPIO_ACTIVE_HIGH>; |
| 32 | + enable-delay-ms = <200>; |
| 33 | + disable-delay-ms = <20>; |
| 34 | + unprepare-delay-ms = <20>; |
| 35 | + bus-format = <MEDIA_BUS_FMT_RGB888_1X24>; |
| 36 | + width-mm = <136>; |
| 37 | + height-mm = <217>; |
| 38 | + status = "okay"; |
| 39 | + |
| 40 | + display-timings { |
| 41 | + native-mode = <&timing>; |
| 42 | + |
| 43 | + timing: timing { |
| 44 | + clock-frequency = <594000000>; |
| 45 | + hactive = <3840>; |
| 46 | + vactive = <2160>; |
| 47 | + hback-porch = <296>; |
| 48 | + hfront-porch = <176>; |
| 49 | + vback-porch = <72>; |
| 50 | + vfront-porch = <8>; |
| 51 | + hsync-len = <88>; |
| 52 | + vsync-len = <10>; |
| 53 | + hsync-active = <1>; |
| 54 | + vsync-active = <1>; |
| 55 | + de-active = <0>; |
| 56 | + pixelclk-active = <0>; |
| 57 | + }; |
| 58 | + }; |
| 59 | + |
| 60 | + port { |
| 61 | + panel_in_gvi: endpoint { |
| 62 | + remote-endpoint = <&gvi_out_panel>; |
| 63 | + }; |
| 64 | + }; |
| 65 | + }; |
| 66 | +}; |
| 67 | + |
| 68 | +&backlight { |
| 69 | + enable-gpios = <&gpio7 2 GPIO_ACTIVE_LOW>; |
| 70 | +}; |
| 71 | + |
| 72 | +&rk628_combtxphy { |
| 73 | + status = "okay"; |
| 74 | +}; |
| 75 | + |
| 76 | +&firmware_android { |
| 77 | + compatible = "android,firmware"; |
| 78 | + boot_devices = "ff0f0000.dwmmc"; |
| 79 | + |
| 80 | + vbmeta { |
| 81 | + compatible = "android,vbmeta"; |
| 82 | + parts = "vbmeta,boot,system,vendor,dtbo"; |
| 83 | + }; |
| 84 | + |
| 85 | + fstab { |
| 86 | + compatible = "android,fstab"; |
| 87 | + |
| 88 | + vendor { |
| 89 | + compatible = "android,vendor"; |
| 90 | + dev = "/dev/block/by-name/vendor"; |
| 91 | + type = "ext4"; |
| 92 | + mnt_flags = "ro,barrier=1,inode_readahead_blks=8"; |
| 93 | + fsmgr_flags = "wait,avb"; |
| 94 | + }; |
| 95 | + }; |
| 96 | +}; |
| 97 | + |
| 98 | +&hdmi { |
| 99 | + status = "okay"; |
| 100 | + |
| 101 | + ports { |
| 102 | + #address-cells = <1>; |
| 103 | + #size-cells = <0>; |
| 104 | + port@1 { |
| 105 | + reg = <1>; |
| 106 | + |
| 107 | + hdmi_out_hdmirx: endpoint { |
| 108 | + remote-endpoint = <&hdmirx_in_hdmi>; |
| 109 | + }; |
| 110 | + }; |
| 111 | + }; |
| 112 | +}; |
| 113 | + |
| 114 | +&rk628_gvi { |
| 115 | + pinctrl-names = "default"; |
| 116 | + pinctrl-0 = <&gvi_hpd_pins>, <&gvi_lock_pins>; |
| 117 | + status = "okay"; |
| 118 | + rockchip,lane-num = <8>; |
| 119 | + /* rockchip,division-mode; */ |
| 120 | + |
| 121 | + ports { |
| 122 | + #address-cells = <1>; |
| 123 | + #size-cells = <0>; |
| 124 | + |
| 125 | + port@0 { |
| 126 | + reg = <0>; |
| 127 | + |
| 128 | + gvi_in_post_process: endpoint { |
| 129 | + remote-endpoint = <&post_process_out_gvi>; |
| 130 | + }; |
| 131 | + }; |
| 132 | + |
| 133 | + port@1 { |
| 134 | + reg = <1>; |
| 135 | + |
| 136 | + gvi_out_panel: endpoint { |
| 137 | + remote-endpoint = <&panel_in_gvi>; |
| 138 | + }; |
| 139 | + }; |
| 140 | + }; |
| 141 | +}; |
| 142 | + |
| 143 | +&rk628_combtxphy { |
| 144 | + status = "okay"; |
| 145 | +}; |
| 146 | + |
| 147 | +&rk628_post_process { |
| 148 | + status = "okay"; |
| 149 | + |
| 150 | + ports { |
| 151 | + #address-cells = <1>; |
| 152 | + #size-cells = <0>; |
| 153 | + |
| 154 | + port@0 { |
| 155 | + reg = <0>; |
| 156 | + |
| 157 | + post_process_in_hdmirx: endpoint { |
| 158 | + remote-endpoint = <&hdmirx_out_post_process>; |
| 159 | + }; |
| 160 | + }; |
| 161 | + |
| 162 | + |
| 163 | + port@1 { |
| 164 | + reg = <1>; |
| 165 | + |
| 166 | + post_process_out_gvi: endpoint { |
| 167 | + remote-endpoint = <&gvi_in_post_process>; |
| 168 | + }; |
| 169 | + }; |
| 170 | + }; |
| 171 | +}; |
| 172 | + |
| 173 | +&rk628_combrxphy { |
| 174 | + status = "okay"; |
| 175 | +}; |
| 176 | + |
| 177 | +&rk628_hdmirx { |
| 178 | + status = "okay"; |
| 179 | + |
| 180 | + ports { |
| 181 | + #address-cells = <1>; |
| 182 | + #size-cells = <0>; |
| 183 | + |
| 184 | + port@0 { |
| 185 | + reg = <0>; |
| 186 | + |
| 187 | + hdmirx_in_hdmi: endpoint { |
| 188 | + remote-endpoint = <&hdmi_out_hdmirx>; |
| 189 | + }; |
| 190 | + }; |
| 191 | + port@1 { |
| 192 | + reg = <1>; |
| 193 | + |
| 194 | + hdmirx_out_post_process: endpoint { |
| 195 | + remote-endpoint = <&post_process_in_hdmirx>; |
| 196 | + }; |
| 197 | + }; |
| 198 | + }; |
| 199 | +}; |
| 200 | + |
| 201 | +&hdmi_in_vopl { |
| 202 | + status = "disabled"; |
| 203 | +}; |
| 204 | + |
| 205 | +&hdmi_in_vopb { |
| 206 | + status = "okay"; |
| 207 | +}; |
| 208 | + |
| 209 | +&route_hdmi { |
| 210 | + connect = <&vopb_out_rgb>; |
| 211 | + status = "disabled"; |
| 212 | +}; |
0 commit comments