1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License version 2 as 4 * published by the Free Software Foundation. 5 */ 6 7/ { 8 gpio_keys { 9 compatible = "gpio-keys"; 10 pinctrl-names = "default"; 11 pinctrl-0 = <&gpio_key_pins>; 12 13 sysboot2 { 14 label = "gpio3"; 15 gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* gpio_111 / uP_GPIO_3 */ 16 linux,code = <BTN_0>; 17 wakeup-source; 18 }; 19 }; 20 21 sound { 22 compatible = "ti,omap-twl4030"; 23 ti,model = "omap3logic"; 24 ti,mcbsp = <&mcbsp2>; 25 }; 26 27 leds { 28 compatible = "gpio-leds"; 29 pinctrl-names = "default"; 30 pinctrl-0 = <&led_pins &led_pins_wkup>; 31 32 led1 { 33 label = "led1"; 34 gpios = <&gpio5 5 GPIO_ACTIVE_LOW>; /* gpio133 */ 35 linux,default-trigger = "cpu0"; 36 }; 37 38 led2 { 39 label = "led2"; 40 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; /* gpio11 */ 41 linux,default-trigger = "none"; 42 }; 43 }; 44}; 45 46&vaux1 { 47 regulator-min-microvolt = <3000000>; 48 regulator-max-microvolt = <3000000>; 49}; 50 51&vaux4 { 52 regulator-min-microvolt = <1800000>; 53 regulator-max-microvolt = <1800000>; 54}; 55 56&mcbsp2 { 57 status = "okay"; 58 pinctrl-names = "default"; 59 pinctrl-0 = <&mcbsp2_pins>; 60}; 61 62&charger { 63 ti,bb-uvolt = <3200000>; 64 ti,bb-uamp = <150>; 65}; 66 67&gpmc { 68 ranges = <0 0 0x30000000 0x1000000 /* CS0: 16MB for NAND */ 69 1 0 0x2c000000 0x1000000 /* CS1: 16MB for LAN9221 */ 70 2 0 0x10000000 0x2000000>; /* CS2: 32MB for NOR */ 71 72 ethernet@gpmc { 73 pinctrl-names = "default"; 74 pinctrl-0 = <&lan9221_pins>; 75 interrupt-parent = <&gpio5>; 76 interrupts = <24 IRQ_TYPE_LEVEL_LOW>; /* gpio_152 */ 77 reg = <1 0 0xff>; 78 }; 79}; 80 81&vpll2 { 82 regulator-always-on; 83}; 84 85&dss { 86 status = "ok"; 87 vdds_dsi-supply = <&vpll2>; 88 vdda_video-supply = <&video_reg>; 89 pinctrl-names = "default"; 90 pinctrl-0 = <&dss_dpi_pins1>; 91 port { 92 dpi_out: endpoint { 93 remote-endpoint = <&lcd_in>; 94 data-lines = <16>; 95 }; 96 }; 97}; 98 99/ { 100 aliases { 101 display0 = &lcd0; 102 }; 103 104 video_reg: video_reg { 105 compatible = "regulator-fixed"; 106 regulator-name = "fixed-supply"; 107 regulator-min-microvolt = <3300000>; 108 regulator-max-microvolt = <3300000>; 109 }; 110 111 lcd0: display@0 { 112 compatible = "panel-dpi"; 113 label = "28"; 114 status = "okay"; 115 /* default-on; */ 116 pinctrl-names = "default"; 117 pinctrl-0 = <&lcd_enable_pin>; 118 enable-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>; /* gpio155, lcd INI */ 119 port { 120 lcd_in: endpoint { 121 remote-endpoint = <&dpi_out>; 122 }; 123 }; 124 125 panel-timing { 126 clock-frequency = <9000000>; 127 hactive = <480>; 128 vactive = <272>; 129 hfront-porch = <3>; 130 hback-porch = <2>; 131 hsync-len = <42>; 132 vback-porch = <3>; 133 vfront-porch = <2>; 134 vsync-len = <11>; 135 hsync-active = <1>; 136 vsync-active = <1>; 137 de-active = <1>; 138 pixelclk-active = <0>; 139 }; 140 }; 141 142 bl: backlight { 143 compatible = "pwm-backlight"; 144 pinctrl-names = "default"; 145 pinctrl-0 = <&backlight_pins>; 146 pwms = <&twl_pwm 0 5000000>; 147 brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; 148 default-brightness-level = <7>; 149 enable-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; /* gpio_8 */ 150 }; 151}; 152 153&mmc1 { 154 interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>; 155 pinctrl-names = "default"; 156 pinctrl-0 = <&mmc1_pins>; 157 wp-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>; /* gpio_126 */ 158 cd-gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; /* gpio_110 */ 159 vmmc-supply = <&vmmc1>; 160 bus-width = <4>; 161 cap-power-off-card; 162}; 163 164&omap3_pmx_core { 165 gpio_key_pins: pinmux_gpio_key_pins { 166 pinctrl-single,pins = < 167 OMAP3_CORE1_IOPAD(0x212e, PIN_INPUT_PULLUP | MUX_MODE4) /* cam_xclkb.gpio_111 / uP_GPIO_3*/ 168 >; 169 }; 170 171 led_pins: pinmux_led_pins { 172 pinctrl-single,pins = < 173 OMAP3_CORE1_IOPAD(0x215e, PIN_OUTPUT_PULLUP | MUX_MODE4) /* sdmmc2_dat1.gpio_133 / uP_GPIO_0 */ 174 >; 175 }; 176 177 lan9221_pins: pinmux_lan9221_pins { 178 pinctrl-single,pins = < 179 OMAP3_CORE1_IOPAD(0x2184, PIN_INPUT_PULLUP | MUX_MODE4) /* mcbsp4_clkx.gpio_152 */ 180 >; 181 }; 182 183 mmc1_pins: pinmux_mmc1_pins { 184 pinctrl-single,pins = < 185 OMAP3_CORE1_IOPAD(0x2144, PIN_OUTPUT | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */ 186 OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */ 187 OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */ 188 OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */ 189 OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */ 190 OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */ 191 OMAP3_CORE1_IOPAD(0x2132, PIN_INPUT_PULLUP | MUX_MODE4) /* cam_strobe.gpio_126 */ 192 OMAP3_CORE1_IOPAD(0x212c, PIN_INPUT_PULLUP | MUX_MODE4) /* cam_d11.gpio_110 */ 193 >; 194 }; 195 196 lcd_enable_pin: pinmux_lcd_enable_pin { 197 pinctrl-single,pins = < 198 OMAP3_CORE1_IOPAD(0x218a, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE4) /* mcbsp4_fs.gpio_155 */ 199 >; 200 }; 201 202 dss_dpi_pins1: pinmux_dss_dpi_pins1 { 203 pinctrl-single,pins = < 204 OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_pclk.dss_pclk */ 205 OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_hsync.dss_hsync */ 206 OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_vsync.dss_vsync */ 207 OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_acbias.dss_acbias */ 208 209 OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data0.dss_data0 */ 210 OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data1.dss_data1 */ 211 OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data2.dss_data2 */ 212 OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data3.dss_data3 */ 213 OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data4.dss_data4 */ 214 OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data5.dss_data5 */ 215 OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data6.dss_data6 */ 216 OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data7.dss_data7 */ 217 OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data8.dss_data8 */ 218 OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data9.dss_data9 */ 219 OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data10.dss_data10 */ 220 OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data11.dss_data11 */ 221 OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data12.dss_data12 */ 222 OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data13.dss_data13 */ 223 OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data14.dss_data14 */ 224 OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data15.dss_data15 */ 225 >; 226 }; 227}; 228 229&omap3_pmx_wkup { 230 led_pins_wkup: pinmux_led_pins_wkup { 231 pinctrl-single,pins = < 232 OMAP3_WKUP_IOPAD(0x2a24, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu0.gpio_11 / uP_GPIO_1 */ 233 >; 234 }; 235 236 backlight_pins: pinmux_backlight_pins { 237 pinctrl-single,pins = < 238 OMAP3_WKUP_IOPAD(0x2a16, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE4) /* sys_boot6.gpio_8 */ 239 >; 240 }; 241}; 242 243 244&uart1 { 245 interrupts-extended = <&intc 72 &omap3_pmx_core OMAP3_UART1_RX>; 246}; 247 248/* Wired to the tps65950 on the SOM, only the USB connector is on the devkit */ 249&usb_otg_hs { 250 pinctrl-names = "default"; 251 pinctrl-0 = <&hsusb_otg_pins>; 252 interface-type = <0>; 253 usb-phy = <&usb2_phy>; 254 phys = <&usb2_phy>; 255 phy-names = "usb2-phy"; 256 mode = <3>; 257 power = <50>; 258}; 259