ARM: tegra: basic support for NVIDIA SHIELD
Subsystems (4)
cover ARM: tegra: basic support for NVIDIA SHIELD
DT for SHIELD, hopefully in time for 3.16.
Almost everything we could enable at this stage is here. Only the DSI panel is still missing, I could not get it to work without workarounds for some reason. Will try to fix that and submit a fixup patch.
Without the panel working this DT is not so useful currently, but it would be great if we could at least validate it and secure it for 3.16, so panel support could make it during the -rc cycle.
Thanks,
Alex.
Alexandre Courbot (2):
ARM: tegra: joystick input in tegra_defconfig
ARM: tegra: add device tree for SHIELD
arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/tegra114-roth.dts | 1113 +++++++++++++++++++++++++++++++++++ arch/arm/configs/tegra_defconfig | 1 + 3 files changed, 1115 insertions(+) create mode 100644 arch/arm/boot/dts/tegra114-roth.dts
Signature · 1 line
1.9.2
PATCH 1/2 ARM: tegra: joystick input in tegra_defconfig
NVIDIA SHIELD embeds a USB controller. Compile the corresponding support as a module in tegra_defconfig.
--- arch/arm/configs/tegra_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/configs/tegra_defconfig +1 -0
@@ -114,6 +114,7 @@ CONFIG_USB_NET_SMSC95XX=y CONFIG_BRCMFMAC=m CONFIG_RT2X00=y CONFIG_RT2800USB=m +CONFIG_INPUT_JOYDEV=m CONFIG_INPUT_EVDEV=y CONFIG_KEYBOARD_GPIO=y CONFIG_KEYBOARD_TEGRA=y
Signature · 1 line
1.9.2
Re: [PATCH 1/2] ARM: tegra: joystick input in tegra_defconfig
Quoted 1 line · Alexandre Courbot
NVIDIA SHIELD embeds a USB controller. Compile the corresponding support
USB controller or USB joystick?
Quoted 1 line
as a module in
tegra_defconfig.
Why make this a module rather than built-in. Almost everything else in tegra_defconfig is built-in, except brcmfmac since it doesn't handle lack of firmware availability at probe time.
Re: [PATCH 1/2] ARM: tegra: joystick input in tegra_defconfig
Quoted 4 lines · Stephen Warren
Quoted 1 line · Alexandre Courbot
NVIDIA SHIELD embeds a USB controller. Compile the corresponding support
USB controller or USB joystick?
I understand this sounds like "EHCI controller" here. Will reword.
Quoted 6 lines
Quoted 2 lines
as a module in
tegra_defconfig.Why make this a module rather than built-in. Almost everything else in
tegra_defconfigis built-in, except brcmfmac since it doesn't handle lack of firmware availability at probe time.
Goal is to minimize the image size, especially since this is not a feature I expect to be used much outside of SHIELD. If you prefer it built-in, I'm fine with it too.
Thanks,
Alex.
Re: [PATCH 1/2] ARM: tegra: joystick input in tegra_defconfig
Quoted 5 lines · Alexandre Courbot
Quoted 4 lines · Stephen Warren
Quoted 2 lines · Alexandre Courbot
NVIDIA SHIELD embeds a USB controller. Compile the corresponding support as a module in
tegra_defconfig.
Quoted 7 lines
Quoted 3 lines
Why make this a module rather than built-in. Almost everything else in
tegra_defconfigis built-in, except brcmfmac since it doesn't handle lack of firmware availability at probe time.Goal is to minimize the image size, especially since this is not a feature I expect to be used much outside of SHIELD. If you prefer it built-in, I'm fine with it too.
Yes, built-in for everything makes most sense to me, except for code that doesn't actually work unless it's a module.
PATCH 2/2 ARM: tegra: add device tree for SHIELD
In reply to Alexandre CourbotNVIDIA SHIELD is a portable Android console embedded a Tegra 4 SoC with 2GB RAM and a 720p panel.
The following hardware is enabled by this device tree: UART, eMMC, USB (needs external power), PMIC, backlight, joystick, SD card, GPIO keys.
DSI panel, HDMI output, charger, self-powered USB, audio, wifi bluetooth are not supported yet but might be by future patches (likely in that order).
Touch panel and sensors will probably never be supported.
Initrd addresses are hardcoded to match the static values used by the bootloader, since it won't add them for us. All the same, a kernel command-line is provided to replace the one passed by the bootloader which is filled with garbage.
NVIDIA SHIELD is typically booted with an appended DTB to avoid modifications made by the bootloader.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/tegra114-roth.dts | 1113 +++++++++++++++++++++++++++++++++++ 2 files changed, 1114 insertions(+) create mode 100644 arch/arm/boot/dts/tegra114-roth.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -371,6 +371,7 @@ dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \ tegra30-cardhu-a02.dtb \ tegra30-cardhu-a04.dtb \ tegra114-dalmore.dtb \ + tegra114-roth.dtb \ tegra114-tn7.dtb \ tegra124-jetson-tk1.dtb \ tegra124-venice2.dtb
arch/arm/boot/dts/tegra114-roth.dts new file +1113 -0
1,113 lines not on this page · raw message
Signature · 1 line
1.9.2
Stephen Warren
AppliedRe: [PATCH 2/2] ARM: tegra: add device tree for SHIELD
Quoted 12 lines · Alexandre Courbot
NVIDIA SHIELD is a portable Android console embedded a Tegra 4 SoC with 2GB RAM and a 720p panel.
The following hardware is enabled by this device tree: UART, eMMC, USB (needs external power), PMIC, backlight, joystick, SD card, GPIO keys.
DSI panel, HDMI output, charger, self-powered USB, audio, wifi bluetooth are not supported yet but might be by future patches (likely in that order).
Touch panel and sensors will probably never be supported.
Quoted 7 lines
Initrd addresses are hardcoded to match the static values used by the bootloader, since it won't add them for us. All the same, a kernel command-line is provided to replace the one passed by the bootloader which is filled with garbage.
NVIDIA SHIELD is typically booted with an appended DTB to avoid modifications made by the bootloader.
I've applied this one patch to Tegra's for-3.16/dt branch.