ARM: tegra: reserve memory for ramoops by default
[linux-3.10.git] / arch / arm / mach-tegra / board-roth.c
1 /*
2  * arch/arm/mach-tegra/board-roth.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/dma-mapping.h>
29 #include <linux/delay.h>
30 #include <linux/i2c-tegra.h>
31 #include <linux/gpio.h>
32 #include <linux/input.h>
33 #include <linux/platform_data/tegra_usb.h>
34 #include <linux/spi/spi.h>
35 #include <linux/spi/rm31080a_ts.h>
36 #include <linux/spi/spi-tegra.h>
37 #include <linux/memblock.h>
38 #include <linux/rfkill-gpio.h>
39 #include <linux/skbuff.h>
40 #include <linux/ti_wilink_st.h>
41 #include <linux/regulator/consumer.h>
42 #include <linux/max17048_battery.h>
43 #include <linux/leds.h>
44 #include <linux/leds_pwm.h>
45 #include <linux/i2c/at24.h>
46 #include <linux/issp.h>
47 #include <linux/of_platform.h>
48 #include <linux/usb/tegra_usb_phy.h>
49 #include <linux/clk/tegra.h>
50 #include <linux/clocksource.h>
51 #include <linux/irqchip.h>
52 #include <linux/tegra_fiq_debugger.h>
53
54 #include <asm/system_info.h>
55
56 #include <mach/irqs.h>
57 #include <mach/pinmux.h>
58 #include <mach/pinmux-t11.h>
59 #include <mach/io_dpd.h>
60 #include <mach/i2s.h>
61 #include <mach/isomgr.h>
62 #include <mach/tegra_asoc_pdata.h>
63 #include <asm/mach-types.h>
64 #include <asm/mach/arch.h>
65 #include <mach/gpio-tegra.h>
66 #include <mach/edp.h>
67
68 #include "board.h"
69 #include "board-common.h"
70 #include "clock.h"
71 #include "board-roth.h"
72 #include "devices.h"
73 #include "gpio-names.h"
74 #include "iomap.h"
75 #include "pm.h"
76 #include "common.h"
77 #include "tegra-board-id.h"
78 #include "board-touch-raydium.h"
79 #include "tegra-of-dev-auxdata.h"
80
81 #ifdef CONFIG_BT_BLUESLEEP
82 static struct rfkill_gpio_platform_data roth_bt_rfkill_pdata = {
83                 .name           = "bt_rfkill",
84                 .shutdown_gpio  = TEGRA_GPIO_PQ7,
85                 .type           = RFKILL_TYPE_BLUETOOTH,
86 };
87
88 static struct platform_device roth_bt_rfkill_device = {
89         .name = "rfkill_gpio",
90         .id             = -1,
91         .dev = {
92                 .platform_data = &roth_bt_rfkill_pdata,
93         },
94 };
95
96 static struct resource roth_bluesleep_resources[] = {
97         [0] = {
98                 .name = "gpio_host_wake",
99                         .start  = TEGRA_GPIO_PU6,
100                         .end    = TEGRA_GPIO_PU6,
101                         .flags  = IORESOURCE_IO,
102         },
103         [1] = {
104                 .name = "gpio_ext_wake",
105                         .start  = TEGRA_GPIO_PEE1,
106                         .end    = TEGRA_GPIO_PEE1,
107                         .flags  = IORESOURCE_IO,
108         },
109         [2] = {
110                 .name = "host_wake",
111                         .flags  = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
112         },
113 };
114
115 static struct platform_device roth_bluesleep_device = {
116         .name           = "bluesleep",
117         .id             = -1,
118         .num_resources  = ARRAY_SIZE(roth_bluesleep_resources),
119         .resource       = roth_bluesleep_resources,
120 };
121
122 static noinline void __init roth_setup_bt_rfkill(void)
123 {
124                 roth_bt_rfkill_pdata.reset_gpio = TEGRA_GPIO_PQ6;
125         platform_device_register(&roth_bt_rfkill_device);
126 }
127
128 static noinline void __init roth_setup_bluesleep(void)
129 {
130         roth_bluesleep_resources[2].start =
131                 roth_bluesleep_resources[2].end =
132                         gpio_to_irq(TEGRA_GPIO_PU6);
133         platform_device_register(&roth_bluesleep_device);
134         return;
135 }
136 #elif defined CONFIG_BLUEDROID_PM
137 static struct resource roth_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 };
161
162 static struct platform_device roth_bluedroid_pm_device = {
163         .name = "bluedroid_pm",
164         .id             = 0,
165         .num_resources  = ARRAY_SIZE(roth_bluedroid_pm_resources),
166         .resource       = roth_bluedroid_pm_resources,
167 };
168
169 static noinline void __init roth_setup_bluedroid_pm(void)
170 {
171         roth_bluedroid_pm_resources[1].start =
172                 roth_bluedroid_pm_resources[1].end =
173                                 gpio_to_irq(TEGRA_GPIO_PU6);
174         platform_device_register(&roth_bluedroid_pm_device);
175 }
176 #endif
177 static __initdata struct tegra_clk_init_table roth_clk_init_table[] = {
178         /* name         parent          rate            enabled */
179         { "pll_m",      NULL,           0,              false},
180         { "hda",        "pll_p",        108000000,      false},
181         { "hda2codec_2x", "pll_p",      48000000,       false},
182         { "pwm",        "pll_p",        6000000,        false},
183         { "blink",      "clk_32k",      32768,          true},
184         { "i2s1",       "pll_a_out0",   0,              false},
185         { "i2s3",       "pll_a_out0",   0,              false},
186         { "i2s4",       "pll_a_out0",   0,              false},
187         { "spdif_out",  "pll_a_out0",   0,              false},
188         { "d_audio",    "clk_m",        12000000,       false},
189         { "dam0",       "clk_m",        12000000,       false},
190         { "dam1",       "clk_m",        12000000,       false},
191         { "dam2",       "clk_m",        12000000,       false},
192         { "audio1",     "i2s1_sync",    0,              false},
193         { "audio3",     "i2s3_sync",    0,              false},
194         /* Setting vi_sensor-clk to true for validation purpose, will imapact
195          * power, later set to be false.*/
196         { "vi_sensor",  "pll_p",        150000000,      false},
197         { "cilab",      "pll_p",        150000000,      false},
198         { "cilcd",      "pll_p",        150000000,      false},
199         { "cile",       "pll_p",        150000000,      false},
200         { "i2c1",       "pll_p",        3200000,        false},
201         { "i2c2",       "pll_p",        3200000,        false},
202         { "i2c3",       "pll_p",        3200000,        false},
203         { "i2c4",       "pll_p",        3200000,        false},
204         { "i2c5",       "pll_p",        3200000,        false},
205         { NULL,         NULL,           0,              0},
206 };
207
208 #if defined(CONFIG_ARCH_TEGRA_11x_SOC)
209 static struct i2c_board_info __initdata rt5640_board_info = {
210         I2C_BOARD_INFO("rt5640", 0x1c),
211 };
212
213 static struct i2c_board_info __initdata roth_codec_tfa9887R_info = {
214         I2C_BOARD_INFO("tfa9887R", 0x37),
215 };
216
217 static struct i2c_board_info __initdata roth_codec_tfa9887L_info = {
218         I2C_BOARD_INFO("tfa9887L", 0x34),
219 };
220 #endif
221
222 static void roth_i2c_init(void)
223 {
224         i2c_register_board_info(0, &rt5640_board_info, 1);
225         i2c_register_board_info(0, &roth_codec_tfa9887R_info, 1);
226         i2c_register_board_info(0, &roth_codec_tfa9887L_info, 1);
227 }
228
229 static struct platform_device *roth_uart_devices[] __initdata = {
230         &tegra_uarta_device,
231         &tegra_uartb_device,
232         &tegra_uartc_device,
233         &tegra_uartd_device,
234 };
235
236 static void __init uart_debug_init(void)
237 {
238         int debug_port_id;
239
240         debug_port_id = uart_console_debug_init(3);
241         if (debug_port_id < 0)
242                 return;
243
244         roth_uart_devices[debug_port_id] = uart_console_debug_device;
245 }
246
247 static void __init roth_uart_init(void)
248 {
249         /* Register low speed only if it is selected */
250         if (!is_tegra_debug_uartport_hs())
251                 uart_debug_init();
252
253         platform_add_devices(roth_uart_devices,
254                                 ARRAY_SIZE(roth_uart_devices));
255 }
256
257 static struct resource tegra_rtc_resources[] = {
258         [0] = {
259                 .start = TEGRA_RTC_BASE,
260                 .end = TEGRA_RTC_BASE + TEGRA_RTC_SIZE - 1,
261                 .flags = IORESOURCE_MEM,
262         },
263         [1] = {
264                 .start = INT_RTC,
265                 .end = INT_RTC,
266                 .flags = IORESOURCE_IRQ,
267         },
268 };
269
270 static struct platform_device tegra_rtc_device = {
271         .name = "tegra_rtc",
272         .id   = -1,
273         .resource = tegra_rtc_resources,
274         .num_resources = ARRAY_SIZE(tegra_rtc_resources),
275 };
276
277 static struct tegra_asoc_platform_data roth_audio_pdata = {
278         .gpio_spkr_en           = TEGRA_GPIO_SPKR_EN,
279         .gpio_hp_det            = TEGRA_GPIO_HP_DET,
280         .gpio_hp_mute           = -1,
281         .gpio_int_mic_en        = TEGRA_GPIO_INT_MIC_EN,
282         .gpio_ext_mic_en        = TEGRA_GPIO_EXT_MIC_EN,
283         .gpio_ldo1_en           = TEGRA_GPIO_LDO1_EN,
284         .gpio_codec1 = TEGRA_GPIO_CODEC1_EN,
285         .gpio_codec2 = TEGRA_GPIO_CODEC2_EN,
286         .gpio_codec3 = TEGRA_GPIO_CODEC3_EN,
287         .i2s_param[HIFI_CODEC]  = {
288                 .audio_port_id  = 1,
289                 .is_i2s_master  = 1,
290                 .i2s_mode       = TEGRA_DAIFMT_I2S,
291         },
292         .i2s_param[BT_SCO]      = {
293                 .audio_port_id  = 3,
294                 .is_i2s_master  = 1,
295                 .i2s_mode       = TEGRA_DAIFMT_DSP_A,
296         },
297 };
298
299 static struct platform_device roth_audio_device = {
300         .name   = "tegra-snd-rt5640",
301         .id     = 0,
302         .dev    = {
303                 .platform_data = &roth_audio_pdata,
304         },
305 };
306
307 static struct platform_device tegra_camera = {
308         .name = "tegra_camera",
309         .id = -1,
310 };
311
312
313 static struct issp_platform_data roth_issp_pdata_p2454 = {
314         .reset_gpio     = TEGRA_GPIO_PH4,
315         .data_gpio      = TEGRA_GPIO_PH6,
316         .clk_gpio       = TEGRA_GPIO_PH7,
317         .fw_name        = "p2454-uc.fw",
318         .si_id          = {0x00, 0xA2, 0x52, 0x21}, /* CY7C64345 */
319         .block_size     = 128,
320         .blocks         = 128,
321         .security_size  = 64,
322         .version_addr   = 0x0286,
323         .force_update   = 1,
324 };
325
326 static struct platform_device roth_issp_device_p2454 = {
327         .name   = "issp",
328         .dev    = {
329                 .platform_data = &roth_issp_pdata_p2454,
330         },
331 };
332
333 static struct issp_platform_data roth_issp_pdata_p2560 = {
334         .reset_gpio     = TEGRA_GPIO_PH4,
335         .data_gpio      = TEGRA_GPIO_PH6,
336         .clk_gpio       = TEGRA_GPIO_PH7,
337         .fw_name        = "p2560-uc.fw",
338         .si_id          = {0x00, 0xA2, 0x52, 0x21}, /* CY7C64345 */
339         .block_size     = 128,
340         .blocks         = 128,
341         .security_size  = 64,
342         .version_addr   = 0x0286,
343         .force_update   = 0,
344 };
345
346 static struct platform_device roth_issp_device_p2560 = {
347         .name   = "issp",
348         .dev    = {
349                 .platform_data = &roth_issp_pdata_p2560,
350         },
351 };
352
353 static void __init roth_issp_init(void)
354 {
355         if (system_rev == P2454)
356                 platform_device_register(&roth_issp_device_p2454);
357         else
358                 platform_device_register(&roth_issp_device_p2560);
359 }
360
361 static struct platform_device *roth_devices[] __initdata = {
362         &tegra_pmu_device,
363         &tegra_rtc_device,
364         &tegra_udc_device,
365 #if defined(CONFIG_TEGRA_AVP)
366         &tegra_avp_device,
367 #endif
368         &tegra_camera,
369 #if defined(CONFIG_CRYPTO_DEV_TEGRA_SE)
370         &tegra11_se_device,
371 #endif
372         &tegra_ahub_device,
373         &tegra_dam_device0,
374         &tegra_dam_device1,
375         &tegra_dam_device2,
376         &tegra_i2s_device1,
377         &tegra_i2s_device3,
378         &tegra_i2s_device4,
379         &tegra_spdif_device,
380         &spdif_dit_device,
381         &bluetooth_dit_device,
382         &roth_audio_device,
383         &tegra_hda_device,
384 #if defined(CONFIG_CRYPTO_DEV_TEGRA_AES)
385         &tegra_aes_device,
386 #endif
387 };
388
389 #ifdef CONFIG_USB_SUPPORT
390 static struct tegra_usb_platform_data tegra_udc_pdata = {
391         .port_otg = true,
392         .has_hostpc = true,
393         .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
394         .op_mode = TEGRA_USB_OPMODE_DEVICE,
395         .u_data.dev = {
396                 .vbus_pmu_irq = 0,
397                 .vbus_gpio = -1,
398                 .charging_supported = false,
399                 .remote_wakeup_supported = false,
400         },
401         .u_cfg.utmi = {
402                 .hssync_start_delay = 0,
403                 .elastic_limit = 16,
404                 .idle_wait_delay = 17,
405                 .term_range_adj = 6,
406                 .xcvr_setup = 8,
407                 .xcvr_lsfslew = 2,
408                 .xcvr_lsrslew = 2,
409                 .xcvr_setup_offset = 0,
410                 .xcvr_use_fuses = 1,
411         },
412 };
413
414 static struct tegra_usb_platform_data tegra_ehci1_utmi_pdata = {
415         .port_otg = true,
416         .has_hostpc = true,
417         .unaligned_dma_buf_supported = false,
418         .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
419         .op_mode = TEGRA_USB_OPMODE_HOST,
420         .u_data.host = {
421                 .vbus_gpio = -1,
422                 .hot_plug = true,
423                 .remote_wakeup_supported = true,
424                 .power_off_on_suspend = false,
425         },
426         .u_cfg.utmi = {
427                 .hssync_start_delay = 0,
428                 .elastic_limit = 16,
429                 .idle_wait_delay = 17,
430                 .term_range_adj = 6,
431                 .xcvr_setup = 15,
432                 .xcvr_lsfslew = 2,
433                 .xcvr_lsrslew = 2,
434                 .xcvr_setup_offset = 0,
435                 .xcvr_use_fuses = 1,
436                 .vbus_oc_map = 0x4,
437         },
438 };
439
440 static struct tegra_usb_platform_data tegra_ehci3_utmi_pdata = {
441         .port_otg = false,
442         .has_hostpc = true,
443         .unaligned_dma_buf_supported = false,
444         .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
445         .op_mode = TEGRA_USB_OPMODE_HOST,
446         .u_data.host = {
447                 .vbus_gpio = -1,
448                 .hot_plug = true,
449                 .remote_wakeup_supported = true,
450                 .power_off_on_suspend = false,
451         },
452         .u_cfg.utmi = {
453         .hssync_start_delay = 0,
454                 .elastic_limit = 16,
455                 .idle_wait_delay = 17,
456                 .term_range_adj = 6,
457                 .xcvr_setup = 8,
458                 .xcvr_lsfslew = 2,
459                 .xcvr_lsrslew = 2,
460                 .xcvr_setup_offset = 0,
461                 .xcvr_use_fuses = 1,
462                 .vbus_oc_map = 0x5,
463         },
464 };
465
466 static struct tegra_usb_otg_data tegra_otg_pdata = {
467         .ehci_device = &tegra_ehci1_device,
468         .ehci_pdata = &tegra_ehci1_utmi_pdata,
469 };
470
471 static void roth_usb_init(void)
472 {
473         tegra_otg_device.dev.platform_data = &tegra_otg_pdata;
474         platform_device_register(&tegra_otg_device);
475
476         /* Setup the udc platform data */
477         tegra_udc_device.dev.platform_data = &tegra_udc_pdata;
478
479         tegra_ehci3_device.dev.platform_data = &tegra_ehci3_utmi_pdata;
480         platform_device_register(&tegra_ehci3_device);
481 }
482
483 #else
484 static void roth_usb_init(void) { }
485 #endif
486
487 static void roth_audio_init(void)
488 {
489         roth_audio_pdata.codec_name = "rt5640.0-001c";
490         roth_audio_pdata.codec_dai_name = "rt5640-aif1";
491 }
492
493 static __initdata struct tegra_clk_init_table touch_clk_init_table[] = {
494         /* name         parent          rate            enabled */
495         { "extern2",    "pll_p",        41000000,       false},
496         { "clk_out_2",  "extern2",      40800000,       false},
497         { NULL,         NULL,           0,              0},
498 };
499
500 struct rm_spi_ts_platform_data rm31080ts_roth_data = {
501         .gpio_reset = TOUCH_GPIO_RST_RAYDIUM_SPI,
502         .config = 0,
503         .platform_id = RM_PLATFORM_R005,
504         .name_of_clock = "clk_out_2",
505         .name_of_clock_con = "extern2",
506 };
507
508 static struct tegra_spi_device_controller_data dev_cdata = {
509         .rx_clk_tap_delay = 16,
510         .tx_clk_tap_delay = 16,
511 };
512
513 struct spi_board_info rm31080a_roth_spi_board[1] = {
514         {
515          .modalias = "rm_ts_spidev",
516          .bus_num = 3,
517          .chip_select = 2,
518          .max_speed_hz = 12 * 1000 * 1000,
519          .mode = SPI_MODE_0,
520          .controller_data = &dev_cdata,
521          .platform_data = &rm31080ts_roth_data,
522          },
523 };
524
525 static int __init roth_touch_init(void)
526 {
527         struct board_info board_info;
528         int touch_panel_id = tegra_get_touch_panel_id();
529
530         tegra_get_board_info(&board_info);
531         if (touch_panel_id == PANEL_TPK ||
532                         touch_panel_id == PANEL_WINTEK) {
533                 int err;
534                 err = gpio_request(TOUCH_GPIO_CLK, "touch-gpio-clk");
535                 if (err < 0)
536                         pr_err("%s: gpio_request failed %d\n",
537                                 __func__, err);
538                 else {
539                         err = gpio_direction_output(TOUCH_GPIO_CLK, 0);
540                         if (err < 0)
541                                 pr_err("%s: set output failed %d\n",
542                                 __func__, err);
543                         gpio_free(TOUCH_GPIO_CLK);
544                 }
545                 tegra_pinmux_set_pullupdown(TOUCH_GPIO_CLK_PG,
546                                                 TEGRA_PUPD_NORMAL);
547                 tegra_pinmux_set_tristate(TOUCH_GPIO_CLK_PG,
548                                                 TEGRA_TRI_TRISTATE);
549                 rm31080ts_roth_data.name_of_clock = NULL;
550                 rm31080ts_roth_data.name_of_clock_con = NULL;
551         } else
552                 tegra_clk_init_from_table(touch_clk_init_table);
553         rm31080a_roth_spi_board[0].irq =
554                 gpio_to_irq(TOUCH_GPIO_IRQ_RAYDIUM_SPI);
555         touch_init_raydium(TOUCH_GPIO_IRQ_RAYDIUM_SPI,
556                                 TOUCH_GPIO_RST_RAYDIUM_SPI,
557                                 &rm31080ts_roth_data,
558                                 &rm31080a_roth_spi_board[0],
559                                 ARRAY_SIZE(rm31080a_roth_spi_board));
560         return 0;
561 }
562
563 static void __init tegra_roth_init(void)
564 {
565         tegra_clk_init_from_table(roth_clk_init_table);
566         tegra_clk_verify_parents();
567         tegra_soc_device_init("roth");
568         roth_i2c_init();
569         roth_usb_init();
570         roth_uart_init();
571         roth_led_init();
572         roth_audio_init();
573         platform_add_devices(roth_devices, ARRAY_SIZE(roth_devices));
574         tegra_io_dpd_init();
575         roth_regulator_init();
576         roth_sdhci_init();
577         roth_suspend_init();
578         roth_emc_init();
579         roth_edp_init();
580         isomgr_init();
581         roth_touch_init();
582         /* roth will pass a null board id to panel_init */
583         roth_panel_init(0);
584         roth_kbc_init();
585         roth_pmon_init();
586 #ifdef CONFIG_BT_BLUESLEEP
587         roth_setup_bluesleep();
588         roth_setup_bt_rfkill();
589 #elif defined CONFIG_BLUEDROID_PM
590         roth_setup_bluedroid_pm();
591 #endif
592 #ifdef CONFIG_TEGRA_WDT_RECOVERY
593         tegra_wdt_recovery_init();
594 #endif
595         tegra_serial_debug_init(TEGRA_UARTD_BASE, INT_WDT_CPU, NULL, -1, -1);
596         roth_sensors_init();
597         roth_soctherm_init();
598         roth_fan_init();
599         tegra_register_fuse();
600         roth_issp_init();
601 }
602
603 #ifdef CONFIG_USE_OF
604 struct of_dev_auxdata roth_auxdata_lookup[] __initdata = {
605         OF_DEV_AUXDATA("nvidia,tegra114-host1x", TEGRA_HOST1X_BASE, "host1x",
606                 NULL),
607         OF_DEV_AUXDATA("nvidia,tegra114-gr3d", TEGRA_GR3D_BASE, "gr3d", NULL),
608         OF_DEV_AUXDATA("nvidia,tegra114-gr2d", TEGRA_GR2D_BASE, "gr2d", NULL),
609         OF_DEV_AUXDATA("nvidia,tegra114-msenc", TEGRA_MSENC_BASE, "msenc",
610                 NULL),
611         OF_DEV_AUXDATA("nvidia,tegra114-vi", TEGRA_VI_BASE, "vi", NULL),
612         OF_DEV_AUXDATA("nvidia,tegra114-isp", TEGRA_ISP_BASE, "isp", NULL),
613         OF_DEV_AUXDATA("nvidia,tegra114-tsec", TEGRA_TSEC_BASE, "tsec", NULL),
614         T114_SPI_OF_DEV_AUXDATA,
615         T114_I2C_OF_DEV_AUXDATA,
616
617         {}
618 };
619 #endif
620
621 static void __init tegra_roth_dt_init(void)
622 {
623 #ifdef CONFIG_USE_OF
624         of_platform_populate(NULL,
625                 of_default_bus_match_table, roth_auxdata_lookup,
626                 &platform_bus);
627 #endif
628
629         tegra_roth_init();
630 }
631
632 static void __init tegra_roth_reserve(void)
633 {
634 #if defined(CONFIG_NVMAP_CONVERT_CARVEOUT_TO_IOVMM)
635         /* 1920*1200*4*2 = 18432000 bytes */
636         tegra_reserve(0, SZ_16M + SZ_2M, SZ_4M);
637 #else
638         tegra_reserve(SZ_128M, SZ_16M + SZ_2M, SZ_4M);
639 #endif
640 }
641
642 static const char * const roth_dt_board_compat[] = {
643         "nvidia,roth",
644         NULL
645 };
646
647 MACHINE_START(ROTH, "roth")
648         .atag_offset    = 0x100,
649         .smp            = smp_ops(tegra_smp_ops),
650         .map_io         = tegra_map_common_io,
651         .reserve        = tegra_roth_reserve,
652         .init_early     = tegra11x_init_early,
653         .init_irq       = irqchip_init,
654         .init_time      = clocksource_of_init,
655         .init_machine   = tegra_roth_dt_init,
656         .restart        = tegra_assert_system_reset,
657         .dt_compat      = roth_dt_board_compat,
658 MACHINE_END