ARM: tegra: Add support for norrin board
Subsystems (2)
PATCH 1/1 ARM: tegra: Add support for norrin board
Norrin (PM370) is a Tegra124 clamshell board that is very similar to venice2, but it has a different panel, the sdcard cd sense is flipped, and it has a different revision of the AS3722 PMIC. Reuse the venice2 config with a norrin dtb. This board is also refered to as "nyan" in the ChromeOS trees.
--- arch/arm/dts/Makefile | 3 +- arch/arm/dts/tegra124-norrin.dts | 91 ++++++++++++++++++++++++++++++++++++++ board/nvidia/venice2/as3722_init.h | 2 +- boards.cfg | 1 + include/configs/venice2.h | 9 ++++ 5 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 arch/arm/dts/tegra124-norrin.dts
arch/arm/dts/Makefile +2 -1
@@ -23,7 +23,8 @@ dtb-$(CONFIG_TEGRA) += tegra20-harmony.dtb \ tegra30-tec-ng.dtb \ tegra114-dalmore.dtb \ tegra124-jetson-tk1.dtb \ - tegra124-venice2.dtb + tegra124-venice2.dtb \ + tegra124-norrin.dtb dtb-$(CONFIG_ZYNQ) += zynq-zc702.dtb \ zynq-zc706.dtb \ zynq-zed.dtb \
arch/arm/dts/tegra124-norrin.dts new file +91 -0
91 lines not on this page · raw message
board/nvidia/venice2/as3722_init.h +1 -1
@@ -18,7 +18,7 @@#define AS3722_LDO6VOLTAGE_REG 0x16/* VDD_SDMMC */ #define AS3722_LDCONTROL_REG 0x4E -#ifdef CONFIG_BOARD_JETSON_TK1 +#if defined(CONFIG_BOARD_JETSON_TK1 ) || defined(CONFIG_BOARD_NORRIN )#define AS3722_SD0VOLTAGE_DATA (0x3C00 | AS3722_SD0VOLTAGE_REG)#else #define AS3722_SD0VOLTAGE_DATA (0x2800 | AS3722_SD0VOLTAGE_REG)
boards.cfg +1 -0
@@ -395,6 +395,7 @@ Active arm armv7 zynq xilinx zynq Active arm armv7:arm720t tegra114 nvidia dalmore dalmore - Tom Warren <[email protected]> Active arm armv7:arm720t tegra124 nvidia jetson-tk1 jetson-tk1 jetson-tk1:BOARD_JETSON_TK1= Stephen Warren <[email protected]> Active arm armv7:arm720t tegra124 nvidia venice2 venice2 - Tom Warren <[email protected]> +Active arm armv7:arm720t tegra124 nvidia venice2 norrin venice2:BOARD_NORRIN Tom Warren <[email protected]> Active arm armv7:arm720t tegra20 avionic-design medcom-wide medcom-wide - Alban Bedel <[email protected]> Active arm armv7:arm720t tegra20 avionic-design plutux plutux - Alban Bedel <[email protected]> Active arm armv7:arm720t tegra20 avionic-design tec tec - Alban Bedel <[email protected]>
include/configs/venice2.h +9 -0
@@ -13,13 +13,22 @@#include "tegra124-common.h" /* Enable fdt support for Venice2. Flash the image in u-boot-dtb.bin */ +#ifdef CONFIG_BOARD_NORRIN +#define CONFIG_DEFAULT_DEVICE_TREE tegra124-norrin +#else #define CONFIG_DEFAULT_DEVICE_TREE tegra124-venice2 +#endif #define CONFIG_OF_CONTROL #define CONFIG_OF_SEPARATE /* High-level configuration options */ +#ifdef CONFIG_BOARD_NORRIN +#define V_PROMPT "Tegra124 (Norrin) # " +#define CONFIG_TEGRA_BOARD_STRING "NVIDIA Norrin" +#else #define V_PROMPT "Tegra124 (Venice2) # "#define CONFIG_TEGRA_BOARD_STRING "NVIDIA Venice2" +#endif /* Board-specific serial config */ #define CONFIG_SERIAL_MULTI
Signature · 1 line
1.8.1.5
PATCH 1/1 ARM: tegra: Add support for norrin board
Quoted 5 lines · Allen Martin
Norrin (PM370) is a Tegra124 clamshell board that is very similar to venice2, but it has a different panel, the sdcard cd sense is flipped, and it has a different revision of the AS3722 PMIC. Reuse the venice2 config with a norrin dtb. This board is also refered to as "nyan" in the ChromeOS trees.
Isn't the pinmux different too? I think this patch should contain board/nvidia/norrin/pinmux-config-norrin.h shouldn't it? That in turn would mean adding Norrin support to tegra-pinmux-scripts. Of course, if they really do have 100% identical pinmux, then there's no issue. I'm skeptical though.
PATCH 1/1 ARM: tegra: Add support for norrin board
Quoted 7 lines · Stephen Warren
Quoted 5 lines · Allen Martin
Norrin (PM370) is a Tegra124 clamshell board that is very similar to venice2, but it has a different panel, the sdcard cd sense is flipped, and it has a different revision of the AS3722 PMIC. Reuse the venice2 config with a norrin dtb. This board is also refered to as "nyan" in the ChromeOS trees.
Quoted 5 lines
Isn't the pinmux different too? I think this patch should contain
board/nvidia/norrin/pinmux-config-norrin.hshouldn't it? That in turn would mean adding Norrin support to tegra-pinmux-scripts. Of course, if they really do have 100% identical pinmux, then there's no issue. I'm skeptical though.
AFAIK they really do have identical pinmux, I'll double check the pinmux spreadsheet to make sure.
There's another unintended side effect of reusing the venice2 board this way that I discovered after posting this. It causes CONFIG_SYS_BOARD to be set to venice2 still, which causes the "board_name" environment variable to be set to venice2, which causes boot.scr to look for a venice2 dtb.
It may be cleaner to make norrin a proper board, and just have it #include the vencie2 pinmux.
-Allen
nvpublic