forked from jadonk/cape-firmware
-
Notifications
You must be signed in to change notification settings - Fork 27
/
cape-bone-nixie-00A0.dts
121 lines (101 loc) · 2.5 KB
/
cape-bone-nixie-00A0.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/*
* Copyright (C) 2013 Matt Ranostay <mranostay@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
/* identification */
part-number = "BB-BONE-NIXIE";
version = "00A0";
/* state the resources this cape uses */
exclusive-use =
/* the pin header uses */
"P9.25", /* gpio3_21 */
"P8.45", /* ehrpwm2A */
"P8.46", /* ehrpwm2B */
"P9.31", /* pr1_pru0_pru_r30_0 */
"P9.29", /* pr1_pru0_pru_r30_1 */
"P9.27", /* pr1_pru0_pru_r30_5 */
/* the hardware IP uses */
"gpio3_21",
"ehrpwm2A", "ehrpwm2B",
"pru";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
bone_nixie_cape_led_pins: pinmux_bone_nixie_cape_led_pins {
pinctrl-single,pins = <
0x1ac 0x07 /* mcasp0_ahclkx.gpio3_21, MODE7 */
>;
};
bone_nixie_cape_pins: pinmux_bone_nixie_cape_pins {
pinctrl-single,pins = <
0x0a0 0x03 /* lcd_data0.gpio2_6 | MODE3 */
0x0a4 0x03 /* lcd_data1.gpio2_7 | MODE3 */
>;
};
pruss_pins: pinmux_pruss_pins {
pinctrl-single,pins = <
0x190 0x05 /* mcasp0_aclkx.pr1_pru0_pru_r30_0, MODE5 | DATA */
0x194 0x05 /* mcasp0_fsx.pr1_pru0_pru_r30_1, MODE5 | LATCH */
0x1a4 0x05 /* mcasp0_fsr.pr1_pru1_pru_r30_5, MODE5 | CLK */
>;
};
};
};
fragment@2 {
target = <&epwmss2>;
__overlay__ {
status = "okay";
};
};
fragment@1 {
target = <&ehrpwm2>;
__overlay__ {
status = "okay";
};
};
fragment@3 {
target = <&ocp>;
__overlay__ {
/* avoid stupid warning */
#address-cells = <1>;
#size-cells = <1>;
gpio-leds-cape-nixie {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&bone_nixie_cape_led_pins>;
nixie-led0 {
label = "nixie:green:usr0";
gpios = <&gpio4 21 0>;
linux,default-trigger = "nixie-run";
default-state = "off";
};
};
bone-cape-nixie {
compatible = "bone-cape-nixie";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&bone_nixie_cape_pins>;
pwms = <&ehrpwm2 0 500000 0>;
pwm-names = "bone-nixie-cape";
pwm-frequency = <9250>; /* 9.250KHz */
pwm-duty-cycle = <35>; /* 35% */
default-brightness = <35>; /* 35% */
};
};
};
fragment@4 {
target = <&pruss>;
__overlay__ {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pruss_pins>;
};
};
};