|
| 1 | +/* |
| 2 | + * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd |
| 3 | + * |
| 4 | + * This file is dual-licensed: you can use it either under the terms |
| 5 | + * of the GPL or the X11 license, at your option. Note that this dual |
| 6 | + * licensing only applies to this file, and not this project as a |
| 7 | + * whole. |
| 8 | + * |
| 9 | + * a) This file is free software; you can redistribute it and/or |
| 10 | + * modify it under the terms of the GNU General Public License as |
| 11 | + * published by the Free Software Foundation; either version 2 of the |
| 12 | + * License, or (at your option) any later version. |
| 13 | + * |
| 14 | + * This file is distributed in the hope that it will be useful, |
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | + * GNU General Public License for more details. |
| 18 | + * |
| 19 | + * Or, alternatively, |
| 20 | + * |
| 21 | + * b) Permission is hereby granted, free of charge, to any person |
| 22 | + * obtaining a copy of this software and associated documentation |
| 23 | + * files (the "Software"), to deal in the Software without |
| 24 | + * restriction, including without limitation the rights to use, |
| 25 | + * copy, modify, merge, publish, distribute, sublicense, and/or |
| 26 | + * sell copies of the Software, and to permit persons to whom the |
| 27 | + * Software is furnished to do so, subject to the following |
| 28 | + * conditions: |
| 29 | + * |
| 30 | + * The above copyright notice and this permission notice shall be |
| 31 | + * included in all copies or substantial portions of the Software. |
| 32 | + * |
| 33 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 34 | + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 35 | + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 36 | + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 37 | + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 38 | + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 39 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 40 | + * OTHER DEALINGS IN THE SOFTWARE. |
| 41 | + */ |
| 42 | + |
| 43 | +#include "rk3288-evb-act8846.dts" |
| 44 | +#include <dt-bindings/display/media-bus-format.h> |
| 45 | + |
| 46 | +&edp { |
| 47 | + status = "disabled"; |
| 48 | + vcc-supply = <&vdd10_lcd>; |
| 49 | + vccio-supply = <&vcc18_lcd>; |
| 50 | +}; |
| 51 | + |
| 52 | +&hdmi { |
| 53 | + status = "disabled"; |
| 54 | +}; |
| 55 | + |
| 56 | +&dsi0 { |
| 57 | + status = "okay"; |
| 58 | + panel: panel { |
| 59 | + status = "okay"; |
| 60 | + compatible = "simple-panel-dsi"; |
| 61 | + reg = <0>; |
| 62 | + backlight = <&backlight>; |
| 63 | + enable-gpios = <&gpio7 6 GPIO_ACTIVE_HIGH>; |
| 64 | + supply = <&vcc_lcd>; |
| 65 | + bus-format = <MEDIA_BUS_FMT_RGB888_1X24>; |
| 66 | + dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST)>; |
| 67 | + dsi,format = <MIPI_DSI_FMT_RGB888>; |
| 68 | + dsi,lanes = <4>; |
| 69 | + delay,prepare = <120>; |
| 70 | + delay,enable = <100>; |
| 71 | + delay,reset = <100>; |
| 72 | + delay,init = <1>; |
| 73 | + panel-init-sequence = [ |
| 74 | + 15 00 02 FF 05 |
| 75 | + 15 00 02 FB 01 |
| 76 | + 15 78 02 C5 01 |
| 77 | + 15 00 02 FF EE |
| 78 | + 15 00 02 FB 01 |
| 79 | + 15 00 02 1F 45 |
| 80 | + 15 00 02 24 45 |
| 81 | + 15 00 02 38 C8 |
| 82 | + 15 00 02 39 27 |
| 83 | + 15 00 02 1E 77 |
| 84 | + 15 00 02 1D 0F |
| 85 | + 15 00 02 7E 71 |
| 86 | + 15 00 02 7C 03 |
| 87 | + 15 00 02 FF 01 |
| 88 | + 15 00 02 FB 01 |
| 89 | + 15 00 02 00 01 |
| 90 | + 15 00 02 01 55 |
| 91 | + 15 00 02 02 40 |
| 92 | + 15 00 02 05 40 |
| 93 | + 15 00 02 06 4A |
| 94 | + 15 00 02 07 24 |
| 95 | + 15 00 02 08 0C |
| 96 | + 15 00 02 0B 7D |
| 97 | + 15 00 02 0C 7D |
| 98 | + 15 00 02 0E B0 |
| 99 | + 15 00 02 0F AE |
| 100 | + 15 00 02 11 10 |
| 101 | + 15 00 02 12 10 |
| 102 | + 15 00 02 13 03 |
| 103 | + 15 00 02 14 4A |
| 104 | + 15 00 02 15 12 |
| 105 | + 15 00 02 16 12 |
| 106 | + 15 00 02 18 00 |
| 107 | + 15 00 02 19 77 |
| 108 | + 15 00 02 1A 55 |
| 109 | + 15 00 02 1B 13 |
| 110 | + 15 00 02 1C 00 |
| 111 | + 15 00 02 1D 00 |
| 112 | + 15 00 02 1E 13 |
| 113 | + 15 00 02 1F 00 |
| 114 | + 15 00 02 23 00 |
| 115 | + 15 00 02 24 00 |
| 116 | + 15 00 02 25 00 |
| 117 | + 15 00 02 26 00 |
| 118 | + 15 00 02 27 00 |
| 119 | + 15 00 02 28 00 |
| 120 | + 15 00 02 35 00 |
| 121 | + 15 00 02 66 00 |
| 122 | + 15 00 02 58 82 |
| 123 | + 15 00 02 59 02 |
| 124 | + 15 00 02 5A 02 |
| 125 | + 15 00 02 5B 02 |
| 126 | + 15 00 02 5C 82 |
| 127 | + 15 00 02 5D 82 |
| 128 | + 15 00 02 5E 02 |
| 129 | + 15 00 02 5F 02 |
| 130 | + 15 00 02 72 31 |
| 131 | + 15 00 02 FF 05 |
| 132 | + 15 00 02 FB 01 |
| 133 | + 15 00 02 00 01 |
| 134 | + 15 00 02 01 0B |
| 135 | + 15 00 02 02 0C |
| 136 | + 15 00 02 03 09 |
| 137 | + 15 00 02 04 0A |
| 138 | + 15 00 02 05 00 |
| 139 | + 15 00 02 06 0F |
| 140 | + 15 00 02 07 10 |
| 141 | + 15 00 02 08 00 |
| 142 | + 15 00 02 09 00 |
| 143 | + 15 00 02 0A 00 |
| 144 | + 15 00 02 0B 00 |
| 145 | + 15 00 02 0C 00 |
| 146 | + 15 00 02 0D 13 |
| 147 | + 15 00 02 0E 15 |
| 148 | + 15 00 02 0F 17 |
| 149 | + 15 00 02 10 01 |
| 150 | + 15 00 02 11 0B |
| 151 | + 15 00 02 12 0C |
| 152 | + 15 00 02 13 09 |
| 153 | + 15 00 02 14 0A |
| 154 | + 15 00 02 15 00 |
| 155 | + 15 00 02 16 0F |
| 156 | + 15 00 02 17 10 |
| 157 | + 15 00 02 18 00 |
| 158 | + 15 00 02 19 00 |
| 159 | + 15 00 02 1A 00 |
| 160 | + 15 00 02 1B 00 |
| 161 | + 15 00 02 1C 00 |
| 162 | + 15 00 02 1D 13 |
| 163 | + 15 00 02 1E 15 |
| 164 | + 15 00 02 1F 17 |
| 165 | + 15 00 02 20 00 |
| 166 | + 15 00 02 21 03 |
| 167 | + 15 00 02 22 01 |
| 168 | + 15 00 02 23 40 |
| 169 | + 15 00 02 24 40 |
| 170 | + 15 00 02 25 ED |
| 171 | + 15 00 02 29 58 |
| 172 | + 15 00 02 2A 12 |
| 173 | + 15 00 02 2B 01 |
| 174 | + 15 00 02 4B 06 |
| 175 | + 15 00 02 4C 11 |
| 176 | + 15 00 02 4D 20 |
| 177 | + 15 00 02 4E 02 |
| 178 | + 15 00 02 4F 02 |
| 179 | + 15 00 02 50 20 |
| 180 | + 15 00 02 51 61 |
| 181 | + 15 00 02 52 01 |
| 182 | + 15 00 02 53 63 |
| 183 | + 15 00 02 54 77 |
| 184 | + 15 00 02 55 ED |
| 185 | + 15 00 02 5B 00 |
| 186 | + 15 00 02 5C 00 |
| 187 | + 15 00 02 5D 00 |
| 188 | + 15 00 02 5E 00 |
| 189 | + 15 00 02 5F 15 |
| 190 | + 15 00 02 60 75 |
| 191 | + 15 00 02 61 00 |
| 192 | + 15 00 02 62 00 |
| 193 | + 15 00 02 63 00 |
| 194 | + 15 00 02 64 00 |
| 195 | + 15 00 02 65 00 |
| 196 | + 15 00 02 66 00 |
| 197 | + 15 00 02 67 00 |
| 198 | + 15 00 02 68 04 |
| 199 | + 15 00 02 69 00 |
| 200 | + 15 00 02 6A 00 |
| 201 | + 15 00 02 6C 40 |
| 202 | + 15 00 02 68 04 |
| 203 | + 15 00 02 69 00 |
| 204 | + 15 00 02 6A 00 |
| 205 | + 15 00 02 6C 40 |
| 206 | + 15 00 02 75 01 |
| 207 | + 15 00 02 76 01 |
| 208 | + 15 00 02 7A 80 |
| 209 | + 15 00 02 7B A3 |
| 210 | + 15 00 02 7C D8 |
| 211 | + 15 00 02 7D 60 |
| 212 | + 15 00 02 7F 15 |
| 213 | + 15 00 02 80 81 |
| 214 | + 15 00 02 83 05 |
| 215 | + 15 00 02 93 08 |
| 216 | + 15 00 02 94 10 |
| 217 | + 15 00 02 8A 00 |
| 218 | + 15 00 02 9B 0F |
| 219 | + 15 00 02 FF 01 |
| 220 | + 15 00 02 FB 01 |
| 221 | + 15 00 02 FF 02 |
| 222 | + 15 00 02 FB 01 |
| 223 | + 15 00 02 FF 04 |
| 224 | + 15 00 02 FB 01 |
| 225 | + 15 00 02 FF 00 |
| 226 | + 15 00 02 D3 06 |
| 227 | + 15 00 02 D4 04 |
| 228 | + 05 78 01 11 |
| 229 | + 15 00 02 FF 00 |
| 230 | + 15 00 02 35 00 |
| 231 | + 05 00 01 29 |
| 232 | + 15 78 02 FF 00 |
| 233 | + ]; |
| 234 | + |
| 235 | + panel-exit-sequence = [ |
| 236 | + 05 00 01 28 |
| 237 | + 05 78 01 10 |
| 238 | + ]; |
| 239 | + |
| 240 | + display-timings { |
| 241 | + native-mode = <&timing0>; |
| 242 | + compatible = "rockchip,display-timings"; |
| 243 | + timing0: timing0 { |
| 244 | + clock-frequency = <130000000>; |
| 245 | + hactive = <1080>; |
| 246 | + vactive = <1920>; |
| 247 | + |
| 248 | + hsync-len = <10>; |
| 249 | + hback-porch = <8>; |
| 250 | + hfront-porch = <40>; |
| 251 | + |
| 252 | + vsync-len = <3>; |
| 253 | + vback-porch = <2>; |
| 254 | + vfront-porch = <4>; |
| 255 | + |
| 256 | + hsync-active = <0>; |
| 257 | + vsync-active = <0>; |
| 258 | + de-active = <0>; |
| 259 | + pixelclk-active = <0>; |
| 260 | + }; |
| 261 | + }; |
| 262 | + }; |
| 263 | +}; |
| 264 | + |
| 265 | +&i2c5 { |
| 266 | + status = "okay"; |
| 267 | + i2c-scl-rising-time-ns = <150>; |
| 268 | + i2c-scl-falling-time-ns = <30>; |
| 269 | + clock-frequency = <400000>; |
| 270 | + tp-supply = <&vcca_tp>; |
| 271 | + gt9xx: gt9xx@5d { |
| 272 | + compatible = "goodix,gt9xx"; |
| 273 | + reg = <0x5d>; |
| 274 | + tp-size = <970>; |
| 275 | + touch-gpio = <&gpio6 6 IRQ_TYPE_LEVEL_LOW>; |
| 276 | + reset-gpio = <&gpio6 5 GPIO_ACTIVE_LOW>; |
| 277 | + max-x = <1080>; |
| 278 | + max-y = <1920>; |
| 279 | + }; |
| 280 | +}; |
0 commit comments