ARM: tegra12: set CPU rate to 2.2GHz for sku 0x87
[linux-3.10.git] / arch / arm / mach-tegra / board-pismo.c
1 /*
2  * arch/arm/mach-tegra/board-pismo.c
3  *
4  * Copyright (c) 2012-2014, NVIDIA CORPORATION.  All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18  */
19
20 #include <linux/kernel.h>
21 #include <linux/init.h>
22 #include <linux/slab.h>
23 #include <linux/ctype.h>
24 #include <linux/platform_device.h>
25 #include <linux/clk.h>
26 #include <linux/serial_8250.h>
27 #include <linux/i2c.h>
28 #include <linux/i2c/i2c-hid.h>
29 #include <linux/dma-mapping.h>
30 #include <linux/delay.h>
31 #include <linux/i2c-tegra.h>
32 #include <linux/gpio.h>
33 #include <linux/input.h>
34 #include <linux/platform_data/tegra_usb.h>
35 #include <linux/spi/spi.h>
36 #include <linux/spi/rm31080a_ts.h>
37 #include <linux/memblock.h>
38 #include <linux/spi/spi-tegra.h>
39 #include <linux/nfc/pn544.h>
40 #include <linux/rfkill-gpio.h>
41 #include <linux/skbuff.h>
42 #include <linux/ti_wilink_st.h>
43 #include <linux/regulator/consumer.h>
44 #include <linux/smb349-charger.h>
45 #include <linux/max17048_battery.h>
46 #include <linux/leds.h>
47 #include <linux/i2c/at24.h>
48 #include <linux/of_platform.h>
49 #include <linux/edp.h>
50 #include <linux/usb/tegra_usb_phy.h>
51 #include <linux/clk/tegra.h>
52 #include <linux/clocksource.h>
53 #include <linux/irqchip.h>
54 #include <linux/irqchip/tegra.h>
55 #include <linux/tegra_fiq_debugger.h>
56 #include <linux/platform_data/tegra_usb_modem_power.h>
57
58 #include <mach/irqs.h>
59 #include <mach/pinmux.h>
60 #include <mach/pinmux-t11.h>
61 #include <mach/io_dpd.h>
62 #include <mach/i2s.h>
63 #include <mach/tegra_asoc_pdata.h>
64 #include <asm/mach-types.h>
65 #include <asm/mach/arch.h>
66 #include <mach/gpio-tegra.h>
67
68 #include "board-touch-raydium.h"
69 #include "board.h"
70 #include "board-common.h"
71 #include "clock.h"
72 #include "board-pismo.h"
73 #include "devices.h"
74 #include "gpio-names.h"
75 #include "pm.h"
76 #include "common.h"
77 #include "tegra-board-id.h"
78 #include "iomap.h"
79 #include "tegra-of-dev-auxdata.h"
80
81 #ifdef CONFIG_BT_BLUESLEEP
82 static struct rfkill_gpio_platform_data pismo_bt_rfkill_pdata = {
83                 .name           = "bt_rfkill",
84                 .shutdown_gpio  = TEGRA_GPIO_PQ7,
85                 .reset_gpio     = TEGRA_GPIO_PQ6,
86                 .type           = RFKILL_TYPE_BLUETOOTH,
87 };
88
89 static struct platform_device pismo_bt_rfkill_device = {
90         .name = "rfkill_gpio",
91         .id             = -1,
92         .dev = {
93                 .platform_data = &pismo_bt_rfkill_pdata,
94         },
95 };
96
97 static struct resource pismo_bluesleep_resources[] = {
98         [0] = {
99                 .name = "gpio_host_wake",
100                         .start  = TEGRA_GPIO_PU6,
101                         .end    = TEGRA_GPIO_PU6,
102                         .flags  = IORESOURCE_IO,
103         },
104         [1] = {
105                 .name = "gpio_ext_wake",
106                         .start  = TEGRA_GPIO_PEE1,
107                         .end    = TEGRA_GPIO_PEE1,
108                         .flags  = IORESOURCE_IO,
109         },
110         [2] = {
111                 .name = "host_wake",
112                         .flags  = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
113         },
114 };
115
116 static struct platform_device pismo_bluesleep_device = {
117         .name           = "bluesleep",
118         .id             = -1,
119         .num_resources  = ARRAY_SIZE(pismo_bluesleep_resources),
120         .resource       = pismo_bluesleep_resources,
121 };
122
123 static noinline void __init pismo_setup_bt_rfkill(void)
124 {
125         platform_device_register(&pismo_bt_rfkill_device);
126 }
127
128 static noinline void __init pismo_setup_bluesleep(void)
129 {
130         pismo_bluesleep_resources[2].start =
131                 pismo_bluesleep_resources[2].end =
132                         gpio_to_irq(TEGRA_GPIO_PU6);
133         platform_device_register(&pismo_bluesleep_device);
134         return;
135 }
136 #elif defined CONFIG_BLUEDROID_PM
137 static struct resource pismo_bluedroid_pm_resources[] = {
138         [0] = {
139                 .name   = "shutdown_gpio",
140                 .start  = TEGRA_GPIO_PQ7,
141                 .end    = TEGRA_GPIO_PQ7,
142                 .flags  = IORESOURCE_IO,
143         },
144         [1] = {
145                 .name = "host_wake",
146                 .flags  = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
147         },
148         [2] = {
149                 .name = "gpio_ext_wake",
150                 .start  = TEGRA_GPIO_PEE1,
151                 .end    = TEGRA_GPIO_PEE1,
152                 .flags  = IORESOURCE_IO,
153         },
154         [3] = {
155                 .name = "gpio_host_wake",
156                 .start  = TEGRA_GPIO_PU6,
157                 .end    = TEGRA_GPIO_PU6,
158                 .flags  = IORESOURCE_IO,
159         },
160         [4] = {
161                 .name = "reset_gpio",
162                 .start  = TEGRA_GPIO_PQ6,
163                 .end    = TEGRA_GPIO_PQ6,
164                 .flags  = IORESOURCE_IO,
165         },
166 };
167
168 static struct platform_device pismo_bluedroid_pm_device = {
169         .name = "bluedroid_pm",
170         .id             = 0,
171         .num_resources  = ARRAY_SIZE(pismo_bluedroid_pm_resources),
172         .resource       = pismo_bluedroid_pm_resources,
173 };
174
175 static noinline void __init pismo_setup_bluedroid_pm(void)
176 {
177         pismo_bluedroid_pm_resources[1].start =
178                 pismo_bluedroid_pm_resources[1].end =
179                                 gpio_to_irq(TEGRA_GPIO_PU6);
180         platform_device_register(&pismo_bluedroid_pm_device);
181 }
182 #endif
183
184 static __initdata struct tegra_clk_init_table pismo_clk_init_table[] = {
185         /* name         parent          rate            enabled */
186         { "pll_m",      NULL,           0,              false},
187         { "hda",        "pll_p",        108000000,      false},
188         { "hda2codec_2x", "pll_p",      48000000,       false},
189         { "pwm",        "pll_p",        3187500,        false},
190         { "blink",      "clk_32k",      32768,          true},
191         { "i2s1",       "pll_a_out0",   0,              false},
192         { "i2s3",       "pll_a_out0",   0,              false},
193         { "i2s4",       "pll_a_out0",   0,              false},
194         { "spdif_out",  "pll_a_out0",   0,              false},
195         { "d_audio",    "clk_m",        12000000,       false},
196         { "dam0",       "clk_m",        12000000,       false},
197         { "dam1",       "clk_m",        12000000,       false},
198         { "dam2",       "clk_m",        12000000,       false},
199         { "audio1",     "i2s1_sync",    0,              false},
200         { "audio3",     "i2s3_sync",    0,              false},
201         /* Setting vi_sensor-clk to true for validation purpose, will imapact
202          * power, later set to be false.*/
203         { "vi_sensor",  "pll_p",        150000000,      false},
204         { "cilab",      "pll_p",        150000000,      false},
205         { "cilcd",      "pll_p",        150000000,      false},
206         { "cile",       "pll_p",        150000000,      false},
207         { "i2c1",       "pll_p",        3200000,        false},
208         { "i2c2",       "pll_p",        3200000,        false},
209         { "i2c3",       "pll_p",        3200000,        false},
210         { "i2c4",       "pll_p",        3200000,        false},
211         { "i2c5",       "pll_p",        3200000,        false},
212         { NULL,         NULL,           0,              0},
213 };
214
215 static struct i2c_board_info __initdata rt5640_board_info = {
216         I2C_BOARD_INFO("rt5640", 0x1c),
217 };
218
219 static struct pn544_i2c_platform_data nfc_pdata = {
220         .irq_gpio = TEGRA_GPIO_PW2,
221         .ven_gpio = TEGRA_GPIO_PQ3,
222         .firm_gpio = TEGRA_GPIO_PH0,
223 };
224
225 static struct i2c_board_info __initdata nfc_board_info = {
226         I2C_BOARD_INFO("pn544", 0x28),
227         .platform_data = &nfc_pdata,
228 };
229
230 static struct i2c_hid_platform_data i2c_keyboard_pdata = {
231         .hid_descriptor_address = 0x0,
232 };
233
234 static struct i2c_board_info __initdata i2c_keyboard_board_info = {
235         I2C_BOARD_INFO("hid", 0x3B),
236         .platform_data  = &i2c_keyboard_pdata,
237 };
238
239 static struct i2c_hid_platform_data i2c_touchpad_pdata = {
240         .hid_descriptor_address = 0x20,
241 };
242
243 static struct i2c_board_info __initdata i2c_touchpad_board_info = {
244         I2C_BOARD_INFO("hid", 0x2C),
245         .platform_data  = &i2c_touchpad_pdata,
246 };
247
248 static void pismo_i2c_init(void)
249 {
250
251         nfc_board_info.irq = gpio_to_irq(TEGRA_GPIO_PW2);
252         i2c_register_board_info(0, &nfc_board_info, 1);
253
254         i2c_register_board_info(0, &rt5640_board_info, 1);
255
256         i2c_keyboard_board_info.irq = gpio_to_irq(I2C_KB_IRQ);
257         i2c_register_board_info(1, &i2c_keyboard_board_info , 1);
258
259         i2c_touchpad_board_info.irq = gpio_to_irq(I2C_TP_IRQ);
260         i2c_register_board_info(1, &i2c_touchpad_board_info , 1);
261 }
262
263 static struct platform_device *pismo_uart_devices[] __initdata = {
264         &tegra_uarta_device,
265         &tegra_uartb_device,
266         &tegra_uartc_device,
267         &tegra_uartd_device,
268 };
269
270 static void __init uart_debug_init(void)
271 {
272         int debug_port_id;
273
274         debug_port_id = uart_console_debug_init(3);
275         if (debug_port_id < 0)
276                 return;
277
278         pismo_uart_devices[debug_port_id] = uart_console_debug_device;
279 }
280
281 static void __init pismo_uart_init(void)
282 {
283         /* Register low speed only if it is selected */
284         if (!is_tegra_debug_uartport_hs())
285                 uart_debug_init();
286
287         platform_add_devices(pismo_uart_devices,
288                                 ARRAY_SIZE(pismo_uart_devices));
289 }
290
291 static struct resource tegra_rtc_resources[] = {
292         [0] = {
293                 .start = TEGRA_RTC_BASE,
294                 .end = TEGRA_RTC_BASE + TEGRA_RTC_SIZE - 1,
295                 .flags = IORESOURCE_MEM,
296         },
297         [1] = {
298                 .start = INT_RTC,
299                 .end = INT_RTC,
300                 .flags = IORESOURCE_IRQ,
301         },
302 };
303
304 static struct platform_device tegra_rtc_device = {
305         .name = "tegra_rtc",
306         .id   = -1,
307         .resource = tegra_rtc_resources,
308         .num_resources = ARRAY_SIZE(tegra_rtc_resources),
309 };
310
311 static struct tegra_asoc_platform_data pismo_audio_pdata = {
312         .gpio_spkr_en           = TEGRA_GPIO_SPKR_EN,
313         .gpio_hp_det            = TEGRA_GPIO_HP_DET,
314         .gpio_hp_mute           = -1,
315         .gpio_int_mic_en        = TEGRA_GPIO_INT_MIC_EN,
316         .gpio_ext_mic_en        = TEGRA_GPIO_EXT_MIC_EN,
317         .gpio_ldo1_en           = TEGRA_GPIO_LDO1_EN,
318         .gpio_codec1 = TEGRA_GPIO_CODEC1_EN,
319         .gpio_codec2 = TEGRA_GPIO_CODEC2_EN,
320         .gpio_codec3 = TEGRA_GPIO_CODEC3_EN,
321         .i2s_param[HIFI_CODEC]  = {
322                 .audio_port_id  = 1,
323                 .is_i2s_master  = 1,
324                 .i2s_mode       = TEGRA_DAIFMT_I2S,
325         },
326         .i2s_param[BT_SCO]      = {
327                 .audio_port_id  = 3,
328                 .is_i2s_master  = 1,
329                 .i2s_mode       = TEGRA_DAIFMT_DSP_A,
330         },
331 };
332
333 static struct platform_device pismo_audio_device = {
334         .name   = "tegra-snd-rt5640",
335         .id     = 0,
336         .dev    = {
337                 .platform_data = &pismo_audio_pdata,
338         },
339 };
340
341 static struct platform_device tegra_camera = {
342         .name = "tegra_camera",
343         .id = -1,
344 };
345
346 static struct platform_device *pismo_devices[] __initdata = {
347         &tegra_pmu_device,
348         &tegra_rtc_device,
349         &tegra_udc_device,
350 #if defined(CONFIG_TEGRA_AVP)
351         &tegra_avp_device,
352 #endif
353         &tegra_camera,
354 #if defined(CONFIG_CRYPTO_DEV_TEGRA_SE)
355         &tegra11_se_device,
356 #endif
357         &tegra_ahub_device,
358         &tegra_dam_device0,
359         &tegra_dam_device1,
360         &tegra_dam_device2,
361         &tegra_i2s_device1,
362         &tegra_i2s_device3,
363         &tegra_i2s_device4,
364         &tegra_spdif_device,
365         &spdif_dit_device,
366         &bluetooth_dit_device,
367         &pismo_audio_device,
368         &tegra_hda_device,
369 #if defined(CONFIG_CRYPTO_DEV_TEGRA_AES)
370         &tegra_aes_device,
371 #endif
372 };
373
374 #ifdef CONFIG_USB_SUPPORT
375 static struct tegra_usb_platform_data tegra_udc_pdata = {
376         .port_otg = true,
377         .has_hostpc = true,
378         .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
379         .op_mode = TEGRA_USB_OPMODE_DEVICE,
380         .u_data.dev = {
381                 .vbus_pmu_irq = 0,
382                 .vbus_gpio = -1,
383                 .charging_supported = false,
384                 .remote_wakeup_supported = false,
385         },
386         .u_cfg.utmi = {
387                 .hssync_start_delay = 0,
388                 .elastic_limit = 16,
389                 .idle_wait_delay = 17,
390                 .term_range_adj = 6,
391                 .xcvr_setup = 8,
392                 .xcvr_lsfslew = 2,
393                 .xcvr_lsrslew = 2,
394                 .xcvr_setup_offset = 0,
395                 .xcvr_use_fuses = 1,
396         },
397 };
398
399 static struct tegra_usb_platform_data tegra_ehci1_utmi_pdata = {
400         .port_otg = true,
401         .has_hostpc = true,
402         .unaligned_dma_buf_supported = false,
403         .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
404         .op_mode = TEGRA_USB_OPMODE_HOST,
405         .u_data.host = {
406                 .vbus_gpio = -1,
407                 .hot_plug = false,
408                 .remote_wakeup_supported = true,
409                 .power_off_on_suspend = true,
410         },
411         .u_cfg.utmi = {
412                 .hssync_start_delay = 0,
413                 .elastic_limit = 16,
414                 .idle_wait_delay = 17,
415                 .term_range_adj = 6,
416                 .xcvr_setup = 15,
417                 .xcvr_lsfslew = 2,
418                 .xcvr_lsrslew = 2,
419                 .xcvr_setup_offset = 0,
420                 .xcvr_use_fuses = 1,
421                 .vbus_oc_map = 0x4,
422         },
423 };
424
425 static struct tegra_usb_platform_data tegra_ehci3_utmi_pdata = {
426         .port_otg = false,
427         .has_hostpc = true,
428         .unaligned_dma_buf_supported = false,
429         .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
430         .op_mode = TEGRA_USB_OPMODE_HOST,
431         .u_data.host = {
432                 .vbus_gpio = -1,
433                 .hot_plug = false,
434                 .remote_wakeup_supported = true,
435                 .power_off_on_suspend = true,
436         },
437         .u_cfg.utmi = {
438         .hssync_start_delay = 0,
439                 .elastic_limit = 16,
440                 .idle_wait_delay = 17,
441                 .term_range_adj = 6,
442                 .xcvr_setup = 8,
443                 .xcvr_lsfslew = 2,
444                 .xcvr_lsrslew = 2,
445                 .xcvr_setup_offset = 0,
446                 .xcvr_use_fuses = 1,
447                 .vbus_oc_map = 0x5,
448         },
449 };
450
451 static struct tegra_usb_otg_data tegra_otg_pdata = {
452         .ehci_device = &tegra_ehci1_device,
453         .ehci_pdata = &tegra_ehci1_utmi_pdata,
454 };
455
456 static void pismo_usb_init(void)
457 {
458         int usb_port_owner_info = tegra_get_usb_port_owner_info();
459
460         /* Set USB wake sources for pismo */
461         tegra_set_usb_wake_source();
462
463         if (!(usb_port_owner_info & UTMI1_PORT_OWNER_XUSB)) {
464                 tegra_otg_device.dev.platform_data = &tegra_otg_pdata;
465                 platform_device_register(&tegra_otg_device);
466                 /* Setup the udc platform data */
467                 tegra_udc_device.dev.platform_data = &tegra_udc_pdata;
468         }
469
470         if (!(usb_port_owner_info & UTMI2_PORT_OWNER_XUSB)) {
471                 tegra_ehci3_device.dev.platform_data = &tegra_ehci3_utmi_pdata;
472                 platform_device_register(&tegra_ehci3_device);
473         }
474 }
475
476 static struct gpio modem_gpios[] = { /* Nemo modem */
477         {MODEM_EN, GPIOF_OUT_INIT_HIGH, "MODEM EN"},
478         {MDM_RST, GPIOF_OUT_INIT_LOW, "MODEM RESET"},
479 };
480
481 static struct tegra_usb_platform_data tegra_ehci2_hsic_baseband_pdata = {
482         .port_otg = false,
483         .has_hostpc = true,
484         .unaligned_dma_buf_supported = false,
485         .phy_intf = TEGRA_USB_PHY_INTF_HSIC,
486         .op_mode = TEGRA_USB_OPMODE_HOST,
487         .u_data.host = {
488                 .vbus_gpio = -1,
489                 .hot_plug = false,
490                 .remote_wakeup_supported = true,
491                 .power_off_on_suspend = true,
492         },
493 };
494
495 static int baseband_init(void)
496 {
497         int ret;
498
499         ret = gpio_request_array(modem_gpios, ARRAY_SIZE(modem_gpios));
500         if (ret) {
501                 pr_warn("%s:gpio request failed\n", __func__);
502                 return ret;
503         }
504
505         /* enable pull-down for MDM_COLD_BOOT */
506         tegra_pinmux_set_pullupdown(TEGRA_PINGROUP_KB_COL5,
507                                     TEGRA_PUPD_PULL_DOWN);
508
509         /* export GPIO for user space access through sysfs */
510         gpio_export(MDM_RST, false);
511
512         return 0;
513 }
514
515 static const struct tegra_modem_operations baseband_operations = {
516         .init = baseband_init,
517 };
518
519 static struct tegra_usb_modem_power_platform_data baseband_pdata = {
520         .ops = &baseband_operations,
521         .wake_gpio = -1,
522         .boot_gpio = MDM_COLDBOOT,
523         .boot_irq_flags = IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
524         .autosuspend_delay = 2000,
525         .short_autosuspend_delay = 50,
526         .tegra_ehci_device = &tegra_ehci2_device,
527         .tegra_ehci_pdata = &tegra_ehci2_hsic_baseband_pdata,
528 };
529
530 static struct platform_device icera_nemo_device = {
531         .name = "tegra_usb_modem_power",
532         .id = -1,
533         .dev = {
534                 .platform_data = &baseband_pdata,
535         },
536 };
537
538 static void pismo_modem_init(void)
539 {
540         int modem_id = tegra_get_modem_id();
541         int usb_port_owner_info = tegra_get_usb_port_owner_info();
542         switch (modem_id) {
543         case TEGRA_BB_NEMO: /* on board i500 HSIC */
544                 if (!(usb_port_owner_info & HSIC1_PORT_OWNER_XUSB))
545                         platform_device_register(&icera_nemo_device);
546                 break;
547         }
548 }
549
550 #else
551 static void pismo_usb_init(void) { }
552 static void pismo_modem_init(void) { }
553 #endif
554
555 static void pismo_audio_init(void)
556 {
557         pismo_audio_pdata.codec_name = "rt5640.0-001c";
558         pismo_audio_pdata.codec_dai_name = "rt5640-aif1";
559 }
560
561 struct rm_spi_ts_platform_data rm31080ts_pismo_data = {
562         .gpio_reset = 0,
563         .config = 0,
564         .platform_id = RM_PLATFORM_D010,
565         .name_of_clock = "clk_out_2",
566 };
567
568 static struct tegra_spi_device_controller_data dev_cdata = {
569         .rx_clk_tap_delay = 16,
570         .tx_clk_tap_delay = 16,
571 };
572
573 struct spi_board_info rm31080a_pismo_spi_board[1] = {
574         {
575                 .modalias = "rm_ts_spidev",
576                 .bus_num = 3,
577                 .chip_select = 2,
578                 .max_speed_hz = 12 * 1000 * 1000,
579                 .mode = SPI_MODE_0,
580                 .controller_data = &dev_cdata,
581                 .platform_data = &rm31080ts_pismo_data,
582         },
583 };
584
585 static void __init tegra_pismo_init(void)
586 {
587         struct board_info board_info;
588
589         tegra_get_display_board_info(&board_info);
590         tegra_clk_init_from_table(pismo_clk_init_table);
591         tegra_clk_verify_parents();
592         tegra_soc_device_init("pismo");
593         pismo_i2c_init();
594         pismo_usb_init();
595         pismo_uart_init();
596         pismo_audio_init();
597         platform_add_devices(pismo_devices, ARRAY_SIZE(pismo_devices));
598         tegra_io_dpd_init();
599         pismo_regulator_init();
600         pismo_sdhci_init();
601         pismo_suspend_init();
602         pismo_emc_init();
603         pismo_edp_init();
604         pismo_panel_init();
605         pismo_pmon_init();
606 #ifdef CONFIG_BT_BLUESLEEP
607         pismo_setup_bluesleep();
608         pismo_setup_bt_rfkill();
609 #elif defined CONFIG_BLUEDROID_PM
610         pismo_setup_bluedroid_pm();
611 #endif
612         pismo_modem_init();
613 #ifdef CONFIG_TEGRA_WDT_RECOVERY
614         tegra_wdt_recovery_init();
615 #endif
616         tegra_serial_debug_init(TEGRA_UARTD_BASE, INT_WDT_CPU, NULL, -1, -1);
617         pismo_sensors_init();
618         pismo_soctherm_init();
619 }
620
621 #ifdef CONFIG_USE_OF
622 struct of_dev_auxdata pismo_auxdata_lookup[] __initdata = {
623         OF_DEV_AUXDATA("nvidia,tegra114-host1x", TEGRA_HOST1X_BASE, "host1x",
624                 NULL),
625         OF_DEV_AUXDATA("nvidia,tegra114-gr3d", TEGRA_GR3D_BASE, "gr3d", NULL),
626         OF_DEV_AUXDATA("nvidia,tegra114-gr2d", TEGRA_GR2D_BASE, "gr2d", NULL),
627         OF_DEV_AUXDATA("nvidia,tegra114-msenc", TEGRA_MSENC_BASE, "msenc",
628                 NULL),
629         OF_DEV_AUXDATA("nvidia,tegra114-vi", TEGRA_VI_BASE, "vi", NULL),
630         OF_DEV_AUXDATA("nvidia,tegra114-isp", TEGRA_ISP_BASE, "isp", NULL),
631         OF_DEV_AUXDATA("nvidia,tegra114-tsec", TEGRA_TSEC_BASE, "tsec", NULL),
632         T114_SPI_OF_DEV_AUXDATA,
633         T114_I2C_OF_DEV_AUXDATA,
634
635         {}
636 };
637 #endif
638
639 static void __init tegra_pismo_dt_init(void)
640 {
641 #ifdef CONFIG_USE_OF
642         of_platform_populate(NULL,
643                 of_default_bus_match_table, pismo_auxdata_lookup,
644                 &platform_bus);
645 #endif
646
647         tegra_pismo_init();
648 }
649
650 static void __init tegra_pismo_reserve(void)
651 {
652 #if defined(CONFIG_NVMAP_CONVERT_CARVEOUT_TO_IOVMM)
653         /* 1920*1200*4*2 = 18432000 bytes */
654         tegra_reserve(0, SZ_16M + SZ_2M, SZ_16M);
655 #else
656         tegra_reserve(SZ_128M, SZ_16M + SZ_2M, SZ_4M);
657 #endif
658 }
659
660 static const char * const pismo_dt_board_compat[] = {
661         "nvidia,pismo",
662         NULL
663 };
664
665 MACHINE_START(PISMO, "pismo")
666         .atag_offset    = 0x100,
667         .smp            = smp_ops(tegra_smp_ops),
668         .map_io         = tegra_map_common_io,
669         .reserve        = tegra_pismo_reserve,
670         .init_early     = tegra11x_init_early,
671         .init_irq       = irqchip_init,
672         .init_time      = clocksource_of_init,
673         .init_machine   = tegra_pismo_dt_init,
674         .restart        = tegra_assert_system_reset,
675         .dt_compat      = pismo_dt_board_compat,
676 MACHINE_END