Jon Hunter | 5a8095e | 2012-09-11 11:01:59 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | /dts-v1/; |
| 9 | |
Florian Vaussard | 98ef7957 | 2013-05-31 14:32:55 +0200 | [diff] [blame] | 10 | #include "omap34xx.dtsi" |
Jon Hunter | 5a8095e | 2012-09-11 11:01:59 -0500 | [diff] [blame] | 11 | |
| 12 | / { |
| 13 | model = "TI OMAP3 BeagleBoard"; |
| 14 | compatible = "ti,omap3-beagle", "ti,omap3"; |
| 15 | |
Nishanth Menon | a134be3 | 2013-03-19 12:53:05 -0500 | [diff] [blame] | 16 | cpus { |
| 17 | cpu@0 { |
| 18 | cpu0-supply = <&vcc>; |
| 19 | }; |
| 20 | }; |
| 21 | |
Jon Hunter | 5a8095e | 2012-09-11 11:01:59 -0500 | [diff] [blame] | 22 | memory { |
| 23 | device_type = "memory"; |
| 24 | reg = <0x80000000 0x10000000>; /* 256 MB */ |
| 25 | }; |
| 26 | |
| 27 | leds { |
| 28 | compatible = "gpio-leds"; |
| 29 | pmu_stat { |
| 30 | label = "beagleboard::pmu_stat"; |
Florian Vaussard | 6d624ea | 2013-05-31 14:32:56 +0200 | [diff] [blame] | 31 | gpios = <&twl_gpio 19 GPIO_ACTIVE_HIGH>; /* LEDB */ |
Jon Hunter | 5a8095e | 2012-09-11 11:01:59 -0500 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | heartbeat { |
| 35 | label = "beagleboard::usr0"; |
Florian Vaussard | 6d624ea | 2013-05-31 14:32:56 +0200 | [diff] [blame] | 36 | gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* 150 -> D6 LED */ |
Jon Hunter | 5a8095e | 2012-09-11 11:01:59 -0500 | [diff] [blame] | 37 | linux,default-trigger = "heartbeat"; |
| 38 | }; |
| 39 | |
| 40 | mmc { |
| 41 | label = "beagleboard::usr1"; |
Florian Vaussard | 6d624ea | 2013-05-31 14:32:56 +0200 | [diff] [blame] | 42 | gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>; /* 149 -> D7 LED */ |
Jon Hunter | 5a8095e | 2012-09-11 11:01:59 -0500 | [diff] [blame] | 43 | linux,default-trigger = "mmc0"; |
| 44 | }; |
| 45 | }; |
| 46 | |
Roger Quadros | 2e5f78a | 2013-03-20 17:45:00 +0200 | [diff] [blame] | 47 | /* HS USB Port 2 Power */ |
| 48 | hsusb2_power: hsusb2_power_reg { |
| 49 | compatible = "regulator-fixed"; |
| 50 | regulator-name = "hsusb2_vbus"; |
| 51 | regulator-min-microvolt = <3300000>; |
| 52 | regulator-max-microvolt = <3300000>; |
| 53 | gpio = <&twl_gpio 18 0>; /* GPIO LEDA */ |
| 54 | startup-delay-us = <70000>; |
| 55 | }; |
| 56 | |
| 57 | /* HS USB Host PHY on PORT 2 */ |
| 58 | hsusb2_phy: hsusb2_phy { |
| 59 | compatible = "usb-nop-xceiv"; |
Roger Quadros | 633b940 | 2013-09-24 11:53:51 +0300 | [diff] [blame] | 60 | reset-gpios = <&gpio5 19 GPIO_ACTIVE_LOW>; /* gpio_147 */ |
Roger Quadros | 2e5f78a | 2013-03-20 17:45:00 +0200 | [diff] [blame] | 61 | vcc-supply = <&hsusb2_power>; |
| 62 | }; |
Kevin Hilman | d641c3d | 2013-05-31 09:27:05 -0700 | [diff] [blame] | 63 | |
| 64 | gpio_keys { |
| 65 | compatible = "gpio-keys"; |
| 66 | |
| 67 | user { |
| 68 | label = "user"; |
| 69 | gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; |
| 70 | linux,code = <0x114>; |
| 71 | gpio-key,wakeup; |
| 72 | }; |
| 73 | |
| 74 | }; |
| 75 | }; |
| 76 | |
| 77 | &omap3_pmx_wkup { |
| 78 | gpio1_pins: pinmux_gpio1_pins { |
| 79 | pinctrl-single,pins = < |
| 80 | 0x14 (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_boot5.gpio_7 */ |
| 81 | >; |
| 82 | }; |
Roger Quadros | 2e5f78a | 2013-03-20 17:45:00 +0200 | [diff] [blame] | 83 | }; |
| 84 | |
| 85 | &omap3_pmx_core { |
| 86 | pinctrl-names = "default"; |
| 87 | pinctrl-0 = < |
| 88 | &hsusbb2_pins |
| 89 | >; |
| 90 | |
| 91 | hsusbb2_pins: pinmux_hsusbb2_pins { |
| 92 | pinctrl-single,pins = < |
Roger Quadros | 36f496a | 2013-08-15 13:18:28 +0300 | [diff] [blame] | 93 | 0x5c0 (PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */ |
| 94 | 0x5c2 (PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */ |
| 95 | 0x5c4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */ |
| 96 | 0x5c6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */ |
| 97 | 0x5c8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */ |
| 98 | 0x5cA (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */ |
| 99 | 0x1a4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */ |
| 100 | 0x1a6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */ |
| 101 | 0x1a8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */ |
| 102 | 0x1aa (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */ |
| 103 | 0x1ac (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */ |
| 104 | 0x1ae (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */ |
Roger Quadros | 2e5f78a | 2013-03-20 17:45:00 +0200 | [diff] [blame] | 105 | >; |
| 106 | }; |
Kevin Hilman | b859c1e | 2013-05-30 17:38:00 -0700 | [diff] [blame] | 107 | |
| 108 | uart3_pins: pinmux_uart3_pins { |
| 109 | pinctrl-single,pins = < |
| 110 | 0x16e (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */ |
| 111 | 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */ |
| 112 | >; |
| 113 | }; |
Jon Hunter | 5a8095e | 2012-09-11 11:01:59 -0500 | [diff] [blame] | 114 | }; |
| 115 | |
| 116 | &i2c1 { |
| 117 | clock-frequency = <2600000>; |
| 118 | |
| 119 | twl: twl@48 { |
| 120 | reg = <0x48>; |
| 121 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ |
| 122 | interrupt-parent = <&intc>; |
| 123 | }; |
| 124 | }; |
| 125 | |
Florian Vaussard | 98ef7957 | 2013-05-31 14:32:55 +0200 | [diff] [blame] | 126 | #include "twl4030.dtsi" |
Kevin Hilman | f968845 | 2013-05-31 14:09:34 -0700 | [diff] [blame] | 127 | #include "twl4030_omap3.dtsi" |
Jon Hunter | 5a8095e | 2012-09-11 11:01:59 -0500 | [diff] [blame] | 128 | |
| 129 | &mmc1 { |
| 130 | vmmc-supply = <&vmmc1>; |
| 131 | vmmc_aux-supply = <&vsim>; |
| 132 | bus-width = <8>; |
| 133 | }; |
| 134 | |
| 135 | &mmc2 { |
| 136 | status = "disabled"; |
| 137 | }; |
| 138 | |
| 139 | &mmc3 { |
| 140 | status = "disabled"; |
| 141 | }; |
Roger Quadros | 2e5f78a | 2013-03-20 17:45:00 +0200 | [diff] [blame] | 142 | |
| 143 | &usbhshost { |
| 144 | port2-mode = "ehci-phy"; |
| 145 | }; |
| 146 | |
| 147 | &usbhsehci { |
| 148 | phys = <0 &hsusb2_phy>; |
| 149 | }; |
| 150 | |
| 151 | &twl_gpio { |
| 152 | ti,use-leds; |
| 153 | /* pullups: BIT(1) */ |
| 154 | ti,pullups = <0x000002>; |
| 155 | /* |
| 156 | * pulldowns: |
| 157 | * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13) |
| 158 | * BIT(15), BIT(16), BIT(17) |
| 159 | */ |
| 160 | ti,pulldowns = <0x03a1c4>; |
| 161 | }; |
Kevin Hilman | b859c1e | 2013-05-30 17:38:00 -0700 | [diff] [blame] | 162 | |
| 163 | &uart3 { |
| 164 | pinctrl-names = "default"; |
| 165 | pinctrl-0 = <&uart3_pins>; |
| 166 | }; |
Kevin Hilman | d641c3d | 2013-05-31 09:27:05 -0700 | [diff] [blame] | 167 | |
| 168 | &gpio1 { |
| 169 | pinctrl-names = "default"; |
| 170 | pinctrl-0 = <&gpio1_pins>; |
| 171 | }; |