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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 777DBEB64DD for ; Thu, 3 Aug 2023 13:36:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A840F86A8C; Thu, 3 Aug 2023 15:36:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="zHAfGsya"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9271786AB7; Thu, 3 Aug 2023 15:36:41 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on20624.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe5b::624]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DF950868EE for ; Thu, 3 Aug 2023 15:36:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=michal.simek@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XgDhcIrXPo9P/kH5IxXo6scBoFijPvHLcsYZht3W1THJgAh6G9u4/pk7Dfp+tPTA/PBIi1UYid1tuWgnUNxNomiREHlz+1vnv1KGPnWpavsF4l1Ue6ZTklZsErudhedFMLe6cTSq6sr2XrYVduskQfahz7IHEKmvww4+XcA/1XLLG33zjFmxUfEitKX3obV8wmJewg+EHVmlRIitkoBEo9WsEHjLFNa5XDr9bXuPaBuxWT4sSvYpVzywRVdJPC1UzFwUAe7gfsf+/ka0+B+su6Ri3lcSoxhaXmHFaECOJpzmRnkUO2ReT60GM0cTbiB6YC+ytrbPwlL/7LR0YDCxOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=r7BMErfDJJvT+ekSFNyNyz/RyES92SB3Qk9ExXszS1E=; b=Edxp6htyMc6nZh5p88e0H69Den1P6JhZ4rEZeItPiFyuwLzYUS4lwjFMrFwyuJ9G8EQD3tRho24tD/+qU2gI/+s1Y1+dxLE+Nq+j7RuJlEQXAj7Nrbq+E0DY+/SLQ99StjG6ra88iCnfu/wgD71Q/7vuE+R7oFMoN/c0Yc6xvMqqON2+jDPAui7AEtY21BfzjyzqBLnA66+OuyEjcw5rGWXkWPL8DhSMp+z5iHt1JJj1cPUxL9VoSwqWvzRFf+Her1iOfzfJJGliEbCxXqObeIMFezShu3oN3pHD25mjD8hDAYXKNi153adJH6upkG0YXw/qH5pYGcrG07yhZaLmzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r7BMErfDJJvT+ekSFNyNyz/RyES92SB3Qk9ExXszS1E=; b=zHAfGsyaM7pxQvjAKXRMC+BusjUAGWUK7fiWlMcYGYH8XnmMJAzxvKuIupwhKF1MkIrxDNaVdud3ViPlKZ0BzBNfCJIwWNIwj18pb4Uj3jXH6Twq1xfVGWOAadlBcbLagmB1qrFE0+2Vrsxeq8MpAYo9+26NsBpz+/A6xM9PSa8= Received: from MW4PR04CA0324.namprd04.prod.outlook.com (2603:10b6:303:82::29) by DS7PR12MB5911.namprd12.prod.outlook.com (2603:10b6:8:7c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.47; Thu, 3 Aug 2023 13:36:35 +0000 Received: from CO1NAM11FT094.eop-nam11.prod.protection.outlook.com (2603:10b6:303:82:cafe::a2) by MW4PR04CA0324.outlook.office365.com (2603:10b6:303:82::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.44 via Frontend Transport; Thu, 3 Aug 2023 13:36:35 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1NAM11FT094.mail.protection.outlook.com (10.13.174.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6631.39 via Frontend Transport; Thu, 3 Aug 2023 13:36:34 +0000 Received: from localhost (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 3 Aug 2023 08:36:32 -0500 From: Michal Simek To: , , Simon Glass CC: Abdellatif El Khlifi , Dzmitry Sankouski , Ilias Apalodimas , Nikhil M Jain Subject: [PATCH 0/2] dm: core: Add support for filling script_offset_f/script_size_f from DT Date: Thu, 3 Aug 2023 15:36:27 +0200 Message-ID: X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1708; i=michal.simek@amd.com; h=from:subject:message-id; bh=SPQ/bFtB7LIICVMcBEBKehuWeLZIL91UBsQaWy+1Cz0=; b=owGbwMvMwCR4yjP1tKYXjyLjabUkhpTTa6MNrB/fYzrwO/5QzXpBBlkvBd1bcbO7j7/jaVvK7 JrMukm1I5aFQZCJQVZMkUXa5sqZvZUzpghfPCwHM4eVCWQIAxenAExk3gSGeZanBdhPNO7XVLTi 5uK/cmutHh8vO8MsprPPn1sn8GQUlvB2cEdfPNd3asp5AA== X-Developer-Key: i=michal.simek@amd.com; a=openpgp; fpr=67350C9BF5CCEE9B5364356A377C7F21FE3D1F91 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT094:EE_|DS7PR12MB5911:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ae4ce56-a983-4185-9a43-08db9426a7d4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1fQQ1+6JQMZMwBfKYGYnd0pcoa6/HWYGwZdjifIefOFvyEnsNKaAvu2ZWdPnuz8ixi9c1yEVBx+ion3iKkDHJ+A369/gPAzySymiC1JZxIru9xBU2B6l1ZtbaEUhPtPjSTbZmcoG53GvBN1Q4kumTvNjhzXiWJhZyvpjnGwBln+Xt76io3qiMEM1/9nCW8C+7G/coH9iUSjYl3FeuMgIa+EtiG5+zUJCldaojSChpv345dZjIKn1f3BV3hT4zURdAaJpYg4h+VDj2/6ztXvdfeCgfDyzEKyWo6QMhFfxw4n5I1THk1ONP+qIesLz4tctRCpyrz5KGsITFgscn1tM86EhX4fCVZcCdsIVhPeQiaKNP7JojytP7iCw606qRKdxB7+fDwhq4wcfy7WWZgX5tosciw/ikN+M7Uik1J3dG6heTiXDitapQHza7kj2l1e0bJCPuGeLJ1EMVvAduNKXdwLOnCbxSm7EeUtV1nbLKj1WQ7cOY/BCGlNxYUwU559WcLN6FRrdasJrCtRcf1EuDiUwG2AiTpebfdpwITMZ5WrQ3MO0kuObQOE0WJCFPkhUSQ1LZaBG+oc6B7a3X2qooirgx7ZQMjWUNOQUAOpICaKKat2+NT7qngP7kcHCX0PGcMw7agPkOiX8Kapt/McRz0qjVy6UoBAG508Ve19aXoQbif8Yk0VlDWcGPKkyX57fsJXWI9/hP4erdByinIkGBocVI0fwTwaWmMX2fm2eSoK9j1mPk6NLUOQliRheAkBTs6E1/R42AJxhUK555maKUFE4DDSu2tDTHSYZJIHTYpU= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230028)(4636009)(396003)(136003)(346002)(39860400002)(376002)(451199021)(82310400008)(36840700001)(40470700004)(46966006)(86362001)(36756003)(82740400003)(16526019)(40460700003)(40480700001)(54906003)(478600001)(110136005)(356005)(81166007)(47076005)(426003)(2616005)(336012)(186003)(26005)(83380400001)(8676002)(8936002)(6666004)(44832011)(41300700001)(966005)(316002)(36860700001)(5660300002)(4326008)(70586007)(2906002)(70206006)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2023 13:36:34.6734 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2ae4ce56-a983-4185-9a43-08db9426a7d4 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT094.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5911 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Hi, The commit https://github.com/devicetree-org/dt-schema/pull/105 added support for reading memory location where bootscript should be loaded. This is follow up series on reading information from DT where boot script is placed in flash memory. Patches are based on https://lore.kernel.org/r/b37aec1460d93727a9065766aa5f50fa356ae5aa.1690873880.git.michal.simek@amd.com and https://lore.kernel.org/r/b77352af92102dfad2e12a49a7680f5f64f8ee31.1690873880.git.michal.simek@amd.com I didn't send pull request to dt-schema yet because I want to check logic around it and DT variable names bootscr-flash-offset and bootscr-flash-size are correct. Also there should be follow up patch to remove CONFIG_BOOT_SCRIPT_OFFSET Kconfig symbol and remove variable script_size_f setup from config file. Also keep in mind that this is pretty much just 1:1 conversion between DT and variable. Upstream code is using it for QSPI only and we are also using in for NAND devices too. But the same approach could be used for DISKs, EEPROMs or SD RAW. That's why I pretty much think that DT description should be done a little bit differently. For example: bootscr-location = <&nvmem offset size>; Thanks, Michal Michal Simek (2): dm: core: ofnode: Add ofnode_read_bootscript_flash() xilinx: board: Add support to pick bootscr flash offset/size from DT arch/sandbox/dts/test.dts | 2 ++ board/xilinx/common/board.c | 13 +++++++++++-- drivers/core/ofnode.c | 34 ++++++++++++++++++++++++++++++++++ include/dm/ofnode.h | 27 +++++++++++++++++++++++++++ test/dm/ofnode.c | 9 +++++++-- 5 files changed, 81 insertions(+), 4 deletions(-) -- 2.36.1