|
20 | 20 | zephyr,sram = &sram0;
|
21 | 21 | zephyr,flash = &flash0;
|
22 | 22 | zephyr,ccm = &ccm0;
|
| 23 | + zephyr,display = <dc; |
| 24 | + zephyr,touch = &ft5336; |
23 | 25 | };
|
24 | 26 |
|
25 | 27 | sdram1: sdram@c0000000 {
|
|
53 | 55 | };
|
54 | 56 | };
|
55 | 57 |
|
| 58 | + lvgl_pointer { |
| 59 | + compatible = "zephyr,lvgl-pointer-input"; |
| 60 | + input = <&ft5336>; |
| 61 | + invert-y; |
| 62 | + }; |
| 63 | + |
56 | 64 | gpio_keys {
|
57 | 65 | compatible = "gpio-keys";
|
58 | 66 |
|
|
86 | 94 | mul-n = <336>;
|
87 | 95 | div-p = <2>;
|
88 | 96 | div-q = <7>;
|
| 97 | + div-r = <6>; |
| 98 | + clocks = <&clk_hse>; |
| 99 | + status = "okay"; |
| 100 | +}; |
| 101 | + |
| 102 | +&pllsai { |
| 103 | + div-m = <8>; |
| 104 | + mul-n = <266>; |
| 105 | + div-p = <2>; |
| 106 | + div-r = <5>; |
| 107 | + div-divr = <2>; |
89 | 108 | clocks = <&clk_hse>;
|
90 | 109 | status = "okay";
|
91 | 110 | };
|
|
116 | 135 | pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>;
|
117 | 136 | pinctrl-names = "default";
|
118 | 137 | status = "okay";
|
| 138 | + |
| 139 | + ft5336: ft5336@2a { |
| 140 | + compatible = "focaltech,ft5336"; |
| 141 | + reg = <0x2a>; |
| 142 | + int-gpios = <&gpioj 5 0>; |
| 143 | + status = "okay"; |
| 144 | + }; |
119 | 145 | };
|
120 | 146 |
|
121 | 147 | &spi2 {
|
@@ -199,3 +225,59 @@ zephyr_udc0: &usbotg_fs {
|
199 | 225 | };
|
200 | 226 | };
|
201 | 227 | };
|
| 228 | + |
| 229 | +&mipi_dsi { |
| 230 | + status = "okay"; |
| 231 | + otm8009a: otm8009a@0 { |
| 232 | + status = "okay"; |
| 233 | + compatible = "orisetech,otm8009a"; |
| 234 | + reg = <0x0>; |
| 235 | + height = <800>; |
| 236 | + width = <480>; |
| 237 | + reset-gpios = <&gpioh 7 0>; |
| 238 | + bl-gpios = <&gpioa 3 0>; |
| 239 | + data-lanes = <2>; |
| 240 | + pixel-format = <MIPI_DSI_PIXFMT_RGB888>; |
| 241 | + rotation = <90>; |
| 242 | + }; |
| 243 | + |
| 244 | + /* DSI HOST dedicated PLL |
| 245 | + * F_VCO = CLK_IN / pll-idf * 2 * pll-ndiv |
| 246 | + * PHI = F_VCO / 2 / (1 << pll-odf) = lane_byte_clk |
| 247 | + * = 8 MHz / 2 * 2 * 125 / 2 / (1<<0) / 8 = 62.5 MHz |
| 248 | + */ |
| 249 | + pll-ndiv = <125>; |
| 250 | + pll-idf = <2>; |
| 251 | + pll-odf = <0>; |
| 252 | + |
| 253 | + vs-active-high; |
| 254 | + hs-active-high; |
| 255 | + de-active-high; |
| 256 | +}; |
| 257 | + |
| 258 | +<dc { |
| 259 | + status = "okay"; |
| 260 | + width = <800>; |
| 261 | + height = <480>; |
| 262 | + pixel-format = <PANEL_PIXEL_FORMAT_RGB_888>; |
| 263 | + ext-sdram = <&sdram1>; |
| 264 | + /* orisetech, otm8009a */ |
| 265 | + display-timings { |
| 266 | + compatible = "zephyr,panel-timing"; |
| 267 | + hsync-active = <0>; |
| 268 | + vsync-active = <0>; |
| 269 | + de-active = <0>; |
| 270 | + pixelclk-active = <0>; |
| 271 | + hsync-len = <2>; |
| 272 | + vsync-len = <1>; |
| 273 | + hback-porch = <34>; |
| 274 | + vback-porch = <15>; |
| 275 | + hfront-porch = <34>; |
| 276 | + vfront-porch = <16>; |
| 277 | + }; |
| 278 | + |
| 279 | + def-back-color-red = <0>; |
| 280 | + def-back-color-green = <0>; |
| 281 | + def-back-color-blue = <0>; |
| 282 | + |
| 283 | +}; |
0 commit comments