-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgud.dts
60 lines (52 loc) · 911 Bytes
/
gud.dts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* Device Tree overlay for Noritake GUD display
*
*/
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835";
fragment@0 {
target = <&spidev0>;
__overlay__ {
status = "disabled";
};
};
fragment@1 {
target = <&spi0>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&spi0>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
gud: gud@0{
compatible = "noritake,gu256x128d";
reg = <0>;
spi-max-frequency = <650000>;
spi-cpol;
spi-cpha;
dithering = <1>;
reset-gpios = <&gpio 17 0>;
busy-gpios = <&gpio 27 0>;
};
};
};
fragment@3 {
target-path = "/soc";
__overlay__ {
backlight: backlight {
compatible = "noritake,gu256x128d";
status = "okay";
};
};
};
__overrides__ {
speed = <&gud>,"spi-max-frequency:0";
dithering = <&gud>,"dithering:0";
};
};