|
1 | 1 | /dts-v1/; |
2 | 2 | /plugin/; |
3 | 3 |
|
| 4 | +#include <dt-bindings/interrupt-controller/irq.h> |
| 5 | +#include <dt-bindings/gpio/gpio.h> |
| 6 | +#include <dt-bindings/pinctrl/rockchip.h> |
| 7 | +#include <dt-bindings/display/drm_mipi_dsi.h> |
| 8 | + |
4 | 9 | / { |
5 | 10 | fragment@0 { |
6 | | - target = <&dsi1>; |
| 11 | + target-path = "/"; |
| 12 | + |
7 | 13 | __overlay__ { |
8 | | - status = "okay"; |
| 14 | + backlight: backlight { |
| 15 | + compatible = "pwm-backlight"; |
| 16 | + brightness-levels = < |
| 17 | + 0 20 20 21 21 22 22 23 |
| 18 | + 23 24 24 25 25 26 26 27 |
| 19 | + 27 28 28 29 29 30 30 31 |
| 20 | + 31 32 32 33 33 34 34 35 |
| 21 | + 35 36 36 37 37 38 38 39 |
| 22 | + 40 41 42 43 44 45 46 47 |
| 23 | + 48 49 50 51 52 53 54 55 |
| 24 | + 56 57 58 59 60 61 62 63 |
| 25 | + 64 65 66 67 68 69 70 71 |
| 26 | + 72 73 74 75 76 77 78 79 |
| 27 | + 80 81 82 83 84 85 86 87 |
| 28 | + 88 89 90 91 92 93 94 95 |
| 29 | + 96 97 98 99 100 101 102 103 |
| 30 | + 104 105 106 107 108 109 110 111 |
| 31 | + 112 113 114 115 116 117 118 119 |
| 32 | + 120 121 122 123 124 125 126 127 |
| 33 | + 128 129 130 131 132 133 134 135 |
| 34 | + 136 137 138 139 140 141 142 143 |
| 35 | + 144 145 146 147 148 149 150 151 |
| 36 | + 152 153 154 155 156 157 158 159 |
| 37 | + 160 161 162 163 164 165 166 167 |
| 38 | + 168 169 170 171 172 173 174 175 |
| 39 | + 176 177 178 179 180 181 182 183 |
| 40 | + 184 185 186 187 188 189 190 191 |
| 41 | + 192 193 194 195 196 197 198 199 |
| 42 | + 200 201 202 203 204 205 206 207 |
| 43 | + 208 209 210 211 212 213 214 215 |
| 44 | + 216 217 218 219 220 221 222 223 |
| 45 | + 224 225 226 227 228 229 230 231 |
| 46 | + 232 233 234 235 236 237 238 239 |
| 47 | + 240 241 242 243 244 245 246 247 |
| 48 | + 248 249 250 251 252 253 254 255 |
| 49 | + >; |
| 50 | + default-brightness-level = <200>; |
| 51 | + pwms = <&pwm2 0 25000 0>; |
| 52 | + status = "okay"; |
| 53 | + }; |
9 | 54 | }; |
10 | 55 | }; |
11 | 56 |
|
12 | 57 | fragment@1 { |
13 | | - target = <&dsi1_panel>; |
| 58 | + target = <&mipi_dcphy1>; |
| 59 | + |
14 | 60 | __overlay__ { |
15 | 61 | status = "okay"; |
16 | 62 | }; |
17 | 63 | }; |
18 | 64 |
|
19 | 65 | fragment@2 { |
20 | | - target = <&dsi1_in_vp3>; |
| 66 | + target = <&dsi1>; |
| 67 | + |
| 68 | + __overlay__ { |
| 69 | + pinctrl-names = "default"; |
| 70 | + pinctrl-0 = <&mipi_te1>; |
| 71 | + status = "okay"; |
| 72 | + //rockchip,lane-rate = <1000>; |
| 73 | + |
| 74 | + dsi1_panel: panel@0 { |
| 75 | + status = "okay"; |
| 76 | + compatible = "innolux,afj101-ba2131"; |
| 77 | + reg = <0>; |
| 78 | + backlight = <&backlight>; |
| 79 | + reset-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_LOW>; |
| 80 | + enable-gpios = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>; |
| 81 | + pinctrl-names = "default"; |
| 82 | + pinctrl-0 = <&lcd_rst_gpio>; |
| 83 | + |
| 84 | + ports { |
| 85 | + #address-cells = <1>; |
| 86 | + #size-cells = <0>; |
| 87 | + |
| 88 | + port@0 { |
| 89 | + reg = <0>; |
| 90 | + panel_in_dsi1: endpoint { |
| 91 | + remote-endpoint = <&dsi1_out_panel>; |
| 92 | + }; |
| 93 | + }; |
| 94 | + }; |
| 95 | + }; |
| 96 | + |
| 97 | + ports { |
| 98 | + #address-cells = <1>; |
| 99 | + #size-cells = <0>; |
| 100 | + |
| 101 | + port@1 { |
| 102 | + reg = <1>; |
| 103 | + dsi1_out_panel: endpoint { |
| 104 | + remote-endpoint = <&panel_in_dsi1>; |
| 105 | + }; |
| 106 | + }; |
| 107 | + }; |
| 108 | + }; |
| 109 | + }; |
| 110 | + |
| 111 | + fragment@3 { |
| 112 | + target = <&route_dsi1>; |
| 113 | + |
| 114 | + __overlay__ { |
| 115 | + status = "disabled"; |
| 116 | + connect = <&vp3_out_dsi1>; |
| 117 | + }; |
| 118 | + }; |
| 119 | + |
| 120 | + fragment@4 { |
| 121 | + target = <&i2c7>; |
| 122 | + |
| 123 | + __overlay__ { |
| 124 | + status = "okay"; |
| 125 | + |
| 126 | + gt9xx_0: touchscreen@14 { |
| 127 | + compatible = "goodix,gt9271"; |
| 128 | + reg = <0x14>; |
| 129 | + interrupt-parent = <&gpio2>; |
| 130 | + interrupts = <RK_PB2 IRQ_TYPE_LEVEL_LOW>; |
| 131 | + irq-gpios = <&gpio2 RK_PB2 IRQ_TYPE_LEVEL_LOW>; |
| 132 | + reset-gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>; |
| 133 | + touchscreen-inverted-x; |
| 134 | + //touchscreen-inverted-y; |
| 135 | + touchscreen-swapped-x-y; |
| 136 | + touchscreen-size-x = <1280>; |
| 137 | + touchscreen-size-y = <800>; |
| 138 | + status = "okay"; |
| 139 | + }; |
| 140 | + }; |
| 141 | + }; |
| 142 | + |
| 143 | + fragment@5 { |
| 144 | + target = <&pwm2>; |
| 145 | + |
21 | 146 | __overlay__ { |
| 147 | + pinctrl-names = "active"; |
| 148 | + pinctrl-0 = <&pwm2m2_pins>; |
22 | 149 | status = "okay"; |
23 | 150 | }; |
24 | 151 | }; |
|
0 commit comments