blob: c1c30740978518f4f1bf8d78153dcb8fa7d200cd (
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
70
71
72
73
74
|
#include <dt-bindings/gpio/gpio.h>
/ {
gpio0: gpio@0 {
compatible = "barebox,libftdi1-gpio";
usb,id_vendor = <0x0403>;
usb,id_product = <0x6010>;
/*
* The serial number can be used to select
* a specific device in case more than
* one is connected to the host.
*/
/* usb,i_serial_number = "20180120"; */
/* use ACBUS[7:0] */
gpio-controller;
#gpio-cells = <2>;
status = "okay";
};
spi0: spi0 {
compatible = "spi-gpio";
#address-cells = <1>;
#size-cells = <0>;
gpio-sck = <&gpio0 0 GPIO_ACTIVE_HIGH>;
gpio-mosi = <&gpio0 1 GPIO_ACTIVE_HIGH>;
gpio-miso = <&gpio0 2 GPIO_ACTIVE_HIGH>;
cs-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
num-chipselects = <1>;
m25p128@0 {
compatible = "m25p128", "jedec,spi-nor";
#address-cells = <1>;
#size-cells = <1>;
reg = <0>;
spi-max-frequency = <1000000>;
};
};
i2c0: i2c0 {
compatible = "i2c-gpio";
#address-cells = <1>;
#size-cells = <0>;
gpios = <&gpio0 4 GPIO_ACTIVE_HIGH /* sda */
&gpio0 5 GPIO_ACTIVE_HIGH /* scl */
>;
i2c-gpio,scl-output-only;
eeprom: at24@50 {
compatible = "atmel,24c32";
reg = <0x50>;
};
rtc: ds1307@68 {
compatible = "dallas,ds1307";
reg = <0x68>;
};
};
gpio-leds {
compatible = "gpio-leds";
heartbeat-led {
label = "heartbeat";
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat";
};
};
};
|