From patchwork Sat Dec 19 22:43:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Schwierzeck X-Patchwork-Id: 559274 X-Patchwork-Delegate: daniel.schwierzeck@googlemail.com 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 D97151402C9 for ; Sun, 20 Dec 2015 09:44:09 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=xF5nMAgz; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E04A44B816; Sat, 19 Dec 2015 23:43:28 +0100 (CET) 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 cRVWpJ1zhRPA; Sat, 19 Dec 2015 23:43:28 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3D4FB4B7AF; Sat, 19 Dec 2015 23:43:28 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A62244B7CE for ; Sat, 19 Dec 2015 23:43:26 +0100 (CET) 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 OEgmH2FjQDtT for ; Sat, 19 Dec 2015 23:43:26 +0100 (CET) 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 mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by theia.denx.de (Postfix) with ESMTPS id B23334B6D4 for ; Sat, 19 Dec 2015 23:43:16 +0100 (CET) Received: by mail-wm0-f45.google.com with SMTP id l126so27041756wml.1 for ; Sat, 19 Dec 2015 14:43:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KqBI4TuJVbiSy9IL4MPUW0oTiI6WEN7Xu8mrayMRNrs=; b=xF5nMAgz0Dxq4YPSaYQQUbydxHv1E4IW2tNHqmwA/hGKmLVl+3b5zQ+cas/SMSzB+5 LMhpeRqvxOI27uFXBsiZxtpPUYyW6/2E4NInxvuZk8JonidrASuCiq2JPkJNmZr/odP0 lOoRYJyPj8BR5Zui5hkM2KdZny6PK3z+HrXFH5aWOlhaxQj/74KjOQU84tGt/e6LPPbd qOF00InLxCljJBp5l0tAJXf7Ix3xvLSlO4cmEZjWxPCU2USI/uJ4dRE7mK+g2TORE6Fu +Zg2ZFj80yGDNqJ8OOtMvth22uMwimP+oY8KHVdMY9wCAorSYWE3+UG5LqhcaujZdFEO 43pg== X-Received: by 10.28.30.138 with SMTP id e132mr2876118wme.86.1450564995878; Sat, 19 Dec 2015 14:43:15 -0800 (PST) Received: from workstation.zombienet.local (pD9EBF19C.dip0.t-ipconnect.de. [217.235.241.156]) by smtp.gmail.com with ESMTPSA id b84sm12681199wmh.15.2015.12.19.14.43.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Dec 2015 14:43:14 -0800 (PST) From: Daniel Schwierzeck To: u-boot@lists.denx.de Date: Sat, 19 Dec 2015 23:43:10 +0100 Message-Id: <1450564990-17333-1-git-send-email-daniel.schwierzeck@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1450552849-10813-5-git-send-email-daniel.schwierzeck@gmail.com> References: <1450552849-10813-5-git-send-email-daniel.schwierzeck@gmail.com> Cc: Tom Rini , Purna Chandra Mandal Subject: [U-Boot] [PATCH v2 4/5] MIPS: add initial infrastructure for device-tree files X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Prepare sub-folder for device-tree files. Make support for device-tree on MIPS available in Kbuild/Kconfig. Signed-off-by: Daniel Schwierzeck Signed-off-by: Purna Chandra Mandal --- Changes in v2: - add arch/mips/dts to clean list in dts/Makefile - keep section .dtb during link in case of CONFIG_OF_EMBED arch/Kconfig | 1 + arch/mips/config.mk | 2 +- arch/mips/dts/.gitignore | 1 + arch/mips/dts/Makefile | 16 ++++++++++++++++ arch/mips/dts/skeleton.dtsi | 23 +++++++++++++++++++++++ dts/Makefile | 2 +- 6 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 arch/mips/dts/.gitignore create mode 100644 arch/mips/dts/Makefile create mode 100644 arch/mips/dts/skeleton.dtsi diff --git a/arch/Kconfig b/arch/Kconfig index 1709d40..ec12013 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -55,6 +55,7 @@ config MIPS select HAVE_PRIVATE_LIBGCC select HAVE_GENERIC_BOARD select SYS_GENERIC_BOARD + select SUPPORT_OF_CONTROL config NDS32 bool "NDS32 architecture" diff --git a/arch/mips/config.mk b/arch/mips/config.mk index 415ec8a..3ebc202 100644 --- a/arch/mips/config.mk +++ b/arch/mips/config.mk @@ -71,7 +71,7 @@ else PF_ABICALLS := -mabicalls PF_PIC := -fpic PF_PIE := -pie -PF_OBJCOPY := -j .got -j .u_boot_list -j .rel.dyn -j .padding +PF_OBJCOPY := -j .got -j .u_boot_list -j .rel.dyn -j .padding -j .dtb endif PLATFORM_CPPFLAGS += -G 0 $(PF_ABICALLS) $(PF_PIC) diff --git a/arch/mips/dts/.gitignore b/arch/mips/dts/.gitignore new file mode 100644 index 0000000..b60ed20 --- /dev/null +++ b/arch/mips/dts/.gitignore @@ -0,0 +1 @@ +*.dtb diff --git a/arch/mips/dts/Makefile b/arch/mips/dts/Makefile new file mode 100644 index 0000000..47b6eb5 --- /dev/null +++ b/arch/mips/dts/Makefile @@ -0,0 +1,16 @@ +# +# SPDX-License-Identifier: GPL-2.0+ +# + +dtb-y += + +targets += $(dtb-y) + +# Add any required device tree compiler flags here +DTC_FLAGS += + +PHONY += dtbs +dtbs: $(addprefix $(obj)/, $(dtb-y)) + @: + +clean-files := *.dtb diff --git a/arch/mips/dts/skeleton.dtsi b/arch/mips/dts/skeleton.dtsi new file mode 100644 index 0000000..24ee6c3 --- /dev/null +++ b/arch/mips/dts/skeleton.dtsi @@ -0,0 +1,23 @@ +/* + * Skeleton device tree; the bare minimum needed to boot; just include and + * add a compatible value. The bootloader will typically populate the memory + * node. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +/ { + #address-cells = <1>; + #size-cells = <1>; + + chosen { + }; + + aliases { + }; + + memory { + device_type = "memory"; + reg = <0 0>; + }; +}; diff --git a/dts/Makefile b/dts/Makefile index d3122aa..c4ac153 100644 --- a/dts/Makefile +++ b/dts/Makefile @@ -45,4 +45,4 @@ dtbs: $(obj)/dt.dtb clean-files := dt.dtb.S # Let clean descend into dts directories -subdir- += ../arch/arm/dts ../arch/microblaze/dts ../arch/sandbox/dts ../arch/x86/dts +subdir- += ../arch/arm/dts ../arch/microblaze/dts ../arch/mips/dts ../arch/sandbox/dts ../arch/x86/dts