ARM: tegra: add Tegra Note 7 device tree
Subsystems (3)
PATCH 1/1 ARM: tegra: add Tegra Note 7 device tree
Tegra Note 7 is a consumer tablet embedding a Tegra 4 SoC with 1GB RAM and a 720p panel.
The following features are enabled by this device tree: UART, eMMC, USB (needs external power), PMIC, backlight, DSI panel, keys.
SD card, HDMI, charger, self-powered USB, audio, wifi, bluetooth are not yet supported but might be by future patches (likely in that order).
Touch panel, sensors & cameras will probably never be supported.
Pinctrl is not set yet, as the bootloader-provided values allow us to use the currently supported hardware.
A default kernel command-line as well as initrd addresses are hardcoded to match the static values the bootloader is known to use. This allows booting from an appended DTB without having to alter it at boot time, since the bootloader has no Device Tree support.
---
DT for SHIELD (roth) is to follow, but I would like to get all reviews on this one first and apply them to SHIELD for a (hopefully) smooth submission.
SD card not working yet is quite weird. I am investigating this as well as HDMI, but would like to get this DT secured for 3.16 first and send the rest as incremental follow-up patches.
Thanks!
arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/tegra114-tn7.dts | 390 +++++++++++++++++++++++++++++++++++++ 2 files changed, 391 insertions(+) create mode 100644 arch/arm/boot/dts/tegra114-tn7.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -369,6 +369,7 @@ dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \ tegra30-cardhu-a02.dtb \ tegra30-cardhu-a04.dtb \ tegra114-dalmore.dtb \ + tegra114-tn7.dtb \ tegra124-jetson-tk1.dtb \ tegra124-venice2.dtb dtb-$(CONFIG_ARCH_U300) += ste-u300.dtb
arch/arm/boot/dts/tegra114-tn7.dts new file +390 -0
390 lines not on this page · raw message
Signature · 1 line
1.9.2
Quoted 10 lines · Alexandre Courbot
Tegra Note 7 is a consumer tablet embedding a Tegra 4 SoC with 1GB RAM and a 720p panel.
The following features are enabled by this device tree: UART, eMMC, USB (needs external power), PMIC, backlight, DSI panel, keys.
SD card, HDMI, charger, self-powered USB, audio, wifi, bluetooth are not yet supported but might be by future patches (likely in that order).
arch/arm/boot/dts/tegra114-tn7.dts line 12
Quoted 4 lines
arch/arm/boot/dts/tegra114-tn7.dts +3
-0+ chosen { + /* TN7's bootloader's arguments need to be overridden */ + bootargs = "console=ttyS0,115200n8 console=tty1 gpt cma=128M fbcon=rotate:2";
Do we still need the cma argument at all now? The default is now 64M in tegra_defconfig, and 128M seems quite large.
arch/arm/boot/dts/tegra114-tn7.dts line 42
Quoted 12 lines
arch/arm/boot/dts/tegra114-tn7.dts +12
-0+ host1x at 50000000 { + hdmi at 54280000 { + status = "okay"; + + hdmi-supply = <&vdd_5v0_hdmi>; + vdd-supply = <&vdd_3v3_hdmi>; + pll-supply = <&vdd_1v05_pll>; + + nvidia,ddc-i2c-bus = <&hdmi_ddc>; + nvidia,hpd-gpio = + <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>; + };
If HDMI doesn't work yet (per commit description), should we leave it out of the DT for now?
arch/arm/boot/dts/tegra114-tn7.dts line 61
Quoted 3 lines
arch/arm/boot/dts/tegra114-tn7.dts +3
-0+ serial at 70006300 { + status = "okay"; + };
Is there actually an accessible UART on the board? I guess this is for people lucky enough to have internal boards with the debug connector. If so, this is probably fine.
Quoted 10 lines · Stephen Warren
Quoted 8 lines · Alexandre Courbot
Tegra Note 7 is a consumer tablet embedding a Tegra 4 SoC with 1GB RAM and a 720p panel.
The following features are enabled by this device tree: UART, eMMC, USB (needs external power), PMIC, backlight, DSI panel, keys.
SD card, HDMI, charger, self-powered USB, audio, wifi, bluetooth are not yet supported but might be by future patches (likely in that order).
Quoted 8 lines
arch/arm/boot/dts/tegra114-tn7.dts line 12
Quoted 5 lines
arch/arm/boot/dts/tegra114-tn7.dts +3
-0+ chosen { + /* TN7's bootloader's arguments need to be overridden */ + bootargs = "console=ttyS0,115200n8 console=tty1 gpt cma=128M fbcon=rotate:2";Do we still need the cma argument at all now? The default is now 64M in
tegra_defconfig, and 128M seems quite large.
I have omitted that parameter and my TN7 seems to be happy about it, so removed as you suggested.
Quoted 16 lines
arch/arm/boot/dts/tegra114-tn7.dts line 42
Quoted 13 lines
arch/arm/boot/dts/tegra114-tn7.dts +12
-0+ host1x at 50000000 { + hdmi at 54280000 { + status = "okay"; + + hdmi-supply = <&vdd_5v0_hdmi>; + vdd-supply = <&vdd_3v3_hdmi>; + pll-supply = <&vdd_1v05_pll>; + + nvidia,ddc-i2c-bus = <&hdmi_ddc>; + nvidia,hpd-gpio = + <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>; + };If HDMI doesn't work yet (per commit description), should we leave it out of the DT for now?
Indeed.
Quoted 8 lines
arch/arm/boot/dts/tegra114-tn7.dts line 61
Quoted 4 lines
arch/arm/boot/dts/tegra114-tn7.dts +3
-0+ serial at 70006300 { + status = "okay"; + };Is there actually an accessible UART on the board? I guess this is for people lucky enough to have internal boards with the debug connector. If so, this is probably fine.
Yes, you need to rework your tablet to get access to a serial line. It is possible though, and as you mentioned the dev boards we use internally have this rework already which makes debugging much easier. I'd keep that one if you don't mind.
Thanks,
Alex.