Javier Martinez Canillas | cb5e191 | 2012-12-19 14:33:09 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for IGEPv2 board |
| 3 | * |
| 4 | * Copyright (C) 2012 Javier Martinez Canillas <javier@collabora.co.uk> |
| 5 | * Copyright (C) 2012 Enric Balletbo i Serra <eballetbo@gmail.com> |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | */ |
| 11 | |
Florian Vaussard | 98ef7957 | 2013-05-31 14:32:55 +0200 | [diff] [blame] | 12 | #include "omap3-igep.dtsi" |
Javier Martinez Canillas | cb5e191 | 2012-12-19 14:33:09 +0100 | [diff] [blame] | 13 | |
| 14 | / { |
| 15 | model = "IGEPv2"; |
| 16 | compatible = "isee,omap3-igep0020", "ti,omap3"; |
| 17 | |
| 18 | leds { |
Javier Martinez Canillas | bd52e2d | 2013-06-20 16:42:31 +0200 | [diff] [blame] | 19 | pinctrl-names = "default"; |
| 20 | pinctrl-0 = <&leds_pins>; |
Javier Martinez Canillas | cb5e191 | 2012-12-19 14:33:09 +0100 | [diff] [blame] | 21 | compatible = "gpio-leds"; |
Javier Martinez Canillas | bd52e2d | 2013-06-20 16:42:31 +0200 | [diff] [blame] | 22 | |
Javier Martinez Canillas | cb5e191 | 2012-12-19 14:33:09 +0100 | [diff] [blame] | 23 | boot { |
| 24 | label = "omap3:green:boot"; |
Florian Vaussard | 6d624ea | 2013-05-31 14:32:56 +0200 | [diff] [blame] | 25 | gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; |
Javier Martinez Canillas | cb5e191 | 2012-12-19 14:33:09 +0100 | [diff] [blame] | 26 | default-state = "on"; |
| 27 | }; |
| 28 | |
| 29 | user0 { |
| 30 | label = "omap3:red:user0"; |
Florian Vaussard | 6d624ea | 2013-05-31 14:32:56 +0200 | [diff] [blame] | 31 | gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>; |
Javier Martinez Canillas | cb5e191 | 2012-12-19 14:33:09 +0100 | [diff] [blame] | 32 | default-state = "off"; |
| 33 | }; |
| 34 | |
| 35 | user1 { |
| 36 | label = "omap3:red:user1"; |
Florian Vaussard | 6d624ea | 2013-05-31 14:32:56 +0200 | [diff] [blame] | 37 | gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; |
Javier Martinez Canillas | cb5e191 | 2012-12-19 14:33:09 +0100 | [diff] [blame] | 38 | default-state = "off"; |
| 39 | }; |
| 40 | |
| 41 | user2 { |
| 42 | label = "omap3:green:user1"; |
Florian Vaussard | 6d624ea | 2013-05-31 14:32:56 +0200 | [diff] [blame] | 43 | gpios = <&twl_gpio 19 GPIO_ACTIVE_LOW>; |
Javier Martinez Canillas | cb5e191 | 2012-12-19 14:33:09 +0100 | [diff] [blame] | 44 | }; |
| 45 | }; |
Javier Martinez Canillas | d72b441 | 2013-04-17 18:32:09 +0200 | [diff] [blame] | 46 | |
| 47 | vddvario: regulator-vddvario { |
| 48 | compatible = "regulator-fixed"; |
| 49 | regulator-name = "vddvario"; |
| 50 | regulator-always-on; |
| 51 | }; |
| 52 | |
| 53 | vdd33a: regulator-vdd33a { |
| 54 | compatible = "regulator-fixed"; |
| 55 | regulator-name = "vdd33a"; |
| 56 | regulator-always-on; |
| 57 | }; |
Javier Martinez Canillas | 339e834 | 2013-10-07 17:12:24 +0200 | [diff] [blame] | 58 | |
| 59 | /* HS USB Port 1 Power */ |
| 60 | hsusb1_power: hsusb1_power_reg { |
| 61 | compatible = "regulator-fixed"; |
| 62 | regulator-name = "hsusb1_vbus"; |
| 63 | regulator-min-microvolt = <3300000>; |
| 64 | regulator-max-microvolt = <3300000>; |
| 65 | gpio = <&twl_gpio 18 GPIO_ACTIVE_LOW>; /* GPIO LEDA */ |
| 66 | startup-delay-us = <70000>; |
| 67 | }; |
| 68 | |
| 69 | /* HS USB Host PHY on PORT 1 */ |
| 70 | hsusb1_phy: hsusb1_phy { |
| 71 | compatible = "usb-nop-xceiv"; |
| 72 | reset-gpios = <&gpio1 24 GPIO_ACTIVE_LOW>; /* gpio_24 */ |
| 73 | vcc-supply = <&hsusb1_power>; |
| 74 | }; |
| 75 | }; |
| 76 | |
| 77 | &omap3_pmx_core { |
| 78 | pinctrl-names = "default"; |
| 79 | pinctrl-0 = < |
| 80 | &hsusbb1_pins |
| 81 | >; |
| 82 | |
| 83 | hsusbb1_pins: pinmux_hsusbb1_pins { |
| 84 | pinctrl-single,pins = < |
| 85 | 0x5aa (PIN_OUTPUT | MUX_MODE3) /* etk_ctl.hsusb1_clk */ |
| 86 | 0x5a8 (PIN_OUTPUT | MUX_MODE3) /* etk_clk.hsusb1_stp */ |
| 87 | 0x5bc (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d8.hsusb1_dir */ |
| 88 | 0x5be (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d9.hsusb1_nxt */ |
| 89 | 0x5ac (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d0.hsusb1_data0 */ |
| 90 | 0x5ae (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d1.hsusb1_data1 */ |
| 91 | 0x5b0 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d2.hsusb1_data2 */ |
| 92 | 0x5b2 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d3.hsusb1_data7 */ |
| 93 | 0x5b4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d4.hsusb1_data4 */ |
| 94 | 0x5b6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d5.hsusb1_data5 */ |
| 95 | 0x5b8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d6.hsusb1_data6 */ |
| 96 | 0x5ba (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d7.hsusb1_data3 */ |
| 97 | >; |
| 98 | }; |
Javier Martinez Canillas | cb5e191 | 2012-12-19 14:33:09 +0100 | [diff] [blame] | 99 | }; |
| 100 | |
Javier Martinez Canillas | bd52e2d | 2013-06-20 16:42:31 +0200 | [diff] [blame] | 101 | &leds_pins { |
| 102 | pinctrl-single,pins = < |
| 103 | 0x5c4 (PIN_OUTPUT | MUX_MODE4) /* etk_d12.gpio_26 */ |
| 104 | 0x5c6 (PIN_OUTPUT | MUX_MODE4) /* etk_d13.gpio_27 */ |
| 105 | 0x5c8 (PIN_OUTPUT | MUX_MODE4) /* etk_d14.gpio_28 */ |
| 106 | >; |
| 107 | }; |
| 108 | |
Javier Martinez Canillas | cb5e191 | 2012-12-19 14:33:09 +0100 | [diff] [blame] | 109 | &i2c3 { |
| 110 | clock-frequency = <100000>; |
| 111 | |
| 112 | /* |
| 113 | * Display monitor features are burnt in the EEPROM |
| 114 | * as EDID data. |
| 115 | */ |
| 116 | eeprom@50 { |
| 117 | compatible = "ti,eeprom"; |
| 118 | reg = <0x50>; |
| 119 | }; |
| 120 | }; |
Javier Martinez Canillas | d72b441 | 2013-04-17 18:32:09 +0200 | [diff] [blame] | 121 | |
| 122 | &gpmc { |
Javier Martinez Canillas | 7f674b3 | 2013-05-10 21:31:10 +0200 | [diff] [blame] | 123 | ranges = <0 0 0x00000000 0x20000000>, |
| 124 | <5 0 0x2c000000 0x01000000>; |
| 125 | |
| 126 | nand@0,0 { |
| 127 | linux,mtd-name= "micron,mt29c4g96maz"; |
| 128 | reg = <0 0 0>; |
| 129 | nand-bus-width = <16>; |
| 130 | ti,nand-ecc-opt = "bch8"; |
| 131 | |
| 132 | gpmc,sync-clk-ps = <0>; |
| 133 | gpmc,cs-on-ns = <0>; |
| 134 | gpmc,cs-rd-off-ns = <44>; |
| 135 | gpmc,cs-wr-off-ns = <44>; |
| 136 | gpmc,adv-on-ns = <6>; |
| 137 | gpmc,adv-rd-off-ns = <34>; |
| 138 | gpmc,adv-wr-off-ns = <44>; |
| 139 | gpmc,we-off-ns = <40>; |
| 140 | gpmc,oe-off-ns = <54>; |
| 141 | gpmc,access-ns = <64>; |
| 142 | gpmc,rd-cycle-ns = <82>; |
| 143 | gpmc,wr-cycle-ns = <82>; |
| 144 | gpmc,wr-access-ns = <40>; |
| 145 | gpmc,wr-data-mux-bus-ns = <0>; |
| 146 | |
| 147 | #address-cells = <1>; |
| 148 | #size-cells = <1>; |
| 149 | |
| 150 | partition@0 { |
| 151 | label = "SPL"; |
| 152 | reg = <0 0x100000>; |
| 153 | }; |
Lee Jones | 8771c96 | 2013-07-22 11:52:32 +0100 | [diff] [blame] | 154 | partition@80000 { |
Javier Martinez Canillas | 7f674b3 | 2013-05-10 21:31:10 +0200 | [diff] [blame] | 155 | label = "U-Boot"; |
| 156 | reg = <0x100000 0x180000>; |
| 157 | }; |
Lee Jones | 8771c96 | 2013-07-22 11:52:32 +0100 | [diff] [blame] | 158 | partition@1c0000 { |
Javier Martinez Canillas | 7f674b3 | 2013-05-10 21:31:10 +0200 | [diff] [blame] | 159 | label = "Environment"; |
| 160 | reg = <0x280000 0x100000>; |
| 161 | }; |
Lee Jones | 8771c96 | 2013-07-22 11:52:32 +0100 | [diff] [blame] | 162 | partition@280000 { |
Javier Martinez Canillas | 7f674b3 | 2013-05-10 21:31:10 +0200 | [diff] [blame] | 163 | label = "Kernel"; |
| 164 | reg = <0x380000 0x300000>; |
| 165 | }; |
Lee Jones | 8771c96 | 2013-07-22 11:52:32 +0100 | [diff] [blame] | 166 | partition@780000 { |
Javier Martinez Canillas | 7f674b3 | 2013-05-10 21:31:10 +0200 | [diff] [blame] | 167 | label = "Filesystem"; |
| 168 | reg = <0x680000 0x1f980000>; |
| 169 | }; |
| 170 | }; |
| 171 | |
Javier Martinez Canillas | d72b441 | 2013-04-17 18:32:09 +0200 | [diff] [blame] | 172 | ethernet@5,0 { |
| 173 | pinctrl-names = "default"; |
| 174 | pinctrl-0 = <&smsc911x_pins>; |
| 175 | compatible = "smsc,lan9221", "smsc,lan9115"; |
| 176 | reg = <5 0 0xff>; |
| 177 | bank-width = <2>; |
| 178 | |
| 179 | gpmc,mux-add-data; |
| 180 | gpmc,cs-on-ns = <0>; |
| 181 | gpmc,cs-rd-off-ns = <186>; |
| 182 | gpmc,cs-wr-off-ns = <186>; |
| 183 | gpmc,adv-on-ns = <12>; |
| 184 | gpmc,adv-rd-off-ns = <48>; |
| 185 | gpmc,adv-wr-off-ns = <48>; |
| 186 | gpmc,oe-on-ns = <54>; |
| 187 | gpmc,oe-off-ns = <168>; |
| 188 | gpmc,we-on-ns = <54>; |
| 189 | gpmc,we-off-ns = <168>; |
| 190 | gpmc,rd-cycle-ns = <186>; |
| 191 | gpmc,wr-cycle-ns = <186>; |
| 192 | gpmc,access-ns = <114>; |
| 193 | gpmc,page-burst-access-ns = <6>; |
| 194 | gpmc,bus-turnaround-ns = <12>; |
| 195 | gpmc,cycle2cycle-delay-ns = <18>; |
| 196 | gpmc,wr-data-mux-bus-ns = <90>; |
| 197 | gpmc,wr-access-ns = <186>; |
| 198 | gpmc,cycle2cycle-samecsen; |
| 199 | gpmc,cycle2cycle-diffcsen; |
| 200 | |
| 201 | interrupt-parent = <&gpio6>; |
Javier Martinez Canillas | 2892aef | 2013-10-07 17:12:25 +0200 | [diff] [blame] | 202 | interrupts = <16 IRQ_TYPE_LEVEL_LOW>; |
Javier Martinez Canillas | d72b441 | 2013-04-17 18:32:09 +0200 | [diff] [blame] | 203 | vmmc-supply = <&vddvario>; |
| 204 | vmmc_aux-supply = <&vdd33a>; |
| 205 | reg-io-width = <4>; |
| 206 | |
| 207 | smsc,save-mac-address; |
| 208 | }; |
| 209 | }; |
Javier Martinez Canillas | 339e834 | 2013-10-07 17:12:24 +0200 | [diff] [blame] | 210 | |
| 211 | &usbhshost { |
| 212 | port1-mode = "ehci-phy"; |
| 213 | }; |
| 214 | |
| 215 | &usbhsehci { |
| 216 | phys = <&hsusb1_phy>; |
| 217 | }; |