|
| 1 | +/* |
| 2 | + * vc4-kms-dsi-ili9881-5inch-overlay.dts |
| 3 | + */ |
| 4 | + |
| 5 | +/dts-v1/; |
| 6 | +/plugin/; |
| 7 | + |
| 8 | +#include <dt-bindings/gpio/gpio.h> |
| 9 | + |
| 10 | +/ { |
| 11 | + compatible = "brcm,bcm2835"; |
| 12 | + |
| 13 | + i2c_frag: fragment@0 { |
| 14 | + target = <&i2c_csi_dsi>; |
| 15 | + __overlay__ { |
| 16 | + #address-cells = <1>; |
| 17 | + #size-cells = <0>; |
| 18 | + status = "okay"; |
| 19 | + |
| 20 | + display_mcu: display_mcu@45 { |
| 21 | + compatible = "waveshare,touchscreen-panel-regulator"; |
| 22 | + reg = <0x45>; |
| 23 | + gpio-controller; |
| 24 | + #gpio-cells = <2>; |
| 25 | + }; |
| 26 | + |
| 27 | + touch: goodix@5d { |
| 28 | + compatible = "goodix,gt9271"; |
| 29 | + reg = <0x5d>; |
| 30 | + reset-gpio = <&display_mcu 9 GPIO_ACTIVE_HIGH>; |
| 31 | + }; |
| 32 | + }; |
| 33 | + }; |
| 34 | + |
| 35 | + dsi_frag: fragment@1 { |
| 36 | + target = <&dsi1>; |
| 37 | + __overlay__ { |
| 38 | + #address-cells = <1>; |
| 39 | + #size-cells = <0>; |
| 40 | + status = "okay"; |
| 41 | + |
| 42 | + port { |
| 43 | + dsi_out: endpoint { |
| 44 | + remote-endpoint = <&panel_in>; |
| 45 | + }; |
| 46 | + }; |
| 47 | + |
| 48 | + dsi_panel: dsi_panel@0 { |
| 49 | + reg = <0>; |
| 50 | + compatible = "waveshare,10.1-dsi-touch-a"; |
| 51 | + reset-gpio = <&display_mcu 1 GPIO_ACTIVE_HIGH>; |
| 52 | + backlight = <&display_mcu>; |
| 53 | + |
| 54 | + port { |
| 55 | + panel_in: endpoint { |
| 56 | + remote-endpoint = <&dsi_out>; |
| 57 | + }; |
| 58 | + }; |
| 59 | + }; |
| 60 | + }; |
| 61 | + }; |
| 62 | + |
| 63 | + fragment@2 { |
| 64 | + target = <&i2c0if>; |
| 65 | + __overlay__ { |
| 66 | + status = "okay"; |
| 67 | + }; |
| 68 | + }; |
| 69 | + |
| 70 | + fragment@3 { |
| 71 | + target = <&i2c0mux>; |
| 72 | + __overlay__ { |
| 73 | + status = "okay"; |
| 74 | + }; |
| 75 | + }; |
| 76 | + |
| 77 | + __overrides__ { |
| 78 | + 5_0_inch_a = <&dsi_panel>, "compatible=waveshare,5.0-dsi-touch-a"; |
| 79 | + 5_5_inch_a = <&dsi_panel>, "compatible=waveshare,5.5-dsi-touch-a"; |
| 80 | + 7_0_inch_b = <&dsi_panel>, "compatible=waveshare,7.0-dsi-touch-b"; |
| 81 | + 8_0_inch_a = <&dsi_panel>, "compatible=waveshare,8.0-dsi-touch-a"; |
| 82 | + 8_0_inch_a_4lane = <&dsi_panel>, "compatible=waveshare,8.0-dsi-touch-a,4lane"; |
| 83 | + 10_1_inch_a = <&dsi_panel>, "compatible=waveshare,10.1-dsi-touch-a"; |
| 84 | + 10_1_inch_a_4lane = <&dsi_panel>, "compatible=waveshare,10.1-dsi-touch-a,4lane"; |
| 85 | + disable_touch = <&touch>, "status=disabled"; |
| 86 | + invx = <&touch>,"touchscreen-inverted-x?"; |
| 87 | + invy = <&touch>,"touchscreen-inverted-y?"; |
| 88 | + swapxy = <&touch>,"touchscreen-swapped-x-y?"; |
| 89 | + dsi0 = <&dsi_frag>, "target:0=",<&dsi0>, |
| 90 | + <&i2c_frag>, "target:0=",<&i2c_csi_dsi0>; |
| 91 | + }; |
| 92 | +}; |
0 commit comments