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 26C2CEE8011 for ; Fri, 8 Sep 2023 14:42:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6373E86A17; Fri, 8 Sep 2023 16:42:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.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=ti.com header.i=@ti.com header.b="H/JLraJY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D422E86A1D; Fri, 8 Sep 2023 16:42:57 +0200 (CEST) Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 2548386560 for ; Fri, 8 Sep 2023 16:42:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=nm@ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 388Egbiu017320; Fri, 8 Sep 2023 09:42:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1694184157; bh=Hlkh79KkqhwthOoIEPvk65voxogW6+XXbhMdmaKxPVY=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=H/JLraJYCyE23w3yNGmi65RDqWlTK0RdlFAntIlxzx4padPw8XZj9zviF/Ddh66lk URstmRAokJkjmauKiYGsWPCyJg4SjqguV/qk/l7IWealz/vjt5dwRxgj9K71rPOUhT Rw6uRuy+FYggknMhyeayz75ii/PZ9uwpx6r3z9Ig= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 388Egbrb068128 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 8 Sep 2023 09:42:37 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 8 Sep 2023 09:42:37 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 8 Sep 2023 09:42:37 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 388EgbNT027052; Fri, 8 Sep 2023 09:42:37 -0500 Date: Fri, 8 Sep 2023 09:42:37 -0500 From: Nishanth Menon To: Apurva Nandan CC: Hari Nagalla , Lukasz Majewski , Sean Anderson , Jaehoon Chung , Neha Malcom Francis , Simon Glass , Andrew Davis , Kamlesh Gurudasani , Dasnavis Sabiya , Manorit Chawdhry , Aradhya Bhatia , Bryan Brattlof , Christian Gmeiner , Heinrich Schuchardt , Marcel Ziswiler , Roger Quadros , Jason Kacines , Jayesh Choudhary , Ralph Siemsen , Yanhong Wang , Marek Vasut , Rasmus Villemoes , Subject: Re: [PATCH v3 11/16] board: ti: j784s4: Add support for board detection by EEPROM read Message-ID: <20230908144237.qd4ito3c656hmfp2@degrading> References: <20230908110551.861575-1-a-nandan@ti.com> <20230908110551.861575-12-a-nandan@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230908110551.861575-12-a-nandan@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 On 16:35-20230908, Apurva Nandan wrote: > From: Dasnavis Sabiya > > The board name is programmed in the EEPROM. Add support for board > detection and choose the right dtb based on the board name read > from EEPROM. > > The J784S4/AM69 has two platforms naming J784S4-EVM and AM69-SK. The > J784S4 has EEPROM populated at 0x50. AM69 SK has EEPROM > populated at next address 0x51. So start looking for TI specific EEPROM > at 0x50, if not found look for EEPROM at 0x51. > > Also, add support for setup_serial() to read the serial number from EEPROM > and update the serial environment variable with the same. > > Signed-off-by: Dasnavis Sabiya > Signed-off-by: Apurva Nandan NAK. go with the approach similar to AM62x. AM69-SK has it's own fragment. -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D