Skip to contentSkip to conversation

Porting Xen to Jetson Nano

DISCUSSION Srinivas Bangalore 5 participants 16 messages Jul 22, 2020 – Jul 31, 2020

lore
Share & tools
lore
#0 lore raw

Dear Xen experts,

Would greatly appreciate some hints on how to move forward with this one.

I have included further details on Xen diagnostics below:

(XEN) *** LOADING DOMAIN 0 ***

(XEN) Loading kernel from boot module @ 00000000e1000000

(XEN) Allocating 1:1 mappings totalling 512MB for dom0:

(XEN) BANK[0] 0x000000a0000000-0x000000c0000000 (512MB)

(XEN) Grant table range: 0x000000fec00000-0x000000fec60000

(XEN) Loading zImage from 00000000e1000000 to
00000000a0080000-00000000a223c808

(XEN) Allocating PPI 16 for event channel interrupt

(XEN) Loading dom0 DTB to 0x00000000a8000000-0x00000000a803435c

(XEN) Scrubbing Free RAM on 1 nodes using 4 CPUs

(XEN) ........done.

(XEN) Initial low memory virq threshold set at 0x4000 pages.

(XEN) Std. Loglevel: Errors and warnings

(XEN) Guest Loglevel: All

(XEN) ***************************************************

(XEN) WARNING: CONSOLE OUTPUT IS SYNCHRONOUS

(XEN) This option is intended to aid debugging of Xen by ensuring

(XEN) that all output is synchronously delivered on the serial line.

(XEN) However it can introduce SIGNIFICANT latencies and affect

(XEN) timekeeping. It is NOT recommended for production use!

(XEN) ***************************************************

(XEN) 3... 2... 1...

(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)

(XEN) Freed 300kB init memory.

(XEN) *** Serial input -> Xen (type 'CTRL-a' three times to switch input to DOM0)

(XEN) 'h' pressed -> showing installed handlers

(XEN) key '%' (ascii '25') => trap to xendbg

(XEN) key '*' (ascii '2a') => print all diagnostics

(XEN) key '0' (ascii '30') => dump Dom0 registers

(XEN) key 'A' (ascii '41') => toggle alternative key handling

(XEN) key 'H' (ascii '48') => dump heap info

(XEN) key 'R' (ascii '52') => reboot machine

(XEN) key 'a' (ascii '61') => dump timer queues

(XEN) key 'd' (ascii '64') => dump registers

(XEN) key 'e' (ascii '65') => dump evtchn info

(XEN) key 'g' (ascii '67') => print grant table usage

(XEN) key 'h' (ascii '68') => show this message

(XEN) key 'm' (ascii '6d') => memory info

(XEN) key 'q' (ascii '71') => dump domain (and guest debug) info

(XEN) key 'r' (ascii '72') => dump run queues

(XEN) key 't' (ascii '74') => display multi-cpu clock info

(XEN) key 'w' (ascii '77') => synchronously dump console ring buffer (dmesg)

(XEN) '*' pressed -> firing all diagnostic keyhandlers

(XEN) [d: dump registers]

(XEN) 'd' pressed -> dumping registers

(XEN)

(XEN) *** Dumping CPU0 guest state (d0v0): ***

(XEN) ----[ Xen-4.8.5 arm64 debug=n Tainted: C ]----

(XEN) CPU: 0

(XEN) PC: 00000000a0080000

(XEN) LR: 0000000000000000

(XEN) SP_EL0: 0000000000000000

(XEN) SP_EL1: 0000000000000000

(XEN) CPSR: 000001c5 MODE:64-bit EL1h (Guest Kernel, handler)

(XEN) X0: 00000000a8000000 X1: 0000000000000000 X2: 0000000000000000

(XEN) X3: 0000000000000000 X4: 0000000000000000 X5: 0000000000000000

(XEN) X6: 0000000000000000 X7: 0000000000000000 X8: 0000000000000000

(XEN) X9: 0000000000000000 X10: 0000000000000000 X11: 0000000000000000

(XEN) X12: 0000000000000000 X13: 0000000000000000 X14: 0000000000000000

(XEN) X15: 0000000000000000 X16: 0000000000000000 X17: 0000000000000000

(XEN) X18: 0000000000000000 X19: 0000000000000000 X20: 0000000000000000

(XEN) X21: 0000000000000000 X22: 0000000000000000 X23: 0000000000000000

(XEN) X24: 0000000000000000 X25: 0000000000000000 X26: 0000000000000000

(XEN) X27: 0000000000000000 X28: 0000000000000000 FP: 0000000000000000

(XEN)

(XEN) ELR_EL1: 0000000000000000

(XEN) ESR_EL1: 00000000

(XEN) FAR_EL1: 0000000000000000

(XEN)

(XEN) SCTLR_EL1: 00c50838

(XEN) TCR_EL1: 00000000

(XEN) TTBR0_EL1: 0000000000000000

(XEN) TTBR1_EL1: 0000000000000000

(XEN)

(XEN) VTCR_EL2: 80043594

(XEN) VTTBR_EL2: 000100017f0f9000

(XEN)

(XEN) SCTLR_EL2: 30cd183d

(XEN) HCR_EL2: 000000008038663f

(XEN) TTBR0_EL2: 00000000fecfc000

(XEN)

(XEN) ESR_EL2: 8200000d

(XEN) HPFAR_EL2: 0000000000000000

(XEN) FAR_EL2: 00000000a0080000

(XEN)

(XEN) Guest stack trace from sp=0:

(XEN) Failed to convert stack to physical address

(XEN)

(XEN) *** Dumping CPU1 host state: ***

(XEN) ----[ Xen-4.8.5 arm64 debug=n Tainted: C ]----

(XEN) CPU: 1

(XEN) PC: 0000000000243ad8 idle_loop+0x74/0x11c

(XEN) LR: 0000000000243ae0

(XEN) SP: 00008000ff1bfe70

(XEN) CPSR: 20000249 MODE:64-bit EL2h (Hypervisor, handler)

(XEN) X0: 0000000000000000 X1: 00008000feeb8680 X2: 0000000000000001

(XEN) X3: fffffffffffffed4 X4: 00008000feeb8680 X5: 0000000000000000

(XEN) X6: 00008000ff16dc40 X7: 00008000ff16dc58 X8: 00008000ff1bfe08

(XEN) X9: 0000000000262458 X10: 000000000000000a X11: 00008000ff1bfbe9

(XEN) X12: 0000000000000031 X13: 0000000000000001 X14: 00008000ff1bfbe8

(XEN) X15: 0000000000000020 X16: 0000000000000000 X17: 0000000000000000

(XEN) X18: 0000000000000000 X19: 0000000000302448 X20: 0000000000308d18

(XEN) X21: 00000000002cbf80 X22: 0000000000308d18 X23: 0000000000308d18

(XEN) X24: 0000000000000001 X25: 0000000000000001 X26: 0000000000000000

(XEN) X27: 0000000000000000 X28: 0000000000000000 FP: 00008000ff1bfe70

(XEN)

(XEN) VTCR_EL2: 80043594

(XEN) VTTBR_EL2: 0000000000000000

(XEN)

(XEN) SCTLR_EL2: 30cd183d

(XEN) HCR_EL2: 000000000038663f

(XEN) TTBR0_EL2: 00000000fecfc000

(XEN)

(XEN) ESR_EL2: 00000000

(XEN) HPFAR_EL2: 0000000000000000

(XEN) FAR_EL2: 0000000000000000

(XEN)

(XEN) Xen stack trace from sp=00008000ff1bfe70:

(XEN) 00008000ff1bfe80 0000000000250f3c 0000000000308d18 0000000000000001

(XEN) 0000000000000001 0000000000000001 0000000000400000 0900494931070860

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000

(XEN) Xen call trace:

(XEN) [<0000000000243ad8>] idle_loop+0x74/0x11c (PC)

(XEN) [<0000000000243ae0>] idle_loop+0x7c/0x11c (LR)

(XEN) [<0000000000250f3c>] start_secondary+0xfc/0x10c

(XEN) [<0000000000000001>] 0000000000000001

(XEN)

(XEN) *** Dumping CPU2 host state: ***

(XEN) ----[ Xen-4.8.5 arm64 debug=n Tainted: C ]----

(XEN) CPU: 2

(XEN) PC: 0000000000243ad8 idle_loop+0x74/0x11c

(XEN) LR: 0000000000243ae0

(XEN) SP: 00008000ff1afe70

(XEN) CPSR: 20000249 MODE:64-bit EL2h (Hypervisor, handler)

(XEN) X0: 0000000000000000 X1: 00008000feeae680 X2: 0000000000000002

(XEN) X3: fffffffffffffed4 X4: 00008000feeae680 X5: 0000000000000000

(XEN) X6: 00008000ff16df20 X7: 00008000ff16df38 X8: 00008000ff1afe08

(XEN) X9: 0000000000262458 X10: 000000000000000a X11: 00008000ff1afbe9

(XEN) X12: 0000000000000032 X13: 0000000000000001 X14: 00008000ff1afbe8

(XEN) X15: 0000000000000020 X16: 0000000000000000 X17: 0000000000000000

(XEN) X18: 0000000000000000 X19: 0000000000302448 X20: 0000000000308d18

(XEN) X21: 00000000002cbf80 X22: 0000000000308d18 X23: 0000000000308d18

(XEN) X24: 0000000000000002 X25: 0000000000000001 X26: 0000000000000000

(XEN) X27: 0000000000000000 X28: 0000000000000000 FP: 00008000ff1afe70

(XEN)

(XEN) VTCR_EL2: 80043594

(XEN) VTTBR_EL2: 0000000000000000

(XEN)

(XEN) SCTLR_EL2: 30cd183d

(XEN) HCR_EL2: 000000000038663f

(XEN) TTBR0_EL2: 00000000fecfc000

(XEN)

(XEN) ESR_EL2: 00000000

(XEN) HPFAR_EL2: 0000000000000000

(XEN) FAR_EL2: 0000000000000000

(XEN)

(XEN) Xen stack trace from sp=00008000ff1afe70:

(XEN) 00008000ff1afe80 0000000000250f3c 0000000000308d18 0000000000000002

(XEN) 0000000000000002 0000000000000001 0000000000400000 6002c108894108ca

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000

(XEN) Xen call trace:

(XEN) [<0000000000243ad8>] idle_loop+0x74/0x11c (PC)

(XEN) [<0000000000243ae0>] idle_loop+0x7c/0x11c (LR)

(XEN) [<0000000000250f3c>] start_secondary+0xfc/0x10c

(XEN) [<0000000000000002>] 0000000000000002

(XEN)

(XEN) *** Dumping CPU3 host state: ***

(XEN) ----[ Xen-4.8.5 arm64 debug=n Tainted: C ]----

(XEN) CPU: 3

(XEN) PC: 0000000000243ad8 idle_loop+0x74/0x11c

(XEN) LR: 0000000000243ae0

(XEN) SP: 00008000ff1a7e70

(XEN) CPSR: 20000249 MODE:64-bit EL2h (Hypervisor, handler)

(XEN) X0: 0000000000000000 X1: 00008000feeaa680 X2: 0000000000000003

(XEN) X3: fffffffffffffed4 X4: 00008000feeaa680 X5: 0000000000000000

(XEN) X6: 00008000ff1b4180 X7: 00008000ff1b4198 X8: 00008000ff1a7e08

(XEN) X9: 0000000000262458 X10: 000000000000000a X11: 00008000ff1a7be9

(XEN) X12: 0000000000000033 X13: 0000000000000001 X14: 00008000ff1a7be8

(XEN) X15: 0000000000000020 X16: 0000000000000000 X17: 0000000000000000

(XEN) X18: 0000000000000000 X19: 0000000000302448 X20: 0000000000308d18

(XEN) X21: 00000000002cbf80 X22: 0000000000308d18 X23: 0000000000308d18

(XEN) X24: 0000000000000003 X25: 0000000000000001 X26: 0000000000000000

(XEN) X27: 0000000000000000 X28: 0000000000000000 FP: 00008000ff1a7e70

(XEN)

(XEN) VTCR_EL2: 80043594

(XEN) VTTBR_EL2: 0000000000000000

(XEN)

(XEN) SCTLR_EL2: 30cd183d

(XEN) HCR_EL2: 000000000038663f

(XEN) TTBR0_EL2: 00000000fecfc000

(XEN)

(XEN) ESR_EL2: 00000000

(XEN) HPFAR_EL2: 0000000000000000

(XEN) FAR_EL2: 0000000000000000

(XEN)

(XEN) Xen stack trace from sp=00008000ff1a7e70:

(XEN) 00008000ff1a7e80 0000000000250f3c 0000000000308d18 0000000000000003

(XEN) 0000000000000003 0000000000000001 0000000000400000 70c821138b0c9de0

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000

(XEN) 0000000000000000 0000000000000000

(XEN) Xen call trace:

(XEN) [<0000000000243ad8>] idle_loop+0x74/0x11c (PC)

(XEN) [<0000000000243ae0>] idle_loop+0x7c/0x11c (LR)

(XEN) [<0000000000250f3c>] start_secondary+0xfc/0x10c

(XEN) [<0000000000000003>] 0000000000000003

(XEN)

(XEN)

It seems the DOM0 kernel did not get added to the task list..

Boot args for Xen and Dom0 are here:
(XEN) Checking for initrd in /chosen

(XEN) linux,initrd limits invalid: 0000000084100000 >= 0000000084100000

(XEN) RAM: 0000000080000000 - 00000000fedfffff

(XEN) RAM: 0000000100000000 - 000000017f1fffff

(XEN)

(XEN) MODULE[0]: 00000000fc7f8000 - 00000000fc82d000 Device Tree

(XEN) MODULE[1]: 00000000e1000000 - 00000000e31bc808 Kernel console=hvc0 earlyprintk=xen earlycon=xen rootfstype=ext4 rw rootwait root=/dev/mmcblk0p1 rdinit=/sbin/init

(XEN) RESVD[0]: 0000000080000000 - 0000000080020000

(XEN) RESVD[1]: 00000000e3500000 - 00000000e3535000

(XEN) RESVD[2]: 00000000fc7f8000 - 00000000fc82d000

(XEN)

(XEN) Command line: console=dtuart earlyprintk=xen earlycon=uart8250,mmio32,0x70006000 sync_console dom0_mem=512M log_lvl=all guest_loglvl=all console_to_ring

(XEN) Placing Xen at 0x00000000fec00000-0x00000000fee00000

Thanks,

Srini

From: Srinivas Bangalore <[email protected]>
Sent: Monday, July 20, 2020 3:51 AM
To: '[email protected]' <[email protected]>
Subject: Porting Xen to Jetson Nano

Hello,

I am trying to get Xen working on a Jetson Nano board (which is based on NVIDIA's Tegra210 SoC). After some searching through the Xen-devel archives, I learnt that there was a set of patches developed in 2017 to port Xen to Tegra
(https://lists.xenproject.org/archives/html/xen-devel/2017-04/msg00991.html)
. However these patches don't appear in the main source repository. Therefore, I applied these manually to Xen-4.8.5. With these changes, Xen now boots up successfully on the Jetson Nano, but there is no Dom0 output on the console. I can switch between Xen and Dom0 with CTRL-a-a-a.

I am using Linux kernel version 5.7 for Dom0. I also tried using the native Linux kernel that comes with the Nano board, but that doesn't help.

Here's the console screen capture:

## Flattened Device Tree blob at e3000000

Booting using the fdt blob at 0xe3000000

reserving fdt memory region: addr=80000000 size=20000

reserving fdt memory region: addr=e3000000 size=35000

Loading Device Tree to 00000000fc7f8000, end 00000000fc82ffff ... OK

Starting kernel ...

- UART enabled -

- CPU 00000000 booting -

- Current EL 00000008 -

- Xen starting at EL2 -

- Zero BSS -

- Setting up control registers -

- Turning on paging -

- Ready -

(XEN) Checking for initrd in /chosen

(XEN) linux,initrd limits invalid: 0000000084100000 >= 0000000084100000

(XEN) RAM: 0000000080000000 - 00000000fedfffff

(XEN) RAM: 0000000100000000 - 000000017f1fffff

(XEN)

(XEN) MODULE[0]: 00000000fc7f8000 - 00000000fc82d000 Device Tree

(XEN) MODULE[1]: 00000000e1000000 - 00000000e2cbe200 Kernel console=hvc0 earlyprintk=uart8250-32bit,0x70006000 rootfstype=ext4 rw rootwait root=/dev/mmcblk0p1

(XEN) RESVD[0]: 0000000080000000 - 0000000080020000

(XEN) RESVD[1]: 00000000e3000000 - 00000000e3035000

(XEN) RESVD[2]: 00000000fc7f8000 - 00000000fc82d000

(XEN)

(XEN) Command line: console=dtuart earlyprintk=xen earlycon=xenboot dom0_mem=512M loglevel=all

(XEN) Placing Xen at 0x00000000fec00000-0x00000000fee00000

(XEN) Update BOOTMOD_XEN from 0000000080080000-0000000080188e01 => 00000000fec00000-00000000fed08e01

(XEN) Domain heap initialised

(XEN) Taking dtuart configuration from /chosen/stdout-path

(XEN) Looking for dtuart at "/serial@70 Xen 4.8.5

(XEN) Xen version 4.8.5 (srinivas@) (aarch64-linux-gnu-gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0) debug=n Sun Jul 19 07:44:00 PDT 2020

(XEN) Latest ChangeSet:

(XEN) Processor: 411fd071: "ARM Limited", variant: 0x1, part 0xd07, rev 0x1

(XEN) 64-bit Execution:

(XEN) Processor Features: 0000000000002222 0000000000000000

(XEN) Exception Levels: EL3:64+32 EL2:64+32 EL1:64+32 EL0:64+32

(XEN) Extensions: FloatingPoint AdvancedSIMD

(XEN) Debug Features: 0000000010305106 0000000000000000

(XEN) Auxiliary Features: 0000000000000000 0000000000000000

(XEN) Memory Model Features: 0000000000001124 0000000000000000

(XEN) ISA Features: 0000000000011120 0000000000000000

(XEN) 32-bit Execution:

(XEN) Processor Features: 00000131:00011011

(XEN) Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle

(XEN) Extensions: GenericTimer Security

(XEN) Debug Features: 03010066

(XEN) Auxiliary Features: 00000000

(XEN) Memory Model Features: 10101105 40000000 01260000 02102211

(XEN) ISA Features: 02101110 13112111 21232042 01112131 00011142 00011121

(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 19200 KHz

(XEN) GICv2 initialization:

(XEN) gic_dist_addr=0000000050041000

(XEN) gic_cpu_addr=0000000050042000

(XEN) gic_hyp_addr=0000000050044000

(XEN) gic_vcpu_addr=0000000050046000

(XEN) gic_maintenance_irq=25

(XEN) GICv2: 224 lines, 4 cpus, secure (IID 0200143b).

(XEN) Using scheduler: SMP Credit Scheduler (credit)

(XEN) Allocated console ring of 16 KiB.

(XEN) Bringing up CPU1

- CPU 00000001 booting -

- Current EL 00000008 -

- Xen starting at EL2 -

- Setting up control registers -

- Turning on paging -

- Ready -

(XEN) Bringing up CPU2

- CPU 00000002 booting -

- Current EL 00000008 -

- Xen starting at EL2 -

- Setting up control registers -

- Turning on paging -

- Ready -

(XEN) Bringing up CPU3

- CPU 00000003 booting -

- Current EL 00000008 -

- Xen starting at EL2 -

- Setting up control registers -

- Turning on paging -

- Ready -

(XEN) Brought up 4 CPUs

(XEN) P2M: 44-bit IPA with 44-bit PA

(XEN) P2M: 4 levels with order-0 root, VTCR 0x80043594

(XEN) I/O virtualisation disabled

(XEN) *** LOADING DOMAIN 0 ***

(XEN) Loading kernel from boot module @ 00000000e1000000

(XEN) Allocating 1:1 mappings totalling 512MB for dom0:

(XEN) BANK[0] 0x000000a0000000-0x000000c0000000 (512MB)

(XEN) Grant table range: 0x000000fec00000-0x000000fec60000

(XEN) Loading zImage from 00000000e1000000 to
00000000a0080000-00000000a1d3e200

(XEN) Allocating PPI 16 for event channel interrupt

(XEN) Loading dom0 DTB to 0x00000000a8000000-0x00000000a8034354

(XEN) Scrubbing Free RAM on 1 nodes using 4 CPUs

(XEN) ........done.

(XEN) Initial low memory virq threshold set at 0x4000 pages.

(XEN) Std. Loglevel: Errors and warnings

(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)

(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)

(XEN) Freed 300kB init memory.

Any suggestions/pointers to move forward would be much appreciated.

Thanks,

Srini

#1 lore raw
Quoted 3 lines · Srinivas Bangalore

Dear Xen experts,

Would greatly appreciate some hints on how to move forward with this one…

Hi Srini,

I don't have any strong recommendations for you, but I do want to say that I'm very happy to see you taking this project on and I am hoping for your success. I have a newly-arrived Jetson Nano sitting on my desk here, purchased with the intention of getting Xen up and running on it, that I just haven't got to work on yet. I'm also familiar with Chris Patterson, Kyle Temkin and Ian Campbell's previous Tegra Jetson patches and it would be great to see some further progress made from those.

In my recent experience with the Raspberry Pi 4, one basic observation with ARM kernel bringup is that if your device tree isn't good, your dom0 kernel can be missing the configuration it needs to use the serial port correctly and you don't get any diagnostics from it after Xen attempts to launch it, so I would just patch the right serial port config directly into your Linux kernel (eg. hardcode specific things onto the kernel command line) so you're not messing about with that any more.

The other thing I would recommend is patching in some printks into the earliest part of the Xen parts of the Dom0 Linux kernel start code. Others who are more familar with Xen on ARM may have some better recommendations, but linux/arch/arm/xen/enlighten.c has a function xen_guest_init that looks like a good place to stuff some extra printks for some early proof-of-entry from your kernel, and that way you'll have some indication whether execution has actually commenced in there.

I don't think you're going to get a great deal of enthusiasm on this list for Xen 4.8.5, unfortunately; most people around here work off Xen's staging branch, and I'd be surprised to hear of anyone having tried a 5.7 Linux kernel with Xen 4.8.5. I can understand why you might start there from the existing patch series though.

Best of luck,

Christopher

#2 lore raw

Hi Christopher,

Thanks for those encouraging words!
I did in fact try to apply the Tegra patches to 4.13 but there were other issues and Xen wouldn't boot up. I felt that working with 4.8 would minimize the unknowns. I am also using the Linux Image from the Linux_for_Tegra build.

Let me work with your suggestions and see if I can make further progress.

Thanks,
Srini

Quoted 4 lines · Srinivas Bangalore

Dear Xen experts,

Would greatly appreciate some hints on how to move forward with this one…

Hi Srini,

I don't have any strong recommendations for you, but I do want to say that I'm very happy to see you taking this project on and I am hoping for your success. I have a newly-arrived Jetson Nano sitting on my desk here, purchased with the intention of getting Xen up and running on it, that I just haven't got to work on yet. I'm also familiar with Chris Patterson, Kyle Temkin and Ian Campbell's previous Tegra Jetson patches and it would be great to see some further progress made from those.

In my recent experience with the Raspberry Pi 4, one basic observation with ARM kernel bringup is that if your device tree isn't good, your
dom0 kernel can be missing the configuration it needs to use the serial port correctly and you don't get any diagnostics from it after Xen attempts to launch it, so I would just patch the right serial port config directly into your Linux kernel (eg. hardcode specific things onto the kernel command line) so you're not messing about with that any more.

The other thing I would recommend is patching in some printks into the earliest part of the Xen parts of the Dom0 Linux kernel start code.
Others who are more familar with Xen on ARM may have some better recommendations, but linux/arch/arm/xen/enlighten.c has a function xen_guest_init that looks like a good place to stuff some extra printks for some early proof-of-entry from your kernel, and that way you'll have some indication whether execution has actually commenced in there.

I don't think you're going to get a great deal of enthusiasm on this list for Xen 4.8.5, unfortunately; most people around here work off Xen's staging branch, and I'd be surprised to hear of anyone having tried a 5.7 Linux kernel with Xen 4.8.5. I can understand why you might start there from the existing patch series though.

Best of luck,

Christopher

#3 lore raw
In reply to Christopher Clark

Hi,

Quoted 7 lines · Christopher Clark
Quoted 3 lines · Srinivas Bangalore

Dear Xen experts,

Would greatly appreciate some hints on how to move forward with this one…

Hi Srini,

Quoted 8 lines

I don't have any strong recommendations for you, but I do want to say that I'm very happy to see you taking this project on and I am hoping for your success. I have a newly-arrived Jetson Nano sitting on my desk here, purchased with the intention of getting Xen up and running on it, that I just haven't got to work on yet. I'm also familiar with Chris Patterson, Kyle Temkin and Ian Campbell's previous Tegra Jetson patches and it would be great to see some further progress made from those.

I agree that it would be good to have the support in upstream!

Quoted 10 lines

In my recent experience with the Raspberry Pi 4, one basic observation with ARM kernel bringup is that if your device tree isn't good, your dom0 kernel can be missing the configuration it needs to use the serial port correctly and you don't get any diagnostics from it after Xen attempts to launch it, so I would just patch the right serial port config directly into your Linux kernel (eg. hardcode specific things onto the kernel command line) so you're not messing about with that any more.

Quoted 8 lines

The other thing I would recommend is patching in some printks into the earliest part of the Xen parts of the Dom0 Linux kernel start code. Others who are more familar with Xen on ARM may have some better recommendations, but linux/arch/arm/xen/enlighten.c has a function xen_guest_init that looks like a good place to stuff some extra printks for some early proof-of-entry from your kernel, and that way you'll have some indication whether execution has actually commenced in there.

Linux provides earlyprintk facilities that can be used in Xen. To enable it, you need to have your kernel built with CONFIG_EARLY_PRINTK=y and CONFIG_XEN=y. This can then be enabled by passing earlyprintk=xenboot on your command line.

Note that Linux needs to detect you are using Xen before using earlyprintk. If you need earlier, then what I usually do is hacking xen_raw_console_write() (in drivers/tty/hvc/hvc_xen.c) and replace 'if (xen_domain())' with 'if (1)'.

Quoted 6 lines

I don't think you're going to get a great deal of enthusiasm on this list for Xen 4.8.5, unfortunately; most people around here work off Xen's staging branch, and I'd be surprised to hear of anyone having tried a 5.7 Linux kernel with Xen 4.8.5. I can understand why you might start there from the existing patch series though.

Right, 4.8.5 is now out of support and we improved Xen quite a lot since then. As a general recommendation, I would suggest to move the series to the latest staging once you get it working on 4.8.5.

However, I don't see any reason why 5.7 wouldn't boot on 4.8.5. I will have a look at your stack trace and answer there.

Best regards,

Signature · 1 line
Julien Grall
#4 lore raw
Quoted 40 lines · Julien Grall

Hi,

Quoted 7 lines · Christopher Clark
Quoted 3 lines · Srinivas Bangalore

Dear Xen experts,

Would greatly appreciate some hints on how to move forward with this one…

Hi Srini,

Quoted 8 lines

I don't have any strong recommendations for you, but I do want to say that I'm very happy to see you taking this project on and I am hoping for your success. I have a newly-arrived Jetson Nano sitting on my desk here, purchased with the intention of getting Xen up and running on it, that I just haven't got to work on yet. I'm also familiar with Chris Patterson, Kyle Temkin and Ian Campbell's previous Tegra Jetson patches and it would be great to see some further progress made from those.

I agree that it would be good to have the support in upstream!

Quoted 10 lines

In my recent experience with the Raspberry Pi 4, one basic observation with ARM kernel bringup is that if your device tree isn't good, your dom0 kernel can be missing the configuration it needs to use the serial port correctly and you don't get any diagnostics from it after Xen attempts to launch it, so I would just patch the right serial port config directly into your Linux kernel (eg. hardcode specific things onto the kernel command line) so you're not messing about with that any more.

Quoted 8 lines

The other thing I would recommend is patching in some printks into the earliest part of the Xen parts of the Dom0 Linux kernel start code. Others who are more familar with Xen on ARM may have some better recommendations, but linux/arch/arm/xen/enlighten.c has a function xen_guest_init that looks like a good place to stuff some extra printks for some early proof-of-entry from your kernel, and that way you'll have some indication whether execution has actually commenced in there.

Quoted 3 lines

Linux provides earlyprintk facilities that can be used in Xen. To enable it, you need to have your kernel built with CONFIG_EARLY_PRINTK=y and CONFIG_XEN=y. This can then be enabled by passing earlyprintk=xenboot on your command line.

Note that Linux needs to detect you are using Xen before using earlyprintk.

Hmmm... I forgot to earlyprintk is x86 only. On Arm, you want to use earlycon=xenboot. This should be available as long as you build Linux with CONFIG_XEN=y. No need to detect Xen. However...

Quoted 1 line

If you need earlier, then what I usually do is hacking xen_raw_console_write() (in drivers/tty/hvc/hvc_xen.c) and replace 'if (xen_domain())' with 'if (1)'.

... this point is still valid if you want to use earlycon before it is actually initialized.

Apologies for the confusion.

Cheers,

Signature · 1 line
Julien Grall
#5 lore raw
In reply to Srinivas Bangalore
Quoted 1 line · Srinivas Bangalore

Dear Xen experts,

Hello,

Quoted 1 line

Would greatly appreciate some hints on how to move forward with this one…

From your first set of original log:

Quoted 3 lines

Xen version 4.8.5 (srinivas@) (aarch64-linux-gnu-gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0) debug=n Sun Jul 19 07:44:00 PDT 2020

I would recommend to compile Xen with debug enabled (CONFIG_DEBUG=y) as it may provide you more information of what's happening.

Also, aside the Tegra series. Do you have any other patches on top?

[...]

Quoted 9 lines

(XEN) BANK[0] 0x000000a0000000-0x000000c0000000 (512MB)

(XEN) Grant table range: 0x000000fec00000-0x000000fec60000

(XEN) Loading zImage from 00000000e1000000 to 00000000a0080000-00000000a223c808

(XEN) Allocating PPI 16 for event channel interrupt

(XEN) Loading dom0 DTB to 0x00000000a8000000-0x00000000a803435c

[...]

Quoted 8 lines

(XEN) *** Dumping CPU0 guest state (d0v0): ***

(XEN) ----[ Xen-4.8.5  arm64  debug=n   Tainted:  C   ]----

(XEN) CPU:    0

(XEN) PC:     00000000a0080000

PC is pointing to the entry point of your kernel...

Quoted 57 lines

(XEN) LR:     0000000000000000

(XEN) SP_EL0: 0000000000000000

(XEN) SP_EL1: 0000000000000000

(XEN) CPSR:   000001c5 MODE:64-bit EL1h (Guest Kernel, handler)

(XEN)      X0: 00000000a8000000  X1: 0000000000000000  X2: 0000000000000000

(XEN)      X3: 0000000000000000  X4: 0000000000000000  X5: 0000000000000000

(XEN)      X6: 0000000000000000  X7: 0000000000000000  X8: 0000000000000000

(XEN)      X9: 0000000000000000 X10: 0000000000000000 X11: 0000000000000000

(XEN)     X12: 0000000000000000 X13: 0000000000000000 X14: 0000000000000000

(XEN)     X15: 0000000000000000 X16: 0000000000000000 X17: 0000000000000000

(XEN)     X18: 0000000000000000 X19: 0000000000000000 X20: 0000000000000000

(XEN)     X21: 0000000000000000 X22: 0000000000000000 X23: 0000000000000000

(XEN)     X24: 0000000000000000 X25: 0000000000000000 X26: 0000000000000000

(XEN)     X27: 0000000000000000 X28: 0000000000000000  FP: 0000000000000000

(XEN)

(XEN)    ELR_EL1: 0000000000000000

(XEN)    ESR_EL1: 00000000

(XEN)    FAR_EL1: 0000000000000000

(XEN)

(XEN)  SCTLR_EL1: 00c50838

(XEN)    TCR_EL1: 00000000

(XEN)  TTBR0_EL1: 0000000000000000

(XEN)  TTBR1_EL1: 0000000000000000

(XEN)

(XEN)   VTCR_EL2: 80043594

(XEN)  VTTBR_EL2: 000100017f0f9000

(XEN)

(XEN)  SCTLR_EL2: 30cd183d

Quoted 7 lines

(XEN)    HCR_EL2: 000000008038663f

(XEN)  TTBR0_EL2: 00000000fecfc000

(XEN)

(XEN)    ESR_EL2: 8200000d

... it looks like we are receiving a trap in EL2 because it can't execute the instruction. This is a bit odd as the p2m (stage-2 page-tables) should be configured to allow execution. It would be useful if you can dump the p2m walk here. This following patch should do the job (not compiled test):

xen/arch/arm/traps.c +5 -0
index d578a5c598dd..af1834cdf735 100644
@@ -2489,9 +2489,14 @@ static void do_trap_instr_abort_guest(struct cpu_user_regs *regs,
          */
         rc = gva_to_ipa(gva, &gpa, GV2M_READ);
         if ( rc == -EFAULT )
+        {
+            printk("Unable to translate 0x%lx\n", gva);
             return; /* Try again */
+        }
     }
 
+    dump_p2m_walk(current->domain, gpa);
+
     switch ( fsc )
     {
     case FSC_FLT_PERM:
Quoted 10 lines

(XEN)  HPFAR_EL2: 0000000000000000

(XEN)    FAR_EL2: 00000000a0080000

(XEN)

(XEN) Guest stack trace from sp=0:

(XEN)   Failed to convert stack to physical address

[...]

Quoted 1 line

It seems the DOM0 kernel did not get added to the task list….

From a look at the dump, dom0 vCPU0 has been scheduled and running on pCPU0.

Quoted 8 lines

Boot args for Xen and Dom0 are here:
(XEN) Checking for initrd in /chosen

(XEN) linux,initrd limits invalid: 0000000084100000 >= 0000000084100000

(XEN) RAM: 0000000080000000 - 00000000fedfffff

Quoted 7 lines

(XEN) RAM: 0000000100000000 - 000000017f1fffff

(XEN)

(XEN) MODULE[0]: 00000000fc7f8000 - 00000000fc82d000 Device Tree

(XEN) MODULE[1]: 00000000e1000000 - 00000000e31bc808 Kernel console=hvc0 earlyprintk=xen earlycon=xen rootfstype=ext4 rw rootwait root=/dev/mmcblk0p1 rdinit=/sbin/init

You want to use earlycon=xenboot here.

Quoted 10 lines

(XEN)  RESVD[0]: 0000000080000000 - 0000000080020000

(XEN)  RESVD[1]: 00000000e3500000 - 00000000e3535000

(XEN)  RESVD[2]: 00000000fc7f8000 - 00000000fc82d000

(XEN)

(XEN) Command line: console=dtuart earlyprintk=xen earlycon=uart8250,mmio32,0x70006000 sync_console dom0_mem=512M log_lvl=all guest_loglvl=all console_to_ring

FWIW, earlyprintk and earlycon are not understood by Xen. They are only useful for Dom0.

Best regards,

Signature · 1 line
Julien Grall
#6 lore raw

Hi Julien,

Thanks for the tips. Comments inline...

Regards,
Srini

-----Original Message-----
From: Xen-devel <[email protected]> On Behalf Of Julien Grall
Sent: Thursday, July 23, 2020 11:04 AM
To: Srinivas Bangalore <[email protected]>; [email protected]; Christopher Clark <[email protected]>
Subject: Re: Porting Xen to Jetson Nano

Quoted 1 line · Srinivas Bangalore

Dear Xen experts,

Hello,

Quoted 2 lines

Would greatly appreciate some hints on how to move forward with this one…

From your first set of original log:

Quoted 1 line

Xen version 4.8.5 (srinivas@) (aarch64-linux-gnu-gcc > (Ubuntu/Linaro

7.5.0-3ubuntu1~18.04) 7.5.0) debug=n Sun Jul 19 07:44:00 > PDT 2020

I would recommend to compile Xen with debug enabled (CONFIG_DEBUG=y) as it may provide you more information of what's happening.

Xen image rebuild now with CONFIG_DEBUG=y. Also changed bootargs as suggested.

(XEN) MODULE[0]: 00000000fc7f8000 - 00000000fc82d000 Device Tree (XEN) MODULE[1]: 00000000e1000000 - 00000000e31bc808 Kernel console=hvc0 earlycon=xenboot rootfstype=ext4 rw rootwait root=/dev/mmcblk0p1 rdinit=/sbin/init clk_ignore_unused

(XEN)  RESVD[0]: 0000000080000000 - 0000000080020000
(XEN)  RESVD[1]: 00000000e3500000 - 00000000e3535000
(XEN)  RESVD[2]: 00000000fc7f8000 - 00000000fc82d000

(XEN)
(XEN) Command line: console=dtuart sync_console dom0_mem=128M log_lvl=all guest_loglvl=all console_to_ring
(XEN) Placing Xen at 0x00000000fec00000-0x00000000fee00000 (XEN) Update BOOTMOD_XEN from 0000000080080000-0000000080198e01 => 00000000fec00000-00000000fed18e01
(XEN) Domain heap initialised
(XEN) Platform: Tegra
(XEN) Taking dtuart configuration from /chosen/stdout-path (XEN) Looking for dtuart at "/serial@70 Xen 4.8.5
(XEN) Xen version 4.8.5 (srinivas@) (aarch64-linux-gnu-gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0) debug=y Thu Jul 23 21:17:23 PDT 2020

Also, aside the Tegra series. Do you have any other patches on top?

No other patches.

[...]

Quoted 10 lines

(XEN) BANK[0] 0x000000a0000000-0x000000c0000000 (512MB)

(XEN) Grant table range: 0x000000fec00000-0x000000fec60000

(XEN) Loading zImage from 00000000e1000000 to
00000000a0080000-00000000a223c808

(XEN) Allocating PPI 16 for event channel interrupt

(XEN) Loading dom0 DTB to 0x00000000a8000000-0x00000000a803435c

[...]

Quoted 8 lines

(XEN) *** Dumping CPU0 guest state (d0v0): ***

(XEN) ----[ Xen-4.8.5  arm64  debug=n   Tainted:  C   ]----

(XEN) CPU:    0

(XEN) PC:     00000000a0080000

PC is pointing to the entry point of your kernel...

Quoted 67 lines

(XEN) LR:     0000000000000000

(XEN) SP_EL0: 0000000000000000

(XEN) SP_EL1: 0000000000000000

(XEN) CPSR:   000001c5 MODE:64-bit EL1h (Guest Kernel, handler)

(XEN)      X0: 00000000a8000000  X1: 0000000000000000  X2:
0000000000000000

(XEN)      X3: 0000000000000000  X4: 0000000000000000  X5:
0000000000000000

(XEN)      X6: 0000000000000000  X7: 0000000000000000  X8:
0000000000000000

(XEN)      X9: 0000000000000000 X10: 0000000000000000 X11:
0000000000000000

(XEN)     X12: 0000000000000000 X13: 0000000000000000 X14:
0000000000000000

(XEN)     X15: 0000000000000000 X16: 0000000000000000 X17:
0000000000000000

(XEN)     X18: 0000000000000000 X19: 0000000000000000 X20:
0000000000000000

(XEN)     X21: 0000000000000000 X22: 0000000000000000 X23:
0000000000000000

(XEN)     X24: 0000000000000000 X25: 0000000000000000 X26:
0000000000000000

(XEN)     X27: 0000000000000000 X28: 0000000000000000  FP:
0000000000000000

(XEN)

(XEN)    ELR_EL1: 0000000000000000

(XEN)    ESR_EL1: 00000000

(XEN)    FAR_EL1: 0000000000000000

(XEN)

(XEN)  SCTLR_EL1: 00c50838

(XEN)    TCR_EL1: 00000000

(XEN)  TTBR0_EL1: 0000000000000000

(XEN)  TTBR1_EL1: 0000000000000000

(XEN)

(XEN)   VTCR_EL2: 80043594

(XEN)  VTTBR_EL2: 000100017f0f9000

(XEN)

(XEN)  SCTLR_EL2: 30cd183d

Quoted 7 lines

(XEN)    HCR_EL2: 000000008038663f

(XEN)  TTBR0_EL2: 00000000fecfc000

(XEN)

(XEN)    ESR_EL2: 8200000d

... it looks like we are receiving a trap in EL2 because it can't execute the instruction. This is a bit odd as the p2m (stage-2 page-tables) should be configured to allow execution. It would be useful if you can dump the p2m walk here. This following patch should do the job (not compiled test):

xen/arch/arm/traps.c index renamed from xen/arch/arm/traps.c +0 -0

d578a5c598dd..af1834cdf735 100644

xen/arch/arm/traps.c +0 -0
@@ -2489,9 +2489,14 @@ static void do_trap_instr_abort_guest(struct

cpu_user_regs *regs,

           */
          rc = gva_to_ipa(gva, &gpa, GV2M_READ);
          if ( rc == -EFAULT )

+ {
+ printk("Unable to translate 0x%lx\n", gva);
return; /* Try again */
+ }

      }

+ dump_p2m_walk(current->domain, gpa);
+
switch ( fsc )
{
case FSC_FLT_PERM:

I believe you meant 'dump_p2m_lookup'? I couldn't find 'dump_p2m_walk' in the source, so included 'dump_p2m_lookup' (which actually calls 'dump_pm_walk').
Here's the output, truncated since it goes into an infinite loop printing the same info:
[..]
(XEN) Allocating 1:1 mappings totalling 128MB for dom0:
(XEN) BANK[0] 0x00000088000000-0x00000090000000 (128MB)
(XEN) Grant table range: 0x000000fec00000-0x000000fec68000
(XEN) Loading zImage from 00000000e1000000 to 0000000088080000-000000008a23c808
(XEN) Allocating PPI 16 for event channel interrupt
(XEN) Loading dom0 DTB to 0x000000008fe00000-0x000000008fe34444 (XEN) Scrubbing Free RAM on 1 nodes using 4 CPUs
(XEN) ........done.
(XEN) Initial low memory virq threshold set at 0x4000 pages. (XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) ***************************************************
(XEN) WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) This option is intended to aid debugging of Xen by ensuring (XEN) that all output is synchronously delivered on the serial line. (XEN) However it can introduce SIGNIFICANT latencies and affect (XEN) timekeeping. It is NOT recommended for production use! (XEN) ***************************************************
(XEN) 3... 2... 1...
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) Freed 296kB init memory.
(XEN) dom0 IPA 0x0000000088080000
(XEN) P2M @ 0000000803fc3d40 mfn:0x17f0f5
(XEN) 0TH[0x0] = 0x004000017f0f377f
(XEN) 1ST[0x2] = 0x02c00000800006fd
(XEN) Mem access check
(XEN) dom0 IPA 0x0000000088080000
(XEN) P2M @ 0000000803fc3d40 mfn:0x17f0f5
(XEN) 0TH[0x0] = 0x004000017f0f377f
(XEN) 1ST[0x2] = 0x02c00000800006fd
(XEN) Mem access check

[..]

I added the printk for 'Mem access check' inside the 'case FSC_FLT_PERM' of the switch (fsc) code following the lookup. That's what you see in the output above.
So it does seem like there's a memory access fault somehow.

Quoted 10 lines

(XEN)  HPFAR_EL2: 0000000000000000

(XEN)    FAR_EL2: 00000000a0080000

(XEN)

(XEN) Guest stack trace from sp=0:

(XEN)   Failed to convert stack to physical address

[...]

Quoted 1 line

It seems the DOM0 kernel did not get added to the task list….

From a look at the dump, dom0 vCPU0 has been scheduled and running on
pCPU0.

Quoted 11 lines

Boot args for Xen and Dom0 are here:
(XEN) Checking for initrd in /chosen

(XEN) linux,initrd limits invalid: 0000000084100000 >= 0000000084100000

(XEN) RAM: 0000000080000000 - 00000000fedfffff

(XEN) RAM: 0000000100000000 - 000000017f1fffff

Quoted 7 lines

(XEN)

(XEN) MODULE[0]: 00000000fc7f8000 - 00000000fc82d000 Device Tree

(XEN) MODULE[1]: 00000000e1000000 - 00000000e31bc808 Kernel console=hvc0 earlyprintk=xen earlycon=xen rootfstype=ext4 rw rootwait root=/dev/mmcblk0p1 rdinit=/sbin/init

You want to use earlycon=xenboot here.

Quoted 5 lines

(XEN)  RESVD[0]: 0000000080000000 - 0000000080020000

(XEN)  RESVD[1]: 00000000e3500000 - 00000000e3535000

Quoted 7 lines

(XEN)  RESVD[2]: 00000000fc7f8000 - 00000000fc82d000

(XEN)

(XEN) Command line: console=dtuart earlyprintk=xen earlycon=uart8250,mmio32,0x70006000 sync_console dom0_mem=512M log_lvl=all guest_loglvl=all console_to_ring

FWIW, earlyprintk and earlycon are not understood by Xen. They are only useful for Dom0.

BTW, to Christopher's point, the dtb did have some issues. I had to hack the 'interrupt-controller' node to get the GICv2 working.
I have attached the .dts file that I'm using.

Best regards,

--
Julien Grall

#7 lore raw
Quoted 1 line · Srinivas Bangalore

Hi Julien,

Hello,

Quoted 2 lines

Thanks for the tips. Comments inline...

I struggled to find your comment inline as your e-mail client doesn't quote my answer. Please configure your e-mail client to use some form of quoting (the usual is '>').

Quoted 28 lines

Here's the output, truncated since it goes into an infinite loop printing the same info:
[..]
(XEN) Allocating 1:1 mappings totalling 128MB for dom0:
(XEN) BANK[0] 0x00000088000000-0x00000090000000 (128MB)
(XEN) Grant table range: 0x000000fec00000-0x000000fec68000
(XEN) Loading zImage from 00000000e1000000 to 0000000088080000-000000008a23c808
(XEN) Allocating PPI 16 for event channel interrupt
(XEN) Loading dom0 DTB to 0x000000008fe00000-0x000000008fe34444 (XEN) Scrubbing Free RAM on 1 nodes using 4 CPUs
(XEN) ........done.
(XEN) Initial low memory virq threshold set at 0x4000 pages. (XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) ***************************************************
(XEN) WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) This option is intended to aid debugging of Xen by ensuring (XEN) that all output is synchronously delivered on the serial line. (XEN) However it can introduce SIGNIFICANT latencies and affect (XEN) timekeeping. It is NOT recommended for production use! (XEN) ***************************************************
(XEN) 3... 2... 1...
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) Freed 296kB init memory.
(XEN) dom0 IPA 0x0000000088080000
(XEN) P2M @ 0000000803fc3d40 mfn:0x17f0f5

Quoted 8 lines

(XEN) 0TH[0x0] = 0x004000017f0f377f
(XEN) 1ST[0x2] = 0x02c00000800006fd
(XEN) Mem access check
(XEN) dom0 IPA 0x0000000088080000
(XEN) P2M @ 0000000803fc3d40 mfn:0x17f0f5
(XEN) 0TH[0x0] = 0x004000017f0f377f
(XEN) 1ST[0x2] = 0x02c00000800006fd
(XEN) Mem access check

The instruction abort issue looks normal as the mapping is marked as non-executable.

Looking at the rest of bits, bits 55:58 indicates the type of mapping used. The value suggest the mapping has been considered to be used p2m_mmio_direct_c (RW cacheable MMIO). This looks wrong to me because RAM should be mapped using p2m_ram_rw.

Looking at your DT, it looks like the region is marked as reserved. On Xen 4.8, reserved-memory region are not correctly handled (IIRC this was only fixed in Xen 4.13). This should be possible to confirm by enable CONFIG_DEVICE_TREE_DEBUG in your .config.

The option will debug more information about the mapping to dom0 on your console.

However, given you are using an old release, you are at risk at keep finding bugs that have been resolved in more recent releases. It would probably better if you switch to Xen 4.14 and report any bug you can find there.

Quoted 60 lines

[..]

I added the printk for 'Mem access check' inside the 'case FSC_FLT_PERM' of the switch (fsc) code following the lookup. That's what you see in the output above.
So it does seem like there's a memory access fault somehow.

Quoted 10 lines

(XEN)  HPFAR_EL2: 0000000000000000

(XEN)    FAR_EL2: 00000000a0080000

(XEN)

(XEN) Guest stack trace from sp=0:

(XEN)   Failed to convert stack to physical address

[...]

Quoted 1 line

It seems the DOM0 kernel did not get added to the task list….

From a look at the dump, dom0 vCPU0 has been scheduled and running on
pCPU0.

Quoted 11 lines

Boot args for Xen and Dom0 are here:
(XEN) Checking for initrd in /chosen

(XEN) linux,initrd limits invalid: 0000000084100000 >= 0000000084100000

(XEN) RAM: 0000000080000000 - 00000000fedfffff

(XEN) RAM: 0000000100000000 - 000000017f1fffff

Quoted 7 lines

(XEN)

(XEN) MODULE[0]: 00000000fc7f8000 - 00000000fc82d000 Device Tree

(XEN) MODULE[1]: 00000000e1000000 - 00000000e31bc808 Kernel console=hvc0 earlyprintk=xen earlycon=xen rootfstype=ext4 rw rootwait root=/dev/mmcblk0p1 rdinit=/sbin/init

You want to use earlycon=xenboot here.

Quoted 5 lines

(XEN)  RESVD[0]: 0000000080000000 - 0000000080020000

(XEN)  RESVD[1]: 00000000e3500000 - 00000000e3535000

Quoted 7 lines

(XEN)  RESVD[2]: 00000000fc7f8000 - 00000000fc82d000

(XEN)

(XEN) Command line: console=dtuart earlyprintk=xen earlycon=uart8250,mmio32,0x70006000 sync_console dom0_mem=512M log_lvl=all guest_loglvl=all console_to_ring

Quoted 6 lines

FWIW, earlyprintk and earlycon are not understood by Xen. They are only useful for Dom0.

BTW, to Christopher's point, the dtb did have some issues. I had to hack the 'interrupt-controller' node to get the GICv2 working.
I have attached the .dts file that I'm using.

Best regards,

Signature · 1 line
Julien Grall
#8 lore raw

Hi,

Quoted 1 line · Srinivas Bangalore

Hi Julien,

Hello,

Quoted 2 lines

Thanks for the tips. Comments inline...

I struggled to find your comment inline as your e-mail client doesn't quote my answer. Please configure your e-mail client to use some form of quoting (the usual is '>').

[<SB>] Done! Sorry about that.

Quoted 29 lines

Here's the output, truncated since it goes into an infinite loop printing the same info:
[..]
(XEN) Allocating 1:1 mappings totalling 128MB for dom0:
(XEN) BANK[0] 0x00000088000000-0x00000090000000 (128MB) (XEN) Grant table range: 0x000000fec00000-0x000000fec68000 (XEN) Loading zImage from 00000000e1000000 to 0000000088080000-000000008a23c808
(XEN) Allocating PPI 16 for event channel interrupt
(XEN) Loading dom0 DTB to 0x000000008fe00000-0x000000008fe34444 (XEN) Scrubbing Free RAM on 1 nodes using 4 CPUs
(XEN) ........done.
(XEN) Initial low memory virq threshold set at 0x4000 pages. (XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) *************************************************** (XEN) WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) This option is intended to aid debugging of Xen by ensuring (XEN) that all output is synchronously delivered on the serial line. (XEN) However it can introduce SIGNIFICANT latencies and affect (XEN) timekeeping. It is NOT recommended for production use! (XEN) *************************************************** (XEN) 3... 2... 1...
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to
Xen)
(XEN) Freed 296kB init memory.
(XEN) dom0 IPA 0x0000000088080000
(XEN) P2M @ 0000000803fc3d40 mfn:0x17f0f5

Quoted 8 lines

(XEN) 0TH[0x0] = 0x004000017f0f377f
(XEN) 1ST[0x2] = 0x02c00000800006fd
(XEN) Mem access check
(XEN) dom0 IPA 0x0000000088080000
(XEN) P2M @ 0000000803fc3d40 mfn:0x17f0f5
(XEN) 0TH[0x0] = 0x004000017f0f377f
(XEN) 1ST[0x2] = 0x02c00000800006fd
(XEN) Mem access check

The instruction abort issue looks normal as the mapping is marked as non-executable.

Looking at the rest of bits, bits 55:58 indicates the type of mapping used. The value suggest the mapping has been considered to be used p2m_mmio_direct_c (RW cacheable MMIO). This looks wrong to me because RAM should be mapped using p2m_ram_rw.

Looking at your DT, it looks like the region is marked as reserved. On Xen 4.8, reserved-memory region are not correctly handled (IIRC this was only fixed in Xen 4.13). This should be possible to confirm by enable CONFIG_DEVICE_TREE_DEBUG in your .config.

The option will debug more information about the mapping to dom0 on your console.

However, given you are using an old release, you are at risk at keep finding bugs that have been resolved in more recent releases. It would probably better if you switch to Xen 4.14 and report any bug you can find there.

[<SB>] OK, I started porting the patch series to 4.14, but it is definitely not straightforward ;) Will take some time to do this. BTW, I was looking at xen/arch/arm/Rules.mk in 4.14 and it is blank. The previous releases had some board-specific stuff in this file - esp the EARLY_PRINTK definitions. Has this changed in 4.14?

Quoted 4 lines

[..]

I added the printk for 'Mem access check' inside the 'case FSC_FLT_PERM'

of

Quoted 52 lines

the switch (fsc) code following the lookup. That's what you see in the output above.
So it does seem like there's a memory access fault somehow.

Quoted 10 lines

(XEN)  HPFAR_EL2: 0000000000000000

(XEN)    FAR_EL2: 00000000a0080000

(XEN)

(XEN) Guest stack trace from sp=0:

(XEN)   Failed to convert stack to physical address

[...]

Quoted 1 line

It seems the DOM0 kernel did not get added to the task list….

From a look at the dump, dom0 vCPU0 has been scheduled and running on
pCPU0.

Quoted 11 lines

Boot args for Xen and Dom0 are here:
(XEN) Checking for initrd in /chosen

(XEN) linux,initrd limits invalid: 0000000084100000 >= 0000000084100000

(XEN) RAM: 0000000080000000 - 00000000fedfffff

(XEN) RAM: 0000000100000000 - 000000017f1fffff

Quoted 7 lines

(XEN)

(XEN) MODULE[0]: 00000000fc7f8000 - 00000000fc82d000 Device Tree

(XEN) MODULE[1]: 00000000e1000000 - 00000000e31bc808 Kernel console=hvc0 earlyprintk=xen earlycon=xen rootfstype=ext4 rw rootwait root=/dev/mmcblk0p1 rdinit=/sbin/init

You want to use earlycon=xenboot here.

Quoted 9 lines

(XEN)  RESVD[0]: 0000000080000000 - 0000000080020000

(XEN)  RESVD[1]: 00000000e3500000 - 00000000e3535000

(XEN)  RESVD[2]: 00000000fc7f8000 - 00000000fc82d000

(XEN)

Quoted 8 lines
Quoted 3 lines

(XEN) Command line: console=dtuart earlyprintk=xen earlycon=uart8250,mmio32,0x70006000 sync_console dom0_mem=512M log_lvl=all guest_loglvl=all console_to_ring

FWIW, earlyprintk and earlycon are not understood by Xen. They are only useful for Dom0.

BTW, to Christopher's point, the dtb did have some issues. I had to hack

the

Quoted 2 lines

'interrupt-controller' node to get the GICv2 working. I have attached the .dts file that I'm using.

[<SB>]

Regards,
Srini

#9 lore raw
Quoted 9 lines · Srinivas Bangalore

Hi,

Quoted 1 line · Srinivas Bangalore

Hi Julien,

Hello,

Quoted 1 line
Quoted 7 lines
Quoted 1 line

Thanks for the tips. Comments inline...

I struggled to find your comment inline as your e-mail client doesn't quote my answer. Please configure your e-mail client to use some form of quoting (the usual is '>').

[<SB>] Done! Sorry about that.

Thanks this is a good start. Unfortunately, it doesn't fully help it when you have a reply split accross multiple line. This is become more proeminent after a few back and forth. Which e-mail client are you using?

Quoted 5 lines

[<SB>] OK, I started porting the patch series to 4.14, but it is definitely not straightforward ;) Will take some time to do this. BTW, I was looking at xen/arch/arm/Rules.mk in 4.14 and it is blank. The previous releases had some board-specific stuff in this file - esp the EARLY_PRINTK definitions. Has this changed in 4.14?

earlyprintk can now be configured using Kconfig. This should be easier to configure as you can do it the same way as you would for other options.

Cheers,

Signature · 1 line
Julien Grall
#10 lore raw
Quoted 5 lines

I struggled to find your comment inline as your e-mail client doesn't quote my answer. Please configure your e-mail client to use some form of quoting (the usual is '>').

[<SB>] Done! Sorry about that.

Thanks this is a good start. Unfortunately, it doesn't fully help it when you have a reply split accross multiple line. This is become more proeminent after a few back and forth. Which e-mail client are you using?

[<SB>] I'm using Microsoft Outlook

Quoted 5 lines

[<SB>] OK, I started porting the patch series to 4.14, but it is
definitely not straightforward ;) Will take some time to do this. BTW,
I was looking at xen/arch/arm/Rules.mk in 4.14 and it is blank. The
previous releases had some board-specific stuff in this file - esp the EARLY_PRINTK definitions. Has this changed in 4.14?

earlyprintk can now be configured using Kconfig. This should be easier to configure as you can do it the same way as you would for other options.

[<SB>] Thanks. Yes, I noticed this change. I'm working on applying the patches and will get back with an update in a day or two.

Thanks,
Srini

#11 lore raw
Quoted 7 lines · Srinivas Bangalore



Quoted 5 lines

I struggled to find your comment inline as your e-mail client doesn't quote my answer. Please configure your e-mail client to use some form of quoting (the usual is '>').

Quoted 5 lines
Quoted 1 line

[<SB>] Done! Sorry about that.

Thanks this is a good start. Unfortunately, it doesn't fully help it when you have a reply split accross multiple line. This is become more proeminent after a few back and forth. Which e-mail client are you using?

[<SB>] I'm using Microsoft Outlook

Might be worth trying these instructions:
https://www.slipstick.com/outlook/email/to-use-internet-style-quoting/

Rich

#12 lore raw
In reply to Julien Grall

Hi Julien,

Quoted 7 lines · Julien Grall

On 24/07/2020 16:01, Srinivas Bangalore wrote:

I struggled to find your comment inline as your e-mail client doesn't quote my answer. Please configure your e-mail client to use some form of quoting (the usual is '>').

I have switched to a web-based email client, so I hope this is better now.

Quoted 25 lines
Quoted 11 lines

(XEN) Freed 296kB init memory. (XEN) dom0 IPA 0x0000000088080000 (XEN) P2M @ 0000000803fc3d40 mfn:0x17f0f5 (XEN) 0TH[0x0] = 0x004000017f0f377f (XEN) 1ST[0x2] = 0x02c00000800006fd (XEN) Mem access check
(XEN) dom0 IPA 0x0000000088080000 (XEN) P2M @ 0000000803fc3d40 mfn:0x17f0f5 (XEN) 0TH[0x0] = 0x004000017f0f377f (XEN) 1ST[0x2] = 0x02c00000800006fd (XEN) Mem access check

The instruction abort issue looks normal as the mapping is marked as non-executable.

Looking at the rest of bits, bits 55:58 indicates the type of mapping used. The value suggest the mapping has been considered to be used p2m_mmio_direct_c (RW cacheable MMIO). This looks wrong to me because RAM should be mapped using p2m_ram_rw.

Looking at your DT, it looks like the region is marked as reserved. On Xen 4.8, reserved-memory region are not correctly handled (IIRC this was only fixed in Xen 4.13). This should be possible to confirm by enable CONFIG_DEVICE_TREE_DEBUG in your .config.

Quoted 8 lines

The option will debug more information about the mapping to dom0 on your console.

However, given you are using an old release, you are at risk at keep finding bugs that have been resolved in more recent releases. It would probably better if you switch to Xen 4.14 and report any bug you can find there.

Ok. I applied to patch series to 4.14. Enabled EARLY_PRINTK, CONFIG_DEBUG and DEVICE_TREE_DEBUG. Here's the log...

## Flattened Device Tree blob at e3500000
Booting using the fdt blob at 0xe3500000
reserving fdt memory region: addr=80000000 size=20000 reserving fdt memory region: addr=e3500000 size=35000 Loading Device Tree to 00000000fc7f8000, end 00000000fc82ffff ... OK

Starting kernel ...

- UART enabled -
- Boot CPU booting -
- Current EL 00000008 -
- Initialize CPU -
- Turning on paging -
- Zero BSS -
- Ready -
(XEN) Invalid size for reg
(XEN) fdt: node `reserved-memory': parsing failed (XEN)
(XEN) MODULE[0]: 00000000e0000000 - 00000000e014b0c8 Xen (XEN) MODULE[1]: 00000000fc7f8000 - 00000000fc82d000 Device Tree

(XEN)  RESVD[0]: 0000000080000000 - 0000000080020000
(XEN)  RESVD[1]: 00000000e3500000 - 00000000e3535000
(XEN)  RESVD[2]: 00000000fc7f8000 - 00000000fc82d000
(XEN)  RESVD[3]: 0000000040001000 - 000000004003ffff
(XEN)  RESVD[4]: 00000000b0000000 - 00000000b01fffff

(XEN)
(XEN)
(XEN) Command line: console=dtuart sync_console dom0_mem=128M loglvl=debug guest_loglvl=debug console_to_ring (XEN) Xen BUG at page_alloc.c:398
(XEN) ----[ Xen-4.14.0 arm64 debug=y Not tainted ]----

(XEN) CPU:    0
(XEN) PC:     00000000002b7b90 alloc_boot_pages+0x38/0x9c
(XEN) LR:     00000000002cda04
(XEN) SP:     0000000000307d40
(XEN) CPSR:   a00003c9 MODE:64-bit EL2h (Hypervisor, handler)
(XEN)      X0: 000fc80000002000  X1: 0000000000002000  X2: 0000000000000000
(XEN)      X3: 000fffffffffffff  X4: ffffffffffffffff  X5: 0000000000000000
(XEN)      X6: 0000000000307df0  X7: 0000000000000003  X8: 0000000000000008
(XEN)      X9: fffffffffffffffb X10: 0101010101010101 X11: 0000000000000007
(XEN)     X12: 0000000000000004 X13: ffffffffffffffff X14: ffffffffff000000
(XEN)     X15: ffffffffffffffff X16: 0000000000000000 X17: 0000000000000000
(XEN)     X18: 00000000fc834dd0 X19: 00000000002b5000 X20: 00000000fc7f8000
(XEN)     X21: 00000000fc7f8000 X22: 0000000000000000 X23: fc80000000000038
(XEN)     X24: 00000000fed9de28 X25: ffffffffffffffff X26: fc80000002000000
(XEN)     X27: 0000000002000000 X28: 0000000000000000  FP: 0000000000307d40

(XEN)
(XEN) VTCR_EL2: 80000000
(XEN) VTTBR_EL2: 0000000000000000
(XEN)
(XEN) SCTLR_EL2: 30cd183d
(XEN) HCR_EL2: 0000000000000038
(XEN) TTBR0_EL2: 00000000e0145000
(XEN)
(XEN) ESR_EL2: f2000001
(XEN) HPFAR_EL2: 0000000000000000
(XEN) FAR_EL2: 0000000000000000
(XEN)
(XEN) Xen stack trace from sp=0000000000307d40:

(XEN)    0000000000307df0 00000000002cf114 0000000000000000 0000000000307d68
(XEN)    00000000fc7f8000 00000000002ceeb0 0000000000400000 00676e69725f6f74
(XEN)    ffffffffffffffff 0000000000000000 0000000000000000 0000000000307df0
(XEN)    0000000000307df0 00000000002cef58 000000003fffffff 00000000fc7f8000
(XEN)    00000000fc7f8000 000fc80000002000 0000000000400000 0080000000000000
(XEN)    0000000000000000 000000000003ffff 00000000fc831170 00000000002001b8
(XEN)    00000000e0000000 00000000dfe00000 00000000fc7f8000 0000000000000000
(XEN)    0000000000400000 00000000fed9de28 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000400 0000000000000000 0000000000035000
(XEN)    00000000fc7f8000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000300000000 0000000000000000 00000040ffffffff
(XEN)    00000000ffffffff 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN) Xen call trace:
(XEN)    [<00000000002b7b90>] alloc_boot_pages+0x38/0x9c (PC)
(XEN)    [<00000000002cda04>] setup_frametable_mappings+0xb4/0x310 (LR)
(XEN)    [<00000000002cf114>] start_xen+0x3a0/0xc48
(XEN)    [<00000000002001b8>] arm64/head.o#primary_switched+0x10/0x30

(XEN)
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Xen BUG at page_alloc.c:398
(XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...

There seems to be a problem with the DT in the 'reserved-memory' node. I commented out the fb0-carveout, fb1-carveout sections, recompiled and tried to boot again. This time the log shows the device tree messages (see attached log file), but Xen fails at this point...

(XEN) Allocating PPI 16 for event channel interrupt
(XEN) Create hypervisor node
(XEN) Create PSCI node
(XEN) Create cpus node
(XEN) Create cpu@0 (logical CPUID: 0) node
(XEN) Create cpu@1 (logical CPUID: 1) node
(XEN) Create cpu@2 (logical CPUID: 2) node
(XEN) Create cpu@3 (logical CPUID: 3) node
(XEN) Create memory node (reg size 4, nr cells 4)
(XEN) Bank 0: 0xe8000000->0xf0000000
(XEN) Create memory node (reg size 4, nr cells 8)
(XEN) Bank 0: 0x40001000->0x40040000
(XEN) Bank 1: 0xb0000000->0xb0200000
(XEN) Loading zImage from 00000000e1000000 to 00000000e8080000-00000000ea23c808 (XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Unable to copy the kernel in the hwdom memory
(XEN) ****************************************
(XEN)

Device tree and log file attached. Is there an issue with the DT? Any pointers on where I should be looking next?

Thanks for your help.

Regards,
Srini

/dts-v1/;

/memreserve/ 0x0000000080000000 0x0000000000020000;

/ {
	compatible = "nvidia,p3449-0000-b00+p3448-0000-b00", "nvidia,jetson-nano", "nvidia,tegra210";
	interrupt-parent = <0x1>;
	#address-cells = <0x2>;
	#size-cells = <0x2>;
	nvidia,dtbbuildtime = "Jul 23 2020", "17:30:48";
	nvidia,boardids = "3448";
	nvidia,proc-boardid = "3448";
	nvidia,pmu-boardid = "3448";
	nvidia,fastboot-usb-pid = <0xb442>;
	model = "NVIDIA Jetson Nano Developer Kit";
	nvidia,dtsfilename = "../arch/arm64/boot/dts/../../../../../../hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0000-p3449-0000-b00.dts";

	thermal-zones {

		AO-therm {
			status = "okay";
			polling-delay = <0x3e8>;
			polling-delay-passive = <0x3e8>;
			thermal-sensors = <0x2>;

			trips {

				trip_shutdown {
					temperature = <0x1adb0>;
					hysteresis = <0x0>;
					type = "critical";
					writable;
				};

				gpu-scaling0 {
					temperature = <0xffff9e58>;
					hysteresis = <0x0>;
					type = "active";
					linux,phandle = <0xa7>;
					phandle = <0xa7>;
				};

				gpu-scaling1 {
					temperature = <0x3a98>;
					hysteresis = <0x3e8>;
					type = "active";
					linux,phandle = <0x3>;
					phandle = <0x3>;
				};

				gpu-scaling2 {
					temperature = <0x7530>;
					hysteresis = <0x3e8>;
					type = "active";
					linux,phandle = <0x5>;
					phandle = <0x5>;
				};

				gpu-scaling3 {
					temperature = <0xc350>;
					hysteresis = <0x3e8>;
					type = "active";
					linux,phandle = <0x6>;
					phandle = <0x6>;
				};

				gpu-scaling4 {
					temperature = <0x11170>;
					hysteresis = <0x3e8>;
					type = "active";
					linux,phandle = <0x7>;
					phandle = <0x7>;
				};

				gpu-scaling5 {
					temperature = <0x19a28>;
					hysteresis = <0x3e8>;
					type = "active";
					linux,phandle = <0x8>;
					phandle = <0x8>;
				};

				gpu-vmax1 {
					temperature = <0x14438>;
					hysteresis = <0x3e8>;
					type = "active";
					linux,phandle = <0x9>;
					phandle = <0x9>;
				};

				core_dvfs_floor_trip0 {
					temperature = <0x3a98>;
					hysteresis = <0x3e8>;
					type = "active";
					linux,phandle = <0xb>;
					phandle = <0xb>;
				};

				core_dvfs_cap_trip0 {
					temperature = <0x14c08>;
					hysteresis = <0x3e8>;
					type = "active";
					linux,phandle = <0xd>;
					phandle = <0xd>;
				};

				dfll-floor-trip0 {
					temperature = <0x3a98>;
					hysteresis = <0x3e8>;
					type = "active";
					linux,phandle = <0xf>;
					phandle = <0xf>;
				};
			};

			thermal-zone-params {
				governor-name = "pid_thermal_gov";
			};

			cooling-maps {

				gpu-scaling-map1 {
					trip = <0x3>;
					cooling-device = <0x4 0x1 0x1>;
				};

				gpu-scaling-map2 {
					trip = <0x5>;
					cooling-device = <0x4 0x2 0x2>;
				};

				gpu_scaling_map3 {
					trip = <0x6>;
					cooling-device = <0x4 0x3 0x3>;
				};

				gpu-scaling-map4 {
					trip = <0x7>;
					cooling-device = <0x4 0x4 0x4>;
				};

				gpu-scaling-map5 {
					trip = <0x8>;
					cooling-device = <0x4 0x5 0x5>;
				};

				gpu-vmax-map1 {
					trip = <0x9>;
					cooling-device = <0xa 0x1 0x1>;
				};

				core_dvfs_floor_map0 {
					trip = <0xb>;
					cooling-device = <0xc 0x1 0x1>;
				};

				core_dvfs_cap_map0 {
					trip = <0xd>;
					cooling-device = <0xe 0x1 0x1>;
				};

				dfll-floor-map0 {
					trip = <0xf>;
					cooling-device = <0x10 0x1 0x1>;
				};
			};
		};

		CPU-therm {
			polling-delay = <0x0>;
			polling-delay-passive = <0x1f4>;
			thermal-sensors = <0x11 0x0>;
			status = "okay";

			thermal-zone-params {
				governor-name = "step_wise";
				max_err_temp = <0x2328>;
				max_err_gain = <0x3e8>;
				gain_p = <0x3e8>;
				gain_d = <0x0>;
				up_compensation = <0x14>;
				down_compensation = <0x14>;
			};

			trips {

				dfll-cap-trip0 {
					temperature = <0x101d0>;
					hysteresis = <0x3e8>;
					type = "active";
					linux,phandle = <0x16>;
					phandle = <0x16>;
				};

				dfll-cap-trip1 {
					temperature = <0x14ff0>;
					hysteresis = <0x3e8>;
					type = "active";
					linux,phandle = <0x18>;
					phandle = <0x18>;
				};

				cpu_critical {
					temperature = <0x18e70>;
					hysteresis = <0x0>;
					type = "critical";
					writable;
				};

				cpu_heavy {
					temperature = <0x18894>;
					hysteresis = <0x0>;
					type = "hot";
					writable;
					linux,phandle = <0x12>;
					phandle = <0x12>;
				};

				cpu_throttle {
					temperature = <0x17ae8>;
					hysteresis = <0x0>;
					type = "passive";
					writable;
					linux,phandle = <0x14>;
					phandle = <0x14>;
				};
			};

			cooling-maps {

				map1 {
					trip = <0x12>;
					cdev-type = "tegra_heavy";
					cooling-device = <0x13 0x1 0x1>;
				};

				map2 {
					trip = <0x14>;
					cdev-type = "cpu-balanced";
					cooling-device = <0x15 0xffffffff 0xffffffff>;
				};

				dfll-cap-map0 {
					trip = <0x16>;
					cooling-device = <0x17 0x1 0x1>;
				};

				dfll-cap-map1 {
					trip = <0x18>;
					cooling-device = <0x17 0x2 0x2>;
				};
			};
		};

		GPU-therm {
			polling-delay = <0x0>;
			polling-delay-passive = <0x1f4>;
			thermal-sensors = <0x11 0x2>;
			status = "okay";

			thermal-zone-params {
				governor-name = "step_wise";
				max_err_temp = <0x2328>;
				max_err_gain = <0x3e8>;
				gain_p = <0x3e8>;
				gain_d = <0x0>;
				up_compensation = <0x14>;
				down_compensation = <0x14>;
			};

			trips {

				gpu_critical {
					temperature = <0x19064>;
					hysteresis = <0x0>;
					type = "critical";
					writable;
				};

				gpu_heavy {
					temperature = <0x18a88>;
					hysteresis = <0x0>;
					type = "hot";
					writable;
					linux,phandle = <0x19>;
					phandle = <0x19>;
				};

				gpu_throttle {
					temperature = <0x17cdc>;
					hysteresis = <0x0>;
					type = "passive";
					writable;
					linux,phandle = <0x1a>;
					phandle = <0x1a>;
				};
			};

			cooling-maps {

				map1 {
					trip = <0x19>;
					cdev-type = "tegra_heavy";
					cooling-device = <0x13 0x1 0x1>;
				};

				map2 {
					trip = <0x1a>;
					cdev-type = "gpu-balanced";
					cooling-device = <0x1b 0xffffffff 0xffffffff>;
				};
			};
		};

		PLL-therm {
			polling-delay = <0x0>;
			polling-delay-passive = <0x3e8>;
			thermal-sensors = <0x11 0x3>;
			status = "okay";

			thermal-zone-params {
				governor-name = "pid_thermal_gov";
				max_err_temp = <0x2328>;
				max_err_gain = <0x3e8>;
				gain_p = <0x3e8>;
				gain_d = <0x0>;
				up_compensation = <0x14>;
				down_compensation = <0x14>;
			};

			trips {

				dram-throttle {
					temperature = <0x11170>;
					hysteresis = <0x3e8>;
					type = "passive";
					writable;
					linux,phandle = <0x1c>;
					phandle = <0x1c>;
				};
			};

			cooling-maps {

				map-tegra-dram {
					trip = <0x1c>;
					cooling-device = <0x1d 0x1 0x1>;
					cdev-type = "tegra-dram";
				};
			};
		};

		PMIC-Die {
			polling-delay = <0x0>;
			polling-delay-passive = <0x0>;
			thermal-sensors = <0x1e>;

			trips {

				hot-die {
					temperature = <0x1d4c0>;
					type = "active";
					hysteresis = <0x0>;
					linux,phandle = <0x1f>;
					phandle = <0x1f>;
				};
			};

			cooling-maps {

				map0 {
					trip = <0x1f>;
					cooling-device = <0x20 0xffffffff 0xffffffff>;
					contribution = <0x64>;
					cdev-type = "emergency-balanced";
				};
			};
		};
	};

	core_dvfs_cdev_floor {
		compatible = "nvidia,tegra-core-cdev-action";
		cdev-type = "CORE-floor";
		#cooling-cells = <0x2>;
		linux,phandle = <0xc>;
		phandle = <0xc>;
	};

	core_dvfs_cdev_cap {
		compatible = "nvidia,tegra-core-cdev-action";
		cdev-type = "CORE-cap";
		#cooling-cells = <0x2>;
		clocks = <0x21 0x198 0x21 0x1a1 0x21 0x1b8 0x21 0x1f6 0x21 0x206>;
		clock-names = "c2bus_cap", "c3bus_cap", "sclk_cap", "host1x_cap", "adsp_cap";
		linux,phandle = <0xe>;
		phandle = <0xe>;
	};

	power-domain {
		compatible = "tegra-power-domains";

		host1x-pd {
			compatible = "nvidia,tegra210-host1x-pd";
			is_off;
			host1x;
			#power-domain-cells = <0x0>;
			linux,phandle = <0x23>;
			phandle = <0x23>;
		};

		ape-pd {
			compatible = "nvidia,tegra210-ape-pd";
			is_off;
			#power-domain-cells = <0x0>;
			partition-id = <0x1b>;
			clocks = <0x21 0xc6 0x21 0x6b 0x21 0xc7>;
			clock-names = "ape", "apb2ape", "adsp";
			linux,phandle = <0x22>;
			phandle = <0x22>;
		};

		adsp-pd {
			compatible = "nvidia,tegra210-adsp-pd";
			is_off;
			#power-domain-cells = <0x0>;
			power-domains = <0x22>;
			linux,phandle = <0xdf>;
			phandle = <0xdf>;
		};

		tsec-pd {
			compatible = "nvidia,tegra210-tsec-pd";
			is_off;
			#power-domain-cells = <0x0>;
			power-domains = <0x23>;
			linux,phandle = <0x6b>;
			phandle = <0x6b>;
		};

		nvdec-pd {
			compatible = "nvidia,tegra210-nvdec-pd";
			is_off;
			#power-domain-cells = <0x0>;
			power-domains = <0x23>;
			partition-id = <0x19>;
			linux,phandle = <0x6c>;
			phandle = <0x6c>;
		};

		ve2-pd {
			compatible = "nvidia,tegra210-ve2-pd";
			is_off;
			#power-domain-cells = <0x0>;
			power-domains = <0x23>;
			partition-id = <0x1d>;
			linux,phandle = <0x5c>;
			phandle = <0x5c>;
		};

		vic03-pd {
			compatible = "nvidia,tegra210-vic03-pd";
			is_off;
			#power-domain-cells = <0x0>;
			power-domains = <0x23>;
			partition-id = <0x17>;
			linux,phandle = <0x69>;
			phandle = <0x69>;
		};

		msenc-pd {
			compatible = "nvidia,tegra210-msenc-pd";
			is_off;
			#power-domain-cells = <0x0>;
			power-domains = <0x23>;
			partition-id = <0x6>;
			linux,phandle = <0x6a>;
			phandle = <0x6a>;
		};

		nvjpg-pd {
			compatible = "nvidia,tegra210-nvjpg-pd";
			is_off;
			#power-domain-cells = <0x0>;
			power-domains = <0x23>;
			partition-id = <0x1a>;
			linux,phandle = <0x6d>;
			phandle = <0x6d>;
		};

		pcie-pd {
			compatible = "nvidia,tegra210-pcie-pd";
			is_off;
			#power-domain-cells = <0x0>;
			partition-id = <0x3>;
			linux,phandle = <0x7a>;
			phandle = <0x7a>;
		};

		ve-pd {
			compatible = "nvidia,tegra210-ve-pd";
			is_off;
			#power-domain-cells = <0x0>;
			power-domains = <0x23>;
			partition-id = <0x2>;
			linux,phandle = <0x59>;
			phandle = <0x59>;
		};

		sata-pd {
			compatible = "nvidia,tegra210-sata-pd";
			#power-domain-cells = <0x0>;
			partition-id = <0x8>;
			linux,phandle = <0xe0>;
			phandle = <0xe0>;
		};

		sor-pd {
			compatible = "nvidia,tegra210-sor-pd";
			#power-domain-cells = <0x0>;
			partition-id = <0x11>;
			linux,phandle = <0xe1>;
			phandle = <0xe1>;
		};

		disa-pd {
			compatible = "nvidia,tegra210-disa-pd";
			#power-domain-cells = <0x0>;
			partition-id = <0x12>;
			linux,phandle = <0xe2>;
			phandle = <0xe2>;
		};

		disb-pd {
			compatible = "nvidia,tegra210-disb-pd";
			#power-domain-cells = <0x0>;
			partition-id = <0x13>;
			linux,phandle = <0xe3>;
			phandle = <0xe3>;
		};

		xusba-pd {
			compatible = "nvidia,tegra210-xusba-pd";
			#power-domain-cells = <0x0>;
			partition-id = <0x14>;
			linux,phandle = <0xe4>;
			phandle = <0xe4>;
		};

		xusbb-pd {
			compatible = "nvidia,tegra210-xusbb-pd";
			#power-domain-cells = <0x0>;
			partition-id = <0x15>;
			linux,phandle = <0xe5>;
			phandle = <0xe5>;
		};

		xusbc-pd {
			compatible = "nvidia,tegra210-xusbc-pd";
			#power-domain-cells = <0x0>;
			partition-id = <0x16>;
			linux,phandle = <0xe6>;
			phandle = <0xe6>;
		};
	};

	actmon@6000c800 {
		status = "okay";
		#address-cells = <0x2>;
		#size-cells = <0x2>;
		compatible = "nvidia,tegra210-cactmon";
		reg = <0x0 0x6000c800 0x0 0x400>;
		interrupts = <0x0 0x2d 0x4>;
		clocks = <0x21 0x77>;
		clock-names = "actmon";
		resets = <0x21 0x77>;
		reset-names = "actmon";
		nvidia,sample_period = [14];

		mc_all {
			#address-cells = <0x1>;
			#size-cells = <0x0>;
			nvidia,con_id = "mc_all";
			nvidia,dev_id = "actmon";
			nvidia,reg_offs = <0x1c0>;
			nvidia,irq_mask = <0x4000000>;
			nvidia,suspend_freq = <0x324b0>;
			nvidia,boost_freq_step = <0x3e80>;
			nvidia,boost_up_coef = <0xc8>;
			nvidia,boost_down_coef = <0x32>;
			nvidia,boost_up_threshold = <0x3c>;
			nvidia,boost_down_threshold = <0x28>;
			nvidia,up_wmark_window = [01];
			nvidia,down_wmark_window = [03];
			nvidia,avg_window_log2 = [07];
			nvidia,count_weight = <0x400>;
			nvidia,max_dram_channels = [02];
			nvidia,type = <0x1>;
			status = "okay";
		};
	};

	aliases {
		sdhci0 = "/sdhci@700b0000";
		sdhci1 = "/sdhci@700b0200";
		sdhci2 = "/sdhci@700b0400";
		sdhci3 = "/sdhci@700b0600";
		i2c0 = "/i2c@7000c000";
		i2c1 = "/i2c@7000c400";
		i2c2 = "/i2c@7000c500";
		i2c3 = "/i2c@7000c700";
		i2c4 = "/i2c@7000d000";
		i2c5 = "/i2c@7000d100";
		i2c6 = "/host1x/i2c@546c0000";
		spi0 = "/spi@7000d400";
		spi1 = "/spi@7000d600";
		spi2 = "/spi@7000d800";
		spi3 = "/spi@7000da00";
		qspi6 = "/spi@70410000";
		serial0 = "/serial@70006000";
		serial1 = "/serial@70006040";
		serial2 = "/serial@70006200";
		serial3 = "/serial@70006300";
		rtc0 = "/i2c@7000d000/max77620@3c";
		rtc1 = "/rtc";
	};

	cpus {
		#address-cells = <0x2>;
		#size-cells = <0x0>;
		status = "okay";

		cpu@0 {
			device_type = "cpu";
			compatible = "arm,cortex-a57-64bit", "arm,armv8";
			reg = <0x0 0x0>;
			enable-method = "psci";
			cpu-idle-states = <0x24>;
			errata_hwcaps = <0x7>;
			cpu-ipc = <0x400>;
			next-level-cache = <0x25>;
			status = "okay";
			clocks = <0x21 0x126 0x21 0x127 0x21 0x103 0x21 0xf7 0x26>;
			clock-names = "cpu_g", "cpu_lp", "pll_x", "pll_p", "dfll";
			clock-latency = <0x493e0>;
			linux,phandle = <0x27>;
			phandle = <0x27>;
		};

		cpu@1 {
			device_type = "cpu";
			compatible = "arm,cortex-a57-64bit", "arm,armv8";
			reg = <0x0 0x1>;
			enable-method = "psci";
			cpu-idle-states = <0x24>;
			errata_hwcaps = <0x7>;
			cpu-ipc = <0x400>;
			next-level-cache = <0x25>;
			status = "okay";
			linux,phandle = <0x28>;
			phandle = <0x28>;
		};

		cpu@2 {
			device_type = "cpu";
			compatible = "arm,cortex-a57-64bit", "arm,armv8";
			reg = <0x0 0x2>;
			enable-method = "psci";
			cpu-idle-states = <0x24>;
			errata_hwcaps = <0x7>;
			cpu-ipc = <0x400>;
			next-level-cache = <0x25>;
			status = "okay";
			linux,phandle = <0x29>;
			phandle = <0x29>;
		};

		cpu@3 {
			device_type = "cpu";
			compatible = "arm,cortex-a57-64bit", "arm,armv8";
			reg = <0x0 0x3>;
			enable-method = "psci";
			cpu-idle-states = <0x24>;
			errata_hwcaps = <0x7>;
			cpu-ipc = <0x400>;
			next-level-cache = <0x25>;
			status = "okay";
			linux,phandle = <0x2a>;
			phandle = <0x2a>;
		};

		idle-states {
			entry-method = "psci";

			c7 {
				compatible = "arm,idle-state";
				arm,psci-suspend-param = <0x40000007>;
				wakeup-latency-us = <0x82>;
				min-residency-us = <0x3e8>;
				idle-state-name = "c7-cpu-powergated";
				status = "okay";
				linux,phandle = <0x24>;
				phandle = <0x24>;
			};

			cc6 {
				compatible = "arm,idle-state";
				arm,psci-suspend-param = <0x40000010>;
				wakeup-latency-us = <0xe6>;
				min-residency-us = <0x2710>;
				idle-state-name = "cc6-cluster-powergated";
				status = "okay";
				linux,phandle = <0xe7>;
				phandle = <0xe7>;
			};
		};

		l2-cache {
			compatible = "cache";
			linux,phandle = <0x25>;
			phandle = <0x25>;
		};
	};

	psci {
		compatible = "arm,psci-1.0";
		status = "okay";
		method = "smc";
	};

	tlk {
		compatible = "android,tlk-driver";
		status = "disabled";

		log {
			compatible = "android,ote-logger";
		};
	};

	arm-pmu {
		compatible = "arm,armv8-pmuv3";
		status = "okay";
		interrupts = <0x0 0x90 0x4 0x0 0x91 0x4 0x0 0x92 0x4 0x0 0x93 0x4>;
		interrupt-affinity = <0x27 0x28 0x29 0x2a>;
	};

	clock {
		compatible = "nvidia,tegra210-car";
		reg = <0x0 0x60006000 0x0 0x1000>;
		#clock-cells = <0x1>;
		#reset-cells = <0x1>;
		status = "okay";
		linux,phandle = <0x21>;
		phandle = <0x21>;
	};

	bwmgr {
		compatible = "nvidia,bwmgr";
		clocks = <0x21 0x212>;
		nvidia,bwmgr-use-shared-master;
		clock-names = "emc";
		status = "okay";
	};

	reserved-memory {
		#address-cells = <0x2>;
		#size-cells = <0x2>;
		ranges;

		iram-carveout {
			compatible = "nvidia,iram-carveout";
			reg = <0x0 0x40001000 0x0 0x3f000>;
			no-map;
			linux,phandle = <0x2d>;
			phandle = <0x2d>;
		};

		ramoops_carveout {
			compatible = "nvidia,ramoops";
			reg = <0x0 0xb0000000 0x0 0x200000>;
			no-map;
			linux,phandle = <0xe8>;
			phandle = <0xe8>;
		};

		vpr-carveout {
			compatible = "nvidia,vpr-carveout";
			size = <0x0 0x19000000>;
			alignment = <0x0 0x400000>;
			alloc-ranges = <0x0 0x80000000 0x0 0x70000000>;
			reusable;
			linux,phandle = <0x2c>;
			phandle = <0x2c>;
		};

		fb0_carveout {
			reg = <0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0>;
			reg-names = "surface", "lut";
			no-map;
			linux,phandle = <0x5d>;
			phandle = <0x5d>;
		};

		fb1_carveout {
			reg = <0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0>;
			reg-names = "surface", "lut";
			no-map;
			linux,phandle = <0x66>;
			phandle = <0x66>;
		};

	};

	tegra-carveouts {
		compatible = "nvidia,carveouts";
		iommus = <0x2b 0x6>;
		memory-region = <0x2c 0x2d>;
		status = "okay";
	};

	iommu {
		compatible = "nvidia,tegra210-smmu";
		reg = <0x0 0x70019000 0x0 0x1000 0x0 0x6000c000 0x0 0x1000>;
		status = "okay";
		#asids = <0x80>;
		dma-window = <0x0 0x80000000 0x0 0x7ff00000>;
		#iommu-cells = <0x1>;
		swgid-mask = <0x100fff 0xfffccdcf>;
		#num-translation-enable = <0x5>;
		#num-asid-security = <0x8>;
		domains = <0x2e 0x1004000 0x49 0x2f 0x80000000 0x0 0x30 0x0 0x4 0x31 0x404 0x0 0x31 0x8 0x0 0x32 0x1 0x0 0x32 0x2000000 0x0 0x32 0x4000000 0x0 0x32 0x8000000 0x0 0x32 0x10000000 0x0 0x32 0x2 0x0 0x32 0x0 0x100000 0x32 0xffffffff 0xffffffff>;
		linux,phandle = <0x2b>;
		phandle = <0x2b>;

		address-space-prop {

			common {
				iova-start = <0x0 0x80000000>;
				iova-size = <0x0 0x7ff00000>;
				num-pf-page = <0x0>;
				gap-page = <0x1>;
				linux,phandle = <0x32>;
				phandle = <0x32>;
			};

			ppcs {
				iova-start = <0x0 0x80000000>;
				iova-size = <0x0 0x7ff00000>;
				num-pf-page = <0x1>;
				gap-page = <0x1>;
				linux,phandle = <0x2e>;
				phandle = <0x2e>;
			};

			dc {
				iova-start = <0x0 0x10000>;
				iova-size = <0x0 0xfffeffff>;
				num-pf-page = <0x0>;
				gap-page = <0x0>;
				linux,phandle = <0x31>;
				phandle = <0x31>;
			};

			gpu {
				iova-start = <0x0 0x100000>;
				iova-size = <0x3 0xffefffff>;
				alignment = <0x20000>;
				num-pf-page = <0x0>;
				gap-page = <0x0>;
				linux,phandle = <0x2f>;
				phandle = <0x2f>;
			};

			ape {
				iova-start = <0x0 0x70300000>;
				iova-size = <0x0 0x8fc00000>;
				num-pf-page = <0x0>;
				gap-page = <0x1>;
				linux,phandle = <0x30>;
				phandle = <0x30>;
			};
		};
	};

	smmu_test {
		compatible = "nvidia,smmu_test";
		iommus = <0x2b 0x34>;
		linux,phandle = <0xe9>;
		phandle = <0xe9>;
	};

	dma_test {
		compatible = "nvidia,dma_test";
		linux,phandle = <0xea>;
		phandle = <0xea>;
	};

	bpmp {
		compatible = "nvidia,tegra210-bpmp";
		carveout-start = <0x80005000>;
		carveout-size = <0x10000>;
		resets = <0x21 0x1>;
		reset-names = "cop";
		clocks = <0x21 0x1ae>;
		clock-names = "sclk";
		reg = <0x0 0x70016000 0x0 0x2000 0x0 0x60001000 0x0 0x1000>;
		iommus = <0x2b 0x1>;
		status = "disabled";
	};

	mc {
		compatible = "nvidia,tegra-mc";
		reg-ranges = <0xa>;
		reg = <0x0 0x70019000 0x0 0xc 0x0 0x70019050 0x0 0x19c 0x0 0x70019200 0x0 0x24 0x0 0x7001929c 0x0 0x1b8 0x0 0x70019464 0x0 0x198 0x0 0x70019604 0x0 0x3b0 0x0 0x700199bc 0x0 0x20 0x0 0x700199f8 0x0 0x8c 0x0 0x70019ae4 0x0 0xb0 0x0 0x70019ba0 0x0 0x460 0x0 0x7001c000 0x0 0xc 0x0 0x7001c050 0x0 0x198 0x0 0x7001c200 0x0 0x24 0x0 0x7001c29c 0x0 0x1b8 0x0 0x7001c464 0x0 0x198 0x0 0x7001c604 0x0 0x3b0 0x0 0x7001c9bc 0x0 0x20 0x0 0x7001c9f8 0x0 0x8c 0x0 0x7001cae4 0x0 0xb0 0x0 0x7001cba0 0x0 0x460 0x0 0x7001d000 0x0 0xc 0x0 0x7001d050 0x0 0x198 0x0 0x7001d200 0x0 0x24 0x0 0x7001d29c 0x0 0x1b8 0x0 0x7001d464 0x0 0x198 0x0 0x7001d604 0x0 0x3b0 0x0 0x7001d9bc 0x0 0x20 0x0 0x7001d9f8 0x0 0x8c 0x0 0x7001dae4 0x0 0xb0 0x0 0x7001dba0 0x0 0x460>;
		interrupts = <0x0 0x4d 0x4>;
		int_mask = <0x23d40>;
		channels = <0x2>;
		status = "okay";
	};

	interrupt-controller {
		compatible = "arm,cortex-a15-gic";
		interrupt-parent = <0x33>;
		#interrupt-cells = <0x3>;
		interrupt-controller;
		reg = <0x0 0x50041000 0x0 0x1000 0x0 0x50042000 0x0 0x2000 0x0 0x50044000 0x0 0x2000 0x0 0x50046000 0x0 0x2000>;
		status = "okay";
		interrupts = <0x1 0x9 0xf04>;
		linux,phandle = <0x33>;
		phandle = <0x33>;
	};

	interrupt-controller@60004000 {
		compatible = "nvidia,tegra210-ictlr";
		interrupt-parent = <0x33>;
		interrupt-controller;
		#interrupt-cells = <0x3>;
		reg = <0x0 0x60004000 0x0 0x40 0x0 0x60004100 0x0 0x40 0x0 0x60004200 0x0 0x40 0x0 0x60004300 0x0 0x40 0x0 0x60004400 0x0 0x40 0x0 0x60004500 0x0 0x40>;
		interrupts = <0x0 0x4 0x4 0x0 0x5 0x4 0x0 0x7 0x4 0x0 0x12 0x4>;
		outgoing-doorbell = <0x6>;
		status = "okay";
		linux,phandle = <0x1>;
		phandle = <0x1>;
	};

	flow-controller@60007000 {
		compatible = "nvidia,tegra210-flowctrl";
		reg = <0x0 0x60007000 0x0 0x1000>;
	};

	ahb@6000c000 {
		compatible = "nvidia,tegra210-ahb", "nvidia,tegra30-ahb";
		reg = <0x0 0x6000c000 0x0 0x14f>;
		status = "okay";
		linux,phandle = <0xeb>;
		phandle = <0xeb>;
	};

	aconnect@702c0000 {
		compatible = "nvidia,tegra210-aconnect";
		clocks = <0x21 0xc6 0x21 0x6b>;
		clock-names = "ape", "apb2ape";
		power-domains = <0x22>;
		#address-cells = <0x2>;
		#size-cells = <0x2>;
		ranges;
		status = "okay";

		agic@702f9000 {
			compatible = "nvidia,tegra210-agic";
			#interrupt-cells = <0x4>;
			interrupt-controller;
			reg = <0x0 0x702f9000 0x0 0x2000 0x0 0x702fa000 0x0 0x2000>;
			interrupts = <0x0 0x66 0xf04>;
			clocks = <0x21 0xc6>;
			clock-names = "clk";
			linux,phandle = <0x34>;
			phandle = <0x34>;
		};

		adsp {
			compatible = "nvidia,tegra210-adsp";
			wakeup-disable;
			interrupt-parent = <0x34>;
			reg = <0x0 0x702ef000 0x0 0x1000 0x0 0x702ec000 0x0 0x2000 0x0 0x702ee000 0x0 0x1000 0x0 0x702dc800 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1000000 0x0 0x6f2c0000 0x0 0x70300000 0x0 0x8fd00000>;
			iommus = <0x2b 0x22>;
			dma-mask = <0x0 0xfff00000>;
			iommu-resv-regions = <0x0 0x0 0x0 0x70300000 0x0 0xfff00000 0xffffffff 0xffffffff>;
			iommu-group-id = <0x2>;
			nvidia,adsp_mem = <0x80300000 0x1000000 0x80b00000 0x800000 0x400000 0x10000 0x80300000 0x200000>;
			nvidia,adsp-evp-base = <0x702ef700 0x40>;
			interrupts = <0x0 0x5 0x4 0x0 0x0 0x0 0x4 0x0 0x0 0x2f 0x4 0x0 0x0 0x34 0x4 0x0 0x0 0x32 0x4 0x0 0x0 0x37 0x4 0x0 0x0 0x4 0x4 0x1 0x0 0x1 0x4 0x1 0x0 0x2 0x4 0x1>;
			clocks = <0x21 0x200 0x21 0x6b 0x21 0xda 0x21 0xc7 0x21 0x205>;
			clock-names = "adsp.ape", "adsp.apb2ape", "adspneon", "adsp", "adsp_cpu_abus";
			resets = <0x21 0xe1>;
			reset-names = "adspall";
			nvidia,adsp_unit_fpga_reset = <0x0 0x40>;
			status = "okay";
		};

		adma@702e2000 {
			compatible = "nvidia,tegra210-adma";
			interrupt-parent = <0x34>;
			reg = <0x0 0x702e2000 0x0 0x2000 0x0 0x702ec000 0x0 0x72>;
			clocks = <0x21 0x6a>;
			clock-names = "d_audio";
			interrupts = <0x0 0x18 0x4 0x0 0x0 0x19 0x4 0x0 0x0 0x1a 0x4 0x0 0x0 0x1b 0x4 0x0 0x0 0x1c 0x4 0x0 0x0 0x1d 0x4 0x0 0x0 0x1e 0x4 0x0 0x0 0x1f 0x4 0x0 0x0 0x20 0x4 0x0 0x0 0x21 0x4 0x0 0x0 0x22 0x4 0x0 0x0 0x23 0x4 0x0 0x0 0x24 0x4 0x0 0x0 0x25 0x4 0x0 0x0 0x26 0x4 0x0 0x0 0x27 0x4 0x0 0x0 0x28 0x4 0x0 0x0 0x29 0x4 0x0 0x0 0x2a 0x4 0x0 0x0 0x2b 0x4 0x0 0x0 0x2c 0x4 0x0 0x0 0x2d 0x4 0x0>;
			#dma-cells = <0x1>;
			status = "okay";
			linux,phandle = <0x35>;
			phandle = <0x35>;
		};

		ahub {
			compatible = "nvidia,tegra210-axbar";
			wakeup-disable;
			reg = <0x0 0x702d0800 0x0 0x800>;
			clocks = <0x21 0x6a 0x21 0xf9 0x21 0xc6 0x21 0x6b>;
			clock-names = "ahub", "parent", "xbar.ape", "apb2ape";
			assigned-clocks = <0x21 0x6a>;
			assigned-clock-parents = <0x21 0xf3>;
			assigned-clock-rates = <0x4dd1e00>;
			status = "okay";
			#address-cells = <0x1>;
			#size-cells = <0x1>;
			ranges = <0x702d0000 0x0 0x702d0000 0x10000>;
			linux,phandle = <0x4d>;
			phandle = <0x4d>;

			admaif@0x702d0000 {
				compatible = "nvidia,tegra210-admaif";
				reg = <0x702d0000 0x800>;
				dmas = <0x35 0x1 0x35 0x1 0x35 0x2 0x35 0x2 0x35 0x3 0x35 0x3 0x35 0x4 0x35 0x4 0x35 0x5 0x35 0x5 0x35 0x6 0x35 0x6 0x35 0x7 0x35 0x7 0x35 0x8 0x35 0x8 0x35 0x9 0x35 0x9 0x35 0xa 0x35 0xa>;
				dma-names = "rx1", "tx1", "rx2", "tx2", "rx3", "tx3", "rx4", "tx4", "rx5", "tx5", "rx6", "tx6", "rx7", "tx7", "rx8", "tx8", "rx9", "tx9", "rx10", "tx10";
				status = "okay";
				linux,phandle = <0xec>;
				phandle = <0xec>;
			};

			sfc@702d2000 {
				compatible = "nvidia,tegra210-sfc";
				reg = <0x702d2000 0x200>;
				nvidia,ahub-sfc-id = <0x0>;
				status = "okay";
				linux,phandle = <0xed>;
				phandle = <0xed>;
			};

			sfc@702d2200 {
				compatible = "nvidia,tegra210-sfc";
				reg = <0x702d2200 0x200>;
				nvidia,ahub-sfc-id = <0x1>;
				status = "okay";
				linux,phandle = <0xee>;
				phandle = <0xee>;
			};

			sfc@702d2400 {
				compatible = "nvidia,tegra210-sfc";
				reg = <0x702d2400 0x200>;
				nvidia,ahub-sfc-id = <0x2>;
				status = "okay";
				linux,phandle = <0xef>;
				phandle = <0xef>;
			};

			sfc@702d2600 {
				compatible = "nvidia,tegra210-sfc";
				reg = <0x702d2600 0x200>;
				nvidia,ahub-sfc-id = <0x3>;
				status = "okay";
				linux,phandle = <0xf0>;
				phandle = <0xf0>;
			};

			spkprot@702d8c00 {
				compatible = "nvidia,tegra210-spkprot";
				reg = <0x702d8c00 0x400>;
				nvidia,ahub-spkprot-id = <0x0>;
				status = "okay";
			};

			amixer@702dbb00 {
				compatible = "nvidia,tegra210-amixer";
				reg = <0x702dbb00 0x800>;
				nvidia,ahub-amixer-id = <0x0>;
				status = "okay";
				linux,phandle = <0xf1>;
				phandle = <0xf1>;
			};

			i2s@702d1000 {
				compatible = "nvidia,tegra210-i2s";
				reg = <0x702d1000 0x100>;
				nvidia,ahub-i2s-id = <0x0>;
				status = "disabled";
				clocks = <0x21 0x1e 0x21 0xf9 0x21 0x109 0x21 0x15e>;
				clock-names = "i2s", "i2s_clk_parent", "ext_audio_sync", "audio_sync";
				assigned-clocks = <0x21 0x1e>;
				assigned-clock-parents = <0x21 0xf9>;
				assigned-clock-rates = <0x177000>;
				pinctrl-names = "dap_active", "dap_inactive";
				pinctrl-0;
				pinctrl-1;
				linux,phandle = <0xae>;
				phandle = <0xae>;
			};

			i2s@702d1100 {
				compatible = "nvidia,tegra210-i2s";
				reg = <0x702d1100 0x100>;
				nvidia,ahub-i2s-id = <0x1>;
				status = "disabled";
				clocks = <0x21 0xb 0x21 0xf9 0x21 0x10a 0x21 0x15f>;
				clock-names = "i2s", "i2s_clk_parent", "ext_audio_sync", "audio_sync";
				assigned-clocks = <0x21 0xb>;
				assigned-clock-parents = <0x21 0xf9>;
				assigned-clock-rates = <0x177000>;
				pinctrl-names = "dap_active", "dap_inactive";
				pinctrl-0;
				pinctrl-1;
				linux,phandle = <0xf2>;
				phandle = <0xf2>;
			};

			i2s@702d1200 {
				compatible = "nvidia,tegra210-i2s";
				reg = <0x702d1200 0x100>;
				nvidia,ahub-i2s-id = <0x2>;
				status = "okay";
				clocks = <0x21 0x12 0x21 0xf9 0x21 0x10b 0x21 0x160>;
				clock-names = "i2s", "i2s_clk_parent", "ext_audio_sync", "audio_sync";
				assigned-clocks = <0x21 0x12>;
				assigned-clock-parents = <0x21 0xf9>;
				assigned-clock-rates = <0x177000>;
				prod-name = "i2s2_prod";
				pinctrl-names = "dap_active", "dap_inactive";
				pinctrl-0;
				pinctrl-1;
				regulator-supplies = "vdd-1v8-dmic";
				vdd-1v8-dmic-supply = <0x36>;
				fsync-width = <0xf>;
				linux,phandle = <0x50>;
				phandle = <0x50>;
			};

			i2s@702d1300 {
				compatible = "nvidia,tegra210-i2s";
				reg = <0x702d1300 0x100>;
				nvidia,ahub-i2s-id = <0x3>;
				status = "okay";
				clocks = <0x21 0x65 0x21 0xf9 0x21 0x10c 0x21 0x161>;
				clock-names = "i2s", "i2s_clk_parent", "ext_audio_sync", "audio_sync";
				assigned-clocks = <0x21 0x65>;
				assigned-clock-parents = <0x21 0xf9>;
				assigned-clock-rates = <0x177000>;
				pinctrl-names = "dap_active", "dap_inactive";
				pinctrl-0;
				pinctrl-1;
				regulator-supplies = "vddio-uart";
				vddio-uart-supply = <0x36>;
				fsync-width = <0xf>;
				enable-cya;
				linux,phandle = <0x4e>;
				phandle = <0x4e>;
			};

			i2s@702d1400 {
				compatible = "nvidia,tegra210-i2s";
				reg = <0x702d1400 0x100>;
				nvidia,ahub-i2s-id = <0x4>;
				status = "disabled";
				clocks = <0x21 0x66 0x21 0xf9 0x21 0x10d 0x21 0x162>;
				clock-names = "i2s", "i2s_clk_parent", "ext_audio_sync", "audio_sync";
				assigned-clocks = <0x21 0x66>;
				assigned-clock-parents = <0x21 0xf9>;
				assigned-clock-rates = <0x177000>;
				pinctrl-names = "dap_active", "dap_inactive";
				pinctrl-0;
				pinctrl-1;
				linux,phandle = <0xf3>;
				phandle = <0xf3>;
			};

			amx@702d3000 {
				compatible = "nvidia,tegra210-amx";
				reg = <0x702d3000 0x100>;
				nvidia,ahub-amx-id = <0x0>;
				status = "okay";
				linux,phandle = <0xf4>;
				phandle = <0xf4>;
			};

			amx@702d3100 {
				compatible = "nvidia,tegra210-amx";
				reg = <0x702d3100 0x100>;
				nvidia,ahub-amx-id = <0x1>;
				status = "okay";
				linux,phandle = <0xf5>;
				phandle = <0xf5>;
			};

			adx@702d3800 {
				compatible = "nvidia,tegra210-adx";
				reg = <0x702d3800 0x100>;
				nvidia,ahub-adx-id = <0x0>;
				status = "okay";
				linux,phandle = <0xf6>;
				phandle = <0xf6>;
			};

			adx@702d3900 {
				compatible = "nvidia,tegra210-adx";
				reg = <0x702d3900 0x100>;
				nvidia,ahub-adx-id = <0x1>;
				status = "okay";
				linux,phandle = <0xf7>;
				phandle = <0xf7>;
			};

			dmic@702d4000 {
				compatible = "nvidia,tegra210-dmic";
				reg = <0x702d4000 0x100>;
				nvidia,ahub-dmic-id = <0x0>;
				status = "okay";
				clocks = <0x21 0xa1 0x21 0xf9>;
				clock-names = "dmic", "parent";
				assigned-clocks = <0x21 0xa1>;
				assigned-clock-parents = <0x21 0xf9>;
				assigned-clock-rates = <0x2ee000>;
				regulator-supplies = "vdd-1v8-dmic";
				vdd-1v8-dmic-supply = <0x36>;
				linux,phandle = <0x52>;
				phandle = <0x52>;
			};

			dmic@702d4100 {
				compatible = "nvidia,tegra210-dmic";
				reg = <0x702d4100 0x100>;
				nvidia,ahub-dmic-id = <0x1>;
				status = "okay";
				clocks = <0x21 0xa2 0x21 0xf9>;
				clock-names = "dmic", "parent";
				assigned-clocks = <0x21 0xa2>;
				assigned-clock-parents = <0x21 0xf9>;
				assigned-clock-rates = <0x2ee000>;
				regulator-supplies = "vdd-1v8-dmic";
				vdd-1v8-dmic-supply = <0x36>;
				linux,phandle = <0x54>;
				phandle = <0x54>;
			};

			dmic@702d4200 {
				compatible = "nvidia,tegra210-dmic";
				reg = <0x702d4200 0x100>;
				nvidia,ahub-dmic-id = <0x2>;
				status = "disabled";
				clocks = <0x21 0xc5 0x21 0xf9>;
				clock-names = "dmic", "parent";
				assigned-clocks = <0x21 0xc5>;
				assigned-clock-parents = <0x21 0xf9>;
				assigned-clock-rates = <0x2ee000>;
				linux,phandle = <0xf8>;
				phandle = <0xf8>;
			};

			afc@702d7000 {
				compatible = "nvidia,tegra210-afc";
				reg = <0x702d7000 0x100>;
				nvidia,ahub-afc-id = <0x0>;
				status = "okay";
				linux,phandle = <0xf9>;
				phandle = <0xf9>;
			};

			afc@702d7100 {
				compatible = "nvidia,tegra210-afc";
				reg = <0x702d7100 0x100>;
				nvidia,ahub-afc-id = <0x1>;
				status = "okay";
				linux,phandle = <0xfa>;
				phandle = <0xfa>;
			};

			afc@702d7200 {
				compatible = "nvidia,tegra210-afc";
				reg = <0x702d7200 0x100>;
				nvidia,ahub-afc-id = <0x2>;
				status = "okay";
				linux,phandle = <0xfb>;
				phandle = <0xfb>;
			};

			afc@702d7300 {
				compatible = "nvidia,tegra210-afc";
				reg = <0x702d7300 0x100>;
				nvidia,ahub-afc-id = <0x3>;
				status = "okay";
				linux,phandle = <0xfc>;
				phandle = <0xfc>;
			};

			afc@702d7400 {
				compatible = "nvidia,tegra210-afc";
				reg = <0x702d7400 0x100>;
				nvidia,ahub-afc-id = <0x4>;
				status = "okay";
				linux,phandle = <0xfd>;
				phandle = <0xfd>;
			};

			afc@702d7500 {
				compatible = "nvidia,tegra210-afc";
				reg = <0x702d7500 0x100>;
				nvidia,ahub-afc-id = <0x5>;
				status = "okay";
				linux,phandle = <0xfe>;
				phandle = <0xfe>;
			};

			mvc@702da000 {
				compatible = "nvidia,tegra210-mvc";
				reg = <0x702da000 0x200>;
				nvidia,ahub-mvc-id = <0x0>;
				status = "okay";
				linux,phandle = <0xff>;
				phandle = <0xff>;
			};

			mvc@702da200 {
				compatible = "nvidia,tegra210-mvc";
				reg = <0x702da200 0x200>;
				nvidia,ahub-mvc-id = <0x1>;
				status = "okay";
				linux,phandle = <0x100>;
				phandle = <0x100>;
			};

			iqc@702de000 {
				compatible = "nvidia,tegra210-iqc";
				reg = <0x702de000 0x200>;
				nvidia,ahub-iqc-id = <0x0>;
				status = "disabled";
				linux,phandle = <0x101>;
				phandle = <0x101>;
			};

			iqc@702de200 {
				compatible = "nvidia,tegra210-iqc";
				reg = <0x702de200 0x200>;
				nvidia,ahub-iqc-id = <0x1>;
				status = "disabled";
				linux,phandle = <0x102>;
				phandle = <0x102>;
			};

			ope@702d8000 {
				compatible = "nvidia,tegra210-ope";
				reg = <0x702d8000 0x100 0x702d8100 0x100 0x702d8200 0x200>;
				nvidia,ahub-ope-id = <0x0>;
				status = "okay";
				linux,phandle = <0x103>;
				phandle = <0x103>;

				peq@702d8100 {
					status = "okay";
				};

				mbdrc@702d8200 {
					status = "okay";
				};
			};

			ope@702d8400 {
				compatible = "nvidia,tegra210-ope";
				reg = <0x702d8400 0x100 0x702d8500 0x100 0x702d8600 0x200>;
				nvidia,ahub-ope-id = <0x1>;
				status = "okay";
				linux,phandle = <0x104>;
				phandle = <0x104>;

				peq@702d8500 {
					status = "okay";
				};

				mbdrc@702d8600 {
					status = "okay";
				};
			};

			mvc@0x702da200 {
				status = "okay";
			};
		};

		adsp_audio {
			compatible = "nvidia,tegra210-adsp-audio";
			wakeup-disable;
			iommus = <0x2b 0x22>;
			iommu-resv-regions = <0x0 0x0 0x0 0x70300000 0x0 0xfff00000 0xffffffff 0xffffffff>;
			iommu-group-id = <0x2>;
			nvidia,adma_ch_start = <0xb>;
			nvidia,adma_ch_cnt = <0xb>;
			interrupt-parent = <0x34>;
			interrupts = <0x0 0x23 0x4 0x1 0x0 0x24 0x4 0x1 0x0 0x25 0x4 0x1 0x0 0x26 0x4 0x1 0x0 0x27 0x4 0x1 0x0 0x28 0x4 0x1 0x0 0x29 0x4 0x1 0x0 0x2a 0x4 0x1 0x0 0x2b 0x4 0x1 0x0 0x2c 0x4 0x1 0x0 0x2d 0x4 0x1>;
			clocks = <0x21 0x6a 0x21 0xc6>;
			clock-names = "ahub", "ape";
			status = "okay";
			linux,phandle = <0x105>;
			phandle = <0x105>;
		};
	};

	timer {
		compatible = "arm,armv8-timer";
		interrupt-parent = <0x33>;
		interrupts = <0x1 0xd 0xf08 0x1 0xe 0xf08 0x1 0xb 0xf08 0x1 0xa 0xf08>;
		clock-frequency = <0x124f800>;
		status = "okay";
	};

	timer@60005000 {
		compatible = "nvidia,tegra210-timer", "nvidia,tegra30-timer", "nvidia,tegra30-timer-wdt";
		reg = <0x0 0x60005000 0x0 0x400>;
		interrupts = <0x0 0xb0 0x4 0x0 0xb1 0x4 0x0 0xb2 0x4 0x0 0xb3 0x4>;
		clocks = <0x21 0x5>;
		status = "okay";
	};

	rtc {
		compatible = "nvidia,tegra-rtc";
		reg = <0x0 0x7000e000 0x0 0x100>;
		interrupts = <0x0 0x2 0x4>;
		status = "okay";
		nvidia,pmc-wakeup = <0x37 0x1 0x10 0x4>;
	};

	dma@60020000 {
		compatible = "nvidia,tegra148-apbdma";
		reg = <0x0 0x60020000 0x0 0x1400>;
		clocks = <0x21 0x22>;
		clock-names = "dma";
		resets = <0x21 0x22>;
		reset-names = "dma";
		interrupts = <0x0 0x68 0x4 0x0 0x69 0x4 0x0 0x6a 0x4 0x0 0x6b 0x4 0x0 0x6c 0x4 0x0 0x6d 0x4 0x0 0x6e 0x4 0x0 0x6f 0x4 0x0 0x70 0x4 0x0 0x71 0x4 0x0 0x72 0x4 0x0 0x73 0x4 0x0 0x74 0x4 0x0 0x75 0x4 0x0 0x76 0x4 0x0 0x77 0x4 0x0 0x80 0x4 0x0 0x81 0x4 0x0 0x82 0x4 0x0 0x83 0x4 0x0 0x84 0x4 0x0 0x85 0x4 0x0 0x86 0x4 0x0 0x87 0x4 0x0 0x88 0x4 0x0 0x89 0x4 0x0 0x8a 0x4 0x0 0x8b 0x4 0x0 0x8c 0x4 0x0 0x8d 0x4 0x0 0x8e 0x4 0x0 0x8f 0x4>;
		#dma-cells = <0x1>;
		status = "okay";
		linux,phandle = <0x4c>;
		phandle = <0x4c>;
	};

	pinmux@700008d4 {
		compatible = "nvidia,tegra210-pinmux";
		reg = <0x0 0x700008d4 0x0 0x2a5 0x0 0x70003000 0x0 0x294>;
		#gpio-range-cells = <0x3>;
		status = "okay";
		pinctrl-names = "default", "drive", "unused";
		pinctrl-0 = <0x38>;
		pinctrl-1 = <0x39>;
		pinctrl-2 = <0x3a>;
		linux,phandle = <0x3b>;
		phandle = <0x3b>;

		clkreq_0_bi_dir {
			linux,phandle = <0x7b>;
			phandle = <0x7b>;

			clkreq0 {
				nvidia,pins = "pex_l0_clkreq_n_pa1";
				nvidia,tristate = <0x0>;
			};
		};

		clkreq_1_bi_dir {
			linux,phandle = <0x7c>;
			phandle = <0x7c>;

			clkreq1 {
				nvidia,pins = "pex_l1_clkreq_n_pa4";
				nvidia,tristate = <0x0>;
			};
		};

		clkreq_0_in_dir {
			linux,phandle = <0x7d>;
			phandle = <0x7d>;

			clkreq0 {
				nvidia,pins = "pex_l0_clkreq_n_pa1";
				nvidia,tristate = <0x1>;
			};
		};

		clkreq_1_in_dir {
			linux,phandle = <0x7e>;
			phandle = <0x7e>;

			clkreq1 {
				nvidia,pins = "pex_l1_clkreq_n_pa4";
				nvidia,tristate = <0x1>;
			};
		};

		prod-settings {
			#prod-cells = <0x4>;

			prod {
				status = "okay";
				nvidia,prod-boot-init;
				prod = <0x0 0x1c4 0xf7f7f000 0x51212000 0x0 0x128 0x1f1f000 0x1010000 0x0 0x12c 0x1f1f000 0x1010000 0x0 0x1c8 0xf0003ffd 0x1040 0x0 0x1dc 0xf7f7f000 0x51212000 0x0 0x1e0 0xf0003ffd 0x1040 0x0 0x23c 0x1f1f000 0x1f1f000 0x0 0x20 0x1f1f000 0x1010000 0x0 0x44 0x1f1f000 0x1010000 0x0 0x50 0x1f1f000 0x1010000 0x0 0x58 0x1f1f000 0x1010000 0x0 0x5c 0x1f1f000 0x1010000 0x0 0xa0 0x1f1f000 0x1010000 0x0 0xa4 0x1f1f000 0x1010000 0x0 0xa8 0x1f1f000 0x1010000 0x0 0xac 0x1f1f000 0x1010000 0x0 0xb0 0x1f1f000 0x1f1f000 0x0 0xb4 0x1f1f000 0x1f1f000 0x0 0xb8 0x1f1f000 0x1f1f000 0x0 0xbc 0x1f1f000 0x1f1f000 0x0 0xc0 0x1f1f000 0x1f1f000 0x0 0xc4 0x1f1f000 0x1f1f000 0x1 0x0 0x7200 0x2000 0x1 0x4 0x7200 0x2000 0x1 0x8 0x7200 0x2000 0x1 0xc 0x7200 0x2000 0x1 0x10 0x7200 0x2000 0x1 0x14 0x7200 0x2000 0x1 0x1c 0x7200 0x2000 0x1 0x20 0x7200 0x2000 0x1 0x24 0x7200 0x2000 0x1 0x28 0x7200 0x2000 0x1 0x2c 0x7200 0x2000 0x1 0x30 0x7200 0x2000 0x1 0x160 0x1000 0x1000>;
			};

			i2s2_prod {
				prod = <0x0 0xb0 0x1f1f000 0x1010000 0x0 0xb4 0x1f1f000 0x1010000 0x0 0xb8 0x1f1f000 0x1010000 0x0 0xbc 0x1f1f000 0x1010000>;
			};

			spi1_prod {
				nvidia,prod-boot-init;
				prod = <0x0 0x200 0xf0000000 0x50000000 0x0 0x204 0xf0000000 0x50000000 0x0 0x208 0xf0000000 0x50000000 0x0 0x20c 0xf0000000 0x50000000 0x0 0x210 0xf0000000 0x50000000 0x1 0x50 0x6000 0x6040 0x1 0x54 0x6000 0x6040 0x1 0x58 0x6000 0x6040 0x1 0x5c 0x6000 0x6040 0x1 0x60 0x6000 0x6040>;
			};

			spi2_prod {
				nvidia,prod-boot-init;
				prod = <0x0 0x214 0xf0000000 0xd0000000 0x0 0x218 0xf0000000 0xd0000000 0x0 0x21c 0xf0000000 0xd0000000 0x0 0x220 0xf0000000 0xd0000000 0x0 0x224 0xf0000000 0xd0000000 0x1 0x64 0x6000 0x6040 0x1 0x68 0x6000 0x6040 0x1 0x6c 0x6000 0x6040 0x1 0x70 0x6000 0x6040 0x1 0x74 0x6000 0x6040>;
			};

			spi3_prod {
				nvidia,prod-boot-init;
				prod = <0x0 0xcc 0x1404000 0x1414000 0x0 0xd0 0x1404000 0x1414000 0x0 0x140 0x1404000 0x1414000 0x0 0x144 0x1404000 0x1414000>;
			};

			spi4_prod {
				nvidia,prod-boot-init;
				prod = <0x0 0x268 0x1404000 0x1414000 0x0 0x26c 0x1404000 0x1414000 0x0 0x270 0x1404000 0x1414000 0x0 0x274 0x1404000 0x1414000>;
			};

			i2c0_prod {
				nvidia,prod-boot-init;
				prod = <0x0 0xd4 0x1f1f000 0x1f000 0x0 0xd8 0x1f1f000 0x1f000 0x1 0xbc 0x1100 0x0 0x1 0xc0 0x1100 0x0>;
			};

			i2c1_prod {
				nvidia,prod-boot-init;
				prod = <0x0 0xdc 0x1f1f000 0x1f000 0x0 0xe0 0x1f1f000 0x1f000 0x1 0xc4 0x1100 0x0 0x1 0xc8 0x1100 0x0>;
			};

			i2c2_prod {
				nvidia,prod-boot-init;
				prod = <0x0 0xe4 0x1f1f000 0x1f000 0x0 0xe8 0x1f1f000 0x1f000 0x1 0xcc 0x1100 0x0 0x1 0xd0 0x1100 0x0 0x0 0x60 0x1f1f000 0x1f000 0x0 0x64 0x1f1f000 0x1f000 0x1 0xd4 0x1100 0x0 0x1 0xd8 0x1100 0x0>;
			};

			i2c4_prod {
				nvidia,prod-boot-init;
				prod = <0x0 0x198 0x1f1f000 0x1f000 0x0 0x19c 0x1f1f000 0x1f000 0x1 0xdc 0x1100 0x0 0x1 0xe0 0x1100 0x0>;
			};

			i2c0_hs_prod {
				prod = <0x0 0xd4 0x1f1f000 0x1f1f000 0x0 0xd8 0x1f1f000 0x1f1f000 0x1 0xbc 0x1100 0x1000 0x1 0xc0 0x1100 0x1000>;
			};

			i2c1_hs_prod {
				prod = <0x0 0xdc 0x1f1f000 0x1f1f000 0x0 0xe0 0x1f1f000 0x1f1f000 0x1 0xc4 0x1100 0x1000 0x1 0xc8 0x1100 0x1000>;
			};

			i2c2_hs_prod {
				prod = <0x0 0xe4 0x1f1f000 0x1f1f000 0x0 0xe8 0x1f1f000 0x1f1f000 0x1 0xcc 0x1100 0x1000 0x1 0xd0 0x1100 0x1000 0x0 0x60 0x1f1f000 0x1f1f000 0x0 0x64 0x1f1f000 0x1f1f000 0x1 0xd4 0x1100 0x1000 0x1 0xd8 0x1100 0x1000>;
			};

			i2c4_hs_prod {
				prod = <0x0 0x198 0x1f1f000 0x1f1f000 0x0 0x19c 0x1f1f000 0x1f1f000 0x1 0xdc 0x1100 0x1000 0x1 0xe0 0x1100 0x1000>;
			};
		};

		sdmmc1_schmitt_enable {
			linux,phandle = <0x90>;
			phandle = <0x90>;

			sdmmc1 {
				nvidia,pins = "sdmmc1_cmd_pm1", "sdmmc1_dat0_pm5", "sdmmc1_dat1_pm4", "sdmmc1_dat2_pm3", "sdmmc1_dat3_pm2";
				nvidia,schmitt = <0x1>;
			};
		};

		sdmmc1_schmitt_disable {
			linux,phandle = <0x91>;
			phandle = <0x91>;

			sdmmc1 {
				nvidia,pins = "sdmmc1_cmd_pm1", "sdmmc1_dat0_pm5", "sdmmc1_dat1_pm4", "sdmmc1_dat2_pm3", "sdmmc1_dat3_pm2";
				nvidia,schmitt = <0x0>;
			};
		};

		sdmmc1_clk_schmitt_enable {
			linux,phandle = <0x92>;
			phandle = <0x92>;

			sdmmc1 {
				nvidia,pins = "sdmmc1_clk_pm0";
				nvidia,schmitt = <0x1>;
			};
		};

		sdmmc1_clk_schmitt_disable {
			linux,phandle = <0x93>;
			phandle = <0x93>;

			sdmmc1 {
				nvidia,pins = "sdmmc1_clk_pm0";
				nvidia,schmitt = <0x0>;
			};
		};

		sdmmc1_drv_code {
			linux,phandle = <0x94>;
			phandle = <0x94>;

			sdmmc1 {
				nvidia,pins = "drive_sdmmc1";
				nvidia,pull-down-strength = <0x15>;
				nvidia,pull-up-strength = <0x11>;
			};
		};

		sdmmc1_default_drv_code {
			linux,phandle = <0x95>;
			phandle = <0x95>;

			sdmmc1 {
				nvidia,pins = "drive_sdmmc1";
				nvidia,pull-down-strength = <0x12>;
				nvidia,pull-up-strength = <0x12>;
			};
		};

		sdmmc3_schmitt_enable {
			linux,phandle = <0x88>;
			phandle = <0x88>;

			sdmmc3 {
				nvidia,pins = "sdmmc3_cmd_pp1", "sdmmc3_dat0_pp5", "sdmmc3_dat1_pp4", "sdmmc3_dat2_pp3", "sdmmc3_dat3_pp2";
				nvidia,schmitt = <0x1>;
			};
		};

		sdmmc3_schmitt_disable {
			linux,phandle = <0x89>;
			phandle = <0x89>;

			sdmmc3 {
				nvidia,pins = "sdmmc3_cmd_pp1", "sdmmc3_dat0_pp5", "sdmmc3_dat1_pp4", "sdmmc3_dat2_pp3", "sdmmc3_dat3_pp2";
				nvidia,schmitt = <0x0>;
			};
		};

		sdmmc3_clk_schmitt_enable {
			linux,phandle = <0x8a>;
			phandle = <0x8a>;

			sdmmc3 {
				nvidia,pins = "sdmmc3_clk_pp0";
				nvidia,schmitt = <0x1>;
			};
		};

		sdmmc3_clk_schmitt_disable {
			linux,phandle = <0x8b>;
			phandle = <0x8b>;

			sdmmc3 {
				nvidia,pins = "sdmmc3_clk_pp0";
				nvidia,schmitt = <0x0>;
			};
		};

		sdmmc3_drv_code {
			linux,phandle = <0x8c>;
			phandle = <0x8c>;

			sdmmc3 {
				nvidia,pins = "drive_sdmmc3";
				nvidia,pull-down-strength = <0x15>;
				nvidia,pull-up-strength = <0x11>;
			};
		};

		sdmmc3_default_drv_code {
			linux,phandle = <0x8d>;
			phandle = <0x8d>;

			sdmmc3 {
				nvidia,pins = "drive_sdmmc3";
				nvidia,pull-down-strength = <0x12>;
				nvidia,pull-up-strength = <0x12>;
			};
		};

		dvfs_pwm_active {
			linux,phandle = <0x9b>;
			phandle = <0x9b>;

			dvfs_pwm_pbb1 {
				nvidia,pins = "dvfs_pwm_pbb1";
				nvidia,tristate = <0x0>;
			};
		};

		dvfs_pwm_inactive {
			linux,phandle = <0x9c>;
			phandle = <0x9c>;

			dvfs_pwm_pbb1 {
				nvidia,pins = "dvfs_pwm_pbb1";
				nvidia,tristate = <0x1>;
			};
		};

		common {
			linux,phandle = <0x38>;
			phandle = <0x38>;

			dvfs_pwm_pbb1 {
				nvidia,pins = "dvfs_pwm_pbb1";
				nvidia,function = "cldvfs";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			dmic1_clk_pe0 {
				nvidia,pins = "dmic1_clk_pe0";
				nvidia,function = "i2s3";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			dmic1_dat_pe1 {
				nvidia,pins = "dmic1_dat_pe1";
				nvidia,function = "i2s3";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			dmic2_clk_pe2 {
				nvidia,pins = "dmic2_clk_pe2";
				nvidia,function = "i2s3";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			dmic2_dat_pe3 {
				nvidia,pins = "dmic2_dat_pe3";
				nvidia,function = "i2s3";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			pe7 {
				nvidia,pins = "pe7";
				nvidia,function = "pwm3";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			gen3_i2c_scl_pf0 {
				nvidia,pins = "gen3_i2c_scl_pf0";
				nvidia,function = "i2c3";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x0>;
			};

			gen3_i2c_sda_pf1 {
				nvidia,pins = "gen3_i2c_sda_pf1";
				nvidia,function = "i2c3";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x0>;
			};

			cam_i2c_scl_ps2 {
				nvidia,pins = "cam_i2c_scl_ps2";
				nvidia,function = "i2cvi";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x1>;
			};

			cam_i2c_sda_ps3 {
				nvidia,pins = "cam_i2c_sda_ps3";
				nvidia,function = "i2cvi";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x1>;
			};

			cam1_mclk_ps0 {
				nvidia,pins = "cam1_mclk_ps0";
				nvidia,function = "extperiph3";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			cam2_mclk_ps1 {
				nvidia,pins = "cam2_mclk_ps1";
				nvidia,function = "extperiph3";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			pex_l0_clkreq_n_pa1 {
				nvidia,pins = "pex_l0_clkreq_n_pa1";
				nvidia,function = "pe0";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x1>;
			};

			pex_l0_rst_n_pa0 {
				nvidia,pins = "pex_l0_rst_n_pa0";
				nvidia,function = "pe0";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
				nvidia,io-high-voltage = <0x1>;
			};

			pex_l1_clkreq_n_pa4 {
				nvidia,pins = "pex_l1_clkreq_n_pa4";
				nvidia,function = "pe1";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x1>;
			};

			pex_l1_rst_n_pa3 {
				nvidia,pins = "pex_l1_rst_n_pa3";
				nvidia,function = "pe1";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
				nvidia,io-high-voltage = <0x1>;
			};

			pex_wake_n_pa2 {
				nvidia,pins = "pex_wake_n_pa2";
				nvidia,function = "pe";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x1>;
			};

			sdmmc1_clk_pm0 {
				nvidia,pins = "sdmmc1_clk_pm0";
				nvidia,function = "sdmmc1";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			sdmmc1_cmd_pm1 {
				nvidia,pins = "sdmmc1_cmd_pm1";
				nvidia,function = "sdmmc1";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			sdmmc1_dat0_pm5 {
				nvidia,pins = "sdmmc1_dat0_pm5";
				nvidia,function = "sdmmc1";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			sdmmc1_dat1_pm4 {
				nvidia,pins = "sdmmc1_dat1_pm4";
				nvidia,function = "sdmmc1";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			sdmmc1_dat2_pm3 {
				nvidia,pins = "sdmmc1_dat2_pm3";
				nvidia,function = "sdmmc1";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			sdmmc1_dat3_pm2 {
				nvidia,pins = "sdmmc1_dat3_pm2";
				nvidia,function = "sdmmc1";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			sdmmc3_clk_pp0 {
				nvidia,pins = "sdmmc3_clk_pp0";
				nvidia,function = "sdmmc3";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			sdmmc3_cmd_pp1 {
				nvidia,pins = "sdmmc3_cmd_pp1";
				nvidia,function = "sdmmc3";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			sdmmc3_dat0_pp5 {
				nvidia,pins = "sdmmc3_dat0_pp5";
				nvidia,function = "sdmmc3";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			sdmmc3_dat1_pp4 {
				nvidia,pins = "sdmmc3_dat1_pp4";
				nvidia,function = "sdmmc3";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			sdmmc3_dat2_pp3 {
				nvidia,pins = "sdmmc3_dat2_pp3";
				nvidia,function = "sdmmc3";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			sdmmc3_dat3_pp2 {
				nvidia,pins = "sdmmc3_dat3_pp2";
				nvidia,function = "sdmmc3";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			shutdown {
				nvidia,pins = "shutdown";
				nvidia,function = "shutdown";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			lcd_gpio2_pv4 {
				nvidia,pins = "lcd_gpio2_pv4";
				nvidia,function = "pwm1";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			pwr_i2c_scl_py3 {
				nvidia,pins = "pwr_i2c_scl_py3";
				nvidia,function = "i2cpmu";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x0>;
			};

			pwr_i2c_sda_py4 {
				nvidia,pins = "pwr_i2c_sda_py4";
				nvidia,function = "i2cpmu";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x0>;
			};

			clk_32k_in {
				nvidia,pins = "clk_32k_in";
				nvidia,function = "clk";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			clk_32k_out_py5 {
				nvidia,pins = "clk_32k_out_py5";
				nvidia,function = "soc";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			pz1 {
				nvidia,pins = "pz1";
				nvidia,function = "sdmmc1";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			pz5 {
				nvidia,pins = "pz5";
				nvidia,function = "soc";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			core_pwr_req {
				nvidia,pins = "core_pwr_req";
				nvidia,function = "core";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			pwr_int_n {
				nvidia,pins = "pwr_int_n";
				nvidia,function = "pmi";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			gen1_i2c_scl_pj1 {
				nvidia,pins = "gen1_i2c_scl_pj1";
				nvidia,function = "i2c1";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x1>;
			};

			gen1_i2c_sda_pj0 {
				nvidia,pins = "gen1_i2c_sda_pj0";
				nvidia,function = "i2c1";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x1>;
			};

			gen2_i2c_scl_pj2 {
				nvidia,pins = "gen2_i2c_scl_pj2";
				nvidia,function = "i2c2";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x1>;
			};

			gen2_i2c_sda_pj3 {
				nvidia,pins = "gen2_i2c_sda_pj3";
				nvidia,function = "i2c2";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x1>;
			};

			uart2_tx_pg0 {
				nvidia,pins = "uart2_tx_pg0";
				nvidia,function = "uartb";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			uart2_rx_pg1 {
				nvidia,pins = "uart2_rx_pg1";
				nvidia,function = "uartb";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			uart1_tx_pu0 {
				nvidia,pins = "uart1_tx_pu0";
				nvidia,function = "uarta";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			uart1_rx_pu1 {
				nvidia,pins = "uart1_rx_pu1";
				nvidia,function = "uarta";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			jtag_rtck {
				nvidia,pins = "jtag_rtck";
				nvidia,function = "jtag";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			uart3_tx_pd1 {
				nvidia,pins = "uart3_tx_pd1";
				nvidia,function = "uartc";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			uart3_rx_pd2 {
				nvidia,pins = "uart3_rx_pd2";
				nvidia,function = "uartc";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			uart3_rts_pd3 {
				nvidia,pins = "uart3_rts_pd3";
				nvidia,function = "uartc";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			uart3_cts_pd4 {
				nvidia,pins = "uart3_cts_pd4";
				nvidia,function = "uartc";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			uart4_tx_pi4 {
				nvidia,pins = "uart4_tx_pi4";
				nvidia,function = "uartd";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			uart4_rx_pi5 {
				nvidia,pins = "uart4_rx_pi5";
				nvidia,function = "uartd";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			uart4_rts_pi6 {
				nvidia,pins = "uart4_rts_pi6";
				nvidia,function = "uartd";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			uart4_cts_pi7 {
				nvidia,pins = "uart4_cts_pi7";
				nvidia,function = "uartd";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			qspi_io0_pee2 {
				nvidia,pins = "qspi_io0_pee2";
				nvidia,function = "qspi";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			qspi_io1_pee3 {
				nvidia,pins = "qspi_io1_pee3";
				nvidia,function = "qspi";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			qspi_sck_pee0 {
				nvidia,pins = "qspi_sck_pee0";
				nvidia,function = "qspi";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			qspi_cs_n_pee1 {
				nvidia,pins = "qspi_cs_n_pee1";
				nvidia,function = "qspi";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			qspi_io2_pee4 {
				nvidia,pins = "qspi_io2_pee4";
				nvidia,function = "qspi";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			qspi_io3_pee5 {
				nvidia,pins = "qspi_io3_pee5";
				nvidia,function = "qspi";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			dap2_din_paa2 {
				nvidia,pins = "dap2_din_paa2";
				nvidia,function = "i2s2";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			dap2_dout_paa3 {
				nvidia,pins = "dap2_dout_paa3";
				nvidia,function = "i2s2";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			dap2_fs_paa0 {
				nvidia,pins = "dap2_fs_paa0";
				nvidia,function = "i2s2";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			dap2_sclk_paa1 {
				nvidia,pins = "dap2_sclk_paa1";
				nvidia,function = "i2s2";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			dp_hpd0_pcc6 {
				nvidia,pins = "dp_hpd0_pcc6";
				nvidia,function = "dp";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			hdmi_int_dp_hpd_pcc1 {
				nvidia,pins = "hdmi_int_dp_hpd_pcc1";
				nvidia,function = "dp";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x0>;
			};

			hdmi_cec_pcc0 {
				nvidia,pins = "hdmi_cec_pcc0";
				nvidia,function = "cec";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x1>;
			};

			cam1_pwdn_ps7 {
				nvidia,pins = "cam1_pwdn_ps7";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			cam2_pwdn_pt0 {
				nvidia,pins = "cam2_pwdn_pt0";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			sata_led_active_pa5 {
				nvidia,pins = "sata_led_active_pa5";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			pa6 {
				nvidia,pins = "pa6";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			als_prox_int_px3 {
				nvidia,pins = "als_prox_int_px3";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			temp_alert_px4 {
				nvidia,pins = "temp_alert_px4";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			button_power_on_px5 {
				nvidia,pins = "button_power_on_px5";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			button_vol_up_px6 {
				nvidia,pins = "button_vol_up_px6";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			button_home_py1 {
				nvidia,pins = "button_home_py1";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			lcd_bl_en_pv1 {
				nvidia,pins = "lcd_bl_en_pv1";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			pz2 {
				nvidia,pins = "pz2";
				nvidia,function = "rsvd2";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			pz3 {
				nvidia,pins = "pz3";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			wifi_en_ph0 {
				nvidia,pins = "wifi_en_ph0";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			wifi_wake_ap_ph2 {
				nvidia,pins = "wifi_wake_ap_ph2";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			ap_wake_bt_ph3 {
				nvidia,pins = "ap_wake_bt_ph3";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			bt_rst_ph4 {
				nvidia,pins = "bt_rst_ph4";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			bt_wake_ap_ph5 {
				nvidia,pins = "bt_wake_ap_ph5";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			ph6 {
				nvidia,pins = "ph6";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
			};

			ap_wake_nfc_ph7 {
				nvidia,pins = "ap_wake_nfc_ph7";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			nfc_en_pi0 {
				nvidia,pins = "nfc_en_pi0";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			nfc_int_pi1 {
				nvidia,pins = "nfc_int_pi1";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x1>;
			};

			gps_en_pi2 {
				nvidia,pins = "gps_en_pi2";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
			};

			pcc7 {
				nvidia,pins = "pcc7";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x0>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x0>;
				nvidia,io-high-voltage = <0x1>;
			};

			usb_vbus_en0_pcc4 {
				nvidia,pins = "usb_vbus_en0_pcc4";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x2>;
				nvidia,tristate = <0x0>;
				nvidia,enable-input = <0x1>;
				nvidia,io-high-voltage = <0x0>;
			};
		};

		unused_lowpower {
			linux,phandle = <0x3a>;
			phandle = <0x3a>;

			aud_mclk_pbb0 {
				nvidia,pins = "aud_mclk_pbb0";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			dvfs_clk_pbb2 {
				nvidia,pins = "dvfs_clk_pbb2";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			gpio_x1_aud_pbb3 {
				nvidia,pins = "gpio_x1_aud_pbb3";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			gpio_x3_aud_pbb4 {
				nvidia,pins = "gpio_x3_aud_pbb4";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			dap1_din_pb1 {
				nvidia,pins = "dap1_din_pb1";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			dap1_dout_pb2 {
				nvidia,pins = "dap1_dout_pb2";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			dap1_fs_pb0 {
				nvidia,pins = "dap1_fs_pb0";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			dap1_sclk_pb3 {
				nvidia,pins = "dap1_sclk_pb3";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spi2_mosi_pb4 {
				nvidia,pins = "spi2_mosi_pb4";
				nvidia,function = "rsvd2";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spi2_miso_pb5 {
				nvidia,pins = "spi2_miso_pb5";
				nvidia,function = "rsvd2";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spi2_sck_pb6 {
				nvidia,pins = "spi2_sck_pb6";
				nvidia,function = "rsvd2";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spi2_cs0_pb7 {
				nvidia,pins = "spi2_cs0_pb7";
				nvidia,function = "rsvd2";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spi2_cs1_pdd0 {
				nvidia,pins = "spi2_cs1_pdd0";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			dmic3_clk_pe4 {
				nvidia,pins = "dmic3_clk_pe4";
				nvidia,function = "rsvd2";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			dmic3_dat_pe5 {
				nvidia,pins = "dmic3_dat_pe5";
				nvidia,function = "rsvd2";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			pe6 {
				nvidia,pins = "pe6";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			cam_rst_ps4 {
				nvidia,pins = "cam_rst_ps4";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			cam_af_en_ps5 {
				nvidia,pins = "cam_af_en_ps5";
				nvidia,function = "rsvd2";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			cam_flash_en_ps6 {
				nvidia,pins = "cam_flash_en_ps6";
				nvidia,function = "rsvd2";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			cam1_strobe_pt1 {
				nvidia,pins = "cam1_strobe_pt1";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			motion_int_px2 {
				nvidia,pins = "motion_int_px2";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			touch_rst_pv6 {
				nvidia,pins = "touch_rst_pv6";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			touch_clk_pv7 {
				nvidia,pins = "touch_clk_pv7";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			touch_int_px1 {
				nvidia,pins = "touch_int_px1";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			modem_wake_ap_px0 {
				nvidia,pins = "modem_wake_ap_px0";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			button_vol_down_px7 {
				nvidia,pins = "button_vol_down_px7";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			button_slide_sw_py0 {
				nvidia,pins = "button_slide_sw_py0";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			lcd_te_py2 {
				nvidia,pins = "lcd_te_py2";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			lcd_bl_pwm_pv0 {
				nvidia,pins = "lcd_bl_pwm_pv0";
				nvidia,function = "rsvd3";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			lcd_rst_pv2 {
				nvidia,pins = "lcd_rst_pv2";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			lcd_gpio1_pv3 {
				nvidia,pins = "lcd_gpio1_pv3";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			ap_ready_pv5 {
				nvidia,pins = "ap_ready_pv5";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			pz0 {
				nvidia,pins = "pz0";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			pz4 {
				nvidia,pins = "pz4";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			clk_req {
				nvidia,pins = "clk_req";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			cpu_pwr_req {
				nvidia,pins = "cpu_pwr_req";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			dap4_din_pj5 {
				nvidia,pins = "dap4_din_pj5";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			dap4_dout_pj6 {
				nvidia,pins = "dap4_dout_pj6";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			dap4_fs_pj4 {
				nvidia,pins = "dap4_fs_pj4";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			dap4_sclk_pj7 {
				nvidia,pins = "dap4_sclk_pj7";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			uart2_rts_pg2 {
				nvidia,pins = "uart2_rts_pg2";
				nvidia,function = "rsvd2";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			uart2_cts_pg3 {
				nvidia,pins = "uart2_cts_pg3";
				nvidia,function = "rsvd2";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			uart1_rts_pu2 {
				nvidia,pins = "uart1_rts_pu2";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			uart1_cts_pu3 {
				nvidia,pins = "uart1_cts_pu3";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			pk0 {
				nvidia,pins = "pk0";
				nvidia,function = "rsvd2";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			pk1 {
				nvidia,pins = "pk1";
				nvidia,function = "rsvd2";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			pk2 {
				nvidia,pins = "pk2";
				nvidia,function = "rsvd2";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			pk3 {
				nvidia,pins = "pk3";
				nvidia,function = "rsvd2";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			pk4 {
				nvidia,pins = "pk4";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			pk5 {
				nvidia,pins = "pk5";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			pk6 {
				nvidia,pins = "pk6";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			pk7 {
				nvidia,pins = "pk7";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			pl0 {
				nvidia,pins = "pl0";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			pl1 {
				nvidia,pins = "pl1";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spi1_mosi_pc0 {
				nvidia,pins = "spi1_mosi_pc0";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spi1_miso_pc1 {
				nvidia,pins = "spi1_miso_pc1";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spi1_sck_pc2 {
				nvidia,pins = "spi1_sck_pc2";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spi1_cs0_pc3 {
				nvidia,pins = "spi1_cs0_pc3";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spi1_cs1_pc4 {
				nvidia,pins = "spi1_cs1_pc4";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spi4_mosi_pc7 {
				nvidia,pins = "spi4_mosi_pc7";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spi4_miso_pd0 {
				nvidia,pins = "spi4_miso_pd0";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spi4_sck_pc5 {
				nvidia,pins = "spi4_sck_pc5";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spi4_cs0_pc6 {
				nvidia,pins = "spi4_cs0_pc6";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			wifi_rst_ph1 {
				nvidia,pins = "wifi_rst_ph1";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			gps_rst_pi3 {
				nvidia,pins = "gps_rst_pi3";
				nvidia,function = "rsvd0";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spdif_out_pcc2 {
				nvidia,pins = "spdif_out_pcc2";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			spdif_in_pcc3 {
				nvidia,pins = "spdif_in_pcc3";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
			};

			usb_vbus_en1_pcc5 {
				nvidia,pins = "usb_vbus_en1_pcc5";
				nvidia,function = "rsvd1";
				nvidia,pull = <0x1>;
				nvidia,tristate = <0x1>;
				nvidia,enable-input = <0x0>;
				nvidia,io-high-voltage = <0x0>;
			};
		};

		drive {
			linux,phandle = <0x39>;
			phandle = <0x39>;
		};
	};

	gpio@6000d000 {
		compatible = "nvidia,tegra210-gpio", "nvidia,tegra124-gpio", "nvidia,tegra30-gpio";
		reg = <0x0 0x6000d000 0x0 0x1000>;
		interrupts = <0x0 0x20 0x4 0x0 0x21 0x4 0x0 0x22 0x4 0x0 0x23 0x4 0x0 0x37 0x4 0x0 0x57 0x4 0x0 0x59 0x4 0x0 0x7d 0x4>;
		#gpio-cells = <0x2>;
		gpio-controller;
		#interrupt-cells = <0x2>;
		interrupt-controller;
		gpio-ranges = <0x3b 0x0 0x0 0xf6>;
		status = "okay";
		gpio-init-names = "default";
		gpio-init-0 = <0x3c>;
		gpio-line-names = [00 00 00 00 00 00 00 00 00 00 00 00 53 50 49 31 5f 4d 4f 53 49 00 53 50 49 31 5f 4d 49 53 4f 00 53 50 49 31 5f 53 43 4b 00 53 50 49 31 5f 43 53 30 00 53 50 49 30 5f 4d 4f 53 49 00 53 50 49 30 5f 4d 49 53 4f 00 53 50 49 30 5f 53 43 4b 00 53 50 49 30 5f 43 53 30 00 53 50 49 30 5f 43 53 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 47 50 49 4f 31 33 00 00 00 00 00 00 00 00 00 00 00 00 55 41 52 54 31 5f 52 54 53 00 55 41 52 54 31 5f 43 54 53 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 32 53 30 5f 46 53 00 49 32 53 30 5f 44 49 4e 00 49 32 53 30 5f 44 4f 55 54 00 49 32 53 30 5f 53 43 4c 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 47 50 49 4f 30 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 47 50 49 4f 30 37 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 47 50 49 4f 31 32 00 00 00 00 00 00 47 50 49 4f 31 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 47 50 49 4f 30 39 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 50 49 31 5f 43 53 31 00 00 00 00 00 00 00 00];
		linux,phandle = <0x56>;
		phandle = <0x56>;

		camera-control-output-low {
			gpio-hog;
			output-low;
			gpios = <0x97 0x0 0x98 0x0>;
			label = "cam1-pwdn", "cam2-pwdn";
		};

		e2614-rt5658-audio {
			gpio-hog;
			function;
			gpios = <0x4c 0x0 0x4d 0x0 0x4e 0x0 0x4f 0x0 0xd8 0x0 0x95 0x0>;
			label = "I2S4_LRCLK", "I2S4_SDIN", "I2S4_SDOUT", "I2S4_CLK", "AUDIO_MCLK", "AUD_RST";
			status = "disabled";
			linux,phandle = <0xdb>;
			phandle = <0xdb>;
		};

		system-suspend-gpio {
			status = "okay";
			gpio-hog;
			output-high;
			gpio-suspend;
			suspend-output-low;
			gpios = <0x6 0x0>;
			linux,phandle = <0xb2>;
			phandle = <0xb2>;
		};

		default {
			gpio-input = <0x5 0xbc 0xbd 0xbe 0xc1 0xa9 0xca 0x3a 0x3d 0x3e 0x41 0xe4>;
			gpio-output-low = <0x97 0x98 0xcb 0x38 0x3b 0x3c 0x3f 0x40 0x42>;
			gpio-output-high = <0x6 0xbb 0xe7>;
			linux,phandle = <0x3c>;
			phandle = <0x3c>;
		};
	};

	xotg {
		compatible = "nvidia,tegra210-xotg";
		interrupts = <0x0 0x31 0x4 0x0 0x14 0x4>;
		status = "disabled";
		#extcon-cells = <0x1>;
	};

	mailbox@70098000 {
		compatible = "nvidia,tegra210-xusb-mbox";
		reg = <0x0 0x70098000 0x0 0x1000>;
		interrupts = <0x0 0x28 0x4>;
		#mbox-cells = <0x0>;
		status = "okay";
		linux,phandle = <0x46>;
		phandle = <0x46>;
	};

	xusb_padctl@7009f000 {
		compatible = "nvidia,tegra210-xusb-padctl";
		reg = <0x0 0x7009f000 0x0 0x1000>;
		reg-names = "padctl";
		resets = <0x21 0x8e>;
		reset-names = "padctl";
		status = "okay";
		vddio-hsic-supply = <0x3d>;
		avdd_pll_uerefe-supply = <0x3e>;
		hvdd_pex_pll_e-supply = <0x36>;
		dvdd_pex_pll-supply = <0x3f>;
		hvddio_pex-supply = <0x36>;
		dvddio_pex-supply = <0x3f>;
		hvdd_sata-supply = <0x36>;
		dvdd_sata_pll-supply = <0x40>;
		hvddio_sata-supply = <0x36>;
		dvddio_sata-supply = <0x40>;
		linux,phandle = <0x44>;
		phandle = <0x44>;

		pads {

			usb2 {
				clocks = <0x21 0xd2>;
				clock-names = "trk";
				status = "okay";

				lanes {

					usb2-0 {
						status = "okay";
						#phy-cells = <0x0>;
						nvidia,function = "xusb";
						linux,phandle = <0x45>;
						phandle = <0x45>;
					};

					usb2-1 {
						status = "okay";
						#phy-cells = <0x0>;
						nvidia,function = "xusb";
						linux,phandle = <0x49>;
						phandle = <0x49>;
					};

					usb2-2 {
						status = "okay";
						#phy-cells = <0x0>;
						nvidia,function = "xusb";
						linux,phandle = <0x4a>;
						phandle = <0x4a>;
					};

					usb2-3 {
						status = "disabled";
						#phy-cells = <0x0>;
					};
				};
			};

			pcie {
				clocks = <0x21 0x107>;
				clock-names = "pll";
				resets = <0x21 0xcd>;
				reset-names = "phy";
				status = "okay";

				lanes {

					pcie-0 {
						status = "okay";
						#phy-cells = <0x0>;
						nvidia,function = "pcie-x1";
						linux,phandle = <0x85>;
						phandle = <0x85>;
					};

					pcie-1 {
						status = "okay";
						#phy-cells = <0x0>;
						nvidia,function = "pcie-x4";
						linux,phandle = <0x81>;
						phandle = <0x81>;
					};

					pcie-2 {
						status = "okay";
						#phy-cells = <0x0>;
						nvidia,function = "pcie-x4";
						linux,phandle = <0x82>;
						phandle = <0x82>;
					};

					pcie-3 {
						status = "okay";
						#phy-cells = <0x0>;
						nvidia,function = "pcie-x4";
						linux,phandle = <0x83>;
						phandle = <0x83>;
					};

					pcie-4 {
						status = "okay";
						#phy-cells = <0x0>;
						nvidia,function = "pcie-x4";
						linux,phandle = <0x84>;
						phandle = <0x84>;
					};

					pcie-5 {
						status = "okay";
						#phy-cells = <0x0>;
						nvidia,function = "xusb";
					};

					pcie-6 {
						status = "okay";
						#phy-cells = <0x0>;
						nvidia,function = "xusb";
						linux,phandle = <0x4b>;
						phandle = <0x4b>;
					};
				};
			};

			sata {
				clocks = <0x21 0x107>;
				clock-names = "pll";
				resets = <0x21 0xcc>;
				reset-names = "phy";
				status = "disabled";

				lanes {

					sata-0 {
						status = "disabled";
						#phy-cells = <0x0>;
					};
				};
			};

			hsic {
				clocks = <0x21 0xd1>;
				clock-names = "trk";
				status = "disabled";

				lanes {

					hsic-0 {
						status = "disabled";
						#phy-cells = <0x0>;
					};
				};
			};
		};

		ports {

			usb2-0 {
				status = "okay";
				vbus-supply = <0x41>;
				mode = "otg";
				nvidia,usb3-port-fake = <0x3>;
			};

			usb2-1 {
				status = "okay";
				vbus-supply = <0x42>;
				mode = "host";
				linux,phandle = <0xb4>;
				phandle = <0xb4>;
			};

			usb2-2 {
				status = "okay";
				vbus-supply = <0x43>;
				mode = "host";
			};

			usb2-3 {
				status = "disabled";
			};

			usb3-0 {
				status = "okay";
				nvidia,usb2-companion = <0x1>;
			};

			usb3-1 {
				status = "disabled";
			};

			usb3-2 {
				status = "disabled";
			};

			usb3-3 {
				status = "disabled";
			};

			hsic-0 {
				status = "disabled";
			};
		};

		prod-settings {
			#prod-cells = <0x4>;

			prod_c_bias {
				prod = <0x0 0x284 0x3f 0x3a>;
			};

			prod_c_bias_a02 {
				prod = <0x0 0x284 0x3f 0x38>;
			};

			prod_c_utmi0 {
				prod = <0x0 0x84 0x20 0x40>;
			};

			prod_c_utmi1 {
				prod = <0x0 0xc4 0x20 0x40>;
			};

			prod_c_utmi2 {
				prod = <0x0 0x104 0x20 0x40>;
			};

			prod_c_utmi3 {
				prod = <0x0 0x144 0x20 0x40>;
			};

			prod_c_ss0 {
				prod = <0x0 0xa60 0x30000 0x20000 0x0 0xa64 0xffff 0xfc 0x0 0xa68 0xffffffff 0xc0077f1f 0x0 0xa74 0xffffffff 0xfcf01368>;
			};

			prod_c_ss1 {
				prod = <0x0 0xaa0 0x30000 0x20000 0x0 0xaa4 0xffff 0xfc 0x0 0xaa8 0xffffffff 0xc0077f1f 0x0 0xab4 0xffffffff 0xfcf01368>;
			};

			prod_c_ss2 {
				prod = <0x0 0xae0 0x30000 0x20000 0x0 0xae4 0xffff 0xfc 0x0 0xae8 0xffffffff 0xc0077f1f 0x0 0xaf4 0xffffffff 0xfcf01368>;
			};

			prod_c_ss3 {
				prod = <0x0 0xb20 0x30000 0x20000 0x0 0xb24 0xffff 0xfc 0x0 0xb28 0xffffffff 0xc0077f1f 0x0 0xb34 0xffffffff 0xfcf01368>;
			};

			prod_c_hsic0 {
				prod = <0x0 0x344 0x1f 0x1c>;
			};

			prod_c_hsic1 {
				prod = <0x0 0x344 0x1f 0x1c>;
			};
		};
	};

	usb_cd {
		compatible = "nvidia,tegra210-usb-cd";
		nvidia,xusb-padctl = <0x44>;
		status = "disabled";
		reg = <0x0 0x7009f000 0x0 0x1000>;
		#extcon-cells = <0x1>;
		dt-override-status-odm-data = <0x1000000 0x1000000>;
		phys = <0x45>;
		phy-names = "otg-phy";
		linux,phandle = <0x9a>;
		phandle = <0x9a>;
	};

	pinctrl@7009f000 {
		compatible = "nvidia,tegra21x-padctl-uphy";
		reg = <0x0 0x7009f000 0x0 0x1000>;
		reg-names = "padctl";
		resets = <0x21 0x8e 0x21 0xcc 0x21 0xcd>;
		reset-names = "padctl", "sata_uphy", "pex_uphy";
		clocks = <0x21 0xd1 0x21 0xd2 0x21 0x107>;
		clock-names = "hsic_trk", "usb2_trk", "pll_e";
		interrupts = <0x0 0x31 0x4>;
		mboxes = <0x46>;
		mbox-names = "xusb";
		#phy-cells = <0x1>;
		status = "disabled";
		linux,phandle = <0x106>;
		phandle = <0x106>;
	};

	xusb@70090000 {
		compatible = "nvidia,tegra210-xhci";
		reg = <0x0 0x70090000 0x0 0x8000 0x0 0x70098000 0x0 0x1000 0x0 0x70099000 0x0 0x1000>;
		interrupts = <0x0 0x27 0x4 0x0 0x28 0x4 0x0 0x31 0x4>;
		nvidia,xusb-padctl = <0x44>;
		clocks = <0x21 0x59 0x21 0x11d 0x21 0x9c 0x21 0x11f 0x21 0x122 0x21 0x11e 0x21 0xff 0x21 0xe9 0x21 0x107>;
		clock-names = "xusb_host", "xusb_falcon_src", "xusb_ss", "xusb_ss_src", "xusb_hs_src", "xusb_fs_src", "pll_u_480m", "clk_m", "pll_e";
		iommus = <0x2b 0x14>;
		status = "okay";
		hvdd_usb-supply = <0x47>;
		avdd_pll_utmip-supply = <0x36>;
		vddio_hsic-supply = <0x3d>;
		avddio_usb-supply = <0x3f>;
		dvdd_sata-supply = <0x40>;
		avddio_pll_uerefe-supply = <0x3e>;
		extcon-cables = <0x48 0x1>;
		extcon-cable-names = "id";
		phys = <0x45 0x49 0x4a 0x4b>;
		phy-names = "usb2-0", "usb2-1", "usb2-2", "usb3-0";
		#extcon-cells = <0x1>;
		nvidia,pmc-wakeup = <0x37 0x1 0x27 0x4 0x37 0x1 0x28 0x4 0x37 0x1 0x29 0x4 0x37 0x1 0x2a 0x4 0x37 0x1 0x2c 0x4>;
		nvidia,boost_cpu_freq = <0x4b0>;
	};

	max16984-cdp {
		compatible = "maxim,max16984-tegra210-cdp-phy";
		#phy-cells = <0x1>;
		status = "disabled";
		linux,phandle = <0x107>;
		phandle = <0x107>;
	};

	serial@70006000 {
		compatible = "nvidia,tegra210-uart", "nvidia,tegra114-hsuart", "nvidia,tegra20-uart";
		reg = <0x0 0x70006000 0x0 0x40>;
		reg-shift = <0x2>;
		interrupts = <0x0 0x24 0x4>;
		iommus = <0x2b 0xe>;
		dmas = <0x4c 0x8 0x4c 0x8>;
		dma-names = "rx", "tx";
		clocks = <0x21 0x6 0x21 0xf3>;
		clock-names = "serial", "parent";
		nvidia,adjust-baud-rates = <0x1c200 0x1c200 0x64>;
		status = "okay";
		console-port;
		sqa-automation-port;
		enable-rx-poll-timer;
		linux,phandle = <0x108>;
		phandle = <0x108>;
	};

	serial@70006040 {
		compatible = "nvidia,tegra114-hsuart";
		reg = <0x0 0x70006040 0x0 0x40>;
		reg-shift = <0x2>;
		interrupts = <0x0 0x25 0x4>;
		iommus = <0x2b 0xe>;
		dmas = <0x4c 0x9 0x4c 0x9>;
		dma-names = "rx", "tx";
		clocks = <0x21 0xe0 0x21 0xf3>;
		clock-names = "serial", "parent";
		resets = <0x21 0x7>;
		reset-names = "serial";
		nvidia,adjust-baud-rates = <0x1c200 0x1c200 0x64>;
		status = "okay";
		linux,phandle = <0x109>;
		phandle = <0x109>;
	};

	serial@70006200 {
		compatible = "nvidia,tegra114-hsuart";
		reg = <0x0 0x70006200 0x0 0x40>;
		reg-shift = <0x2>;
		interrupts = <0x0 0x2e 0x4>;
		iommus = <0x2b 0xe>;
		dmas = <0x4c 0xa 0x4c 0xa>;
		dma-names = "tx";
		clocks = <0x21 0x37 0x21 0xf3>;
		clock-names = "serial", "parent";
		resets = <0x21 0x37>;
		reset-names = "serial";
		nvidia,adjust-baud-rates = <0xe1000 0xe1000 0x64>;
		status = "okay";
		linux,phandle = <0x10a>;
		phandle = <0x10a>;
	};

	serial@70006300 {
		compatible = "nvidia,tegra114-hsuart";
		reg = <0x0 0x70006300 0x0 0x40>;
		reg-shift = <0x2>;
		interrupts = <0x0 0x5a 0x4>;
		iommus = <0x2b 0xe>;
		dmas = <0x4c 0x13 0x4c 0x13>;
		dma-names = "rx", "tx";
		clocks = <0x21 0x41 0x21 0xf3>;
		clock-names = "serial", "parent";
		resets = <0x21 0x41>;
		reset-names = "serial";
		nvidia,adjust-baud-rates = <0x1c200 0x1c200 0x64>;
		status = "disabled";
		linux,phandle = <0x10b>;
		phandle = <0x10b>;
	};

	sound {
		iommus = <0x2b 0x22>;
		dma-mask = <0x0 0xfff00000>;
		iommu-resv-regions = <0x0 0x0 0x0 0x70300000 0x0 0xfff00000 0xffffffff 0xffffffff>;
		iommu-group-id = <0x2>;
		status = "okay";
		compatible = "nvidia,tegra-audio-t210ref-mobile-rt565x";
		nvidia,model = "tegra-snd-t210ref-mobile-rt565x";
		clocks = <0x21 0xf8 0x21 0xf9 0x21 0x78>;
		clock-names = "pll_a", "pll_a_out0", "extern1";
		assigned-clocks = <0x21 0x78>;
		assigned-clock-parents = <0x21 0xf9>;
		nvidia,num-codec-link = <0x4>;
		nvidia,audio-routing = "x Headphone", "x OUT", "x IN", "x Mic", "y Headphone", "y OUT", "y IN", "y Mic", "a IN", "a Mic", "b IN", "b Mic";
		nvidia,xbar = <0x4d>;
		mclk-fs = <0x100>;
		linux,phandle = <0xaf>;
		phandle = <0xaf>;

		nvidia,dai-link-1 {
			link-name = "spdif-dit-0";
			cpu-dai = <0x4e>;
			codec-dai = <0x4f>;
			cpu-dai-name = "I2S4";
			codec-dai-name = "dit-hifi";
			format = "i2s";
			bitclock-slave;
			frame-slave;
			bitclock-noninversion;
			frame-noninversion;
			bit-format = "s16_le";
			srate = <0xbb80>;
			num-channel = <0x2>;
			ignore_suspend;
			name-prefix = [78 00];
			status = "okay";
			linux,phandle = <0xda>;
			phandle = <0xda>;
		};

		nvidia,dai-link-2 {
			link-name = "spdif-dit-1";
			cpu-dai = <0x50>;
			codec-dai = <0x51>;
			cpu-dai-name = "I2S3";
			codec-dai-name = "dit-hifi";
			format = "i2s";
			bitclock-slave;
			frame-slave;
			bitclock-noninversion;
			frame-noninversion;
			bit-format = "s16_le";
			srate = <0xbb80>;
			num-channel = <0x2>;
			ignore_suspend;
			name-prefix = [79 00];
			status = "okay";
		};

		nvidia,dai-link-3 {
			link-name = "spdif-dit-2";
			cpu-dai = <0x52>;
			codec-dai = <0x53>;
			cpu-dai-name = "DMIC1";
			codec-dai-name = "dit-hifi";
			format = "i2s";
			bit-format = "s16_le";
			srate = <0xbb80>;
			ignore_suspend;
			num-channel = <0x2>;
			name-prefix = [61 00];
			status = "okay";
		};

		nvidia,dai-link-4 {
			link-name = "spdif-dit-3";
			cpu-dai = <0x54>;
			codec-dai = <0x55>;
			cpu-dai-name = "DMIC2";
			codec-dai-name = "dit-hifi";
			format = "i2s";
			bit-format = "s16_le";
			srate = <0xbb80>;
			ignore_suspend;
			num-channel = <0x2>;
			name-prefix = [62 00];
			status = "okay";
		};
	};

	sound_ref {
		iommus = <0x2b 0x22>;
		dma-mask = <0x0 0xfff00000>;
		iommu-resv-regions = <0x0 0x0 0x0 0x70300000 0x0 0xfff00000 0xffffffff 0xffffffff>;
		iommu-group-id = <0x2>;
		status = "okay";
	};

	pwm@7000a000 {
		compatible = "nvidia,tegra124-pwm", "nvidia,tegra20-pwm";
		reg = <0x0 0x7000a000 0x0 0x100>;
		#pwm-cells = <0x2>;
		status = "okay";
		clocks = <0x21 0x11 0x21 0xf3>;
		clock-names = "pwm", "parent";
		resets = <0x21 0x11>;
		reset-names = "pwm";
		nvidia,no-clk-sleeping-in-ops;
		linux,phandle = <0xa5>;
		phandle = <0xa5>;
	};

	spi@7000d400 {
		compatible = "nvidia,tegra210-spi";
		reg = <0x0 0x7000d400 0x0 0x200>;
		interrupts = <0x0 0x3b 0x4>;
		iommus = <0x2b 0xe>;
		#address-cells = <0x1>;
		#size-cells = <0x0>;
		dmas = <0x4c 0xf 0x4c 0xf>;
		dma-names = "rx", "tx";
		nvidia,clk-parents = "pll_p", "clk_m";
		clocks = <0x21 0x29 0x21 0xf3 0x21 0xe9>;
		clock-names = "spi", "pll_p", "clk_m";
		resets = <0x21 0x29>;
		reset-names = "spi";
		status = "okay";
		linux,phandle = <0x10c>;
		phandle = <0x10c>;

		prod-settings {
			#prod-cells = <0x3>;

			prod {
				prod = <0x4 0xfff 0x0>;
			};

			prod_c_flash {
				status = "disabled";
				prod = <0x4 0x3f 0x7>;
			};

			prod_c_loop {
				status = "disabled";
				prod = <0x4 0xfff 0x44b>;
			};
		};

		spi@0 {
			compatible = "spidev";
			reg = <0x0>;
			spi-max-frequency = <0x1f78a40>;

			controller-data {
				nvidia,enable-hw-based-cs;
				nvidia,rx-clk-tap-delay = <0x7>;
			};
		};

		spi@1 {
			compatible = "spidev";
			reg = <0x1>;
			spi-max-frequency = <0x1f78a40>;

			controller-data {
				nvidia,enable-hw-based-cs;
				nvidia,rx-clk-tap-delay = <0x7>;
			};
		};
	};

	spi@7000d600 {
		compatible = "nvidia,tegra210-spi";
		reg = <0x0 0x7000d600 0x0 0x200>;
		interrupts = <0x0 0x52 0x4>;
		iommus = <0x2b 0xe>;
		#address-cells = <0x1>;
		#size-cells = <0x0>;
		dmas = <0x4c 0x10 0x4c 0x10>;
		dma-names = "rx", "tx";
		nvidia,clk-parents = "pll_p", "clk_m";
		clocks = <0x21 0x2c 0x21 0xf3 0x21 0xe9>;
		clock-names = "spi", "pll_p", "clk_m";
		resets = <0x21 0x2c>;
		reset-names = "spi";
		status = "okay";
		linux,phandle = <0x10d>;
		phandle = <0x10d>;

		prod-settings {
			#prod-cells = <0x3>;

			prod {
				prod = <0x4 0xfff 0x0>;
			};

			prod_c_flash {
				status = "disabled";
				prod = <0x4 0x3f 0x6>;
			};

			prod_c_loop {
				status = "disabled";
				prod = <0x4 0xfff 0x44b>;
			};
		};

		spi@0 {
			compatible = "spidev";
			reg = <0x0>;
			spi-max-frequency = <0x1f78a40>;

			controller-data {
				nvidia,enable-hw-based-cs;
				nvidia,rx-clk-tap-delay = <0x6>;
			};
		};

		spi@1 {
			compatible = "spidev";
			reg = <0x1>;
			spi-max-frequency = <0x1f78a40>;

			controller-data {
				nvidia,enable-hw-based-cs;
				nvidia,rx-clk-tap-delay = <0x6>;
			};
		};
	};

	spi@7000d800 {
		compatible = "nvidia,tegra210-spi";
		reg = <0x0 0x7000d800 0x0 0x200>;
		interrupts = <0x0 0x53 0x4>;
		iommus = <0x2b 0xe>;
		#address-cells = <0x1>;
		#size-cells = <0x0>;
		dmas = <0x4c 0x11 0x4c 0x11>;
		dma-names = "rx", "tx";
		nvidia,clk-parents = "pll_p", "clk_m";
		clocks = <0x21 0x2e 0x21 0xf3 0x21 0xe9>;
		clock-names = "spi", "pll_p", "clk_m";
		resets = <0x21 0x2e>;
		reset-names = "spi";
		status = "disabled";
		linux,phandle = <0x10e>;
		phandle = <0x10e>;

		prod-settings {
			#prod-cells = <0x3>;

			prod {
				prod = <0x4 0xfff 0x0>;
			};

			prod_c_flash {
				status = "disabled";
				prod = <0x4 0x3f 0x8>;
			};

			prod_c_loop {
				status = "disabled";
				prod = <0x4 0xfff 0x44b>;
			};
		};
	};

	spi@7000da00 {
		compatible = "nvidia,tegra210-spi";
		reg = <0x0 0x7000da00 0x0 0x200>;
		interrupts = <0x0 0x5d 0x4>;
		iommus = <0x2b 0xe>;
		#address-cells = <0x1>;
		#size-cells = <0x0>;
		dmas = <0x4c 0x12 0x4c 0x12>;
		dma-names = "rx", "tx";
		nvidia,clk-parents = "pll_p", "clk_m";
		clocks = <0x21 0x44 0x21 0xf3 0x21 0xe9>;
		clock-names = "spi", "pll_p", "clk_m";
		resets = <0x21 0x44>;
		reset-names = "spi";
		status = "disabled";
		spi-max-frequency = <0xb71b00>;
		linux,phandle = <0x10f>;
		phandle = <0x10f>;

		prod-settings {
			#prod-cells = <0x3>;

			prod {
				prod = <0x4 0xfff 0x0>;
			};

			prod_c_flash {
				status = "disabled";
				prod = <0x4 0xfff 0x44b>;
			};

			prod_c_cs0 {
				prod = <0x4 0xfc0 0x400>;
			};
		};

		spi-touch19x12@0 {
			compatible = "raydium,rm_ts_spidev";
			status = "disabled";
			reg = <0x0>;
			spi-max-frequency = <0xb71b00>;
			interrupt-parent = <0x56>;
			interrupts = <0xb9 0x1>;
			reset-gpio = <0x56 0xae 0x0>;
			config = <0x0>;
			platform-id = <0xd>;
			name-of-clock = "clk_out_2";
			name-of-clock-con = "extern2";
			avdd-supply = <0x57>;
			dvdd-supply = <0x58>;
		};

		spi-touch25x16@0 {
			compatible = "raydium,rm_ts_spidev";
			status = "disabled";
			reg = <0x0>;
			spi-max-frequency = <0xb71b00>;
			interrupt-parent = <0x56>;
			interrupts = <0xb9 0x1>;
			reset-gpio = <0x56 0xae 0x0>;
			config = <0x0>;
			platform-id = <0x8>;
			name-of-clock = "clk_out_2";
			name-of-clock-con = "extern2";
			avdd-supply = <0x57>;
			dvdd-supply = <0x58>;
		};

		spi-touch14x8@0 {
			compatible = "raydium,rm_ts_spidev";
			status = "disabled";
			reg = <0x0>;
			spi-max-frequency = <0xb71b00>;
			interrupt-parent = <0x56>;
			interrupts = <0xb9 0x1>;
			reset-gpio = <0x56 0xae 0x0>;
			config = <0x0>;
			platform-id = <0x9>;
			name-of-clock = "clk_out_2";
			name-of-clock-con = "extern2";
			avdd-supply = <0x57>;
			dvdd-supply = <0x58>;
		};
	};

	spi@70410000 {
		compatible = "nvidia,tegra210-qspi";
		reg = <0x0 0x70410000 0x0 0x1000>;
		interrupts = <0x0 0xa 0x4>;
		iommus = <0x2b 0xe>;
		#address-cells = <0x1>;
		#size-cells = <0x0>;
		dmas = <0x4c 0x5 0x4c 0x5>;
		dma-names = "rx", "tx";
		clocks = <0x21 0xd3 0x21 0x119>;
		clock-names = "qspi", "qspi_out";
		resets = <0x21 0xd3>;
		reset-names = "qspi";
		status = "okay";
		spi-max-frequency = <0x632ea00>;
		linux,phandle = <0x110>;
		phandle = <0x110>;

		spiflash@0 {
			#address-cells = <0x1>;
			#size-cells = <0x1>;
			compatible = "MX25U3235F";
			reg = <0x0>;
			spi-max-frequency = <0x632ea00>;

			controller-data {
				nvidia,x1-len-limit = <0x10>;
				nvidia,x1-bus-speed = <0x632ea00>;
				nvidia,x1-dymmy-cycle = <0x8>;
				nvidia,ctrl-bus-clk-ratio = [01];
				nvidia,x4-bus-speed = <0x632ea00>;
				nvidia,x4-dymmy-cycle = <0x8>;
			};
		};
	};

	host1x {
		compatible = "nvidia,tegra210-host1x", "simple-bus";
		power-domains = <0x23>;
		wakeup-capable;
		reg = <0x0 0x50000000 0x0 0x34000>;
		interrupts = <0x0 0x41 0x4 0x0 0x43 0x4>;
		iommus = <0x2b 0x6>;
		#address-cells = <0x2>;
		#size-cells = <0x2>;
		status = "okay";
		ranges;
		clocks = <0x21 0x1f2 0x21 0x77>;
		clock-names = "host1x", "actmon";
		resets = <0x21 0x1c>;
		nvidia,ch-base = <0x0>;
		nvidia,nb-channels = <0xc>;
		nvidia,nb-hw-pts = <0xc0>;
		nvidia,pts-base = <0x0>;
		nvidia,nb-pts = <0xc0>;
		assigned-clocks = <0x21 0x7a 0x21 0x92 0x21 0x91 0x21 0x90 0x21 0xd0 0x21 0x166 0x21 0xe4 0x21 0x142 0x21 0x3>;
		assigned-clock-parents = <0x21 0xf3 0x21 0xf3 0x21 0xf3 0x21 0xf3 0x21 0xf3 0x21 0x7a 0x21 0xed 0x21 0xed 0x21 0x142>;
		assigned-clock-rates = <0x16e3600 0x6146580 0x6146580 0x6146580 0x6146580 0x16e3600 0x18519600 0x18519600 0x0>;
		linux,phandle = <0x78>;
		phandle = <0x78>;

		vi {
			compatible = "nvidia,tegra210-vi", "simple-bus";
			power-domains = <0x59>;
			reg = <0x0 0x54080000 0x0 0x40000>;
			interrupts = <0x0 0x45 0x4>;
			iommus = <0x2b 0x12>;
			status = "okay";
			clocks = <0x21 0x210 0x21 0x34 0x21 0x90 0x21 0x91 0x21 0x92 0x21 0xd0 0x21 0x51 0x21 0xfa 0x21 0x133>;
			clock-names = "vi", "csi", "cilab", "cilcd", "cile", "vii2c", "i2cslow", "pll_d", "pll_d_dsi_out";
			resets = <0x21 0x14>;
			reset-names = "vi";
			#address-cells = <0x1>;
			#size-cells = <0x0>;
			avdd_dsi_csi-supply = <0x36>;
			num-channels = <0x2>;
			linux,phandle = <0xbd>;
			phandle = <0xbd>;

			ports {
				#address-cells = <0x1>;
				#size-cells = <0x0>;

				port@0 {
					reg = <0x0>;
					linux,phandle = <0xbe>;
					phandle = <0xbe>;

					endpoint {
						port-index = <0x0>;
						bus-width = <0x2>;
						remote-endpoint = <0x5a>;
						linux,phandle = <0x75>;
						phandle = <0x75>;
					};
				};

				port@1 {
					reg = <0x1>;
					linux,phandle = <0xcd>;
					phandle = <0xcd>;

					endpoint {
						port-index = <0x4>;
						bus-width = <0x2>;
						remote-endpoint = <0x5b>;
						linux,phandle = <0x77>;
						phandle = <0x77>;
					};
				};
			};
		};

		vi-bypass {
			compatible = "nvidia,tegra210-vi-bypass";
			status = "okay";
		};

		isp@54600000 {
			compatible = "nvidia,tegra210-isp";
			power-domains = <0x59>;
			reg = <0x0 0x54600000 0x0 0x40000>;
			interrupts = <0x0 0x47 0x4>;
			iommus = <0x2b 0x8>;
			status = "okay";
			clocks = <0x21 0x1ab>;
			clock-names = "ispa";
			resets = <0x21 0x17>;
		};

		isp@54680000 {
			compatible = "nvidia,tegra210-isp";
			power-domains = <0x5c>;
			reg = <0x0 0x54680000 0x0 0x40000>;
			interrupts = <0x0 0x46 0x4>;
			iommus = <0x2b 0x1d>;
			status = "okay";
			clocks = <0x21 0x1ac>;
			clock-names = "ispb";
			resets = <0x21 0x3>;
		};

		dc@54200000 {
			compatible = "nvidia,tegra210-dc";
			aux-device-name = "tegradc.0";
			reg = <0x0 0x54200000 0x0 0x40000>;
			interrupts = <0x0 0x49 0x4>;
			win-mask = <0x7>;
			nvidia,fb-win = <0x0>;
			iommus = <0x2b 0x2 0x2b 0xa>;
			clocks = <0x21 0x1b 0x21 0x5 0x21 0x1c5 0x21 0x1c7 0x21 0xf6 0x21 0xfb 0x21 0xfa>;
			clock-names = "disp1", "timer", "disp1_emc", "disp1_la_emc", "pll_p_out3", "pll_d_out0", "pll_d";
			resets = <0x21 0x1b>;
			reset-names = "dc_rst";
			status = "okay";
			nvidia,dc-ctrlnum = <0x0>;
			fb_reserved = <0x5d>;
			iommu-direct-regions = <0x5d>;
			pinctrl-names = "dsi-dpd-disable", "dsi-dpd-enable", "dsib-dpd-disable", "dsib-dpd-enable", "hdmi-dpd-disable", "hdmi-dpd-enable";
			pinctrl-0 = <0x5e>;
			pinctrl-1 = <0x5f>;
			pinctrl-2 = <0x60>;
			pinctrl-3 = <0x61>;
			pinctrl-4 = <0x62>;
			pinctrl-5 = <0x63>;
			avdd_hdmi-supply = <0x40>;
			avdd_hdmi_pll-supply = <0x36>;
			vdd_hdmi_5v0-supply = <0x64>;
			nvidia,dc-flags = <0x1>;
			nvidia,emc-clk-rate = <0x11e1a300>;
			nvidia,cmu-enable = <0x1>;
			nvidia,fb-bpp = <0x20>;
			nvidia,fb-flags = <0x1>;
			nvidia,dc-or-node = "/host1x/sor1";
			nvidia,dc-connector = <0x65>;
			linux,phandle = <0x111>;
			phandle = <0x111>;

			rgb {
				status = "disabled";
			};
		};

		dc@54240000 {
			compatible = "nvidia,tegra210-dc";
			aux-device-name = "tegradc.1";
			reg = <0x0 0x54240000 0x0 0x40000>;
			interrupts = <0x0 0x4a 0x4>;
			win-mask = <0x7>;
			nvidia,fb-win = <0x0>;
			iommus = <0x2b 0x3>;
			status = "okay";
			nvidia,dc-ctrlnum = <0x1>;
			clocks = <0x21 0x1a 0x21 0x5 0x21 0x1c6 0x21 0x1c8 0x21 0xfd 0x21 0xfc>;
			clock-names = "disp2", "timer", "disp2_emc", "disp2_la_emc", "pll_d2_out0", "pll_d2";
			resets = <0x21 0x1a>;
			reset-names = "dc_rst";
			fb_reserved = <0x66>;
			iommu-direct-regions = <0x66>;
			pinctrl-names = "dsi-dpd-disable", "dsi-dpd-enable", "dsib-dpd-disable", "dsib-dpd-enable", "hdmi-dpd-disable", "hdmi-dpd-enable";
			pinctrl-0 = <0x5e>;
			pinctrl-1 = <0x5f>;
			pinctrl-2 = <0x60>;
			pinctrl-3 = <0x61>;
			pinctrl-4 = <0x62>;
			pinctrl-5 = <0x63>;
			vdd-dp-pwr-supply = <0x67>;
			avdd-dp-pll-supply = <0x36>;
			vdd-edp-sec-mode-supply = <0x42>;
			vdd-dp-pad-supply = <0x42>;
			vdd_hdmi_5v0-supply = <0x64>;
			nvidia,dc-flags = <0x1>;
			nvidia,emc-clk-rate = <0x11e1a300>;
			nvidia,cmu-enable = <0x1>;
			nvidia,fb-bpp = <0x20>;
			nvidia,fb-flags = <0x1>;
			nvidia,dc-or-node = "/host1x/sor";
			nvidia,dc-connector = <0x68>;
			linux,phandle = <0x112>;
			phandle = <0x112>;

			rgb {
				status = "disabled";
			};
		};

		dsi {
			compatible = "nvidia,tegra210-dsi";
			reg = <0x0 0x54300000 0x0 0x40000 0x0 0x54400000 0x0 0x40000>;
			clocks = <0x21 0x30 0x21 0x93 0x21 0x52 0x21 0x94 0x21 0xf6 0x21 0xb1>;
			clock-names = "dsi", "dsia_lp", "dsib", "dsib_lp", "pll_p_out3", "clk72mhz";
			resets = <0x21 0x30 0x21 0x52>;
			reset-names = "dsia", "dsib";
			status = "disabled";
			linux,phandle = <0x113>;
			phandle = <0x113>;
		};

		vic {
			compatible = "nvidia,tegra210-vic";
			power-domains = <0x69>;
			reg = <0x0 0x54340000 0x0 0x40000>;
			iommus = <0x2b 0x13>;
			iommu-group-id = <0x1>;
			status = "okay";
			clocks = <0x21 0x193 0x21 0x1e2 0x21 0x19f 0x21 0x1e3>;
			clock-names = "vic03", "emc", "vic_floor", "emc_shared";
			resets = <0x21 0xb2>;
		};

		nvenc {
			compatible = "nvidia,tegra210-nvenc";
			power-domains = <0x6a>;
			reg = <0x0 0x544c0000 0x0 0x40000>;
			clocks = <0x21 0x19d>;
			clock-names = "msenc";
			resets = <0x21 0xdb>;
			iommus = <0x2b 0xb>;
			iommu-group-id = <0x1>;
			status = "okay";
		};

		tsec {
			compatible = "nvidia,tegra210-tsec";
			power-domains = <0x6b>;
			reg = <0x0 0x54500000 0x0 0x40000>;
			clocks = <0x21 0x53>;
			clock-names = "tsec";
			resets = <0x21 0x53>;
			iommus = <0x2b 0x17>;
			iommu-group-id = <0x1>;
			status = "okay";
		};

		tsecb {
			compatible = "nvidia,tegra210-tsec";
			power-domains = <0x6b>;
			reg = <0x0 0x54100000 0x0 0x40000>;
			clocks = <0x21 0x196>;
			clock-names = "tsecb";
			resets = <0x21 0xce>;
			iommus = <0x2b 0x29>;
			iommu-group-id = <0x1>;
			status = "okay";
		};

		nvdec {
			compatible = "nvidia,tegra210-nvdec";
			power-domains = <0x6c>;
			reg = <0x0 0x54480000 0x0 0x40000>;
			clocks = <0x21 0x19e>;
			clock-names = "nvdec";
			resets = <0x21 0xc2>;
			iommus = <0x2b 0x21>;
			iommu-group-id = <0x1>;
			status = "okay";
		};

		nvjpg {
			compatible = "nvidia,tegra210-nvjpg";
			power-domains = <0x6d>;
			reg = <0x0 0x54380000 0x0 0x40000>;
			clocks = <0x21 0x194>;
			clock-names = "nvjpg";
			resets = <0x21 0xc3>;
			iommus = <0x2b 0x24>;
			iommu-group-id = <0x1>;
			status = "okay";
		};

		sor {
			compatible = "nvidia,tegra210-sor";
			reg = <0x0 0x54540000 0x0 0x40000>;
			reg-names = "sor";
			status = "okay";
			nvidia,sor-ctrlnum = <0x0>;
			nvidia,dpaux = <0x6e>;
			nvidia,xbar-ctrl = <0x2 0x1 0x0 0x3 0x4>;
			clocks = <0x21 0xde 0x21 0xb6 0x21 0x12f>;
			clock-names = "sor_safe", "sor0", "pll_dp";
			resets = <0x21 0xb6>;
			reset-names = "sor0";
			nvidia,sor-audio-not-supported;
			nvidia,sor1-output-type = "dp";
			nvidia,active-panel = <0x6f>;
			linux,phandle = <0x68>;
			phandle = <0x68>;

			hdmi-display {
				compatible = "hdmi,display";
				status = "disabled";
				linux,phandle = <0x114>;
				phandle = <0x114>;
			};

			dp-display {
				compatible = "dp, display";
				status = "okay";
				nvidia,hpd-gpio = <0x56 0xe1 0x1>;
				nvidia,is_ext_dp_panel = <0x1>;
				linux,phandle = <0x6f>;
				phandle = <0x6f>;

				disp-default-out {
					nvidia,out-type = <0x3>;
					nvidia,out-align = <0x0>;
					nvidia,out-order = <0x0>;
					nvidia,out-flags = <0x0>;
					nvidia,out-pins = <0x1 0x0 0x2 0x0 0x3 0x0 0x0 0x1>;
					nvidia,out-parent-clk = "pll_d_out0";
				};

				dp-lt-settings {

					lt-setting@0 {
						nvidia,drive-current = <0x0 0x0 0x0 0x0>;
						nvidia,lane-preemphasis = <0x0 0x0 0x0 0x0>;
						nvidia,post-cursor = <0x0 0x0 0x0 0x0>;
						nvidia,tx-pu = <0x0>;
						nvidia,load-adj = <0x3>;
					};

					lt-setting@1 {
						nvidia,drive-current = <0x0 0x0 0x0 0x0>;
						nvidia,lane-preemphasis = <0x0 0x0 0x0 0x0>;
						nvidia,post-cursor = <0x0 0x0 0x0 0x0>;
						nvidia,tx-pu = <0x0>;
						nvidia,load-adj = <0x4>;
					};

					lt-setting@2 {
						nvidia,drive-current = <0x0 0x0 0x0 0x0>;
						nvidia,lane-preemphasis = <0x1 0x1 0x1 0x1>;
						nvidia,post-cursor = <0x0 0x0 0x0 0x0>;
						nvidia,tx-pu = <0x0>;
						nvidia,load-adj = <0x6>;
					};
				};
			};

			prod-settings {
				#prod-cells = <0x3>;

				prod_c_dp {
					prod = <0x5c 0xf000f10 0x1000310 0x60 0x3f00100 0x400100 0x68 0x2000 0x2000 0x70 0xffffffff 0x0 0x180 0x1 0x1>;
				};
			};
		};

		sor1 {
			compatible = "nvidia,tegra210-sor1";
			reg = <0x0 0x54580000 0x0 0x40000>;
			reg-names = "sor";
			interrupts = <0x0 0x4c 0x4>;
			status = "okay";
			nvidia,sor-ctrlnum = <0x1>;
			nvidia,dpaux = <0x70>;
			nvidia,xbar-ctrl = <0x0 0x1 0x2 0x3 0x4>;
			clocks = <0x21 0x16f 0x21 0xde 0x21 0x16e 0x21 0xb7 0x21 0x12f 0x21 0xf3 0x21 0xca 0x21 0x7d 0x21 0x6f 0x21 0x80>;
			clock-names = "sor1_ref", "sor_safe", "sor1_pad_clkout", "sor1", "pll_dp", "pll_p", "maud", "hda", "hda2codec_2x", "hda2hdmi";
			resets = <0x21 0xb7 0x21 0x7d 0x21 0x6f 0x21 0x80>;
			reset-names = "sor1", "hda_rst", "hda2codec_2x_rst", "hda2hdmi_rst";
			nvidia,ddc-i2c-bus = <0x71>;
			nvidia,hpd-gpio = <0x56 0xe1 0x1>;
			nvidia,active-panel = <0x72>;
			linux,phandle = <0x65>;
			phandle = <0x65>;

			hdmi-display {
				compatible = "hdmi,display";
				status = "okay";
				generic-infoframe-type = <0x87>;
				linux,phandle = <0x72>;
				phandle = <0x72>;

				disp-default-out {
					nvidia,out-xres = <0x1000>;
					nvidia,out-yres = <0x870>;
					nvidia,out-type = <0x1>;
					nvidia,out-flags = <0x2>;
					nvidia,out-parent-clk = "pll_d2";
					nvidia,out-align = <0x0>;
					nvidia,out-order = <0x0>;
				};
			};

			dp-display {
				compatible = "dp, display";
				status = "disabled";
				linux,phandle = <0x115>;
				phandle = <0x115>;
			};

			prod-settings {
				#prod-cells = <0x3>;
				prod_list_hdmi_soc = "prod_c_hdmi_0m_54m", "prod_c_hdmi_54m_111m", "prod_c_hdmi_111m_223m", "prod_c_hdmi_223m_300m", "prod_c_hdmi_300m_600m";
				prod_list_hdmi_board = "prod_c_hdmi_0m_54m", "prod_c_hdmi_54m_75m", "prod_c_hdmi_75m_150m", "prod_c_hdmi_150m_300m", "prod_c_hdmi_300m_600m";

				prod {
					prod = <0x3a0 0x1 0x1 0x5c 0xf000700 0x1000000 0x60 0xf01f00 0x300f80 0x68 0xf000000 0xe000000 0x138 0xffffffff 0x3c3c3c3c 0x148 0xffffffff 0x0 0x170 0x40ff00 0x401000>;
				};

				prod_c_hdmi_0m_54m {
					prod = <0x3a0 0x2 0x2 0x5c 0xf000700 0x5000310 0x60 0xf01f00 0x1100 0x68 0xf000000 0x8000000 0x138 0xffffffff 0x2d2f2f2f 0x148 0xffffffff 0x0 0x170 0xf040ff00 0x80406600>;
				};

				prod_c_hdmi_54m_111m {
					prod = <0x3a0 0x2 0x2 0x5c 0xf000700 0x1000100 0x60 0xf01f00 0x401380 0x68 0xf000000 0x8000000 0x138 0xffffffff 0x333a3a3a 0x148 0xffffffff 0x0 0x170 0x40ff00 0x404000>;
				};

				prod_c_hdmi_111m_223m {
					prod = <0x3a0 0x2 0x0 0x5c 0xf000700 0x1000300 0x60 0xff0fe0ff 0x401380 0x68 0xf000000 0x8000000 0x138 0xffffffff 0x333a3a3a 0x148 0xffffffff 0x0 0x170 0x40ff00 0x406600>;
				};

				prod_c_hdmi_223m_300m {
					prod = <0x3a0 0x2 0x0 0x5c 0xf000700 0x1000300 0x60 0xf01f00 0x401380 0x68 0xf000000 0xa000000 0x138 0xffffffff 0x333f3f3f 0x148 0xffffffff 0x171717 0x170 0x40ff00 0x406600>;
				};

				prod_c_hdmi_300m_600m {
					prod = <0x3a0 0x2 0x2 0x5c 0xf000700 0x5000310 0x60 0xf01f00 0x300f00 0x68 0xf000000 0x8000000 0x138 0xffffffff 0x30353537 0x148 0xffffffff 0x0 0x170 0x40ff00 0x406000>;
				};

				prod_c_54M {
					prod = <0x3a0 0x2 0x2 0x5c 0xf000700 0x1000000 0x60 0xf01f00 0x401380 0x68 0xf000000 0x8000000 0x138 0xffffffff 0x333a3a3a 0x148 0xffffffff 0x0 0x170 0x40ff00 0x401000>;
				};

				prod_c_75M {
					prod = <0x3a0 0x2 0x2 0x5c 0xf000700 0x1000100 0x60 0xf01f00 0x401380 0x68 0xf000000 0x8000000 0x138 0xffffffff 0x333a3a3a 0x148 0xffffffff 0x0 0x170 0x40ff00 0x404000>;
				};

				prod_c_150M {
					prod = <0x3a0 0x2 0x0 0x5c 0xf000700 0x1000300 0x60 0xff0fe0ff 0x401380 0x68 0xf000000 0x8000000 0x138 0xffffffff 0x333a3a3a 0x148 0xffffffff 0x0 0x170 0x40ff00 0x406600>;
				};

				prod_c_300M {
					prod = <0x3a0 0x2 0x0 0x5c 0xf000700 0x1000300 0x60 0xf01f00 0x401380 0x68 0xf000000 0xa000000 0x138 0xffffffff 0x333f3f3f 0x148 0xffffffff 0x171717 0x170 0x40ff00 0x406600>;
				};

				prod_c_600M {
					prod = <0x3a0 0x2 0x2 0x5c 0xf000700 0x1000300 0x60 0xf01f00 0x401380 0x68 0xf000000 0x8000000 0x138 0xffffffff 0x333f3f3f 0x148 0xffffffff 0x0 0x170 0x40ff00 0x406600>;
				};

				prod_c_dp {
					prod = <0x5c 0xf000f10 0x1000310 0x60 0x3f00100 0x400100 0x68 0x2000 0x2000 0x70 0xffffffff 0x0 0x180 0x1 0x1>;
				};

				prod_c_hdmi_54m_75m {
					prod = <0x3a0 0x2 0x2 0x5c 0xf000700 0x5000310 0x60 0xf01f00 0x301500 0x68 0xf000000 0x8000000 0x138 0xffffffff 0x2d303030 0x148 0xffffffff 0x0 0x170 0xf040ff00 0x80406600>;
				};

				prod_c_hdmi_75m_150m {
					prod = <0x3a0 0x2 0x0 0x5c 0xf000700 0x1000300 0x60 0xf01f00 0x309300 0x68 0xf000000 0x8000000 0x138 0xffffffff 0x2d303030 0x148 0xffffffff 0x0 0x170 0xf040ff00 0x80406600>;
				};

				prod_c_hdmi_150m_300m {
					prod = <0x3a0 0x2 0x0 0x5c 0xf000700 0x1000300 0x60 0xf01f00 0x309300 0x68 0xf000000 0x8000000 0x138 0xffffffff 0x2d303430 0x148 0xffffffff 0x0 0x170 0xf040ff00 0x80406600>;
				};
			};
		};

		dpaux {
			compatible = "nvidia,tegra210-dpaux";
			reg = <0x0 0x545c0000 0x0 0x40000>;
			interrupts = <0x0 0x9f 0x4>;
			nvidia,dpaux-ctrlnum = <0x0>;
			status = "okay";
			clocks = <0x21 0xb5>;
			clock-names = "dpaux";
			resets = <0x21 0xb5>;
			reset-names = "dpaux";
			linux,phandle = <0x6e>;
			phandle = <0x6e>;

			prod-settings {
				#prod-cells = <0x3>;

				prod_c_dpaux_dp {
					prod = <0x124 0x37fe 0x24c2>;
				};

				prod_c_dpaux_hdmi {
					prod = <0x124 0x700 0x400>;
				};
			};
		};

		dpaux1 {
			compatible = "nvidia,tegra210-dpaux1";
			reg = <0x0 0x54040000 0x0 0x40000>;
			interrupts = <0x0 0xb 0x4>;
			nvidia,dpaux-ctrlnum = <0x1>;
			status = "okay";
			clocks = <0x21 0xcf>;
			clock-names = "dpaux1";
			resets = <0x21 0xcf>;
			reset-names = "dpaux1";
			linux,phandle = <0x70>;
			phandle = <0x70>;

			prod-settings {
				#prod-cells = <0x3>;

				prod_c_dpaux_dp {
					prod = <0x124 0x37fe 0x24c2>;
				};

				prod_c_dpaux_hdmi {
					prod = <0x124 0x700 0x400>;
				};
			};
		};

		i2c@546c0000 {
			#address-cells = <0x1>;
			#size-cells = <0x0>;
			compatible = "nvidia,tegra210-vii2c";
			reg = <0x0 0x546c0000 0x0 0x34000>;
			iommus = <0x2b 0x12>;
			interrupts = <0x0 0x11 0x4>;
			scl-gpio = <0x56 0x92 0x0>;
			sda-gpio = <0x56 0x93 0x0>;
			status = "okay";
			clocks = <0x21 0xd0 0x21 0x51 0x21 0x1c>;
			clock-names = "vii2c", "i2cslow", "host1x";
			resets = <0x21 0xd0>;
			reset-names = "vii2c";
			clock-frequency = <0x61a80>;
			bus-pullup-supply = <0x42>;
			avdd_dsi_csi-supply = <0x36>;
			linux,phandle = <0xa8>;
			phandle = <0xa8>;

			rbpcv2_imx219_a@10 {
				compatible = "nvidia,imx219";
				reg = <0x10>;
				devnode = "video0";
				physical_w = "3.680";
				physical_h = "2.760";
				sensor_model = "imx219";
				use_sensor_mode_id = "true";
				status = "disabled";
				reset-gpios = <0x56 0x97 0x0>;
				linux,phandle = <0xb9>;
				phandle = <0xb9>;

				mode0 {
					mclk_khz = "24000";
					num_lanes = [32 00];
					tegra_sinterface = "serial_a";
					phy_mode = "DPHY";
					discontinuous_clk = "yes";
					dpcm_enable = "false";
					cil_settletime = [30 00];
					active_w = "3264";
					active_h = "2464";
					pixel_t = "bayer_rggb";
					readout_orientation = "90";
					line_length = "3448";
					inherent_gain = [31 00];
					mclk_multiplier = "9.33";
					pix_clk_hz = "182400000";
					gain_factor = "16";
					framerate_factor = "1000000";
					exposure_factor = "1000000";
					min_gain_val = "16";
					max_gain_val = "170";
					step_gain_val = [31 00];
					default_gain = "16";
					min_hdr_ratio = [31 00];
					max_hdr_ratio = [31 00];
					min_framerate = "2000000";
					max_framerate = "21000000";
					step_framerate = [31 00];
					default_framerate = "21000000";
					min_exp_time = "13";
					max_exp_time = "683709";
					step_exp_time = [31 00];
					default_exp_time = "2495";
					embedded_metadata_height = [32 00];
				};

				mode1 {
					mclk_khz = "24000";
					num_lanes = [32 00];
					tegra_sinterface = "serial_a";
					phy_mode = "DPHY";
					discontinuous_clk = "yes";
					dpcm_enable = "false";
					cil_settletime = [30 00];
					active_w = "3264";
					active_h = "1848";
					pixel_t = "bayer_rggb";
					readout_orientation = "90";
					line_length = "3448";
					inherent_gain = [31 00];
					mclk_multiplier = "9.33";
					pix_clk_hz = "182400000";
					gain_factor = "16";
					framerate_factor = "1000000";
					exposure_factor = "1000000";
					min_gain_val = "16";
					max_gain_val = "170";
					step_gain_val = [31 00];
					default_gain = "16";
					min_hdr_ratio = [31 00];
					max_hdr_ratio = [31 00];
					min_framerate = "2000000";
					max_framerate = "28000000";
					step_framerate = [31 00];
					default_framerate = "28000000";
					min_exp_time = "13";
					max_exp_time = "683709";
					step_exp_time = [31 00];
					default_exp_time = "2495";
					embedded_metadata_height = [32 00];
				};

				mode2 {
					mclk_khz = "24000";
					num_lanes = [32 00];
					tegra_sinterface = "serial_a";
					phy_mode = "DPHY";
					discontinuous_clk = "yes";
					dpcm_enable = "false";
					cil_settletime = [30 00];
					active_w = "1920";
					active_h = "1080";
					pixel_t = "bayer_rggb";
					readout_orientation = "90";
					line_length = "3448";
					inherent_gain = [31 00];
					mclk_multiplier = "9.33";
					pix_clk_hz = "182400000";
					gain_factor = "16";
					framerate_factor = "1000000";
					exposure_factor = "1000000";
					min_gain_val = "16";
					max_gain_val = "170";
					step_gain_val = [31 00];
					default_gain = "16";
					min_hdr_ratio = [31 00];
					max_hdr_ratio = [31 00];
					min_framerate = "2000000";
					max_framerate = "30000000";
					step_framerate = [31 00];
					default_framerate = "30000000";
					min_exp_time = "13";
					max_exp_time = "683709";
					step_exp_time = [31 00];
					default_exp_time = "2495";
					embedded_metadata_height = [32 00];
				};

				mode3 {
					mclk_khz = "24000";
					num_lanes = [32 00];
					tegra_sinterface = "serial_a";
					phy_mode = "DPHY";
					discontinuous_clk = "yes";
					dpcm_enable = "false";
					cil_settletime = [30 00];
					active_w = "1280";
					active_h = "720";
					pixel_t = "bayer_rggb";
					readout_orientation = "90";
					line_length = "3448";
					inherent_gain = [31 00];
					mclk_multiplier = "9.33";
					pix_clk_hz = "182400000";
					gain_factor = "16";
					framerate_factor = "1000000";
					exposure_factor = "1000000";
					min_gain_val = "16";
					max_gain_val = "170";
					step_gain_val = [31 00];
					default_gain = "16";
					min_hdr_ratio = [31 00];
					max_hdr_ratio = [31 00];
					min_framerate = "2000000";
					max_framerate = "60000000";
					step_framerate = [31 00];
					default_framerate = "60000000";
					min_exp_time = "13";
					max_exp_time = "683709";
					step_exp_time = [31 00];
					default_exp_time = "2495";
					embedded_metadata_height = [32 00];
				};

				mode4 {
					mclk_khz = "24000";
					num_lanes = [32 00];
					tegra_sinterface = "serial_a";
					phy_mode = "DPHY";
					discontinuous_clk = "yes";
					dpcm_enable = "false";
					cil_settletime = [30 00];
					active_w = "1280";
					active_h = "720";
					pixel_t = "bayer_rggb";
					readout_orientation = "90";
					line_length = "3448";
					inherent_gain = [31 00];
					mclk_multiplier = "9.33";
					pix_clk_hz = "169600000";
					gain_factor = "16";
					framerate_factor = "1000000";
					exposure_factor = "1000000";
					min_gain_val = "16";
					max_gain_val = "170";
					step_gain_val = [31 00];
					default_gain = "16";
					min_hdr_ratio = [31 00];
					max_hdr_ratio = [31 00];
					min_framerate = "2000000";
					max_framerate = "120000000";
					step_framerate = [31 00];
					default_framerate = "120000000";
					min_exp_time = "13";
					max_exp_time = "683709";
					step_exp_time = [31 00];
					default_exp_time = "2495";
					embedded_metadata_height = [32 00];
				};

				ports {
					#address-cells = <0x1>;
					#size-cells = <0x0>;

					port@0 {
						reg = <0x0>;

						endpoint {
							port-index = <0x0>;
							bus-width = <0x2>;
							remote-endpoint = <0x73>;
							linux,phandle = <0xc2>;
							phandle = <0xc2>;
						};
					};
				};
			};

			ina3221x@40 {
				compatible = "ti,ina3221x";
				reg = <0x40>;
				status = "okay";
				ti,trigger-config = <0x7003>;
				ti,continuous-config = <0x7607>;
				ti,enable-forced-continuous;
				#io-channel-cells = <0x1>;
				#address-cells = <0x1>;
				#size-cells = <0x0>;
				linux,phandle = <0xad>;
				phandle = <0xad>;

				channel@0 {
					reg = <0x0>;
					ti,rail-name = "POM_5V_GPU";
					ti,shunt-resistor-mohm = <0x5>;
				};

				channel@1 {
					reg = <0x1>;
					ti,rail-name = "POM_5V_IN";
					ti,shunt-resistor-mohm = <0x5>;
				};

				channel@2 {
					reg = <0x2>;
					ti,rail-name = "POM_5V_CPU";
					ti,shunt-resistor-mohm = <0x5>;
				};
			};
		};

		nvcsi {
			num-channels = <0x2>;
			#address-cells = <0x1>;
			#size-cells = <0x0>;
			linux,phandle = <0xbf>;
			phandle = <0xbf>;

			channel@0 {
				reg = <0x0>;
				linux,phandle = <0xc0>;
				phandle = <0xc0>;

				ports {
					#address-cells = <0x1>;
					#size-cells = <0x0>;

					port@0 {
						reg = <0x0>;
						linux,phandle = <0xc1>;
						phandle = <0xc1>;

						endpoint@0 {
							port-index = <0x0>;
							bus-width = <0x2>;
							remote-endpoint = <0x74>;
							linux,phandle = <0x73>;
							phandle = <0x73>;
						};
					};

					port@1 {
						reg = <0x1>;
						linux,phandle = <0xc3>;
						phandle = <0xc3>;

						endpoint@1 {
							remote-endpoint = <0x75>;
							linux,phandle = <0x5a>;
							phandle = <0x5a>;
						};
					};
				};
			};

			channel@1 {
				reg = <0x1>;
				linux,phandle = <0xce>;
				phandle = <0xce>;

				ports {
					#address-cells = <0x1>;
					#size-cells = <0x0>;

					port@2 {
						reg = <0x0>;
						linux,phandle = <0xcf>;
						phandle = <0xcf>;

						endpoint@2 {
							port-index = <0x4>;
							bus-width = <0x2>;
							remote-endpoint = <0x76>;
							linux,phandle = <0xa9>;
							phandle = <0xa9>;
						};
					};

					port@3 {
						reg = <0x1>;
						linux,phandle = <0xd0>;
						phandle = <0xd0>;

						endpoint@3 {
							remote-endpoint = <0x77>;
							linux,phandle = <0x5b>;
							phandle = <0x5b>;
						};
					};
				};
			};
		};
	};

	gpu {
		compatible = "nvidia,tegra210-gm20b", "nvidia,gm20b";
		nvidia,host1x = <0x78>;
		reg = <0x0 0x57000000 0x0 0x1000000 0x0 0x58000000 0x0 0x1000000 0x0 0x538f0000 0x0 0x1000>;
		interrupts = <0x0 0x9d 0x4 0x0 0x9e 0x4>;
		interrupt-names = "stall", "nonstall";
		iommus = <0x2b 0x1f>;
		access-vpr-phys;
		status = "okay";
		resets = <0x21 0xb8>;
		reset-names = "gpu";
	};

	mipical {
		compatible = "nvidia,tegra210-mipical";
		reg = <0x0 0x700e3000 0x0 0x100>;
		clocks = <0x21 0x38 0x21 0xb1>;
		clock-names = "mipi_cal", "uart_mipi_cal";
		status = "okay";
		assigned-clocks = <0x21 0xb1>;
		assigned-clock-parents = <0x21 0xf3>;
		assigned-clock-rates = <0x40d9900>;

		prod-settings {
			#prod-cells = <0x3>;

			prod_c_dphy_dsi {
				prod = <0x38 0x1f00 0x200 0x3c 0x1f00 0x200 0x40 0x1f00 0x200 0x44 0x1f00 0x200 0x5c 0xf00 0x300 0x60 0xf00f0 0x10010 0x64 0x1f 0x2 0x68 0x1f 0x2 0x70 0x1f 0x2 0x74 0x1f 0x2>;
			};
		};
	};

	pmc@7000e400 {
		compatible = "nvidia,tegra210-pmc";
		reg = <0x0 0x7000e400 0x0 0x400>;
		#padcontroller-cells = <0x1>;
		status = "okay";
		clocks = <0x21 0x125>;
		clock-names = "pclk";
		nvidia,secure-pmc;
		clear-all-io-pads-dpd;
		pinctrl-names = "default";
		pinctrl-0 = <0x79>;
		nvidia,restrict-voltage-switch;
		#nvidia,wake-cells = <0x3>;
		nvidia,invert-interrupt;
		nvidia,suspend-mode = <0x0>;
		nvidia,cpu-pwr-good-time = <0x0>;
		nvidia,cpu-pwr-off-time = <0x0>;
		nvidia,core-pwr-good-time = <0x11eb 0xf24>;
		nvidia,core-pwr-off-time = <0x9899>;
		nvidia,core-pwr-req-active-high;
		nvidia,sys-clock-req-active-high;
		linux,phandle = <0x37>;
		phandle = <0x37>;

		pex_en {
			linux,phandle = <0x7f>;
			phandle = <0x7f>;

			pex-io-dpd-signals-dis {
				pins = "pex-bias", "pex-clk1", "pex-clk2";
				low-power-disable;
			};
		};

		pex_dis {
			linux,phandle = <0x80>;
			phandle = <0x80>;

			pex-io-dpd-signals-en {
				pins = "pex-bias", "pex-clk1", "pex-clk2";
				low-power-enable;
			};
		};

		hdmi-dpd-enable {
			linux,phandle = <0x63>;
			phandle = <0x63>;

			hdmi-pad-lowpower-enable {
				pins = "hdmi";
				low-power-enable;
			};
		};

		hdmi-dpd-disable {
			linux,phandle = <0x62>;
			phandle = <0x62>;

			hdmi-pad-lowpower-disable {
				pins = "hdmi";
				low-power-disable;
			};
		};

		dsi-dpd-enable {
			linux,phandle = <0x5f>;
			phandle = <0x5f>;

			dsi-pad-lowpower-enable {
				pins = "dsi";
				low-power-enable;
			};
		};

		dsi-dpd-disable {
			linux,phandle = <0x5e>;
			phandle = <0x5e>;

			dsi-pad-lowpower-disable {
				pins = "dsi";
				low-power-disable;
			};
		};

		dsib-dpd-enable {
			linux,phandle = <0x61>;
			phandle = <0x61>;

			dsib-pad-lowpower-enable {
				pins = "dsib";
				low-power-enable;
			};
		};

		dsib-dpd-disable {
			linux,phandle = <0x60>;
			phandle = <0x60>;

			dsib-pad-lowpower-disable {
				pins = "dsib";
				low-power-disable;
			};
		};

		iopad-defaults {
			linux,phandle = <0x79>;
			phandle = <0x79>;

			audio-pads {
				pins = "audio";
				nvidia,power-source-voltage = <0x0>;
			};

			cam-pads {
				pins = "cam";
				nvidia,power-source-voltage = <0x0>;
			};

			dbg-pads {
				pins = "dbg";
				nvidia,power-source-voltage = <0x0>;
			};

			dmic-pads {
				pins = "dmic";
				nvidia,power-source-voltage = <0x0>;
			};

			pex-ctrl-pads {
				pins = "pex-ctrl";
				nvidia,power-source-voltage = <0x0>;
			};

			spi-pads {
				pins = "spi";
				nvidia,power-source-voltage = <0x0>;
			};

			uart-pads {
				pins = "uart";
				nvidia,power-source-voltage = <0x0>;
			};

			pex-io-pads {
				pins = "pex-bias", "pex-clk1", "pex-clk2";
				low-power-enable;
			};

			audio-hv-pads {
				pins = "audio-hv";
				nvidia,power-source-voltage = <0x0>;
			};

			spi-hv-pads {
				pins = "spi-hv";
				nvidia,power-source-voltage = <0x0>;
			};

			gpio-pads {
				pins = "gpio";
				nvidia,power-source-voltage = <0x0>;
			};

			sdmmc-io-pads {
				pins = "sdmmc1", "sdmmc3";
				nvidia,enable-voltage-switching;
			};
		};

		bootrom-commands {
			nvidia,command-retries-count = <0x2>;
			nvidia,delay-between-commands-us = <0xa>;
			nvidia,wait-start-bus-clear-us = <0xa>;
			#address-cells = <0x1>;
			#size-cells = <0x0>;

			reset-commands {
				nvidia,command-retries-count = <0x2>;
				nvidia,delay-between-commands-us = <0xa>;
				nvidia,wait-start-bus-clear-us = <0xa>;
				#address-cells = <0x1>;
				#size-cells = <0x0>;

				commands@4-003c {
					nvidia,command-names = "pmic-rails";
					reg = <0x3c>;
					nvidia,enable-8bit-register;
					nvidia,enable-8bit-data;
					nvidia,controller-type-i2c;
					nvidia,controller-id = <0x4>;
					nvidia,enable-controller-reset;
					nvidia,write-commands = <0x16 0x20>;
				};
			};

			power-off-commands {
				nvidia,command-retries-count = <0x2>;
				nvidia,delay-between-commands-us = <0xa>;
				nvidia,wait-start-bus-clear-us = <0xa>;
				#address-cells = <0x1>;
				#size-cells = <0x0>;

				commands@4-003c {
					nvidia,command-names = "pmic-rails";
					reg = <0x3c>;
					nvidia,enable-8bit-register;
					nvidia,enable-8bit-data;
					nvidia,controller-type-i2c;
					nvidia,controller-id = <0x4>;
					nvidia,enable-controller-reset;
					nvidia,write-commands = <0x3b 0x1 0x42 0x5b 0x41 0xf8>;
				};
			};
		};

		sdmmc1_e_33V_enable {
			linux,phandle = <0x96>;
			phandle = <0x96>;

			sdmmc1 {
				pins = "sdmmc1";
				nvidia,power-source-voltage = <0x1>;
			};
		};

		sdmmc1_e_33V_disable {
			linux,phandle = <0x97>;
			phandle = <0x97>;

			sdmmc1 {
				pins = "sdmmc1";
				nvidia,power-source-voltage = <0x0>;
			};
		};

		sdmmc3_e_33V_enable {
			linux,phandle = <0x8e>;
			phandle = <0x8e>;

			sdmmc3 {
				pins = "sdmmc3";
				nvidia,power-source-voltage = <0x1>;
			};
		};

		sdmmc3_e_33V_disable {
			linux,phandle = <0x8f>;
			phandle = <0x8f>;

			sdmmc3 {
				pins = "sdmmc3";
				nvidia,power-source-voltage = <0x0>;
			};
		};
	};

	se@70012000 {
		compatible = "nvidia,tegra210-se";
		reg = <0x0 0x70012000 0x0 0x2000>;
		iommus = <0x2b 0x23 0x2b 0x26>;
		iommu-group-id = <0x4>;
		interrupts = <0x0 0x3a 0x4>;
		clocks = <0x21 0x195 0x21 0x95>;
		clock-names = "se", "entropy";
		status = "okay";
		supported-algos = "aes", "drbg", "rsa", "sha";
		linux,phandle = <0x116>;
		phandle = <0x116>;
	};

	hda@70030000 {
		compatible = "nvidia,tegra30-hda";
		reg = <0x0 0x70030000 0x0 0x10000>;
		interrupts = <0x0 0x51 0x4>;
		clocks = <0x21 0x7d 0x21 0x80 0x21 0x6f 0x21 0xca>;
		clock-names = "hda", "hda2hdmi", "hda2codec_2x", "maud";
		status = "okay";
	};

	pcie@1003000 {
		compatible = "nvidia,tegra210-pcie", "nvidia,tegra124-pcie";
		power-domains = <0x7a>;
		device_type = "pci";
		reg = <0x0 0x1003000 0x0 0x800 0x0 0x1003800 0x0 0x800 0x0 0x11fff000 0x0 0x1000>;
		reg-names = "pads", "afi", "cs";
		interrupts = <0x0 0x62 0x4 0x0 0x63 0x4>;
		interrupt-names = "intr", "msi";
		clocks = <0x21 0x46 0x21 0x48 0x21 0x107 0x21 0x12c 0x21 0x63>;
		clock-names = "pex", "afi", "pll_e", "cml", "mselect";
		resets = <0x21 0x46 0x21 0x48 0x21 0x4a>;
		reset-names = "pex", "afi", "pcie_x";
		#interrupt-cells = <0x1>;
		interrupt-map-mask = <0x0 0x0 0x0 0x0>;
		interrupt-map = <0x0 0x0 0x0 0x0 0x33 0x0 0x62 0x4>;
		pinctrl-names = "clkreq-0-bi-dir-enable", "clkreq-1-bi-dir-enable", "clkreq-0-in-dir-enable", "clkreq-1-in-dir-enable", "pex-io-dpd-dis", "pex-io-dpd-en";
		pinctrl-0 = <0x7b>;
		pinctrl-1 = <0x7c>;
		pinctrl-2 = <0x7d>;
		pinctrl-3 = <0x7e>;
		pinctrl-4 = <0x7f>;
		pinctrl-5 = <0x80>;
		bus-range = <0x0 0xff>;
		#address-cells = <0x3>;
		#size-cells = <0x2>;
		ranges = <0x82000000 0x0 0x1000000 0x0 0x1000000 0x0 0x1000 0x82000000 0x0 0x1001000 0x0 0x1001000 0x0 0x1000 0x81000000 0x0 0x0 0x0 0x12000000 0x0 0x10000 0x82000000 0x0 0x13000000 0x0 0x13000000 0x0 0xd000000 0xc2000000 0x0 0x20000000 0x0 0x20000000 0x0 0x20000000>;
		status = "okay";
		nvidia,wake-gpio = <0x56 0x2 0x0>;
		nvidia,pmc-wakeup = <0x37 0x1 0x0 0x8>;
		avdd-pll-uerefe-supply = <0x3e>;
		hvddio-pex-supply = <0x36>;
		dvddio-pex-supply = <0x3f>;
		dvdd-pex-pll-supply = <0x3f>;
		hvdd-pex-pll-e-supply = <0x36>;
		vddio-pex-ctl-supply = <0x36>;

		pci@1,0 {
			device_type = "pci";
			assigned-addresses = <0x82000800 0x0 0x1000000 0x0 0x1000>;
			reg = <0x800 0x0 0x0 0x0 0x0>;
			status = "okay";
			#address-cells = <0x3>;
			#size-cells = <0x2>;
			ranges;
			nvidia,num-lanes = <0x4>;
			nvidia,afi-ctl-offset = <0x110>;
			nvidia,disable-aspm-states = <0xf>;
			phys = <0x81 0x82 0x83 0x84>;
			phy-names = "pcie-0", "pcie-1", "pcie-2", "pcie-3";
		};

		pci@2,0 {
			device_type = "pci";
			assigned-addresses = <0x82001000 0x0 0x1001000 0x0 0x1000>;
			reg = <0x1000 0x0 0x0 0x0 0x0>;
			status = "okay";
			#address-cells = <0x3>;
			#size-cells = <0x2>;
			ranges;
			nvidia,num-lanes = <0x1>;
			nvidia,afi-ctl-offset = <0x118>;
			nvidia,disable-aspm-states = <0xf>;
			phys = <0x85>;
			phy-names = "pcie-0";
			nvidia,plat-gpios = <0x56 0xbb 0x0>;
			linux,phandle = <0xc6>;
			phandle = <0xc6>;

			ethernet@0,0 {
				reg = <0x0 0x0 0x0 0x0 0x0>;
				linux,phandle = <0xd4>;
				phandle = <0xd4>;
			};
		};

		prod-settings {
			#prod-cells = <0x3>;

			prod_c_pad {
				prod = <0xc8 0xffffffff 0x90b890b8>;
			};

			prod_c_rp {
				prod = <0xe84 0xffff 0xf 0xea4 0xffff 0x8f 0xe90 0xffffffff 0x55010000 0xe94 0xffffffff 0x1 0xeb0 0xffffffff 0x55010000 0xeb4 0xffffffff 0x1 0xe8c 0xffff0000 0x670000 0xeac 0xffff0000 0xc70000>;
			};
		};
	};

	i2c@7000c000 {
		#address-cells = <0x1>;
		#size-cells = <0x0>;
		compatible = "nvidia,tegra210-i2c";
		reg = <0x0 0x7000c000 0x0 0x100>;
		interrupts = <0x0 0x26 0x4>;
		iommus = <0x2b 0xe>;
		status = "okay";
		clock-frequency = <0x61a80>;
		dmas = <0x4c 0x15 0x4c 0x15>;
		dma-names = "rx", "tx";
		clocks = <0x21 0xc 0x21 0xf3>;
		clock-names = "div-clk", "parent";
		resets = <0x21 0xc>;
		reset-names = "i2c";
		linux,phandle = <0xab>;
		phandle = <0xab>;

		temp-sensor@4c {
			#thermal-sensor-cells = <0x1>;
			compatible = "ti,tmp451";
			reg = <0x4c>;
			sensor-name = "tegra";
			supported-hwrev = <0x1>;
			offset = <0x0>;
			conv-rate = <0x6>;
			extended-rage = <0x1>;
			interrupt-parent = <0x56>;
			interrupts = <0xbc 0x8>;
			vdd-supply = <0x36>;
			temp-alert-gpio = <0x56 0xbc 0x0>;
			status = "disabled";
			linux,phandle = <0x117>;
			phandle = <0x117>;

			loc {
				shutdown-limit = <0x78>;
			};

			ext {
				shutdown-limit = <0x69>;
			};
		};
	};

	i2c@7000c400 {
		#address-cells = <0x1>;
		#size-cells = <0x0>;
		compatible = "nvidia,tegra210-i2c";
		reg = <0x0 0x7000c400 0x0 0x100>;
		interrupts = <0x0 0x54 0x4>;
		iommus = <0x2b 0xe>;
		status = "okay";
		clock-frequency = <0x186a0>;
		dmas = <0x4c 0x16 0x4c 0x16>;
		dma-names = "rx", "tx";
		clocks = <0x21 0x36 0x21 0xf3>;
		clock-names = "div-clk", "parent";
		resets = <0x21 0x36>;
		reset-names = "i2c";
		linux,phandle = <0x118>;
		phandle = <0x118>;

		i2cmux@70 {
			compatible = "nxp,pca9546";
			reg = <0x70>;
			#address-cells = <0x1>;
			#size-cells = <0x0>;
			vcc-supply = <0x47>;
			vcc-pullup-supply = <0x47>;
			status = "disabled";
			linux,phandle = <0xd5>;
			phandle = <0xd5>;

			i2c@0 {
				reg = <0x0>;
				i2c-mux,deselect-on-exit;
				#address-cells = <0x1>;
				#size-cells = <0x0>;
			};

			i2c@1 {
				reg = <0x1>;
				i2c-mux,deselect-on-exit;
				#address-cells = <0x1>;
				#size-cells = <0x0>;

				ina3221x@40 {
					compatible = "ti,ina3221x";
					reg = <0x40>;
					ti,trigger-config = <0x7003>;
					ti,continuous-config = <0x7c07>;
					ti,enable-forced-continuous;
					#address-cells = <0x1>;
					#size-cells = <0x0>;

					channel@0 {
						reg = <0x0>;
						ti,rail-name = "VDD_5V";
						ti,shunt-resistor-mohm = <0xa>;
					};

					channel@1 {
						reg = <0x1>;
						ti,rail-name = "VDD_3V3";
						ti,shunt-resistor-mohm = <0xa>;
					};

					channel@2 {
						reg = <0x2>;
						ti,rail-name = "VDD_1V8";
						ti,shunt-resistor-mohm = <0x1>;
					};
				};

				ina3221x@41 {
					compatible = "ti,ina3221x";
					reg = <0x41>;
					ti,trigger-config = <0x7003>;
					ti,continuous-config = <0x7c07>;
					ti,enable-forced-continuous;
					#address-cells = <0x1>;
					#size-cells = <0x0>;

					channel@0 {
						reg = <0x0>;
						ti,rail-name = "VDD_5V_AUD";
						ti,shunt-resistor-mohm = <0x1>;
					};

					channel@1 {
						reg = <0x1>;
						ti,rail-name = "VDD_3V3_AUD";
						ti,shunt-resistor-mohm = <0xa>;
					};

					channel@2 {
						reg = <0x2>;
						ti,rail-name = "VDD_1V8_AUD";
						ti,shunt-resistor-mohm = <0xa>;
					};
				};

				ina3221x@42 {
					compatible = "ti,ina3221x";
					reg = <0x42>;
					ti,trigger-config = <0x7003>;
					ti,continuous-config = <0x7c07>;
					ti,enable-forced-continuous;
					#address-cells = <0x1>;
					#size-cells = <0x0>;

					channel@0 {
						reg = <0x0>;
						ti,rail-name = "VDD_3V3_GPS";
						ti,shunt-resistor-mohm = <0xa>;
					};

					channel@1 {
						reg = <0x1>;
						ti,rail-name = "VDD_3V3_NFC";
						ti,shunt-resistor-mohm = <0xa>;
					};

					channel@2 {
						reg = <0x2>;
						ti,rail-name = "VDD_3V3_GYRO";
						ti,shunt-resistor-mohm = <0xa>;
					};
				};
			};

			i2c@2 {
				reg = <0x2>;
				i2c-mux,deselect-on-exit;
				#address-cells = <0x1>;
				#size-cells = <0x0>;
			};

			i2c@3 {
				reg = <0x3>;
				i2c-mux,deselect-on-exit;
				#address-cells = <0x1>;
				#size-cells = <0x0>;

				rt5659.12-001a@1a {
					compatible = "realtek,rt5658";
					reg = <0x1a>;
					status = "disabled";
					gpios = <0x56 0xe 0x0>;
					realtek,jd-src = <0x1>;
					realtek,dmic1-data-pin = <0x2>;
					linux,phandle = <0xdd>;
					phandle = <0xdd>;
				};
			};
		};

		gpio@20 {
			compatible = "ti,tca6416";
			reg = <0x20>;
			gpio-controller;
			#gpio-cells = <0x2>;
			vcc-supply = <0x47>;
			status = "disabled";
			linux,phandle = <0xd6>;
			phandle = <0xd6>;
		};

		icm20628@68 {
			compatible = "invensense,mpu6xxx";
			reg = <0x68>;
			interrupt-parent = <0x56>;
			interrupts = <0xc8 0x1>;
			accelerometer_matrix = [01 00 00 00 01 00 00 00 01];
			gyroscope_matrix = [01 00 00 00 01 00 00 00 01];
			geomagnetic_rotation_vector_disable = <0x1>;
			gyroscope_uncalibrated_disable = <0x1>;
			quaternion_disable = <0x1>;
			status = "disabled";
			linux,phandle = <0xd7>;
			phandle = <0xd7>;
		};

		ak8963@0d {
			compatible = "ak,ak89xx";
			reg = <0xd>;
			magnetic_field_matrix = [01 00 00 00 01 00 00 00 01];
			status = "disabled";
			linux,phandle = <0xd8>;
			phandle = <0xd8>;
		};

		cm32180@48 {
			compatible = "capella,cm32180";
			reg = <0x48>;
			gpio_irq = <0x56 0xc 0x1>;
			light_uncalibrated_lo = <0x1>;
			light_calibrated_lo = <0x96>;
			light_uncalibrated_hi = <0x17318>;
			light_calibrated_hi = <0x1ab3f0>;
			status = "disabled";
			linux,phandle = <0xd9>;
			phandle = <0xd9>;
		};

		iqs263@44 {
			status = "disabled";
			linux,phandle = <0x119>;
			phandle = <0x119>;
		};

		rt5659.1-001a@1a {
			compatible = "realtek,rt5658";
			reg = <0x1a>;
			status = "disabled";
			gpios = <0x56 0xe 0x0>;
			realtek,jd-src = <0x1>;
			realtek,dmic1-data-pin = <0x2>;
			linux,phandle = <0xdc>;
			phandle = <0xdc>;
		};
	};

	i2c@7000c500 {
		#address-cells = <0x1>;
		#size-cells = <0x0>;
		compatible = "nvidia,tegra210-i2c";
		reg = <0x0 0x7000c500 0x0 0x100>;
		interrupts = <0x0 0x5c 0x4>;
		iommus = <0x2b 0xe>;
		status = "okay";
		clock-frequency = <0x61a80>;
		dmas = <0x4c 0x17 0x4c 0x17>;
		dma-names = "rx", "tx";
		clocks = <0x21 0x43 0x21 0xf3>;
		clock-names = "div-clk", "parent";
		resets = <0x21 0x43>;
		reset-names = "i2c";
		linux,phandle = <0xac>;
		phandle = <0xac>;

		battery-charger@6b {
			status = "disabled";
		};
	};

	i2c@7000c700 {
		#address-cells = <0x1>;
		#size-cells = <0x0>;
		compatible = "nvidia,tegra210-i2c";
		reg = <0x0 0x7000c700 0x0 0x100>;
		interrupts = <0x0 0x78 0x4>;
		iommus = <0x2b 0xe>;
		status = "okay";
		clock-frequency = <0x186a0>;
		dmas = <0x4c 0x1a 0x4c 0x1a>;
		dma-names = "rx", "tx";
		clocks = <0x21 0x67 0x21 0xf3>;
		clock-names = "div-clk", "parent";
		resets = <0x21 0x67>;
		reset-names = "i2c";
		nvidia,restrict-clk-change;
		print-rate-limit = <0x78 0x1>;
		linux,phandle = <0x71>;
		phandle = <0x71>;
	};

	i2c@7000d000 {
		#address-cells = <0x1>;
		#size-cells = <0x0>;
		compatible = "nvidia,tegra210-i2c";
		reg = <0x0 0x7000d000 0x0 0x100>;
		interrupts = <0x0 0x35 0x4>;
		scl-gpio = <0x56 0xc3 0x0>;
		sda-gpio = <0x56 0xc4 0x0>;
		nvidia,require-cldvfs-clock;
		iommus = <0x2b 0xe>;
		status = "okay";
		clock-frequency = <0xf4240>;
		dmas = <0x4c 0x18 0x4c 0x18>;
		dma-names = "rx", "tx";
		clocks = <0x21 0x2f 0x21 0xf3>;
		clock-names = "div-clk", "parent";
		resets = <0x21 0x2f>;
		reset-names = "i2c";
		nvidia,bit-bang-after-shutdown;
		linux,phandle = <0x11a>;
		phandle = <0x11a>;

		max77620@3c {
			compatible = "maxim,max77620";
			reg = <0x3c>;
			interrupts = <0x0 0x56 0x0>;
			nvidia,pmc-wakeup = <0x37 0x1 0x33 0x8>;
			#interrupt-cells = <0x2>;
			interrupt-controller;
			gpio-controller;
			#gpio-cells = <0x2>;
			maxim,enable-clock32k-out;
			maxim,system-pmic-power-off;
			maxim,hot-die-threshold-temp = <0x1adb0>;
			#thermal-sensor-cells = <0x0>;
			pinctrl-names = "default";
			pinctrl-0 = <0x86>;
			maxim,power-shutdown-gpio-states = <0x1 0x0>;
			linux,phandle = <0x1e>;
			phandle = <0x1e>;

			pinmux@0 {
				linux,phandle = <0x86>;
				phandle = <0x86>;

				pin_gpio0 {
					pins = "gpio0";
					function = "gpio";
				};

				pin_gpio1 {
					pins = "gpio1";
					function = "gpio";
					drive-open-drain = <0x1>;
					maxim,active-fps-source = <0x3>;
					maxim,active-fps-power-up-slot = <0x0>;
					maxim,active-fps-power-down-slot = <0x7>;
				};

				pin_gpio2 {
					pins = "gpio2";
					maxim,active-fps-source = <0x0>;
					maxim,active-fps-power-up-slot = <0x0>;
					maxim,active-fps-power-down-slot = <0x7>;
				};

				pin_gpio3 {
					pins = "gpio3";
					maxim,active-fps-source = <0x0>;
					maxim,active-fps-power-up-slot = <0x4>;
					maxim,active-fps-power-down-slot = <0x3>;
				};

				pin_gpio2_3 {
					pins = "gpio2", "gpio3";
					function = "fps-out";
					drive-open-drain = <0x1>;
					maxim,active-fps-source = <0x0>;
				};

				pin_gpio4 {
					pins = "gpio4";
					function = "32k-out1";
				};

				pin_gpio5_6_7 {
					pins = "gpio5", "gpio6", "gpio7";
					function = "gpio";
					drive-push-pull = <0x1>;
				};
			};

			spmic-default-output-high {
				gpio-hog;
				output-high;
				gpios = <0x1 0x0>;
				label = "spmic-default-output-high";
			};

			watchdog {
				maxim,wdt-timeout = <0x10>;
				maxim,wdt-clear-time = <0xd>;
				status = "disabled";
				dt-override-status-odm-data = <0x20000 0x20000>;
				linux,phandle = <0xb6>;
				phandle = <0xb6>;
			};

			fps {
				#address-cells = <0x1>;
				#size-cells = <0x0>;

				fps0 {
					reg = <0x0>;
					maxim,shutdown-fps-time-periodi-us = <0x500>;
					maxim,fps-event-source = <0x0>;
				};

				fps1 {
					reg = <0x1>;
					maxim,shutdown-fps-time-period-us = <0x500>;
					maxim,fps-event-source = <0x1>;
					maxim,device-state-on-disabled-event = <0x0>;
				};

				fps2 {
					reg = <0x2>;
					maxim,fps-event-source = <0x0>;
				};
			};

			backup-battery {
				maxim,backup-battery-charging-current = <0x64>;
				maxim,backup-battery-charging-voltage = <0x2dc6c0>;
				maxim,backup-battery-output-resister = <0x64>;
			};

			regulators {
				in-ldo0-1-supply = <0x87>;
				in-ldo7-8-supply = <0x87>;

				sd0 {
					regulator-name = "vdd-core";
					regulator-min-microvolt = <0xf4240>;
					regulator-max-microvolt = <0x11da50>;
					regulator-boot-on;
					regulator-always-on;
					maxim,active-fps-source = <0x1>;
					regulator-init-mode = <0x2>;
					maxim,active-fps-power-up-slot = <0x1>;
					maxim,active-fps-power-down-slot = <0x6>;
					regulator-enable-ramp-delay = <0x92>;
					regulator-disable-ramp-delay = <0xff0>;
					regulator-ramp-delay = <0x6b6c>;
					regulator-ramp-delay-scale = <0x12c>;
					linux,phandle = <0xa1>;
					phandle = <0xa1>;
				};

				sd1 {
					regulator-name = "vdd-ddr-1v1";
					regulator-always-on;
					regulator-boot-on;
					regulator-init-mode = <0x2>;
					maxim,active-fps-source = <0x0>;
					maxim,active-fps-power-up-slot = <0x5>;
					maxim,active-fps-power-down-slot = <0x2>;
					regulator-min-microvolt = <0x118c30>;
					regulator-max-microvolt = <0x118c30>;
					regulator-enable-ramp-delay = <0x82>;
					regulator-disable-ramp-delay = <0x23988>;
					regulator-ramp-delay = <0x6b6c>;
					regulator-ramp-delay-scale = <0x12c>;
					linux,phandle = <0x11b>;
					phandle = <0x11b>;
				};

				sd2 {
					regulator-name = "vdd-pre-reg-1v35";
					regulator-min-microvolt = <0x149970>;
					regulator-max-microvolt = <0x149970>;
					regulator-always-on;
					regulator-boot-on;
					maxim,active-fps-source = <0x1>;
					maxim,active-fps-power-up-slot = <0x2>;
					maxim,active-fps-power-down-slot = <0x5>;
					regulator-enable-ramp-delay = <0xb0>;
					regulator-disable-ramp-delay = <0x7d00>;
					regulator-ramp-delay = <0x6b6c>;
					regulator-ramp-delay-scale = <0x15e>;
					linux,phandle = <0x87>;
					phandle = <0x87>;
				};

				sd3 {
					regulator-name = "vdd-1v8";
					regulator-min-microvolt = <0x1b7740>;
					regulator-max-microvolt = <0x1b7740>;
					regulator-always-on;
					regulator-boot-on;
					maxim,active-fps-source = <0x0>;
					regulator-init-mode = <0x2>;
					maxim,active-fps-power-up-slot = <0x3>;
					maxim,active-fps-power-down-slot = <0x4>;
					regulator-enable-ramp-delay = <0xf2>;
					regulator-disable-ramp-delay = <0x1ccf0>;
					regulator-ramp-delay = <0x6b6c>;
					regulator-ramp-delay-scale = <0x168>;
					linux,phandle = <0x36>;
					phandle = <0x36>;
				};

				ldo0 {
					regulator-name = "avdd-sys-1v2";
					regulator-min-microvolt = <0x124f80>;
					regulator-max-microvolt = <0x124f80>;
					regulator-boot-on;
					maxim,active-fps-source = <0x3>;
					maxim,active-fps-power-up-slot = <0x0>;
					maxim,active-fps-power-down-slot = <0x7>;
					regulator-enable-ramp-delay = <0x1a>;
					regulator-disable-ramp-delay = <0x272>;
					regulator-ramp-delay = <0x186a0>;
					regulator-ramp-delay-scale = <0xc8>;
					linux,phandle = <0x3d>;
					phandle = <0x3d>;
				};

				ldo1 {
					regulator-name = "vdd-pex-1v0";
					regulator-min-microvolt = <0x100590>;
					regulator-max-microvolt = <0x100590>;
					regulator-always-on;
					maxim,active-fps-source = <0x3>;
					maxim,active-fps-power-up-slot = <0x0>;
					maxim,active-fps-power-down-slot = <0x7>;
					regulator-enable-ramp-delay = <0x16>;
					regulator-disable-ramp-delay = <0x276>;
					regulator-ramp-delay = <0x186a0>;
					regulator-ramp-delay-scale = <0xc8>;
					linux,phandle = <0x3f>;
					phandle = <0x3f>;
				};

				ldo2 {
					regulator-name = "vddio-sdmmc-ap";
					regulator-min-microvolt = <0x1b7740>;
					regulator-max-microvolt = <0x325aa0>;
					maxim,active-fps-source = <0x3>;
					maxim,active-fps-power-up-slot = <0x0>;
					maxim,active-fps-power-down-slot = <0x7>;
					regulator-enable-ramp-delay = <0x3e>;
					regulator-disable-ramp-delay = <0x28a>;
					regulator-ramp-delay = <0x186a0>;
					regulator-ramp-delay-scale = <0xc8>;
					linux,phandle = <0x98>;
					phandle = <0x98>;
				};

				ldo3 {
					regulator-name = "vdd-ldo3";
					regulator-min-microvolt = <0x2ab980>;
					regulator-max-microvolt = <0x2ab980>;
					maxim,active-fps-source = <0x3>;
					maxim,active-fps-power-up-slot = <0x0>;
					maxim,active-fps-power-down-slot = <0x7>;
					regulator-enable-ramp-delay = <0x32>;
					regulator-disable-ramp-delay = <0x456>;
					regulator-ramp-delay = <0x186a0>;
					regulator-ramp-delay-scale = <0xc8>;
					status = "disabled";
					linux,phandle = <0x11c>;
					phandle = <0x11c>;
				};

				ldo4 {
					regulator-name = "vdd-rtc";
					regulator-min-microvolt = <0xcf850>;
					regulator-max-microvolt = <0x10c8e0>;
					regulator-always-on;
					regulator-boot-on;
					maxim,active-fps-source = <0x0>;
					maxim,active-fps-power-up-slot = <0x1>;
					maxim,active-fps-power-down-slot = <0x6>;
					regulator-enable-ramp-delay = <0x16>;
					regulator-disable-ramp-delay = <0x262>;
					regulator-ramp-delay = <0x186a0>;
					regulator-ramp-delay-scale = <0xc8>;
					regulator-disable-active-discharge;
					linux,phandle = <0x11d>;
					phandle = <0x11d>;
				};

				ldo5 {
					regulator-name = "vdd-ldo5";
					regulator-min-microvolt = <0x325aa0>;
					regulator-max-microvolt = <0x325aa0>;
					maxim,active-fps-source = <0x3>;
					maxim,active-fps-power-up-slot = <0x0>;
					maxim,active-fps-power-down-slot = <0x7>;
					regulator-enable-ramp-delay = <0x3e>;
					regulator-disable-ramp-delay = <0x280>;
					regulator-ramp-delay = <0x186a0>;
					regulator-ramp-delay-scale = <0xc8>;
					status = "disabled";
					linux,phandle = <0x57>;
					phandle = <0x57>;
				};

				ldo6 {
					regulator-name = "vddio-sdmmc3-ap";
					regulator-min-microvolt = <0x1b7740>;
					regulator-max-microvolt = <0x325aa0>;
					regulator-boot-on;
					maxim,active-fps-source = <0x3>;
					maxim,active-fps-power-up-slot = <0x0>;
					maxim,active-fps-power-down-slot = <0x7>;
					regulator-enable-ramp-delay = <0x24>;
					regulator-disable-ramp-delay = <0x2a2>;
					regulator-ramp-delay = <0x186a0>;
					regulator-ramp-delay-scale = <0xc8>;
					linux,phandle = <0x58>;
					phandle = <0x58>;
				};

				ldo7 {
					regulator-name = "avdd-1v05-pll";
					regulator-min-microvolt = <0x100590>;
					regulator-max-microvolt = <0x100590>;
					regulator-always-on;
					regulator-boot-on;
					maxim,active-fps-source = <0x1>;
					maxim,active-fps-power-up-slot = <0x3>;
					maxim,active-fps-power-down-slot = <0x4>;
					regulator-enable-ramp-delay = <0x18>;
					regulator-disable-ramp-delay = <0xad0>;
					regulator-ramp-delay = <0x186a0>;
					regulator-ramp-delay-scale = <0xc8>;
					linux,phandle = <0x3e>;
					phandle = <0x3e>;
				};

				ldo8 {
					regulator-name = "avdd-io-hdmi-dp";
					regulator-min-microvolt = <0x100590>;
					regulator-max-microvolt = <0x100590>;
					regulator-boot-on;
					regulator-always-on;
					maxim,active-fps-source = <0x1>;
					maxim,active-fps-power-up-slot = <0x6>;
					maxim,active-fps-power-down-slot = <0x1>;
					regulator-enable-ramp-delay = <0x16>;
					regulator-disable-ramp-delay = <0x488>;
					regulator-ramp-delay = <0x186a0>;
					regulator-ramp-delay-scale = <0xc8>;
					linux,phandle = <0x40>;
					phandle = <0x40>;
				};
			};

			low-battery-monitor {
				maxim,low-battery-shutdown-enable;
			};
		};
	};

	i2c@7000d100 {
		#address-cells = <0x1>;
		#size-cells = <0x0>;
		compatible = "nvidia,tegra210-i2c";
		reg = <0x0 0x7000d100 0x0 0x100>;
		interrupts = <0x0 0x3f 0x4>;
		iommus = <0x2b 0xe>;
		status = "okay";
		clock-frequency = <0x61a80>;
		dmas = <0x4c 0x1e 0x4c 0x1e>;
		dma-names = "rx", "tx";
		clocks = <0x21 0xa6 0x21 0xf3>;
		clock-names = "div-clk", "parent";
		resets = <0x21 0xa6>;
		reset-names = "i2c";
		linux,phandle = <0x11e>;
		phandle = <0x11e>;
	};

	sdhci@700b0600 {
		compatible = "nvidia,tegra210-sdhci";
		reg = <0x0 0x700b0600 0x0 0x200>;
		interrupts = <0x0 0x1f 0x4>;
		aux-device-name = "sdhci-tegra.3";

3,566 lines not shown · raw message

11,715 lines not shown · raw message

Part of this message is not shown here. View the raw message.

#13 lore raw
Quoted 11 lines · On Wed, 29 Jul 2020, [email protected] wrote:

Hi Julien,

Quoted 7 lines · Julien Grall

On 24/07/2020 16:01, Srinivas Bangalore wrote:

I struggled to find your comment inline as your e-mail client doesn't quote my answer. Please configure your e-mail client to use some form of quoting (the usual is '>').

I have switched to a web-based email client, so I hope this is better now.

Seems better, thank you

Quoted 132 lines
Quoted 25 lines
Quoted 11 lines

(XEN) Freed 296kB init memory. (XEN) dom0 IPA 0x0000000088080000 (XEN) P2M @ 0000000803fc3d40 mfn:0x17f0f5 (XEN) 0TH[0x0] = 0x004000017f0f377f (XEN) 1ST[0x2] = 0x02c00000800006fd (XEN) Mem access check
(XEN) dom0 IPA 0x0000000088080000 (XEN) P2M @ 0000000803fc3d40 mfn:0x17f0f5 (XEN) 0TH[0x0] = 0x004000017f0f377f (XEN) 1ST[0x2] = 0x02c00000800006fd (XEN) Mem access check

The instruction abort issue looks normal as the mapping is marked as non-executable.

Looking at the rest of bits, bits 55:58 indicates the type of mapping used. The value suggest the mapping has been considered to be used p2m_mmio_direct_c (RW cacheable MMIO). This looks wrong to me because RAM should be mapped using p2m_ram_rw.

Looking at your DT, it looks like the region is marked as reserved. On Xen 4.8, reserved-memory region are not correctly handled (IIRC this was only fixed in Xen 4.13). This should be possible to confirm by enable CONFIG_DEVICE_TREE_DEBUG in your .config.

Quoted 8 lines

The option will debug more information about the mapping to dom0 on your console.

However, given you are using an old release, you are at risk at keep finding bugs that have been resolved in more recent releases. It would probably better if you switch to Xen 4.14 and report any bug you can find there.

Ok. I applied to patch series to 4.14. Enabled EARLY_PRINTK, CONFIG_DEBUG and DEVICE_TREE_DEBUG.
Here's the log...

## Flattened Device Tree blob at e3500000
Booting using the fdt blob at 0xe3500000
reserving fdt memory region: addr=80000000 size=20000 reserving fdt memory region: addr=e3500000 size=35000 Loading Device Tree to 00000000fc7f8000, end 00000000fc82ffff ... OK

Starting kernel ...

- UART enabled -
- Boot CPU booting -
- Current EL 00000008 -
- Initialize CPU -
- Turning on paging -
- Zero BSS -
- Ready -
(XEN) Invalid size for reg
(XEN) fdt: node `reserved-memory': parsing failed (XEN)
(XEN) MODULE[0]: 00000000e0000000 - 00000000e014b0c8 Xen (XEN) MODULE[1]: 00000000fc7f8000 - 00000000fc82d000 Device Tree

(XEN)  RESVD[0]: 0000000080000000 - 0000000080020000
(XEN)  RESVD[1]: 00000000e3500000 - 00000000e3535000
(XEN)  RESVD[2]: 00000000fc7f8000 - 00000000fc82d000
(XEN)  RESVD[3]: 0000000040001000 - 000000004003ffff
(XEN)  RESVD[4]: 00000000b0000000 - 00000000b01fffff

(XEN)
(XEN)
(XEN) Command line: console=dtuart sync_console dom0_mem=128M loglvl=debug guest_loglvl=debug console_to_ring
(XEN) Xen BUG at page_alloc.c:398
(XEN) ----[ Xen-4.14.0 arm64 debug=y Not tainted ]----

(XEN) CPU:    0
(XEN) PC:     00000000002b7b90 alloc_boot_pages+0x38/0x9c
(XEN) LR:     00000000002cda04
(XEN) SP:     0000000000307d40
(XEN) CPSR:   a00003c9 MODE:64-bit EL2h (Hypervisor, handler)
(XEN)      X0: 000fc80000002000  X1: 0000000000002000  X2: 0000000000000000
(XEN)      X3: 000fffffffffffff  X4: ffffffffffffffff  X5: 0000000000000000
(XEN)      X6: 0000000000307df0  X7: 0000000000000003  X8: 0000000000000008
(XEN)      X9: fffffffffffffffb X10: 0101010101010101 X11: 0000000000000007
(XEN)     X12: 0000000000000004 X13: ffffffffffffffff X14: ffffffffff000000
(XEN)     X15: ffffffffffffffff X16: 0000000000000000 X17: 0000000000000000
(XEN)     X18: 00000000fc834dd0 X19: 00000000002b5000 X20: 00000000fc7f8000
(XEN)     X21: 00000000fc7f8000 X22: 0000000000000000 X23: fc80000000000038
(XEN)     X24: 00000000fed9de28 X25: ffffffffffffffff X26: fc80000002000000
(XEN)     X27: 0000000002000000 X28: 0000000000000000  FP: 0000000000307d40

(XEN)
(XEN) VTCR_EL2: 80000000
(XEN) VTTBR_EL2: 0000000000000000
(XEN)
(XEN) SCTLR_EL2: 30cd183d
(XEN) HCR_EL2: 0000000000000038
(XEN) TTBR0_EL2: 00000000e0145000
(XEN)
(XEN) ESR_EL2: f2000001
(XEN) HPFAR_EL2: 0000000000000000
(XEN) FAR_EL2: 0000000000000000
(XEN)
(XEN) Xen stack trace from sp=0000000000307d40:

(XEN)    0000000000307df0 00000000002cf114 0000000000000000 0000000000307d68
(XEN)    00000000fc7f8000 00000000002ceeb0 0000000000400000 00676e69725f6f74
(XEN)    ffffffffffffffff 0000000000000000 0000000000000000 0000000000307df0
(XEN)    0000000000307df0 00000000002cef58 000000003fffffff 00000000fc7f8000
(XEN)    00000000fc7f8000 000fc80000002000 0000000000400000 0080000000000000
(XEN)    0000000000000000 000000000003ffff 00000000fc831170 00000000002001b8
(XEN)    00000000e0000000 00000000dfe00000 00000000fc7f8000 0000000000000000
(XEN)    0000000000400000 00000000fed9de28 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000400 0000000000000000 0000000000035000
(XEN)    00000000fc7f8000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000300000000 0000000000000000 00000040ffffffff
(XEN)    00000000ffffffff 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN) Xen call trace:
(XEN)    [<00000000002b7b90>] alloc_boot_pages+0x38/0x9c (PC)
(XEN)    [<00000000002cda04>] setup_frametable_mappings+0xb4/0x310 (LR)
(XEN)    [<00000000002cf114>] start_xen+0x3a0/0xc48
(XEN)    [<00000000002001b8>] arm64/head.o#primary_switched+0x10/0x30

(XEN)
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Xen BUG at page_alloc.c:398
(XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...

Quoted 3 lines

There seems to be a problem with the DT in the 'reserved-memory' node. I commented out the fb0-carveout, fb1-carveout sections, recompiled and tried to boot again.

Yes, those reserved-memory nodes won't work correctly with Xen
unfortunately: they either use "size" instead of "reg" (vpr-carveout) or they specify "no-map". Only regular "reg" reserved memory regions without "no-map" are properly parsed by Xen at the moment.

Quoted 25 lines

This time the log shows the device tree messages (see attached log file), but Xen fails at this point...

(XEN) Allocating PPI 16 for event channel interrupt (XEN) Create hypervisor node
(XEN) Create PSCI node
(XEN) Create cpus node
(XEN) Create cpu@0 (logical CPUID: 0) node (XEN) Create cpu@1 (logical CPUID: 1) node (XEN) Create cpu@2 (logical CPUID: 2) node (XEN) Create cpu@3 (logical CPUID: 3) node (XEN) Create memory node (reg size 4, nr cells 4)
(XEN) Bank 0: 0xe8000000->0xf0000000
(XEN) Create memory node (reg size 4, nr cells 8)
(XEN) Bank 0: 0x40001000->0x40040000
(XEN) Bank 1: 0xb0000000->0xb0200000
(XEN) Loading zImage from 00000000e1000000 to 00000000e8080000-00000000ea23c808
(XEN)
(XEN) **************************************** (XEN) Panic on CPU 0:
(XEN) Unable to copy the kernel in the hwdom memory (XEN) **************************************** (XEN)

Quoted 2 lines

Device tree and log file attached. Is there an issue with the DT? Any pointers on where I should be looking next?

Is it possible that the kernel image was loaded on a memory area not recognized as ram?

So xen/arch/arm/guestcopy.c:translate_get_page fails the check p2m_is_ram?

That would happen for instance if a device or special node is also covering that address range.

#14 lore raw
Quoted 154 lines · Stefano Stabellini
Quoted 11 lines · On Wed, 29 Jul 2020, [email protected] wrote:

Hi Julien,

Quoted 7 lines · Julien Grall

On 24/07/2020 16:01, Srinivas Bangalore wrote:

I struggled to find your comment inline as your e-mail client doesn't quote my answer. Please configure your e-mail client to use some form of quoting (the usual is '>').

I have switched to a web-based email client, so I hope this is better now.

Seems better, thank you

Quoted 133 lines
Quoted 25 lines
Quoted 11 lines

(XEN) Freed 296kB init memory. (XEN) dom0 IPA 0x0000000088080000 (XEN) P2M @ 0000000803fc3d40 mfn:0x17f0f5 (XEN) 0TH[0x0] = 0x004000017f0f377f (XEN) 1ST[0x2] = 0x02c00000800006fd (XEN) Mem access check
(XEN) dom0 IPA 0x0000000088080000 (XEN) P2M @ 0000000803fc3d40 mfn:0x17f0f5 (XEN) 0TH[0x0] = 0x004000017f0f377f (XEN) 1ST[0x2] = 0x02c00000800006fd (XEN) Mem access check

The instruction abort issue looks normal as the mapping is marked as non-executable.

Looking at the rest of bits, bits 55:58 indicates the type of mapping used. The value suggest the mapping has been considered to be used p2m_mmio_direct_c (RW cacheable MMIO). This looks wrong to me because RAM should be mapped using p2m_ram_rw.

Looking at your DT, it looks like the region is marked as reserved. On Xen 4.8, reserved-memory region are not correctly handled (IIRC this was only fixed in Xen 4.13). This should be possible to confirm by enable CONFIG_DEVICE_TREE_DEBUG in your .config.

Quoted 8 lines

The option will debug more information about the mapping to dom0 on your console.

However, given you are using an old release, you are at risk at keep finding bugs that have been resolved in more recent releases. It would probably better if you switch to Xen 4.14 and report any bug you can find there.

Ok. I applied to patch series to 4.14. Enabled EARLY_PRINTK, CONFIG_DEBUG and DEVICE_TREE_DEBUG.
Here's the log...

## Flattened Device Tree blob at e3500000
Booting using the fdt blob at 0xe3500000
reserving fdt memory region: addr=80000000 size=20000 reserving fdt memory region: addr=e3500000 size=35000 Loading Device Tree to 00000000fc7f8000, end 00000000fc82ffff ...
OK

Starting kernel ...

- UART enabled -
- Boot CPU booting -
- Current EL 00000008 -
- Initialize CPU -
- Turning on paging -
- Zero BSS -
- Ready -
(XEN) Invalid size for reg
(XEN) fdt: node `reserved-memory': parsing failed (XEN)
(XEN) MODULE[0]: 00000000e0000000 - 00000000e014b0c8 Xen (XEN) MODULE[1]: 00000000fc7f8000 - 00000000fc82d000 Device Tree

(XEN)  RESVD[0]: 0000000080000000 - 0000000080020000
(XEN)  RESVD[1]: 00000000e3500000 - 00000000e3535000
(XEN)  RESVD[2]: 00000000fc7f8000 - 00000000fc82d000
(XEN)  RESVD[3]: 0000000040001000 - 000000004003ffff
(XEN)  RESVD[4]: 00000000b0000000 - 00000000b01fffff

(XEN)
(XEN)
(XEN) Command line: console=dtuart sync_console dom0_mem=128M loglvl=debug guest_loglvl=debug console_to_ring
(XEN) Xen BUG at page_alloc.c:398
(XEN) ----[ Xen-4.14.0 arm64 debug=y Not tainted ]----

(XEN) CPU:    0
(XEN) PC:     00000000002b7b90 alloc_boot_pages+0x38/0x9c
(XEN) LR:     00000000002cda04
(XEN) SP:     0000000000307d40
(XEN) CPSR:   a00003c9 MODE:64-bit EL2h (Hypervisor, handler)
(XEN)      X0: 000fc80000002000  X1: 0000000000002000  X2: 0000000000000000
(XEN)      X3: 000fffffffffffff  X4: ffffffffffffffff  X5: 0000000000000000
(XEN)      X6: 0000000000307df0  X7: 0000000000000003  X8: 0000000000000008
(XEN)      X9: fffffffffffffffb X10: 0101010101010101 X11: 0000000000000007
(XEN)     X12: 0000000000000004 X13: ffffffffffffffff X14: ffffffffff000000
(XEN)     X15: ffffffffffffffff X16: 0000000000000000 X17: 0000000000000000
(XEN)     X18: 00000000fc834dd0 X19: 00000000002b5000 X20: 00000000fc7f8000
(XEN)     X21: 00000000fc7f8000 X22: 0000000000000000 X23: fc80000000000038
(XEN)     X24: 00000000fed9de28 X25: ffffffffffffffff X26: fc80000002000000
(XEN)     X27: 0000000002000000 X28: 0000000000000000  FP: 0000000000307d40

(XEN)
(XEN) VTCR_EL2: 80000000
(XEN) VTTBR_EL2: 0000000000000000
(XEN)
(XEN) SCTLR_EL2: 30cd183d
(XEN) HCR_EL2: 0000000000000038
(XEN) TTBR0_EL2: 00000000e0145000
(XEN)
(XEN) ESR_EL2: f2000001
(XEN) HPFAR_EL2: 0000000000000000
(XEN) FAR_EL2: 0000000000000000
(XEN)
(XEN) Xen stack trace from sp=0000000000307d40:

(XEN)    0000000000307df0 00000000002cf114 0000000000000000 0000000000307d68
(XEN)    00000000fc7f8000 00000000002ceeb0 0000000000400000 00676e69725f6f74
(XEN)    ffffffffffffffff 0000000000000000 0000000000000000 0000000000307df0
(XEN)    0000000000307df0 00000000002cef58 000000003fffffff 00000000fc7f8000
(XEN)    00000000fc7f8000 000fc80000002000 0000000000400000 0080000000000000
(XEN)    0000000000000000 000000000003ffff 00000000fc831170 00000000002001b8
(XEN)    00000000e0000000 00000000dfe00000 00000000fc7f8000 0000000000000000
(XEN)    0000000000400000 00000000fed9de28 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000400 0000000000000000 0000000000035000
(XEN)    00000000fc7f8000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000300000000 0000000000000000 00000040ffffffff
(XEN)    00000000ffffffff 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN) Xen call trace:
(XEN)    [<00000000002b7b90>] alloc_boot_pages+0x38/0x9c (PC)
(XEN)    [<00000000002cda04>] setup_frametable_mappings+0xb4/0x310 (LR)
(XEN)    [<00000000002cf114>] start_xen+0x3a0/0xc48
(XEN)    [<00000000002001b8>] arm64/head.o#primary_switched+0x10/0x30

(XEN)
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Xen BUG at page_alloc.c:398
(XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...

Quoted 4 lines

There seems to be a problem with the DT in the 'reserved-memory' node.
I
commented out the fb0-carveout, fb1-carveout sections, recompiled and tried to boot again.

Quoted 6 lines

Yes, those reserved-memory nodes won't work correctly with Xen
unfortunately: they either use "size" instead of "reg" (vpr-carveout) or they specify "no-map". Only regular "reg" reserved memory regions without "no-map" are properly parsed by Xen at the moment.

I'll try to modify the nodes that use 'size and replace with 'reg'.

Quoted 26 lines
Quoted 26 lines

This time the log shows the device tree messages (see attached log file), but Xen fails at this point...

(XEN) Allocating PPI 16 for event channel interrupt (XEN) Create hypervisor node
(XEN) Create PSCI node
(XEN) Create cpus node
(XEN) Create cpu@0 (logical CPUID: 0) node (XEN) Create cpu@1 (logical CPUID: 1) node (XEN) Create cpu@2 (logical CPUID: 2) node (XEN) Create cpu@3 (logical CPUID: 3) node (XEN) Create memory node (reg size 4, nr cells 4)
(XEN) Bank 0: 0xe8000000->0xf0000000
(XEN) Create memory node (reg size 4, nr cells 8)
(XEN) Bank 0: 0x40001000->0x40040000
(XEN) Bank 1: 0xb0000000->0xb0200000
(XEN) Loading zImage from 00000000e1000000 to 00000000e8080000-00000000ea23c808
(XEN)
(XEN) **************************************** (XEN) Panic on CPU 0:
(XEN) Unable to copy the kernel in the hwdom memory (XEN) **************************************** (XEN)

Quoted 9 lines
Quoted 2 lines

Device tree and log file attached. Is there an issue with the DT? Any pointers on where I should be looking next?

Is it possible that the kernel image was loaded on a memory area not recognized as ram?

So xen/arch/arm/guestcopy.c:translate_get_page fails the check p2m_is_ram?

The failure happens before p2m_is_ram is called.
This line:
page = get_page_from_gfn(info.gpa.d, paddr_to_pfn(addr), &p2mt, P2M_ALLOC);

returns a NULL pointer.

Quoted 2 lines

That would happen for instance if a device or special node is also covering that address range.

Is there a way to check such conflicts?

Thanks,
Srini

#15 lore raw
Quoted 229 lines · On Thu, 30 Jul 2020, [email protected] wrote:
Quoted 186 lines · Stefano Stabellini
Quoted 11 lines · On Wed, 29 Jul 2020, [email protected] wrote:

Hi Julien,

Quoted 7 lines · Julien Grall

On 24/07/2020 16:01, Srinivas Bangalore wrote:

I struggled to find your comment inline as your e-mail client doesn't quote my answer. Please configure your e-mail client to use some form of quoting (the usual is '>').

I have switched to a web-based email client, so I hope this is better now.

Seems better, thank you

Quoted 165 lines
Quoted 25 lines
Quoted 11 lines

(XEN) Freed 296kB init memory. (XEN) dom0 IPA 0x0000000088080000 (XEN) P2M @ 0000000803fc3d40 mfn:0x17f0f5 (XEN) 0TH[0x0] = 0x004000017f0f377f (XEN) 1ST[0x2] = 0x02c00000800006fd (XEN) Mem access check
(XEN) dom0 IPA 0x0000000088080000 (XEN) P2M @ 0000000803fc3d40 mfn:0x17f0f5 (XEN) 0TH[0x0] = 0x004000017f0f377f (XEN) 1ST[0x2] = 0x02c00000800006fd (XEN) Mem access check

The instruction abort issue looks normal as the mapping is marked as non-executable.

Looking at the rest of bits, bits 55:58 indicates the type of mapping used. The value suggest the mapping has been considered to be used p2m_mmio_direct_c (RW cacheable MMIO). This looks wrong to me because RAM should be mapped using p2m_ram_rw.

Looking at your DT, it looks like the region is marked as reserved. On Xen 4.8, reserved-memory region are not correctly handled (IIRC this was only fixed in Xen 4.13). This should be possible to confirm by enable CONFIG_DEVICE_TREE_DEBUG in your .config.

Quoted 8 lines

The option will debug more information about the mapping to dom0 on your console.

However, given you are using an old release, you are at risk at keep finding bugs that have been resolved in more recent releases. It would probably better if you switch to Xen 4.14 and report any bug you can find there.

Ok. I applied to patch series to 4.14. Enabled EARLY_PRINTK, CONFIG_DEBUG and
DEVICE_TREE_DEBUG.
Here's the log...

## Flattened Device Tree blob at e3500000
Booting using the fdt blob at 0xe3500000
reserving fdt memory region: addr=80000000 size=20000 reserving fdt memory region: addr=e3500000 size=35000 Loading Device Tree to 00000000fc7f8000, end 00000000fc82ffff ... OK

Starting kernel ...

- UART enabled -
- Boot CPU booting -
- Current EL 00000008 -
- Initialize CPU -
- Turning on paging -
- Zero BSS -
- Ready -
(XEN) Invalid size for reg
(XEN) fdt: node `reserved-memory': parsing failed (XEN)
(XEN) MODULE[0]: 00000000e0000000 - 00000000e014b0c8 Xen (XEN) MODULE[1]: 00000000fc7f8000 - 00000000fc82d000 Device Tree

(XEN)  RESVD[0]: 0000000080000000 - 0000000080020000
(XEN)  RESVD[1]: 00000000e3500000 - 00000000e3535000
(XEN)  RESVD[2]: 00000000fc7f8000 - 00000000fc82d000
(XEN)  RESVD[3]: 0000000040001000 - 000000004003ffff
(XEN)  RESVD[4]: 00000000b0000000 - 00000000b01fffff

(XEN)
(XEN)
(XEN) Command line: console=dtuart sync_console dom0_mem=128M loglvl=debug guest_loglvl=debug console_to_ring
(XEN) Xen BUG at page_alloc.c:398
(XEN) ----[ Xen-4.14.0 arm64 debug=y Not tainted ]----

(XEN) CPU:    0
(XEN) PC:     00000000002b7b90 alloc_boot_pages+0x38/0x9c
(XEN) LR:     00000000002cda04
(XEN) SP:     0000000000307d40
(XEN) CPSR:   a00003c9 MODE:64-bit EL2h (Hypervisor, handler)

(XEN) X0: 000fc80000002000 X1: 0000000000002000 X2:
0000000000000000
(XEN) X3: 000fffffffffffff X4: ffffffffffffffff X5:
0000000000000000
(XEN) X6: 0000000000307df0 X7: 0000000000000003 X8:
0000000000000008
(XEN) X9: fffffffffffffffb X10: 0101010101010101 X11:
0000000000000007
(XEN) X12: 0000000000000004 X13: ffffffffffffffff X14:
ffffffffff000000
(XEN) X15: ffffffffffffffff X16: 0000000000000000 X17:
0000000000000000
(XEN) X18: 00000000fc834dd0 X19: 00000000002b5000 X20:
00000000fc7f8000
(XEN) X21: 00000000fc7f8000 X22: 0000000000000000 X23:
fc80000000000038
(XEN) X24: 00000000fed9de28 X25: ffffffffffffffff X26:
fc80000002000000
(XEN) X27: 0000000002000000 X28: 0000000000000000 FP:
0000000000307d40
(XEN)
(XEN) VTCR_EL2: 80000000
(XEN) VTTBR_EL2: 0000000000000000
(XEN)
(XEN) SCTLR_EL2: 30cd183d
(XEN) HCR_EL2: 0000000000000038
(XEN) TTBR0_EL2: 00000000e0145000
(XEN)
(XEN) ESR_EL2: f2000001
(XEN) HPFAR_EL2: 0000000000000000
(XEN) FAR_EL2: 0000000000000000
(XEN)
(XEN) Xen stack trace from sp=0000000000307d40:
(XEN) 0000000000307df0 00000000002cf114 0000000000000000
0000000000307d68
(XEN) 00000000fc7f8000 00000000002ceeb0 0000000000400000
00676e69725f6f74
(XEN) ffffffffffffffff 0000000000000000 0000000000000000
0000000000307df0
(XEN) 0000000000307df0 00000000002cef58 000000003fffffff
00000000fc7f8000
(XEN) 00000000fc7f8000 000fc80000002000 0000000000400000
0080000000000000
(XEN) 0000000000000000 000000000003ffff 00000000fc831170
00000000002001b8
(XEN) 00000000e0000000 00000000dfe00000 00000000fc7f8000
0000000000000000
(XEN) 0000000000400000 00000000fed9de28 0000000000000000
0000000000000000
(XEN) 0000000000000000 0000000000000400 0000000000000000
0000000000035000
(XEN) 00000000fc7f8000 0000000000000000 0000000000000000
0000000000000000
(XEN) 0000000000000000 0000000300000000 0000000000000000
00000040ffffffff
(XEN) 00000000ffffffff 0000000000000000 0000000000000000
0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000
0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000
0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000
0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000
0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000
0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000
0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000
0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000
0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000
0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000
0000000000000000
(XEN) Xen call trace:

(XEN)    [<00000000002b7b90>] alloc_boot_pages+0x38/0x9c (PC)
(XEN)    [<00000000002cda04>] setup_frametable_mappings+0xb4/0x310 (LR)
(XEN)    [<00000000002cf114>] start_xen+0x3a0/0xc48
(XEN)    [<00000000002001b8>] arm64/head.o#primary_switched+0x10/0x30

(XEN)
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Xen BUG at page_alloc.c:398
(XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...

Quoted 4 lines

There seems to be a problem with the DT in the 'reserved-memory' node. I commented out the fb0-carveout, fb1-carveout sections, recompiled and tried to
boot again.

Quoted 6 lines

Yes, those reserved-memory nodes won't work correctly with Xen
unfortunately: they either use "size" instead of "reg" (vpr-carveout) or they specify "no-map". Only regular "reg" reserved memory regions without "no-map" are properly parsed by Xen at the moment.

I'll try to modify the nodes that use 'size and replace with 'reg'.

Quoted 33 lines
Quoted 26 lines

This time the log shows the device tree messages (see attached log file), but Xen fails at this point...

(XEN) Allocating PPI 16 for event channel interrupt (XEN) Create hypervisor node
(XEN) Create PSCI node
(XEN) Create cpus node
(XEN) Create cpu@0 (logical CPUID: 0) node (XEN) Create cpu@1 (logical CPUID: 1) node (XEN) Create cpu@2 (logical CPUID: 2) node (XEN) Create cpu@3 (logical CPUID: 3) node (XEN) Create memory node (reg size 4, nr cells 4)
(XEN) Bank 0: 0xe8000000->0xf0000000
(XEN) Create memory node (reg size 4, nr cells 8)
(XEN) Bank 0: 0x40001000->0x40040000
(XEN) Bank 1: 0xb0000000->0xb0200000
(XEN) Loading zImage from 00000000e1000000 to 00000000e8080000-00000000ea23c808
(XEN)
(XEN) **************************************** (XEN) Panic on CPU 0:
(XEN) Unable to copy the kernel in the hwdom memory (XEN) **************************************** (XEN)

Quoted 3 lines

Device tree and log file attached. Is there an issue with the DT? Any pointers
on where I should be looking next?

Is it possible that the kernel image was loaded on a memory area not recognized as ram?

Quoted 8 lines
Quoted 3 lines

So xen/arch/arm/guestcopy.c:translate_get_page fails the check p2m_is_ram?

The failure happens before p2m_is_ram is called.
This line:
page = get_page_from_gfn(info.gpa.d, paddr_to_pfn(addr), &p2mt, P2M_ALLOC);

returns a NULL pointer.

Could you add a couple of printks to know exactly where it fails inside get_page_from_gfn? I imagine it would be somewhere in xen/arch/arm/p2m.c:p2m_get_page_from_gfn ?

Quoted 4 lines
Quoted 2 lines

That would happen for instance if a device or special node is also covering that address range.

Is there a way to check such conflicts?

Nothing automatic. I went through the DTS manually and couldn't spot any conflicts unfortunately.

On a different note, I noticed that you gave 128MB to Dom0 which is not much; I am saying that because sometimes when you don't give enough memory to dom0 you get similar errors. Note that it doesn't look like this is the source of the issue we are seeing here, but I thought it is worth mentioning.

Also to help with debugging, you might want to use an Image for Dom0, rather than a zImage, just to eliminate another potential source of issues.