Commit | Line | Data |
---|---|---|
f8635abd LW |
1 | /* |
2 | * Device Tree for the ST-Ericsson Nomadik S8815 board | |
3 | * Produced by Calao Systems | |
4 | */ | |
5 | ||
6 | /dts-v1/; | |
98ba16bb | 7 | #include <dt-bindings/interrupt-controller/irq.h> |
3181788c | 8 | #include "ste-nomadik-stn8815.dtsi" |
f8635abd LW |
9 | |
10 | / { | |
11 | model = "Calao Systems USB-S8815"; | |
12 | compatible = "calaosystems,usb-s8815"; | |
13 | ||
14 | chosen { | |
15 | bootargs = "root=/dev/ram0 console=ttyAMA1,115200n8 earlyprintk"; | |
16 | }; | |
17 | ||
a153790a LW |
18 | aliases { |
19 | serial1 = &uart1; | |
20 | }; | |
21 | ||
4cec8cd7 LW |
22 | gpio3: gpio@101e7000 { |
23 | /* This hog will bias the MMC/SD card detect line */ | |
24 | mmcsd-gpio { | |
25 | gpio-hog; | |
26 | gpios = <16 0x0>; | |
27 | output-low; | |
28 | line-name = "card detect bias"; | |
29 | }; | |
30 | }; | |
31 | ||
c641d4df LW |
32 | src@101e0000 { |
33 | /* These chrystal drivers are not used on this board */ | |
34 | disable-sxtalo; | |
35 | disable-mxtalo; | |
36 | }; | |
37 | ||
49932f5e LW |
38 | pinctrl { |
39 | /* Hog CD pins */ | |
40 | pinctrl-names = "default"; | |
41 | pinctrl-0 = <&cd_default_mode>; | |
42 | ||
43 | mmcsd-cd { | |
44 | cd_default_mode: cd_default { | |
45 | cd_default_cfg1 { | |
46 | /* CD input GPIO */ | |
1637d480 | 47 | pins = "GPIO111_H21"; |
49932f5e LW |
48 | ste,input = <0>; |
49 | }; | |
50 | cd_default_cfg2 { | |
51 | /* CD GPIO biasing */ | |
1637d480 | 52 | pins = "GPIO112_J21"; |
49932f5e LW |
53 | ste,output = <0>; |
54 | }; | |
55 | }; | |
56 | }; | |
2096eb80 LW |
57 | gpioi2c { |
58 | gpioi2c_default_mode: gpioi2c_default { | |
59 | gpioi2c_default_cfg { | |
c1b30e4d | 60 | pins = "GPIO73_C21", "GPIO74_C20"; |
2096eb80 LW |
61 | ste,input = <0>; |
62 | }; | |
63 | }; | |
64 | }; | |
49932f5e LW |
65 | user-led { |
66 | user_led_default_mode: user_led_default { | |
67 | user_led_default_cfg { | |
1637d480 | 68 | pins = "GPIO2_C5"; |
49932f5e LW |
69 | ste,output = <1>; |
70 | }; | |
71 | }; | |
72 | }; | |
73 | user-button { | |
74 | user_button_default_mode: user_button_default { | |
75 | user_button_default_cfg { | |
1637d480 | 76 | pins = "GPIO3_A4"; |
49932f5e LW |
77 | ste,input = <0>; |
78 | }; | |
79 | }; | |
80 | }; | |
81 | }; | |
82 | ||
98ba16bb LW |
83 | /* Ethernet */ |
84 | external-bus@34000000 { | |
85 | compatible = "simple-bus"; | |
86 | reg = <0x34000000 0x1000000>; | |
87 | #address-cells = <1>; | |
88 | #size-cells = <1>; | |
89 | ranges = <0 0x34000000 0x1000000>; | |
90 | ethernet@300 { | |
91 | compatible = "smsc,lan91c111"; | |
92 | reg = <0x300 0x0fd00>; | |
93 | interrupt-parent = <&gpio3>; | |
94 | interrupts = <8 IRQ_TYPE_EDGE_RISING>; | |
95 | }; | |
96 | }; | |
97 | ||
2096eb80 LW |
98 | /* GPIO I2C connected to the USB portions of the STw4811 only */ |
99 | gpio-i2c { | |
100 | compatible = "i2c-gpio"; | |
101 | gpios = <&gpio2 10 0>, /* sda */ | |
102 | <&gpio2 9 0>; /* scl */ | |
103 | #address-cells = <1>; | |
104 | #size-cells = <0>; | |
105 | pinctrl-names = "default"; | |
106 | pinctrl-0 = <&gpioi2c_default_mode>; | |
107 | ||
108 | stw4811@2d { | |
109 | compatible = "st,stw4811-usb"; | |
110 | reg = <0x2d>; | |
111 | }; | |
112 | }; | |
113 | ||
114 | ||
6bd5e870 LW |
115 | /* Configure card detect for the uSD slot */ |
116 | amba { | |
117 | mmcsd: sdi@101f6000 { | |
118 | cd-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; | |
119 | }; | |
120 | }; | |
121 | ||
175210a8 LW |
122 | /* The user LED on the board is set up to be used for heartbeat */ |
123 | leds { | |
124 | compatible = "gpio-leds"; | |
125 | user-led { | |
126 | label = "user_led"; | |
127 | gpios = <&gpio0 2 0x1>; | |
128 | default-state = "off"; | |
129 | linux,default-trigger = "heartbeat"; | |
49932f5e LW |
130 | pinctrl-names = "default"; |
131 | pinctrl-0 = <&user_led_default_mode>; | |
175210a8 LW |
132 | }; |
133 | }; | |
134 | ||
135 | /* User key mapped in as "escape" */ | |
136 | gpio-keys { | |
137 | compatible = "gpio-keys"; | |
138 | user-button { | |
139 | label = "user_button"; | |
140 | gpios = <&gpio0 3 0x1>; | |
141 | linux,code = <1>; /* KEY_ESC */ | |
142 | gpio-key,wakeup; | |
49932f5e LW |
143 | pinctrl-names = "default"; |
144 | pinctrl-0 = <&user_button_default_mode>; | |
175210a8 LW |
145 | }; |
146 | }; | |
f8635abd | 147 | }; |