From patchwork Mon Mar 26 07:57:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Raghavendra, Vignesh" X-Patchwork-Id: 890796 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="pm4wSfMU"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 408mgs06Q4z9s1B for ; Mon, 26 Mar 2018 18:56:55 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 51C9AC21F07; Mon, 26 Mar 2018 07:56:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 276ACC21E2B; Mon, 26 Mar 2018 07:56:47 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 12867C21E0D; Mon, 26 Mar 2018 07:56:45 +0000 (UTC) Received: from fllnx210.ext.ti.com (fllnx210.ext.ti.com [198.47.19.17]) by lists.denx.de (Postfix) with ESMTPS id B40BAC21C29 for ; Mon, 26 Mar 2018 07:56:42 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w2Q7ue2h017590; Mon, 26 Mar 2018 02:56:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1522051000; bh=K8+vfhmM8CX0vF1NUouNUFWypPMezvEQuAg3rPg3PVw=; h=From:To:CC:Subject:Date; b=pm4wSfMUPc4B9uy/GbIw3Gy3LFvWZXM/QWucuHKT+LjhVo9d0QV7m5wBcEgIFOLYX LPz2kE5ZKI8nwcRSckdNscWz7EFSmlwyOIoFbkxecURofGFnTDMOwu35mhkK51NfQI qKM0CzM17jia8wiOwOchzGaI9aAI5orLVS4pNeek= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2Q7uesp005462; Mon, 26 Mar 2018 02:56:40 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Mon, 26 Mar 2018 02:56:40 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Mon, 26 Mar 2018 02:56:40 -0500 Received: from a0132425.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2Q7ucoC008065; Mon, 26 Mar 2018 02:56:39 -0500 From: Vignesh R To: Lokesh Vutla Date: Mon, 26 Mar 2018 13:27:00 +0530 Message-ID: <20180326075703.5834-1-vigneshr@ti.com> X-Mailer: git-send-email 2.16.2 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: u-boot@lists.denx.de, Tom Rini Subject: [U-Boot] [PATCH 0/3] AM437x: Add runtime DTB selection for QSPI Boot X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" With SPI framework moving to DM only mode, am437x QSPI XIP boot needs to move to runtime DTB selection to chose proper DT for IDK vs SK. This series adds generic DT file for board detection which is replaced with actual DT once after board discovery via EEPROM. Approach is similar to what is done with K2G EVM. Tested on AM437x SK and IDK boards. Sanity tested on AM437x GP EVM. Vignesh R (3): board: ti: am43xx: Define embedded_dtb_select for runtime DTB selection in U-boot ARM: dts: Add new "generic" am4372 device tree file. configs: am43xx_evm_qspiboot_defconfig: Move to DM arch/arm/dts/Makefile | 3 ++- arch/arm/dts/am4372-generic-u-boot.dtsi | 15 +++++++++++++++ arch/arm/dts/am4372-generic.dts | 24 ++++++++++++++++++++++++ arch/arm/dts/am437x-idk-evm-u-boot.dtsi | 23 +++++++++++++++++++++++ arch/arm/dts/am437x-sk-evm-u-boot.dtsi | 23 +++++++++++++++++++++++ board/ti/am43xx/board.c | 18 ++++++++++++++++-- configs/am43xx_evm_qspiboot_defconfig | 10 +++++++++- 7 files changed, 112 insertions(+), 4 deletions(-) create mode 100644 arch/arm/dts/am4372-generic-u-boot.dtsi create mode 100644 arch/arm/dts/am4372-generic.dts create mode 100644 arch/arm/dts/am437x-idk-evm-u-boot.dtsi create mode 100644 arch/arm/dts/am437x-sk-evm-u-boot.dtsi