Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / sainsmart18-overlay.dts
1 /*
2  * Device Tree overlay for the Sainsmart 1.8" TFT LCD with ST7735R chip 160x128
3  */
4
5 /dts-v1/;
6 /plugin/;
7
8 / {
9         compatible = "brcm,bcm2835";
10
11         fragment@0 {
12                 target = <&spidev0>;
13                 __overlay__ {
14                         status = "disabled";
15                 };
16         };
17
18         fragment@1 {
19                 target = <&spi0>;
20                 __overlay__ {
21                         /* needed to avoid dtc warning */
22                         #address-cells = <1>;
23                         #size-cells = <0>;
24                         status = "okay";
25
26                         ss18: sainsmart18@0 {
27                                 compatible = "fbtft,sainsmart18";
28                                 reg = <0>;
29                                 pinctrl-names = "default";
30                                 spi-max-frequency = <40000000>;
31                                 rotate = <90>;
32                                 buswidth = <8>;
33                                 fps = <50>;
34                                 height = <160>;
35                                 width = <128>;
36                                 reset-gpios = <&gpio 25 1>;
37                                 dc-gpios = <&gpio 24 0>;
38                                 debug = <0>;
39                         };
40                 };
41         };
42
43         __overrides__ {
44                 speed     = <&ss18>,"spi-max-frequency:0";
45                 rotate    = <&ss18>,"rotate:0";
46                 fps       = <&ss18>,"fps:0";
47                 bgr       = <&ss18>,"bgr?";
48                 debug     = <&ss18>,"debug:0";
49                 dc_pin    = <&ss18>,"dc-gpios:4";
50                 reset_pin = <&ss18>,"reset-gpios:4";
51         };
52 };