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 8D2E3C433F5 for ; Mon, 2 May 2022 09:24:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C7CA483B63; Mon, 2 May 2022 11:24:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc 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; secure) header.d=walle.cc header.i=@walle.cc header.b="i8SCpV6O"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A6BC683D60; Mon, 2 May 2022 11:24:40 +0200 (CEST) Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BCDC383B2C for ; Mon, 2 May 2022 11:24:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@walle.cc Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 4EA1F2222E; Mon, 2 May 2022 11:24:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1651483476; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pm3XAddTytVif5V03tX340U8k8l1LDWHPa5xoxP+ct0=; b=i8SCpV6O366INceJEjCiP0JosQvy0ImHMqahjM2IXq71P6vCI+9AMv9q+COb1UqSYvACSq LgHdBEsPcwpx5muGnTC2CwFzhn96zMqRz8qyMx7+F8dzdxnussD28yn7LZcR4IJmOI9jQD CXuaJSgOpRWCzQZHZ10CWnQS1623p7E= From: Michael Walle To: eugen.hristev@microchip.com Cc: hs@denx.de, rasmus.villemoes@prevas.dk, u-boot@lists.denx.de, Michael Walle Subject: Re: [PATCH 1/2] misc: i2c_eeprom: add support for microchip 24aa025e48 Date: Mon, 2 May 2022 11:24:25 +0200 Message-Id: <20220502092425.2429380-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220429142212.233933-1-eugen.hristev@microchip.com> References: <20220429142212.233933-1-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.5 at phobos.denx.de X-Virus-Status: Clean > 24aa025e48 is a variant of 24aa02e48 that has a page size of 16 bytes. > > Signed-off-by: Eugen Hristev > --- > drivers/misc/i2c_eeprom.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/misc/i2c_eeprom.c b/drivers/misc/i2c_eeprom.c > index 89a450d0f8..265c1d0591 100644 > --- a/drivers/misc/i2c_eeprom.c > +++ b/drivers/misc/i2c_eeprom.c > @@ -176,6 +176,13 @@ static const struct i2c_eeprom_drv_data mc24aa02e48_data = { > .offset_len = 1, > }; > > +static const struct i2c_eeprom_drv_data mc24aa025e48_data = { > + .size = 256, > + .pagesize = 16, > + .addr_offset_mask = 0, > + .offset_len = 1, > +}; > + > static const struct i2c_eeprom_drv_data atmel24c01a_data = { > .size = 128, > .pagesize = 8, > @@ -264,6 +271,7 @@ static const struct i2c_eeprom_drv_data atmel24c512_data = { > static const struct udevice_id i2c_eeprom_std_ids[] = { > { .compatible = "i2c-eeprom", (ulong)&eeprom_data }, > { .compatible = "microchip,24aa02e48", (ulong)&mc24aa02e48_data }, > + { .compatible = "microchip,24aa025e48", (ulong)&mc24aa025e48_data }, As far as I can see, this is not a documented compatible string in the device tree bindings, which means u-boot is diverting again from its linux counterpart. (The same goes for the 24aa02e48). -michael > { .compatible = "atmel,24c01", (ulong)&atmel24c01a_data }, > { .compatible = "atmel,24c01a", (ulong)&atmel24c01a_data }, > { .compatible = "atmel,24c02", (ulong)&atmel24c02_data },