Linus Walleij | f8635ab | 2013-01-05 00:29:31 +0100 | [diff] [blame] | 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 | |
Linus Walleij | b98da4d | 2013-05-19 00:47:39 +0200 | [diff] [blame] | 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 | |
Linus Walleij | c641d4d | 2013-06-05 01:18:40 +0200 | [diff] [blame] | 25 | src@101e0000 { |
| 26 | /* These chrystal drivers are not used on this board */ |
| 27 | disable-sxtalo; |
| 28 | disable-mxtalo; |
| 29 | }; |
| 30 | |
Linus Walleij | 49932f5 | 2013-05-24 21:56:38 +0200 | [diff] [blame] | 31 | 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 */ |
| 40 | ste,pins = "GPIO111_H21"; |
| 41 | ste,input = <0>; |
| 42 | }; |
| 43 | cd_default_cfg2 { |
| 44 | /* CD GPIO biasing */ |
| 45 | ste,pins = "GPIO112_J21"; |
| 46 | ste,output = <0>; |
| 47 | }; |
| 48 | }; |
| 49 | }; |
| 50 | user-led { |
| 51 | user_led_default_mode: user_led_default { |
| 52 | user_led_default_cfg { |
| 53 | ste,pins = "GPIO2_C5"; |
| 54 | ste,output = <1>; |
| 55 | }; |
| 56 | }; |
| 57 | }; |
| 58 | user-button { |
| 59 | user_button_default_mode: user_button_default { |
| 60 | user_button_default_cfg { |
| 61 | ste,pins = "GPIO3_A4"; |
| 62 | ste,input = <0>; |
| 63 | }; |
| 64 | }; |
| 65 | }; |
| 66 | }; |
| 67 | |
Linus Walleij | f8635ab | 2013-01-05 00:29:31 +0100 | [diff] [blame] | 68 | /* Custom board node with GPIO pins to active etc */ |
| 69 | usb-s8815 { |
Linus Walleij | 2ad6e39 | 2013-01-06 01:02:42 +0100 | [diff] [blame] | 70 | /* The S8815 is using this very GPIO pin for the SMSC91x IRQs */ |
| 71 | ethernet-gpio { |
Linus Walleij | b98da4d | 2013-05-19 00:47:39 +0200 | [diff] [blame] | 72 | gpios = <&gpio3 8 0x1>; |
Linus Walleij | 2ad6e39 | 2013-01-06 01:02:42 +0100 | [diff] [blame] | 73 | }; |
Linus Walleij | 4fd243c | 2013-01-06 01:47:29 +0100 | [diff] [blame] | 74 | /* This will bias the MMC/SD card detect line */ |
| 75 | mmcsd-gpio { |
| 76 | gpios = <&gpio3 16 0x1>; |
| 77 | }; |
Linus Walleij | f8635ab | 2013-01-05 00:29:31 +0100 | [diff] [blame] | 78 | }; |
Linus Walleij | 175210a | 2013-05-18 23:55:13 +0200 | [diff] [blame] | 79 | |
| 80 | /* The user LED on the board is set up to be used for heartbeat */ |
| 81 | leds { |
| 82 | compatible = "gpio-leds"; |
| 83 | user-led { |
| 84 | label = "user_led"; |
| 85 | gpios = <&gpio0 2 0x1>; |
| 86 | default-state = "off"; |
| 87 | linux,default-trigger = "heartbeat"; |
Linus Walleij | 49932f5 | 2013-05-24 21:56:38 +0200 | [diff] [blame] | 88 | pinctrl-names = "default"; |
| 89 | pinctrl-0 = <&user_led_default_mode>; |
Linus Walleij | 175210a | 2013-05-18 23:55:13 +0200 | [diff] [blame] | 90 | }; |
| 91 | }; |
| 92 | |
| 93 | /* User key mapped in as "escape" */ |
| 94 | gpio-keys { |
| 95 | compatible = "gpio-keys"; |
| 96 | user-button { |
| 97 | label = "user_button"; |
| 98 | gpios = <&gpio0 3 0x1>; |
| 99 | linux,code = <1>; /* KEY_ESC */ |
| 100 | gpio-key,wakeup; |
Linus Walleij | 49932f5 | 2013-05-24 21:56:38 +0200 | [diff] [blame] | 101 | pinctrl-names = "default"; |
| 102 | pinctrl-0 = <&user_button_default_mode>; |
Linus Walleij | 175210a | 2013-05-18 23:55:13 +0200 | [diff] [blame] | 103 | }; |
| 104 | }; |
Linus Walleij | f8635ab | 2013-01-05 00:29:31 +0100 | [diff] [blame] | 105 | }; |