various fixes for apalis/colibri_t30
Subsystems (2)
v2 cover various fixes for apalis/colibri_t30
The following is a set of various fixes for Toradex Apalis and Colibri T30.
Changes in v2:
- Include commit subject too when referencing a previous commit as suggested by Stephen
- Add various acked- and reviewed-by
- Drop CONFIG_CMDLINE_EDITING and CONFIG_CMD_FS_GENERIC as they already get pulled in via config_distro_defaults.h as noted by Stephen
Marcel Ziswiler (4):
dm: tegra: dts: add aliases for spi on apalis_t30 apalis/colibri_t30: fix MMC/SD card detect GPIOs
apalis_t30: enable gigabit ethernet via pcie apalis/colibri_t30: add misc cmds increase buf sizes and max args
arch/arm/dts/tegra30-apalis.dts | 13 +++++++++++-- arch/arm/dts/tegra30-colibri.dts | 4 +++- include/configs/apalis_t30.h | 29 ++++++++++++++++++++++------- include/configs/colibri_t30.h | 24 ++++++++++++++++++++++-- 4 files changed, 58 insertions(+), 12 deletions(-)
Signature · 1 line
1.9.3
PATCH v2 1/4 dm: tegra: dts: add aliases for spi on apalis_t30
All boards with a SPI interface have a suitable spi alias except Apalis T30. Add these missing aliases just as the following commit did for the others:
d2f60f93325a "dm: tegra: dts: Add aliases for spi on tegra30 boards"
---
Changes in v2:
- Include commit subject too when referencing a previous commit as suggested by Stephen
arch/arm/dts/tegra30-apalis.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/dts/tegra30-apalis.dts +4 -0
@@ -18,6 +18,10 @@ sdhci0 = "/sdhci at 78000600"; sdhci1 = "/sdhci at 78000400"; sdhci2 = "/sdhci at 78000000"; + spi0 = "/spi at 7000d400"; + spi1 = "/spi at 7000dc00"; + spi2 = "/spi at 7000de00"; + spi3 = "/spi at 7000da00"; usb0 = "/usb at 7d000000"; usb1 = "/usb at 7d004000"; usb2 = "/usb at 7d008000";
Signature · 1 line
1.9.3
PATCH v2 2/4 apalis/colibri_t30: fix MMC/SD card detect GPIOs
In reply to Marcel ZiswilerThis fixes the MMC/SD card detect GPIOs for Apalis T30 which got broken by the following commit:
2b2b50bc8748 "dm: tegra: dts: Use TEGRA_GPIO() macro for all GPIOs"
While at it also re-add the comments describing which particular Apalis/Colibri pins those GPIOs are on.
---
Changes in v2:
- Include commit subject too when referencing a previous commit as suggested by Stephen
arch/arm/dts/tegra30-apalis.dts | 9 +++++++-- arch/arm/dts/tegra30-colibri.dts | 4 +++- 2 files changed, 10 insertions(+), 3 deletions(-)
arch/arm/dts/tegra30-apalis.dts +7 -2
@@ -247,13 +247,15 @@ sdhci at 78000000 { status = "okay"; bus-width = <4>; - cd-gpios = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_HIGH>; + /* SD1_CD# */ + cd-gpios = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_LOW>; }; sdhci at 78000400 { status = "okay"; bus-width = <8>; - cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>; + /* MMC1_CD# */ + cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>; }; sdhci at 78000600 {
@@ -266,12 +268,14 @@ usb at 7d000000 { status = "okay"; dr_mode = "peripheral"; + /* USBO1_EN */ nvidia,vbus-gpio = <&gpio TEGRA_GPIO(T, 5) GPIO_ACTIVE_HIGH>; }; /* EHCI instance 1: USB2_DP/N -> USBH2_DP/N */ usb at 7d004000 { status = "okay"; + /* USBH_EN */ nvidia,vbus-gpio = <&gpio TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>; phy_type = "utmi"; };
@@ -279,6 +283,7 @@ /* EHCI instance 2: USB3_DP/N -> USBH3_DP/N */ usb at 7d008000 { status = "okay"; + /* USBH_EN */ nvidia,vbus-gpio = <&gpio TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>; };
arch/arm/dts/tegra30-colibri.dts +3 -1
@@ -64,7 +64,7 @@ sdhci at 78000200 { status = "okay"; bus-width = <4>; - cd-gpios = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_LOW>; + cd-gpios = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_LOW>; /* MMCD */ }; sdhci at 78000600 {
@@ -83,12 +83,14 @@ usb at 7d004000 { status = "okay"; phy_type = "utmi"; + /* VBUS_LAN */ nvidia,vbus-gpio = <&gpio TEGRA_GPIO(DD, 2) GPIO_ACTIVE_HIGH>; }; /* EHCI instance 2: USB3_DP/N -> USBH_P/N */ usb at 7d008000 { status = "okay"; + /* USBH_PEN */ nvidia,vbus-gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>; }; };
Signature · 1 line
1.9.3
PATCH v2 3/4 apalis_t30: enable gigabit ethernet via pcie
In reply to Marcel ZiswilerNow with all the Tegra PCIe and Intel E1000 gigabit Ethernet driver updates being merged actually make use of it.
While at it get rid of the USB networking support which now does not make much sense any longer.
---
Changes in v2: None
include/configs/apalis_t30.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
include/configs/apalis_t30.h +3 -7
@@ -1,5 +1,5 @@/* -* Copyright (c) 2014 Marcel Ziswiler +* Copyright (c) 2014-2015 Marcel Ziswiler * * SPDX-License-Identifier: GPL-2.0+ */
@@ -47,12 +47,8 @@#define CONFIG_USB_STORAGE #define CONFIG_CMD_USB -/* USB networking support */ -#define CONFIG_USB_HOST_ETHER -#define CONFIG_USB_ETHER_ASIX -/* PCI host support */ -#undef CONFIG_PCI/* just define once Tegra PCIe support got merged */ +#define CONFIG_PCI #define CONFIG_PCI_TEGRA #define CONFIG_PCI_PNP #define CONFIG_CMD_PCI
@@ -60,7 +56,7 @@/* PCI networking support */ #define CONFIG_E1000 -#undef CONFIG_E1000_NO_NVM/* just define once E1000 driver got fixed */ +#define CONFIG_E1000_NO_NVM /* General networking support */ #define CONFIG_CMD_NET
Signature · 1 line
1.9.3
PATCH v2 4/4 apalis/colibri_t30: add misc cmds increase buf sizes and max args
In reply to Marcel ZiswilerIn order to work with our downstream U-Boot environment and update scripts add support for the following miscellaneous commands:
CONFIG_CMD_SETEXPRCONFIG_FAT_WRITE
Increase the console I/O and print as well as argument buffer sizes:
CONFIG_SYS_CBSIZECONFIG_SYS_PBSIZECONFIG_SYS_BARGSIZE
Increase the maximum number of arguments allowed:
CONFIG_SYS_MAXARGS
---
Changes in v2:
- Drop CONFIG_CMDLINE_EDITING and CONFIG_CMD_FS_GENERIC as they already get pulled in via config_distro_defaults.h as noted by Stephen
include/configs/apalis_t30.h | 19 +++++++++++++++++++ include/configs/colibri_t30.h | 24 ++++++++++++++++++++++-- 2 files changed, 41 insertions(+), 2 deletions(-)
include/configs/apalis_t30.h +19 -0
@@ -62,6 +62,25 @@#define CONFIG_CMD_NET #define CONFIG_CMD_DHCP +/* Miscellaneous commands */ +#define CONFIG_CMD_SETEXPR +#define CONFIG_FAT_WRITE + +/* Increase console I/O buffer size */ +#undef CONFIG_SYS_CBSIZE +#define CONFIG_SYS_CBSIZE 1024 + +/* Increase arguments buffer size */ +#undef CONFIG_SYS_BARGSIZE +#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE + +/* Increase print buffer size */ +#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) + +/* Increase maximum number of arguments */ +#undef CONFIG_SYS_MAXARGS +#define CONFIG_SYS_MAXARGS 32 +#include "tegra-common-usb-gadget.h" #include "tegra-common-post.h"
include/configs/colibri_t30.h +22 -2
@@ -1,5 +1,5 @@/* -* Copyright (c) 2013-2014 Stefan Agner +* Copyright (c) 2013-2015 Stefan Agner * * SPDX-License-Identifier: GPL-2.0+ */
@@ -11,10 +11,11 @@#include "tegra30-common.h" +/* High-level configuration options */ #define V_PROMPT "Colibri T30 # "#define CONFIG_TEGRA_BOARD_STRING "Toradex Colibri T30" -/* Board-specific config */ +/* Board-specific serial config */ #define CONFIG_SERIAL_MULTI #define CONFIG_TEGRA_ENABLE_UARTA #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTA_BASE
@@ -54,6 +55,25 @@#define CONFIG_CMD_NET #define CONFIG_CMD_DHCP +/* Miscellaneous commands */ +#define CONFIG_CMD_SETEXPR +#define CONFIG_FAT_WRITE + +/* Increase console I/O buffer size */ +#undef CONFIG_SYS_CBSIZE +#define CONFIG_SYS_CBSIZE 1024 + +/* Increase arguments buffer size */ +#undef CONFIG_SYS_BARGSIZE +#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE + +/* Increase print buffer size */ +#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) + +/* Increase maximum number of arguments */ +#undef CONFIG_SYS_MAXARGS +#define CONFIG_SYS_MAXARGS 32 +#include "tegra-common-usb-gadget.h" #include "tegra-common-post.h"
Signature · 1 line
1.9.3
v2 cover various fixes for apalis/colibri_t30
In reply to Marcel ZiswilerQuoted 2 lines · Marcel Ziswiler
The following is a set of various fixes for Toradex Apalis and Colibri T30.
The series,
v2 cover various fixes for apalis/colibri_t30
Quoted 2 lines · Stephen Warren
The series,
Acked-by Stephen Warren <[email protected]>
Thanks mate. Anybody actually gona pick that one up please?
v2 cover various fixes for apalis/colibri_t30
In reply to a message not in the archiveOn 4 March 2015 17:03:17 CET, Tom Warren >I'll apply this series to u-boot-tegra/next today, and if everything
Quoted 1 line
checks out, send a PR to Albert tomorrow.
Perfect, thanks Tom.