Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1544051pxf; Fri, 9 Apr 2021 10:58:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySNLNXoxnISvm+d+6baUNc9gawvOo8Fj7uxKq5ccDw8whJx18wfCjCQECUt7ZdHyhOcXRh X-Received: by 2002:a17:906:5f90:: with SMTP id a16mr586839eju.38.1617991104476; Fri, 09 Apr 2021 10:58:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617991104; cv=none; d=google.com; s=arc-20160816; b=un8XuDRk/hSL2CkJ50dyrVSk7b3Lt+ONRuZqtge40zrvNKL0XxmFLfEu/ACEruB0Oi 5Q6Rbjrwmr12IAtdiqhXuXjWFVL8h3zTBJIQTZEt0aXyBhxuGlvoeN1WQRgbYRt7oNgs 1kby0HO8OBp1GbrfavVj+cmASliD/v7taZ1hDR7Sijbx6SBhCi6T2rkAqWI+bY61PlFi xQ8qZK1IK9LYkoONHn44bDUcphgt2/n+0cm558YY4r8WeiCLriwf4f9m5JyuVdvVwjqI lsGHYzV0vktpOgs/1LZkcxxOxYVSEq1Gew7p9yteDISjOp2MuTovS4GvKJ6O0cOr+1mu W0mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from; bh=tiMTLmpWls+tdxCmSFcSjxkXi41fMltUdODuJDrkNKs=; b=M8ggIGegngVcwY/E/KONzQf/hq2+TzcOdtY4tfPTbvCtyKKhmPXWyOscFayht+U8EQ 3ncQbrKLLjKm5TTSiH6av0jQvtOpm7IIkB2ltASEdbIv8X2n5dIzFEulnVxrKEM5lL6l oj7Mn6vM/G3Urvfygt1oG4C8NUYl8wRVzwtkzWA5Ex8G+Uvh73xeisOlvG2h+tycNJqb zs0IDSrH0Y/sdqPwPdofEKF/kZzanCw0EmzhbO/6C4/Uqw0xFa1RwCESUPth4lludpMi IKFB0oEooe4WkkKN2Lm/h31p1FQWK6OO+cHHEFMULiU6ggjUmGS2FbCwv32TCESsmSeB 7Qvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g7si2426427edy.462.2021.04.09.10.58.01; Fri, 09 Apr 2021 10:58:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234375AbhDIRzY (ORCPT + 99 others); Fri, 9 Apr 2021 13:55:24 -0400 Received: from mailout08.rmx.de ([94.199.90.85]:54109 "EHLO mailout08.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233332AbhDIRzY (ORCPT ); Fri, 9 Apr 2021 13:55:24 -0400 X-Greylist: delayed 1998 seconds by postgrey-1.27 at vger.kernel.org; Fri, 09 Apr 2021 13:55:23 EDT Received: from kdin01.retarus.com (kdin01.dmz1.retloc [172.19.17.48]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout08.rmx.de (Postfix) with ESMTPS id 4FH4gM0ScjzMsfQ; Fri, 9 Apr 2021 19:21:51 +0200 (CEST) Received: from mta.arri.de (unknown [217.111.95.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by kdin01.retarus.com (Postfix) with ESMTPS id 4FH4gK18Kdz2xCK; Fri, 9 Apr 2021 19:21:49 +0200 (CEST) Received: from n95hx1g2.localnet (192.168.55.67) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.498.0; Fri, 9 Apr 2021 19:21:48 +0200 From: Christian Eggers To: , , Jiri Prchal CC: Rob Herring , Jiri Prchal Subject: Re: [PATCH 0/3] nvmem: eeprom: add support for FRAM Date: Fri, 9 Apr 2021 19:21:47 +0200 Message-ID: <4311739.LvFx2qVVIh@n95hx1g2> Organization: Arnold & Richter Cine Technik GmbH & Co. Betriebs KG In-Reply-To: <20210409154720.130902-1-jiri.prchal@aksignal.cz> References: <20210409154720.130902-1-jiri.prchal@aksignal.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Originating-IP: [192.168.55.67] X-RMX-ID: 20210409-192149-YcHNxFStkyvC-0@out01.hq X-RMX-SOURCE: 217.111.95.66 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jiri, I have two Fujitsu different FRAMs running with the stock at25 driver. I set the page size equal to the device size (as FRAMs have no pages). Are you able to run your FRAM with the unmodified driver? I assume that getting the device geometry from the chip is vendor specific (in contrast to flash devices which have standard commands for this). I suppose that there is no much value getting vendor specific information from a chip. If the drivers knows the vendor, it should also know the chip (e.g. from the dt). regards Christian On Friday, 9 April 2021, 17:47:17 CEST, Jiri Prchal wrote: > Adds sopport for Cypress FRAMs. > > Jiri Prchal (3): > nvmem: eeprom: at25: add support for FRAM > nvmem: eeprom: at25: add support for FRAM > nvmem: eeprom: add documentation for FRAM > > .../devicetree/bindings/eeprom/at25.yaml | 12 +- > drivers/misc/eeprom/Kconfig | 5 +- > drivers/misc/eeprom/at25.c | 151 ++++++++++++++---- > drivers/nvmem/core.c | 4 + > include/linux/nvmem-provider.h | 1 + > 5 files changed, 139 insertions(+), 34 deletions(-) > >