1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Device Tree for the ST-Ericsson Nomadik S88 4 * Produced by Calao Systems 5 */ 6 7 /dts-v1/; 8 #include <dt-bindings/interrupt-controller/irq 9 #include "ste-nomadik-stn8815.dtsi" 10 11 / { 12 model = "Calao Systems USB-S8815"; 13 compatible = "calaosystems,usb-s8815"; 14 15 chosen { 16 bootargs = "root=/dev/ram0 con 17 }; 18 19 aliases { 20 serial0 = &uart0; 21 serial1 = &uart1; 22 }; 23 24 gpio3: gpio@101e7000 { 25 /* This hog will bias the MMC/ 26 mmcsd-gpio { 27 gpio-hog; 28 gpios = <16 0x0>; 29 output-low; 30 line-name = "card dete 31 }; 32 }; 33 34 src@101e0000 { 35 /* These chrystal drivers are 36 disable-sxtalo; 37 disable-mxtalo; 38 }; 39 40 pinctrl { 41 /* Hog CD pins */ 42 pinctrl-names = "default"; 43 pinctrl-0 = <&cd_default_mode> 44 45 uart0 { 46 /* Only use RX/TX pins 47 uart0_s8815_mode: uart 48 u0_default_mux 49 functi 50 groups 51 }; 52 }; 53 }; 54 mmcsd-cd { 55 cd_default_mode: cd_de 56 cd_default_cfg 57 /* CD 58 pins = 59 ste,in 60 }; 61 cd_default_cfg 62 /* CD 63 pins = 64 ste,ou 65 }; 66 }; 67 }; 68 gpioi2c { 69 gpioi2c_default_mode: 70 gpioi2c_defaul 71 pins = 72 ste,in 73 }; 74 }; 75 }; 76 user-led { 77 user_led_default_mode: 78 user_led_defau 79 pins = 80 ste,ou 81 }; 82 }; 83 }; 84 user-button { 85 user_button_default_mo 86 user_button_de 87 pins = 88 ste,in 89 }; 90 }; 91 }; 92 }; 93 94 /* Ethernet */ 95 external-bus@34000000 { 96 compatible = "simple-bus"; 97 reg = <0x34000000 0x1000000>; 98 #address-cells = <1>; 99 #size-cells = <1>; 100 ranges = <0 0x34000000 0x10000 101 ethernet@300 { 102 compatible = "smsc,lan 103 reg = <0x300 0x0fd00>; 104 interrupt-parent = <&g 105 interrupts = <8 IRQ_TY 106 }; 107 }; 108 109 i2c1 { 110 lis3lv02dl@1d { 111 /* Accelerometer */ 112 compatible = "st,lis3l 113 reg = <0x1d>; 114 }; 115 }; 116 117 /* GPIO I2C connected to the USB porti 118 gpio-i2c { 119 compatible = "i2c-gpio"; 120 gpios = <&gpio2 10 0>, /* sda 121 <&gpio2 9 0>; /* scl * 122 #address-cells = <1>; 123 #size-cells = <0>; 124 pinctrl-names = "default"; 125 pinctrl-0 = <&gpioi2c_default_ 126 127 stw4811@2d { 128 compatible = "st,st 129 reg = <0x2d>; 130 }; 131 }; 132 133 134 amba { 135 /* Activate RXTX on UART 0 */ 136 uart0: serial@101fd000 { 137 pinctrl-names = "defau 138 pinctrl-0 = <&uart0_s8 139 status = "okay"; 140 }; 141 /* Configure card detect for t 142 mmc@101f6000 { 143 cd-gpios = <&gpio3 15 144 }; 145 }; 146 147 /* The user LED on the board is set up 148 leds { 149 compatible = "gpio-leds"; 150 user-led { 151 label = "user_led"; 152 gpios = <&gpio0 2 0x1> 153 default-state = "off"; 154 linux,default-trigger 155 pinctrl-names = "defau 156 pinctrl-0 = <&user_led 157 }; 158 }; 159 160 /* User key mapped in as "escape" */ 161 gpio-keys { 162 compatible = "gpio-keys"; 163 user-button { 164 label = "user_button"; 165 gpios = <&gpio0 3 0x1> 166 linux,code = <1>; /* K 167 wakeup-source; 168 pinctrl-names = "defau 169 pinctrl-0 = <&user_but 170 }; 171 }; 172 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.