forked from jadonk/cape-firmware
-
Notifications
You must be signed in to change notification settings - Fork 27
/
BB-BONE-CRYPTO-00A0.dts
114 lines (98 loc) · 2.32 KB
/
BB-BONE-CRYPTO-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
/*
* Copyright (C) 2014 Cryptotronix
*
* Cape support for the CryptoCape
*
* 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-CRYPTO";
version = "00A0";
/* state the resources this cape uses */
exclusive-use =
/* the pin header uses */
/* For Flashing the ATmega328p */
"P9.13", /* uart4_txd */
"P9.11", /* uart4_rxd */
"P9.23", /* gpio1_17 */
/* As the AUTHO Input from the AES132 */
"P8.11", /* gpio1_13 */
/* the hardware ip uses */
"uart4",
"gpio1_13",
"gpio1_17";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
cryptocape_pins: pinmux_cryptocape_pins {
pinctrl-single,pins = <
0x044 0x17 /* gpio1_17 FAST | OUTPUT | PULLUP | MODE7 */
0x034 0x2F /* gpio1_13 FAST | INPUT | PULLDOWN | MODE7 */
>;
};
cryptocape_uart4_pins: pinmux_cryptocape_uart4_pins {
pinctrl-single,pins = <
0x070 0x26 /* uart4_rxd | FAST | INPUT | MODE6 */
0x074 0x06 /* uart4_txd | FAST | OUTPUT | MODE6 */
>;
};
};
};
fragment@1 {
target = <&uart5>; /* uart4 to the BBB hardware */
__overlay__ {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&cryptocape_uart4_pins>;
};
};
fragment@2 {
target = <&i2c2>;
__overlay__ {
/* needed to avoid gripping by DTC */
#address-cells = <1>;
#size-cells = <0>;
/* Real Time Clock */
ds1307@68 {
compatible = "ds1307";
reg = <0x68>;
};
/* TPM - Driver currently only available in 3.13.x */
tpm_i2c_atmel@29 {
compatible = "tpm_i2c_atmel";
reg = <0x29>;
};
};
};
fragment@3 {
target = <&ocp>;
__overlay__ {
cryptocape_gpio_helper {
compatible = "gpio-of-helper";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&cryptocape_pins>;
/* declare your gpios */
atmega_rst {
gpio-name = "atmega_rst";
gpio = <&gpio2 17 0x00>; /* gpio2 is gpio1 */
output;
init-high;
};
ataes132_auth {
gpio-name = "test_input";
gpio = <&gpio2 13 0x00>; /* gpio2 is gpio1 */
input;
count-rising-edge;
count-falling-edge;
};
};
};
};
};