forked from julbouln/tinydrm_it8951
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrpi-it8951-overlay.dts
63 lines (52 loc) · 971 Bytes
/
rpi-it8951-overlay.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
61
62
63
/*
* Device Tree overlay for it8951
*
*/
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
fragment@0 {
target = <&spi0>;
__overlay__ {
status = "okay";
spidev@0{
status = "disabled";
};
spidev@1{
status = "disabled";
};
};
};
fragment@1 {
target = <&gpio>;
__overlay__ {
it8951_pins: it8951_pins {
brcm,pins = <17 24>;
brcm,function = <1 0>; /* out in */
};
};
};
fragment@2 {
target = <&spi0>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
it8951: it8951@0{
compatible = "ite,it8951";
pinctrl-names = "default";
pinctrl-0 = <&it8951_pins>;
reg = <0>;
spi-max-frequency = <24000000>;
rotation = <0>;
reset-gpios = <&gpio 17 0>;
hrdy-gpios = <&gpio 24 0>;
};
};
};
__overrides__ {
speed = <&it8951>,"spi-max-frequency:0";
rotation = <&it8951>,"rotation:0";
};
};