Merge tag 'nomadik-dt-for-arm-soc' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / ste-nomadik-s8815.dts
1 /*
2  * Device Tree for the ST-Ericsson Nomadik S8815 board
3  * Produced by Calao Systems
4  */
5
6 /dts-v1/;
7 /include/ "ste-nomadik-stn8815.dtsi"
8
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
17         /* 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
25         pinctrl {
26                 /* Hog CD pins */
27                 pinctrl-names = "default";
28                 pinctrl-0 = <&cd_default_mode>;
29
30                 mmcsd-cd {
31                         cd_default_mode: cd_default {
32                                 cd_default_cfg1 {
33                                         /* CD input GPIO */
34                                         ste,pins = "GPIO111_H21";
35                                         ste,input = <0>;
36                                 };
37                                 cd_default_cfg2 {
38                                         /* CD GPIO biasing */
39                                         ste,pins = "GPIO112_J21";
40                                         ste,output = <0>;
41                                 };
42                         };
43                 };
44                 user-led {
45                         user_led_default_mode: user_led_default {
46                                 user_led_default_cfg {
47                                         ste,pins = "GPIO2_C5";
48                                         ste,output = <1>;
49                                 };
50                         };
51                 };
52                 user-button {
53                         user_button_default_mode: user_button_default {
54                                 user_button_default_cfg {
55                                         ste,pins = "GPIO3_A4";
56                                         ste,input = <0>;
57                                 };
58                         };
59                 };
60         };
61
62         /* Custom board node with GPIO pins to active etc */
63         usb-s8815 {
64                 /* The S8815 is using this very GPIO pin for the SMSC91x IRQs */
65                 ethernet-gpio {
66                         gpios = <&gpio3 8 0x1>;
67                 };
68                 /* This will bias the MMC/SD card detect line */
69                 mmcsd-gpio {
70                         gpios = <&gpio3 16 0x1>;
71                 };
72         };
73
74         /* The user LED on the board is set up to be used for heartbeat */
75         leds {
76                 compatible = "gpio-leds";
77                 user-led {
78                         label = "user_led";
79                         gpios = <&gpio0 2 0x1>;
80                         default-state = "off";
81                         linux,default-trigger = "heartbeat";
82                         pinctrl-names = "default";
83                         pinctrl-0 = <&user_led_default_mode>;
84                 };
85         };
86
87         /* User key mapped in as "escape" */
88         gpio-keys {
89                 compatible = "gpio-keys";
90                 user-button {
91                         label = "user_button";
92                         gpios = <&gpio0 3 0x1>;
93                         linux,code = <1>; /* KEY_ESC */
94                         gpio-key,wakeup;
95                         pinctrl-names = "default";
96                         pinctrl-0 = <&user_button_default_mode>;
97                 };
98         };
99 };