blob: cc81ae7450a99e89620a4b507a4508510e3e4efe [file] [log] [blame]
Linus Walleijf8635ab2013-01-05 00:29:31 +01001/*
2 * Device Tree for the ST-Ericsson Nomadik S8815 board
3 * Produced by Calao Systems
4 */
5
6/dts-v1/;
Linus Walleij31817882014-07-25 12:18:42 +02007#include "ste-nomadik-stn8815.dtsi"
Linus Walleijf8635ab2013-01-05 00:29:31 +01008
9/ {
10 model = "Calao Systems USB-S8815";
11 compatible = "calaosystems,usb-s8815";
12
13 chosen {
14 bootargs = "root=/dev/ram0 console=ttyAMA1,115200n8 earlyprintk";
15 };
16
Linus Walleijb98da4d2013-05-19 00:47:39 +020017 /* This is where the interrupt is routed on the S8815 board */
18 external-bus@34000000 {
19 ethernet@300 {
20 interrupt-parent = <&gpio3>;
21 interrupts = <8 0x1>;
22 };
23 };
24
Linus Walleijc641d4d2013-06-05 01:18:40 +020025 src@101e0000 {
26 /* These chrystal drivers are not used on this board */
27 disable-sxtalo;
28 disable-mxtalo;
29 };
30
Linus Walleij49932f52013-05-24 21:56:38 +020031 pinctrl {
32 /* Hog CD pins */
33 pinctrl-names = "default";
34 pinctrl-0 = <&cd_default_mode>;
35
36 mmcsd-cd {
37 cd_default_mode: cd_default {
38 cd_default_cfg1 {
39 /* CD input GPIO */
Linus Walleij1637d482014-09-30 12:16:25 +020040 pins = "GPIO111_H21";
Linus Walleij49932f52013-05-24 21:56:38 +020041 ste,input = <0>;
42 };
43 cd_default_cfg2 {
44 /* CD GPIO biasing */
Linus Walleij1637d482014-09-30 12:16:25 +020045 pins = "GPIO112_J21";
Linus Walleij49932f52013-05-24 21:56:38 +020046 ste,output = <0>;
47 };
48 };
49 };
50 user-led {
51 user_led_default_mode: user_led_default {
52 user_led_default_cfg {
Linus Walleij1637d482014-09-30 12:16:25 +020053 pins = "GPIO2_C5";
Linus Walleij49932f52013-05-24 21:56:38 +020054 ste,output = <1>;
55 };
56 };
57 };
58 user-button {
59 user_button_default_mode: user_button_default {
60 user_button_default_cfg {
Linus Walleij1637d482014-09-30 12:16:25 +020061 pins = "GPIO3_A4";
Linus Walleij49932f52013-05-24 21:56:38 +020062 ste,input = <0>;
63 };
64 };
65 };
66 };
67
Linus Walleijf8635ab2013-01-05 00:29:31 +010068 /* Custom board node with GPIO pins to active etc */
69 usb-s8815 {
Linus Walleij4fd243c2013-01-06 01:47:29 +010070 /* This will bias the MMC/SD card detect line */
71 mmcsd-gpio {
72 gpios = <&gpio3 16 0x1>;
73 };
Linus Walleijf8635ab2013-01-05 00:29:31 +010074 };
Linus Walleij175210a2013-05-18 23:55:13 +020075
76 /* The user LED on the board is set up to be used for heartbeat */
77 leds {
78 compatible = "gpio-leds";
79 user-led {
80 label = "user_led";
81 gpios = <&gpio0 2 0x1>;
82 default-state = "off";
83 linux,default-trigger = "heartbeat";
Linus Walleij49932f52013-05-24 21:56:38 +020084 pinctrl-names = "default";
85 pinctrl-0 = <&user_led_default_mode>;
Linus Walleij175210a2013-05-18 23:55:13 +020086 };
87 };
88
89 /* User key mapped in as "escape" */
90 gpio-keys {
91 compatible = "gpio-keys";
92 user-button {
93 label = "user_button";
94 gpios = <&gpio0 3 0x1>;
95 linux,code = <1>; /* KEY_ESC */
96 gpio-key,wakeup;
Linus Walleij49932f52013-05-24 21:56:38 +020097 pinctrl-names = "default";
98 pinctrl-0 = <&user_button_default_mode>;
Linus Walleij175210a2013-05-18 23:55:13 +020099 };
100 };
Linus Walleijf8635ab2013-01-05 00:29:31 +0100101};