blob: e0f70416d19ea99be04fb0859e3eee0740129a9c (
plain)
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
|
/*
* Copyright (C) 2018 Robert Nelson <robertcnelson@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.
*
* https://www.mikroe.com/rtc6-click
* https://download.mikroe.com/documents/add-on-boards/click/rtc-6/rtc-6-click-user-manual-v100.pdf
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/am33xx.h>
#include <dt-bindings/interrupt-controller/irq.h>
/ {
/*
* Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/
*/
fragment@0 {
target-path="/";
__overlay__ {
chosen {
overlays {
BB-mBC2-RTC-6-CLICK = __TIMESTAMP__;
};
};
};
};
/*
* Free up the pins used by the cape from the pinmux helpers.
*/
fragment@1 {
target = <&ocp>;
__overlay__ {
P9_41_pinmux { status = "disabled"; }; /* MFP - gpio0[20] */
P9_91_pinmux { status = "disabled"; }; /* Shared with P9_41 */
};
};
fragment@2 {
target-path="/";
__overlay__ {
aliases {
rtc0 = &extrtc;
rtc1 = "/ocp/rtc@44e3e000";
};
};
};
fragment@3 {
target = <&i2c2>;
__overlay__ {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
extrtc: mcp7941x@6f {
compatible = "microchip,mcp7941x";
reg = <0x6f>;
};
};
};
};
|