From patchwork Thu May 24 07:04:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 161069 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 5558AB6FBB for ; Thu, 24 May 2012 17:05:08 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BAC13280C1; Thu, 24 May 2012 09:05:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HomJsR9um8+q; Thu, 24 May 2012 09:05:03 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ABB4B280AE; Thu, 24 May 2012 09:04:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2C9B2280A6 for ; Thu, 24 May 2012 09:04:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rHMAhCFvrdNC for ; Thu, 24 May 2012 09:04:52 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by theia.denx.de (Postfix) with ESMTP id 50CB72809D for ; Thu, 24 May 2012 09:04:52 +0200 (CEST) Received: from benhur.adnet.avionic-design.de (p548E077A.dip0.t-ipconnect.de [84.142.7.122]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0LlrKG-1Ry7Hf27Um-00ZxlR; Thu, 24 May 2012 09:04:51 +0200 Received: from mailbox.adnet.avionic-design.de (add-virt-zarafa.adnet.avionic-design.de [172.20.129.9]) by benhur.adnet.avionic-design.de (Postfix) with ESMTP id 0B5262C4116; Thu, 24 May 2012 09:04:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id 0F1992A2818D; Thu, 24 May 2012 09:04:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at avionic-design.de Received: from mailbox.adnet.avionic-design.de ([127.0.0.1]) by localhost (mailbox.avionic-design.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZVpLMliBk9+u; Thu, 24 May 2012 09:04:49 +0200 (CEST) Received: from localhost (avionic-0098.adnet.avionic-design.de [172.20.31.233]) (Authenticated sender: thierry.reding) by mailbox.adnet.avionic-design.de (Postfix) with ESMTPA id 5D6622A2802C; Thu, 24 May 2012 09:04:49 +0200 (CEST) From: Thierry Reding To: u-boot@lists.denx.de Date: Thu, 24 May 2012 09:04:47 +0200 Message-Id: <1337843087-8373-3-git-send-email-thierry.reding@avionic-design.de> X-Mailer: git-send-email 1.7.10.2 In-Reply-To: <1337843087-8373-1-git-send-email-thierry.reding@avionic-design.de> References: <1337843087-8373-1-git-send-email-thierry.reding@avionic-design.de> X-Provags-ID: V02:K0:QPAcV4rQP0EJ67AR1x1S/tH+NlgeDxAg6vax6qO6ps5 yaErd6Wr2vGUyO/7fkq25OOllczyLmH1FKhjmz9toP2usmcS5J gwMiQbHo/DJJMS/79Damf52pLd1x3ntThIY7QtLN9atGkxqwuO lpDHOKQNY0bjDJSIcwdk0ryYG7okrTYzSD8Van5WzWJ1RTJNP/ mF5iuCxL0nwC7Uuk5krgmJu5jt+f9NHoR6kAm4vp0+GY/j9pLQ kCCv811bwonf9mMVfvvcsMYGgRbFYi1tmvu2dhA7mK8Bd+A8Q4 m+Ml1coXu/8QEIqVGhZ9QoQovng0wYEBcMXrFi6JW95Oq9KLnZ RK8LgAkf7Gf0GTqxeH4x2Tkylm4UVu2XvlkdRFAtMpNKcoK1YW SYf1vDYovcWB6eW+NX/u7hmQoe3BRTh+bCW+EoHotbalFwpIUh wTW5X Cc: Tom Warren Subject: [U-Boot] [PATCH 3/3] tegra: plutux: Add device tree support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Device tree support is required for working USB host support, which in turn enables ethernet support. Signed-off-by: Thierry Reding --- board/avionic-design/dts/tegra2-plutux.dts | 67 ++++++++++++++++++++++++++++ include/configs/plutux.h | 22 ++++++++- 2 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 board/avionic-design/dts/tegra2-plutux.dts diff --git a/board/avionic-design/dts/tegra2-plutux.dts b/board/avionic-design/dts/tegra2-plutux.dts new file mode 100644 index 0000000..b8d815c --- /dev/null +++ b/board/avionic-design/dts/tegra2-plutux.dts @@ -0,0 +1,67 @@ +/dts-v1/; + +/include/ ARCH_CPU_DTS + +/ { + model = "Avionic Design Plutux"; + compatible = "avionic-design,plutux", "nvidia,tegra20"; + + aliases { + usb0 = "/usb@c5008000"; + }; + + chosen { + bootargs = "console=ttyS0,115200n8"; + }; + + memory { + reg = <0x00000000 0x20000000>; + }; + + clocks { + clk_32k: clk_32k { + clock-frequency = <32000>; + }; + + osc { + clock-frequency = <12000000>; + }; + }; + + clock@60006000 { + clocks = <&clk_32k &osc>; + }; + + serial@70006300 { + clock-frequency = <216000000>; + }; + + i2c@7000c000 { + status = "disabled"; + }; + + i2c@7000c400 { + status = "disabled"; + }; + + i2c@7000c500 { + status = "disabled"; + }; + + i2c@7000d000 { + status = "disabled"; + }; + + usb@c5000000 { + status = "disabled"; + }; + + usb@c5004000 { + status = "disabled"; + }; + + sdhci@c8000600 { + cd-gpios = <&gpio 58 0>; /* gpio PH2 */ + wp-gpios = <&gpio 59 0>; /* gpio PH3 */ + }; +}; diff --git a/include/configs/plutux.h b/include/configs/plutux.h index f869191..73f4292 100644 --- a/include/configs/plutux.h +++ b/include/configs/plutux.h @@ -1,7 +1,7 @@ /* * (C) Copyright 2010,2011 * NVIDIA Corporation - * (C) Copyright 2011 + * (C) Copyright 2011-2012 * Avionic Design GmbH * * See file CREDITS for list of people who contributed to this @@ -28,6 +28,11 @@ #include "tegra2-common.h" +/* Enable fdt support for Plutux. Flash the image in u-boot-dtb.bin */ +#define CONFIG_DEFAULT_DEVICE_TREE tegra2-plutux +#define CONFIG_OF_CONTROL +#define CONFIG_OF_SEPARATE + /* High-level configuration options */ #define TEGRA2_SYSMEM "mem=384M@0M nvmem=128M@384M" #define V_PROMPT "Tegra2 (Plutux) # " @@ -49,6 +54,21 @@ #define CONFIG_TEGRA2_MMC #define CONFIG_CMD_MMC +/* USB host support */ +#define CONFIG_USB_EHCI +#define CONFIG_USB_EHCI_TEGRA +#define CONFIG_USB_STORAGE +#define CONFIG_CMD_USB + +/* USB networking support */ +#define CONFIG_USB_HOST_ETHER +#define CONFIG_USB_ETHER_SMSC95XX +#define CONFIG_USB_ETHER_ASIX + +/* General networking support */ +#define CONFIG_CMD_NET +#define CONFIG_CMD_DHCP + #define CONFIG_DOS_PARTITION #define CONFIG_EFI_PARTITION #define CONFIG_CMD_EXT2