1 // SPDX-License-Identifier: GPL-2.0-only 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 2 /* 3 * Copyright (C) 2013 Texas Instruments Incorp 3 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ 4 */ 4 */ 5 /dts-v1/; 5 /dts-v1/; 6 6 7 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/input/input.h> 8 #include "omap34xx.dtsi" 8 #include "omap34xx.dtsi" 9 #include "omap-gpmc-smsc911x.dtsi" 9 #include "omap-gpmc-smsc911x.dtsi" 10 10 11 / { 11 / { 12 model = "TI OMAP3430 LDP (Zoom1 Labrad 12 model = "TI OMAP3430 LDP (Zoom1 Labrador)"; 13 compatible = "ti,omap3-ldp", "ti,omap3 13 compatible = "ti,omap3-ldp", "ti,omap3430", "ti,omap3"; 14 14 15 memory@80000000 { 15 memory@80000000 { 16 device_type = "memory"; 16 device_type = "memory"; 17 reg = <0x80000000 0x8000000>; 17 reg = <0x80000000 0x8000000>; /* 128 MB */ 18 }; 18 }; 19 19 20 cpus { 20 cpus { 21 cpu@0 { 21 cpu@0 { 22 cpu0-supply = <&vcc>; 22 cpu0-supply = <&vcc>; 23 }; 23 }; 24 }; 24 }; 25 25 26 gpio_keys { 26 gpio_keys { 27 compatible = "gpio-keys"; 27 compatible = "gpio-keys"; 28 pinctrl-names = "default"; 28 pinctrl-names = "default"; 29 pinctrl-0 = <&gpio_key_pins>; 29 pinctrl-0 = <&gpio_key_pins>; 30 30 31 key_enter { 31 key_enter { 32 label = "enter"; 32 label = "enter"; 33 gpios = <&gpio4 5 GPIO 33 gpios = <&gpio4 5 GPIO_ACTIVE_LOW>; /* gpio101 */ 34 linux,code = <KEY_ENTE 34 linux,code = <KEY_ENTER>; 35 wakeup-source; 35 wakeup-source; 36 }; 36 }; 37 37 38 key_f1 { 38 key_f1 { 39 label = "f1"; 39 label = "f1"; 40 gpios = <&gpio4 6 GPIO 40 gpios = <&gpio4 6 GPIO_ACTIVE_LOW>; /* gpio102 */ 41 linux,code = <KEY_F1>; 41 linux,code = <KEY_F1>; 42 wakeup-source; 42 wakeup-source; 43 }; 43 }; 44 44 45 key_f2 { 45 key_f2 { 46 label = "f2"; 46 label = "f2"; 47 gpios = <&gpio4 7 GPIO 47 gpios = <&gpio4 7 GPIO_ACTIVE_LOW>; /* gpio103 */ 48 linux,code = <KEY_F2>; 48 linux,code = <KEY_F2>; 49 wakeup-source; 49 wakeup-source; 50 }; 50 }; 51 51 52 key_f3 { 52 key_f3 { 53 label = "f3"; 53 label = "f3"; 54 gpios = <&gpio4 8 GPIO 54 gpios = <&gpio4 8 GPIO_ACTIVE_LOW>; /* gpio104 */ 55 linux,code = <KEY_F3>; 55 linux,code = <KEY_F3>; 56 wakeup-source; 56 wakeup-source; 57 }; 57 }; 58 58 59 key_f4 { 59 key_f4 { 60 label = "f4"; 60 label = "f4"; 61 gpios = <&gpio4 9 GPIO 61 gpios = <&gpio4 9 GPIO_ACTIVE_LOW>; /* gpio105 */ 62 linux,code = <KEY_F4>; 62 linux,code = <KEY_F4>; 63 wakeup-source; 63 wakeup-source; 64 }; 64 }; 65 65 66 key_left { 66 key_left { 67 label = "left"; 67 label = "left"; 68 gpios = <&gpio4 10 GPI 68 gpios = <&gpio4 10 GPIO_ACTIVE_LOW>; /* gpio106 */ 69 linux,code = <KEY_LEFT 69 linux,code = <KEY_LEFT>; 70 wakeup-source; 70 wakeup-source; 71 }; 71 }; 72 72 73 key_right { 73 key_right { 74 label = "right"; 74 label = "right"; 75 gpios = <&gpio4 11 GPI 75 gpios = <&gpio4 11 GPIO_ACTIVE_LOW>; /* gpio107 */ 76 linux,code = <KEY_RIGH 76 linux,code = <KEY_RIGHT>; 77 wakeup-source; 77 wakeup-source; 78 }; 78 }; 79 79 80 key_up { 80 key_up { 81 label = "up"; 81 label = "up"; 82 gpios = <&gpio4 12 GPI 82 gpios = <&gpio4 12 GPIO_ACTIVE_LOW>; /* gpio108 */ 83 linux,code = <KEY_UP>; 83 linux,code = <KEY_UP>; 84 wakeup-source; 84 wakeup-source; 85 }; 85 }; 86 86 87 key_down { 87 key_down { 88 label = "down"; 88 label = "down"; 89 gpios = <&gpio4 13 GPI 89 gpios = <&gpio4 13 GPIO_ACTIVE_LOW>; /* gpio109 */ 90 linux,code = <KEY_DOWN 90 linux,code = <KEY_DOWN>; 91 wakeup-source; 91 wakeup-source; 92 }; 92 }; 93 }; 93 }; 94 }; 94 }; 95 95 96 &gpmc { 96 &gpmc { 97 ranges = <0 0 0x30000000 0x1000000>, 97 ranges = <0 0 0x30000000 0x1000000>, /* CS0 space, 16MB */ 98 <1 0 0x08000000 0x1000000>; 98 <1 0 0x08000000 0x1000000>; /* CS1 space, 16MB */ 99 99 100 nand@0,0 { 100 nand@0,0 { 101 compatible = "ti,omap2-nand"; 101 compatible = "ti,omap2-nand"; 102 reg = <0 0 4>; /* CS0, offset 102 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ 103 interrupt-parent = <&gpmc>; 103 interrupt-parent = <&gpmc>; 104 interrupts = <0 IRQ_TYPE_NONE> 104 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */ 105 <1 IRQ_TYPE_NONE> 105 <1 IRQ_TYPE_NONE>; /* termcount */ 106 linux,mtd-name = "micron,nand" 106 linux,mtd-name = "micron,nand"; 107 nand-bus-width = <16>; 107 nand-bus-width = <16>; 108 gpmc,device-width = <2>; 108 gpmc,device-width = <2>; 109 ti,nand-ecc-opt = "bch8"; 109 ti,nand-ecc-opt = "bch8"; 110 110 111 gpmc,sync-clk-ps = <0>; 111 gpmc,sync-clk-ps = <0>; 112 gpmc,cs-on-ns = <0>; 112 gpmc,cs-on-ns = <0>; 113 gpmc,cs-rd-off-ns = <44>; 113 gpmc,cs-rd-off-ns = <44>; 114 gpmc,cs-wr-off-ns = <44>; 114 gpmc,cs-wr-off-ns = <44>; 115 gpmc,adv-on-ns = <6>; 115 gpmc,adv-on-ns = <6>; 116 gpmc,adv-rd-off-ns = <34>; 116 gpmc,adv-rd-off-ns = <34>; 117 gpmc,adv-wr-off-ns = <44>; 117 gpmc,adv-wr-off-ns = <44>; 118 gpmc,we-off-ns = <40>; 118 gpmc,we-off-ns = <40>; 119 gpmc,oe-off-ns = <54>; 119 gpmc,oe-off-ns = <54>; 120 gpmc,access-ns = <64>; 120 gpmc,access-ns = <64>; 121 gpmc,rd-cycle-ns = <82>; 121 gpmc,rd-cycle-ns = <82>; 122 gpmc,wr-cycle-ns = <82>; 122 gpmc,wr-cycle-ns = <82>; 123 gpmc,wr-access-ns = <40>; 123 gpmc,wr-access-ns = <40>; 124 gpmc,wr-data-mux-bus-ns = <0>; 124 gpmc,wr-data-mux-bus-ns = <0>; 125 125 126 #address-cells = <1>; 126 #address-cells = <1>; 127 #size-cells = <1>; 127 #size-cells = <1>; 128 128 129 partition@0 { 129 partition@0 { 130 label = "X-Loader"; 130 label = "X-Loader"; 131 reg = <0 0x80000>; 131 reg = <0 0x80000>; 132 }; 132 }; 133 partition@80000 { 133 partition@80000 { 134 label = "U-Boot"; 134 label = "U-Boot"; 135 reg = <0x80000 0x14000 135 reg = <0x80000 0x140000>; 136 }; 136 }; 137 partition@1c0000 { 137 partition@1c0000 { 138 label = "Environment"; 138 label = "Environment"; 139 reg = <0x1c0000 0x4000 139 reg = <0x1c0000 0x40000>; 140 }; 140 }; 141 partition@200000 { 141 partition@200000 { 142 label = "Kernel"; 142 label = "Kernel"; 143 reg = <0x200000 0x1e00 143 reg = <0x200000 0x1e00000>; 144 }; 144 }; 145 partition@2000000 { 145 partition@2000000 { 146 label = "Filesystem"; 146 label = "Filesystem"; 147 reg = <0x2000000 0x600 147 reg = <0x2000000 0x6000000>; 148 }; 148 }; 149 }; 149 }; 150 150 151 ethernet@gpmc { 151 ethernet@gpmc { 152 interrupt-parent = <&gpio5>; 152 interrupt-parent = <&gpio5>; 153 interrupts = <24 IRQ_TYPE_LEVE 153 interrupts = <24 IRQ_TYPE_LEVEL_LOW>; 154 reg = <1 0 0xff>; 154 reg = <1 0 0xff>; 155 }; 155 }; 156 }; 156 }; 157 157 158 &i2c1 { 158 &i2c1 { 159 clock-frequency = <2600000>; 159 clock-frequency = <2600000>; 160 160 161 twl: twl@48 { 161 twl: twl@48 { 162 reg = <0x48>; 162 reg = <0x48>; 163 interrupts = <7>; /* SYS_NIRQ 163 interrupts = <7>; /* SYS_NIRQ cascaded to intc */ 164 interrupt-parent = <&intc>; 164 interrupt-parent = <&intc>; 165 165 166 twl_power: power { 166 twl_power: power { 167 compatible = "ti,twl40 167 compatible = "ti,twl4030-power-idle"; 168 ti,use_poweroff; 168 ti,use_poweroff; 169 }; 169 }; 170 }; 170 }; 171 }; 171 }; 172 172 173 #include "twl4030.dtsi" 173 #include "twl4030.dtsi" 174 #include "twl4030_omap3.dtsi" 174 #include "twl4030_omap3.dtsi" 175 #include "omap3-panel-sharp-ls037v7dw01.dtsi" 175 #include "omap3-panel-sharp-ls037v7dw01.dtsi" 176 176 177 &backlight0 { 177 &backlight0 { 178 gpios = <&twl_gpio 7 GPIO_ACTIVE_HIGH> 178 gpios = <&twl_gpio 7 GPIO_ACTIVE_HIGH>; 179 }; 179 }; 180 180 181 &i2c2 { 181 &i2c2 { 182 clock-frequency = <400000>; 182 clock-frequency = <400000>; 183 }; 183 }; 184 184 185 &i2c3 { 185 &i2c3 { 186 clock-frequency = <400000>; 186 clock-frequency = <400000>; 187 }; 187 }; 188 188 189 /* tps61130rsa enabled by twl4030 regen */ 189 /* tps61130rsa enabled by twl4030 regen */ 190 &lcd_3v3 { 190 &lcd_3v3 { 191 regulator-always-on; 191 regulator-always-on; 192 }; 192 }; 193 193 194 &lcd0 { 194 &lcd0 { 195 enable-gpios = <&twl_gpio 15 GPIO_ACTI 195 enable-gpios = <&twl_gpio 15 GPIO_ACTIVE_HIGH>; /* lcd INI */ 196 reset-gpios = <&gpio2 23 GPIO_ACTIVE_H 196 reset-gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>; /* gpio55, lcd RESB */ 197 mode-gpios = <&gpio2 24 GPIO_ACTIVE_HI 197 mode-gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>; /* gpio56, lcd MO */ 198 }; 198 }; 199 199 200 &mcspi1 { 200 &mcspi1 { 201 tsc2046@0 { 201 tsc2046@0 { 202 interrupt-parent = <&gpio2>; 202 interrupt-parent = <&gpio2>; 203 interrupts = <22 0>; 203 interrupts = <22 0>; /* gpio54 */ 204 pendown-gpio = <&gpio2 22 GPIO 204 pendown-gpio = <&gpio2 22 GPIO_ACTIVE_HIGH>; 205 }; 205 }; 206 }; 206 }; 207 207 208 &mmc1 { 208 &mmc1 { 209 /* See 35xx errata 2.1.1.128 in SPRZ27 209 /* See 35xx errata 2.1.1.128 in SPRZ278F */ 210 compatible = "ti,omap3-pre-es3-hsmmc"; 210 compatible = "ti,omap3-pre-es3-hsmmc"; 211 vmmc-supply = <&vmmc1>; 211 vmmc-supply = <&vmmc1>; 212 bus-width = <4>; 212 bus-width = <4>; 213 pinctrl-names = "default"; 213 pinctrl-names = "default"; 214 pinctrl-0 = <&mmc1_pins>; 214 pinctrl-0 = <&mmc1_pins>; 215 }; 215 }; 216 216 217 &mmc2 { 217 &mmc2 { 218 status = "disabled"; 218 status = "disabled"; 219 }; 219 }; 220 220 221 &mmc3 { 221 &mmc3 { 222 status = "disabled"; 222 status = "disabled"; 223 }; 223 }; 224 224 225 &omap3_pmx_core { 225 &omap3_pmx_core { 226 gpio_key_pins: gpio-key-pins { 226 gpio_key_pins: gpio-key-pins { 227 pinctrl-single,pins = < 227 pinctrl-single,pins = < 228 OMAP3_CORE1_IOPAD(0x21 228 OMAP3_CORE1_IOPAD(0x211a, PIN_INPUT | MUX_MODE4) /* cam_d2.gpio_101 */ 229 OMAP3_CORE1_IOPAD(0x21 229 OMAP3_CORE1_IOPAD(0x211c, PIN_INPUT | MUX_MODE4) /* cam_d3.gpio_102 */ 230 OMAP3_CORE1_IOPAD(0x21 230 OMAP3_CORE1_IOPAD(0x211e, PIN_INPUT | MUX_MODE4) /* cam_d4.gpio_103 */ 231 OMAP3_CORE1_IOPAD(0x21 231 OMAP3_CORE1_IOPAD(0x2120, PIN_INPUT | MUX_MODE4) /* cam_d5.gpio_104 */ 232 OMAP3_CORE1_IOPAD(0x21 232 OMAP3_CORE1_IOPAD(0x2122, PIN_INPUT | MUX_MODE4) /* cam_d6.gpio_105 */ 233 OMAP3_CORE1_IOPAD(0x21 233 OMAP3_CORE1_IOPAD(0x2124, PIN_INPUT | MUX_MODE4) /* cam_d7.gpio_106 */ 234 OMAP3_CORE1_IOPAD(0x21 234 OMAP3_CORE1_IOPAD(0x2126, PIN_INPUT | MUX_MODE4) /* cam_d8.gpio_107 */ 235 OMAP3_CORE1_IOPAD(0x21 235 OMAP3_CORE1_IOPAD(0x2128, PIN_INPUT | MUX_MODE4) /* cam_d9.gpio_108 */ 236 OMAP3_CORE1_IOPAD(0x21 236 OMAP3_CORE1_IOPAD(0x212a, PIN_INPUT | MUX_MODE4) /* cam_d10.gpio_109 */ 237 >; 237 >; 238 }; 238 }; 239 239 240 musb_pins: musb-pins { 240 musb_pins: musb-pins { 241 pinctrl-single,pins = < 241 pinctrl-single,pins = < 242 OMAP3_CORE1_IOPAD(0x21 242 OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0) /* hsusb0_clk.hsusb0_clk */ 243 OMAP3_CORE1_IOPAD(0x21 243 OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0) /* hsusb0_data0.hsusb0_data0 */ 244 OMAP3_CORE1_IOPAD(0x21 244 OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0) /* hsusb0_data1.hsusb0_data1 */ 245 OMAP3_CORE1_IOPAD(0x21 245 OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0) /* hsusb0_data2.hsusb0_data2 */ 246 OMAP3_CORE1_IOPAD(0x21 246 OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0) /* hsusb0_data3.hsusb0_data3 */ 247 OMAP3_CORE1_IOPAD(0x21 247 OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0) /* hsusb0_data4.hsusb0_data4 */ 248 OMAP3_CORE1_IOPAD(0x21 248 OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0) /* hsusb0_data5.hsusb0_data5 */ 249 OMAP3_CORE1_IOPAD(0x21 249 OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0) /* hsusb0_data6.hsusb0_data6 */ 250 OMAP3_CORE1_IOPAD(0x21 250 OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0) /* hsusb0_data7.hsusb0_data7 */ 251 OMAP3_CORE1_IOPAD(0x21 251 OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0) /* hsusb0_dir.hsusb0_dir */ 252 OMAP3_CORE1_IOPAD(0x21 252 OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0) /* hsusb0_nxt.hsusb0_nxt */ 253 OMAP3_CORE1_IOPAD(0x21 253 OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0) /* hsusb0_stp.hsusb0_stp */ 254 >; 254 >; 255 }; 255 }; 256 256 257 mmc1_pins: mmc1-pins { 257 mmc1_pins: mmc1-pins { 258 pinctrl-single,pins = < 258 pinctrl-single,pins = < 259 OMAP3_CORE1_IOPAD(0x21 259 OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.mmc1_clk */ 260 OMAP3_CORE1_IOPAD(0x21 260 OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.mmc1_cmd */ 261 OMAP3_CORE1_IOPAD(0x21 261 OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.mmc1_dat0 */ 262 OMAP3_CORE1_IOPAD(0x21 262 OMAP3_CORE1_IOPAD(0x214A, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.mmc1_dat1 */ 263 OMAP3_CORE1_IOPAD(0x21 263 OMAP3_CORE1_IOPAD(0x214C, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.mmc1_dat2 */ 264 OMAP3_CORE1_IOPAD(0x21 264 OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.mmc1_dat3 */ 265 >; 265 >; 266 }; 266 }; 267 }; 267 }; 268 268 269 &twl_keypad { 269 &twl_keypad { 270 linux,keymap = <MATRIX_KEY(0, 0, KEY_1 270 linux,keymap = <MATRIX_KEY(0, 0, KEY_1) 271 MATRIX_KEY(0, 1, KEY_2 271 MATRIX_KEY(0, 1, KEY_2) 272 MATRIX_KEY(0, 2, KEY_3 272 MATRIX_KEY(0, 2, KEY_3) 273 MATRIX_KEY(1, 0, KEY_4 273 MATRIX_KEY(1, 0, KEY_4) 274 MATRIX_KEY(1, 1, KEY_5 274 MATRIX_KEY(1, 1, KEY_5) 275 MATRIX_KEY(1, 2, KEY_6 275 MATRIX_KEY(1, 2, KEY_6) 276 MATRIX_KEY(1, 3, KEY_F 276 MATRIX_KEY(1, 3, KEY_F5) 277 MATRIX_KEY(2, 0, KEY_7 277 MATRIX_KEY(2, 0, KEY_7) 278 MATRIX_KEY(2, 1, KEY_8 278 MATRIX_KEY(2, 1, KEY_8) 279 MATRIX_KEY(2, 2, KEY_9 279 MATRIX_KEY(2, 2, KEY_9) 280 MATRIX_KEY(2, 3, KEY_F 280 MATRIX_KEY(2, 3, KEY_F6) 281 MATRIX_KEY(3, 0, KEY_F 281 MATRIX_KEY(3, 0, KEY_F7) 282 MATRIX_KEY(3, 1, KEY_0 282 MATRIX_KEY(3, 1, KEY_0) 283 MATRIX_KEY(3, 2, KEY_F 283 MATRIX_KEY(3, 2, KEY_F8) 284 MATRIX_KEY(5, 4, KEY_R 284 MATRIX_KEY(5, 4, KEY_RESERVED) 285 MATRIX_KEY(4, 4, KEY_V 285 MATRIX_KEY(4, 4, KEY_VOLUMEUP) 286 MATRIX_KEY(5, 5, KEY_V 286 MATRIX_KEY(5, 5, KEY_VOLUMEDOWN)>; 287 }; 287 }; 288 288 289 &uart3 { 289 &uart3 { 290 interrupts-extended = <&intc 74 &omap3 290 interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>; 291 }; 291 }; 292 292 293 &usb_otg_hs { 293 &usb_otg_hs { 294 pinctrl-names = "default"; 294 pinctrl-names = "default"; 295 pinctrl-0 = <&musb_pins>; 295 pinctrl-0 = <&musb_pins>; 296 interface-type = <0>; 296 interface-type = <0>; 297 usb-phy = <&usb2_phy>; 297 usb-phy = <&usb2_phy>; 298 mode = <3>; 298 mode = <3>; 299 power = <50>; 299 power = <50>; 300 }; 300 }; 301 301 302 &vaux1 { 302 &vaux1 { 303 /* Needed for ads7846 */ 303 /* Needed for ads7846 */ 304 regulator-name = "vcc"; 304 regulator-name = "vcc"; 305 }; 305 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.