Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EAD78606A31A for ; Tue, 1 Dec 2026 00:47:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=xRNsmARE; dkim=pass (2048-bit key, unprotected) header.d=phytec.de header.i=@phytec.de header.a=rsa-sha256 header.s=selector2 header.b=CPGqFmA0 Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id B8FCE4074F; Tue, 1 Dec 2026 00:47:17 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id GRpZVuA_zmH0; Tue, 1 Dec 2026 00:47:17 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org 0362440750 Authentication-Results: smtp4.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796086037; b=gsYGcpZnjCUiByqFHwDPUCLrBc/9s++c0dME9ngkQCwM+rzTg2jFaTYOuCM9zX8ni8+S ooOAO5fKrdrsEO/+0qX9bCRjYc6NderlusSij289tmHwo8jawvIv0IMfK48+mdRdfJ3LG SKhUssFUAM8wxszAjL6DpBsL3SDxJZ+QPXMzNutV3C9y4WNZdnzcaTl61PkNCNhEbQuS/ RChlG0R1Mpn1c6cqVc76Da4BbBazuoughSQSucYdtz84crL7mHqgM6RqK9zYtqyh6qxny KA6rnDlg22CrTUd+kWLu/gjmTdnu0470u5/Ds1RweUFKoqmeJwZIGkTBboEy5OqgCaQ== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796086037; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received: DKIM-Signature:Received:Received:X-MS-Exchange-Authentication-Results: Received-SPF:Received:Received:From:To:CC:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:Content-Type:X-Originating-IP: X-ClientProxiedBy:X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-BeenThere: X-Mailman-Version:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Errors-To; bh=NKOXYzRHDQgnwP3R8KbsCL230qr+9vsXuQC9i7viNC0=; b=MUqq9V1jGVZQeXyN/pEhB0jVM2frmUnvNKhk4PgvBnngndo+JyWsQCHMrMMkg1iVYIGs WnNIpkJTPMZnLBTOnCJ4IiqpN39EoYkeHLUKHolIfuKR/uadeUHycr8NaweHRwBLU/ywm eoBVdSZBbtOSnn0lTtdleagaXiNgjnd+tX3AI8jmlpzNSrh7ssRrO/2Hh0N/yqvbVLVWp ht9L7MeWAiqHUP2nb9i7P5JYrbeaKpLNm8KfiHvZ77e27YdFHDV9Wo8kYxXwbdwFfowgc 0fZV5zykE4nZvGciIpl8CFLQy8fAZMXBA/Vsbm/3BFc6k0KleeSxqs1O6TdCMUyj5yw== ARC-Authentication-Results: i=1; smtp4.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1796086037; bh=NKOXYzRHDQgnwP3R8KbsCL230qr+9vsXuQC9i7viNC0=; h=From:To:CC:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=xRNsmARE3pBXh9MaR7v9MeHHCWsigJAPvW+JVQz6b8Id4Juf+m+N52Q4m+mQ3U3LK Zf9WtXuGtOE/iGQ/NxZTc1Kmhf2smreHbKHb7zqkNbDsYb9CUP8zo1xlREdCX+brid cIcl6zrqxR5Fl7NEsVhq2WqVpa0SYzetLeyKHu38FKVWeVtgzefanXCpBsz6LAQpgl rO3KDthz4/zTJc3V0c/YLQRlm2sx4qxNO7/rU30mAxmoKI/bU2DOeMhBWRQtwINvyD 4AoABFYHgFANqnq2fpUzB+91uac5xmkCo/5UdfRn/yAp1g20C1muC5LoNJfbnbQSJW r14HU24ny9NJA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 0362440750; Tue, 1 Dec 2026 00:47:17 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists1.osuosl.org (Postfix) with ESMTP id 27015373 for ; Tue, 1 Dec 2026 00:47:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 1000780F59 for ; Tue, 1 Dec 2026 00:47:16 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id PfcKVcoW-yoZ for ; Tue, 1 Dec 2026 00:47:15 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org F3B8880F58 Authentication-Results: smtp1.osuosl.org; arc=pass header.oldest-pass=0 smtp.remote-ip="2a01:111:f403:c200::3" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a01:111:f403:c200::3; helo=du2pr03cu002.outbound.protection.outlook.com; envelope-from=d.haller@phytec.de; receiver= Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=phytec.de Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=phytec.de header.i=@phytec.de header.a=rsa-sha256 header.s=selector2 header.b=CPGqFmA0 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazlp170110003.outbound.protection.outlook.com [IPv6:2a01:111:f403:c200::3]) by smtp1.osuosl.org (Postfix) with ESMTPS id F3B8880F58 for ; Tue, 1 Dec 2026 00:47:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phytec.de; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NKOXYzRHDQgnwP3R8KbsCL230qr+9vsXuQC9i7viNC0=; b=CPGqFmA070Yyf0bvy8uaufi+APsktnOUfPHyv3HvY9r7zu4Kx8PdNb4mxGS9HpTfDlc1nByjoj7rz/cnYAkoFR7xQGZASFQKxz21n29Qkchuc2o6kz9YZ8Z4WzYjzo2Cibq+6ZxL3OZ/pf5smgkyJS4EYoTdbOluxYyagaAyB2+4xUcNhrLOWPHnxdyBAhtoV4B7hycJ74/l+KSCsN3eaqTCYwRBoTR9C40quZ4UHsHKTKRAGErD6VhgLZHbqFATTYOBqGsL6Papdnf13bAHdLK4jpOON9FbPkQQxqMfADI7VFJdzPc6xdysxM0AiVshYkJ6VfmJUivFb7amRcODIg== Received: from AM8P191CA0024.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:21a::29) by DBAP195MB0841.EURP195.PROD.OUTLOOK.COM (2603:10a6:10:1ca::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.13; Tue, 1 Dec 2026 00:47:09 +0000 Received: from AM1PEPF000C1AD7.eurprd02.prod.outlook.com (2603:10a6:20b:21a:cafe::9e) by AM8P191CA0024.outlook.office365.com (2603:10a6:20b:21a::29) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.10 via Frontend Transport; Tue, 1 Dec 2026 00:47:09 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=fail (sender IP is 91.26.50.189) smtp.mailfrom=phytec.de; dkim=none (message not signed) header.d=none;dmarc=fail action=quarantine header.from=phytec.de; Received-SPF: Fail (protection.outlook.com: domain of phytec.de does not designate 91.26.50.189 as permitted sender) receiver=protection.outlook.com; client-ip=91.26.50.189; helo=Postix.phytec.de; Received: from Postix.phytec.de (91.26.50.189) by AM1PEPF000C1AD7.mail.protection.outlook.com (10.167.242.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Tue, 1 Dec 2026 00:47:09 +0000 Received: from lws-haller-privat.phytec.de (172.25.39.212) by Postix.phytec.de (172.25.0.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Tue, 1 Dec 2026 01:47:07 +0100 From: Dominik Haller To: Tom Rini CC: , , "Dominik Haller" Subject: [PATCH 2/6] board: phytec: Add phycore_am68x to som detection Date: Mon, 30 Nov 2026 16:46:35 -0800 Message-ID: <20261201004644.381033-3-d.haller@phytec.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261201004644.381033-1-d.haller@phytec.de> References: <20261201004644.381033-1-d.haller@phytec.de> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: Postix.phytec.de (172.25.0.11) To Postix.phytec.de (172.25.0.11) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM1PEPF000C1AD7:EE_|DBAP195MB0841:EE_ X-MS-Office365-Filtering-Correlation-Id: a3ec78f5-bd84-4529-52a5-08df4f44a144 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|1800799024|36860700016|23010399003|11063799006|6133799003|22082099003|18002099003|261009223027099003|56012099006|10067099003|261026121527099003|261022075727099003|261102123227099003|261021123027099003|261021121427099003; X-Microsoft-Antispam-Message-Info: vdTSYIYa+QOz2njLHkjMoT7ZLgBcCv+mS66e4hxgocgiDQG1nzptKR0NxSG19f7onEWe6DdGmGP4zgvKjqLUM4I2C5YwxRVEHiX2WExZvprsHr6dKQgYOdjqDojjmhZZOCZg/WwHKKQYVbhi6ruLhium6Z7+w1c3CR0I1i23tjATjCzxzDziPalykWcIHkssvO6GE4ruqoHMZ8q8k8/q/Rn3vEgzOsSh44LcuWudHRKqMpTfwl+iXiO77Zovr8Q5ZAgbbyVRzTHS2eqSGtR73pF6LIaXHZltuRwOhrrUGq2onrL7IFhlXPyFKGHpQreXCXpU0ac1kHSN6c0H2WMjIQwIqcPRaXlXAMtqcbR2eD5879GYgw6L9x4JBvFmpDeyKQI+U5kEtImcC62OkfAFVMbvWaMfvTnqZcl3wxglc/37UWko2qULGvclNGS5KCx2PHSnWlgEbTMdodQVDc2h8SRP3PWkh03gyJMLMLXIHtb6pHwQTwhpQ9698+xZa2pC7WbZTWJu8NriWmd5SHhbuN3ypnSa0H61jTMf6bt89rLs2YKUt9+L0BlRpv5rDNe1Bb+uD0svtQWwpknb1czsZnrXIfYVxnF8lgX8A6zvZ3bsbE90IDixAZ9HAvY5iUQSUybcNcNhumjYXBbTTgavSYBn01bIO0EMM15wy7aUxA3VJAVoDkZ1ksS3145zEYxPDAneZtSNSfFVgd2P3uQVvA== X-Forefront-Antispam-Report: CIP:91.26.50.189; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:Postix.phytec.de; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(82310400026)(1800799024)(36860700016)(23010399003)(11063799006)(6133799003)(22082099003)(18002099003)(261009223027099003)(56012099006)(10067099003)(261026121527099003)(261022075727099003)(261102123227099003)(261021123027099003)(261021121427099003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: F9cqmHiRUkGfZHICpwRE4Ngru7fz5Ubo4OGevLs4WiZICDojjRJJ4nUHVryWlZaihxq4VkhbHdVSxA8bVon/rIPSPIY+22KlGGkqlWle5+Pvcw+wTMZwYTMwNNpE2N3UBre1Dpu+bE/Lgm8JAqew5jTFZoc1qezyAjCMnyEhswES9taeoIchk9V2bsca2p6vzt1bf6WjQDb15ZaSLtUBoknSKwNO1jwdZbI6Jt8xMmvo/lj6u6qNFDM1Hkv11XyTegH0XM/Gryd+SEa3vlMRztkJ/gwG2/YS5dp/DqiCfDccw/usOR4bfVe57cuyXsCXY8r79Aaq8k6nvW+Yy42BfGfdqlIFszG2srAQnkVYD6rLF3lyj+6M09fxIIX+0sbwrYU3PCdgNT220Qq78Fs6pR9vxSzmier2fC4A7ht9HBdMmSrD3jssDvxhuyXhxfzd X-OriginatorOrg: phytec.de X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2026 00:47:09.1399 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a3ec78f5-bd84-4529-52a5-08df4f44a144 X-MS-Exchange-CrossTenant-Id: e609157c-80e2-446d-9be3-9c99c2399d29 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e609157c-80e2-446d-9be3-9c99c2399d29; Ip=[91.26.50.189]; Helo=[Postix.phytec.de] X-MS-Exchange-CrossTenant-AuthSource: AM1PEPF000C1AD7.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAP195MB0841 X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Add the phycore_am68x (internal number: PCM-074) to the common phytec som detection functions. Signed-off-by: Dominik Haller --- board/phytec/common/Kconfig | 11 +++++++++++ board/phytec/common/am6_som_detection.c | 7 ++++++- board/phytec/common/am6_som_detection.h | 1 + 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/board/phytec/common/Kconfig b/board/phytec/common/Kconfig index 87fa70632e5d..f6381bb1e5c1 100644 --- a/board/phytec/common/Kconfig +++ b/board/phytec/common/Kconfig @@ -60,6 +60,17 @@ config PHYTEC_AM64_SOM_DETECTION Support of I2C EEPROM based SoM detection. Supported for PHYTEC AM64x boards. +config PHYTEC_AM68_SOM_DETECTION + bool "Support SoM detection for AM68x PHYTEC platforms" + depends on (TARGET_PHYCORE_AM68X_A72 || TARGET_PHYCORE_AM68X_R5) && \ + PHYTEC_SOM_DETECTION + select PHYTEC_SOM_DETECTION_BLOCKS + depends on SPL_I2C && DM_I2C + default y + help + Support of I2C EEPROM based SoM detection. Supported + for PHYTEC AM68x boards. + config PHYTEC_EEPROM_BUS int "Board EEPROM's I2C bus number" range 0 8 diff --git a/board/phytec/common/am6_som_detection.c b/board/phytec/common/am6_som_detection.c index f5de5de48210..1883c85a3cec 100644 --- a/board/phytec/common/am6_som_detection.c +++ b/board/phytec/common/am6_som_detection.c @@ -12,12 +12,14 @@ extern struct phytec_eeprom_data eeprom_data; #if IS_ENABLED(CONFIG_PHYTEC_AM62_SOM_DETECTION) || \ IS_ENABLED(CONFIG_PHYTEC_AM62A_SOM_DETECTION) || \ - IS_ENABLED(CONFIG_PHYTEC_AM64_SOM_DETECTION) + IS_ENABLED(CONFIG_PHYTEC_AM64_SOM_DETECTION) || \ + IS_ENABLED(CONFIG_PHYTEC_AM68_SOM_DETECTION) /* Check if the SoM is actually one of the following products: * - phyCORE-AM62x * - phyCORE-AM62Ax * - phyCORE-AM64x + * - phyCORE-AM68x * * Returns 0 in case it's a known SoM. Otherwise, returns -1. */ @@ -49,6 +51,9 @@ int phytec_am6_detect(struct phytec_eeprom_data *data) if (som == PHYTEC_AM64X_SOM && soc_is_am64x()) return 0; + if (som == PHYTEC_AM68X_SOM && soc_is_j721s2()) + return 0; + return -1; } diff --git a/board/phytec/common/am6_som_detection.h b/board/phytec/common/am6_som_detection.h index 0b3c9c8e1ee8..d84f7dee6bc5 100644 --- a/board/phytec/common/am6_som_detection.h +++ b/board/phytec/common/am6_som_detection.h @@ -13,6 +13,7 @@ #define PHYTEC_AM62X_SOM 71 #define PHYTEC_AM62AX_SOM 75 #define PHYTEC_AM64X_SOM 72 +#define PHYTEC_AM68X_SOM 74 #define PHYTEC_EEPROM_VALUE_X 0x21 #define PHYTEC_EEPROM_NOR_FLASH_64MB_QSPI 0xC -- 2.43.0