From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11762C4338F for ; Mon, 23 Aug 2021 07:38:10 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3C3FB6126A for ; Mon, 23 Aug 2021 07:38:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3C3FB6126A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A946F8315C; Mon, 23 Aug 2021 09:38:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="bjR7wkRa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 128E18314F; Mon, 23 Aug 2021 09:38:04 +0200 (CEST) Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D74DB83133 for ; Mon, 23 Aug 2021 09:37:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x636.google.com with SMTP id u3so35046841ejz.1 for ; Mon, 23 Aug 2021 00:37:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BmTT9wGFC4B58Ae/0D9pBSx9celIB3c/e19gbAWl0Gs=; b=bjR7wkRaSN8JVqZwhnB5wiJ/5aezAA3JiWOGiYrcyzb87D5Lldl89oa7OFaXvHMfgL p8ipuHhEg72z80ev3FGcy1FGgiTSolJxgPGlJtGNAOULw21i2Fw8tPrR3sXhZzyxRovw /jqETVCULgBmYlwCzqRSHJjHfo3p9vKmlpbKmH1MDiJT9jafCIg7PNBL955k3oz36EFZ +/rDZoHMAqe/fA31xZihdsMIRi0aTewn3wqWDjLjpxc22V2Yy3Qe4lEfd1nXbY8C0B68 TWLIF4N63jIw1GSHZKFHlwcP7+pKQ/ZlPY3G5kQExBP3XdzC91FAOXeM5REllKr7nK6F Zapg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=BmTT9wGFC4B58Ae/0D9pBSx9celIB3c/e19gbAWl0Gs=; b=KVrfleN5ESO+8o6ayikUOROGkSOTKsVvCPxjt6Zp55aqKRViDWlK4My7pJddp5S8Mm 6k8vffOeeV8Gn2eduPaZfLhROBQfEtwZNB2eGWArZT5rBeWgxDxjtbor+K7Y5nhCzVCe q9XY2C6rSpvebfwNMSFwAZFT82svPhJDEcEopwOpiG9rszJwpzgve4hqkbALPdxXNxPM DlybAeyQyV9jLb19DcYkwp2wL2YAzk7vra9Czfcm1Ibhk7zEkElNBFPusHTJRvNUuqxc fmJZTGjB2IlznFjpCTV5H9/m2wc5kTX6xnm7327xaRNpZw+vejMwk4ZSV0S/w1lh6jCT WXOQ== X-Gm-Message-State: AOAM531dgZUsugka1eo8ZxHgwAJG6YcaXMBZGraBRpUJgnfNTqidYOcf TUVa1tO4Ux19gat4nQUQ/WA2Sg== X-Google-Smtp-Source: ABdhPJz6XjHo6GAEYa2uR7TPcgYn/V9ZS09Lfket1odVX66niKkbApXokygsfBY9GJRkbrmxwjwolw== X-Received: by 2002:a17:906:6bc5:: with SMTP id t5mr7516755ejs.340.1629704279544; Mon, 23 Aug 2021 00:37:59 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6:f666:9af6:3fed:e53b]) by smtp.gmail.com with ESMTPSA id a3sm8482333edu.46.2021.08.23.00.37.58 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Aug 2021 00:37:59 -0700 (PDT) From: Michal Simek To: andre.przywara@arm.com, u-boot@lists.denx.de, git@xilinx.com Cc: Ashok Reddy Soma , Bin Meng , Chee Hong Ang , Fabio Estevam , Heiko Schocher , Ibai Erkiaga , Jagan Teki , Kever Yang , Konstantin Porotchkin , Lokesh Vutla , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Michal Simek , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Peter Robinson , Priyanka Jain , Simon Glass , T Karthik Reddy , Tim Harvey Subject: [PATCH 00/10] xilinx: Add support for DTB reselection Date: Mon, 23 Aug 2021 09:37:47 +0200 Message-Id: X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi, this series add support for board or board+cc runtime DT selection. EEPROM memory is read and based on that decoded if this is legacy/fru based format and proper DTB is used. There is a need to have all DTBs 64bit aligned. If you don't have it you will end up in exception. But one patch in this series is trying to detect it and panic before you reach it to let you know what's wrong. Enforcing mkimage/dtb alignment is done based on CONFIG_PHYS_64BIT and affects all 64bit systems but it is also not wrong for them to be properly aligned. Thanks, Michal Changes in v2: - Update subject and commit message - Enable 64bit alignment for all - reported by Andre - Update subject and commit message - Enable it for all (not just 64bit systems) - Update if condition for MULTI_DTB - call fru_capture in non DEBUG mode - Show detected name as standard message to see what has been chosen Michal Simek (10): xilinx: fru: Replace spaces with \0 in detected name xilinx: Use variable for passing board_name xilinx: common: Change board_info[] handling xilinx: common: Free allocated structure xilinx: Add support for generic board detection xilinx: zynqmp: Check that DT is 64bit aligned Makefile: Align fit-dtb.blob and u-boot.itb by 64bits arm64: dts: Make sure that all DTBs are 64bit aligned xilinx: zynqmp: Generate different u-boot.itb for MULTI_DTB_FIT xilinx: common: Enabling generic function for DT reselection Makefile | 3 + arch/arm/dts/Makefile | 2 +- arch/arm/dts/zynqmp-sm-k26-revA.dts | 3 + arch/arm/mach-zynqmp/mkimage_fit_atf.sh | 47 +++++++ board/xilinx/common/board.c | 158 +++++++++++++++++++----- board/xilinx/zynqmp/zynqmp.c | 3 + 6 files changed, 186 insertions(+), 30 deletions(-) -- 2.33.0