From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9AD6195F15 for ; Thu, 6 Jun 2024 12:14:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717676068; cv=none; b=pDubwqQo0UG4493FGHCmO1pr1tXNKRyg/FHqYiEW3pQRSYFOpI3xTdc6llmnm/vxeMWjmwTLmGKAAlXpGdtwwSMD3f43kTlp/WBThoSe+1nuuBeIms6uUODxRm5O8La1I0kiia4GxTVa9INEWOdgu/+mOlrqMPePTqv73PonmFQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717676068; c=relaxed/simple; bh=6Wohv+osAdLb7FnEZVEAAa/e/pGCKjdQxGRzOwQyVOo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dBfnJGv73vkDxBZNBbVgzVX1cguuNamYRJ3z/dhxwSqkD98neyYih1qC9RZevJu22Xe4yr9GtcCuyskdQ7z1wCYNq76/kPB9mRZxpMx/nD4Ubmexc/JQCG4EO8gXgFILcjaaARTg41WvM80mreFD1axGA6+kNXbD5NyErVpS0tM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=RdAjV9ES; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RdAjV9ES" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-57a677d3d79so3760944a12.1 for ; Thu, 06 Jun 2024 05:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717676065; x=1718280865; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=P4eR0U8qSC2JKNbsIe9eb3BDB8OBTYCS7ARMldo+loA=; b=RdAjV9ES7QP3/zlbiaQC7UxjHBJtqHjGzaGkuPDKIhc2opTV/ibDiAgx36Rh+T6KrK CSBzhAKncY2C2szDlY86Epeu+oy8aE6QxQG8K3SXm50ENLcMnb4olXg/nhGZeTHHuYl8 4vm2MtOOj8c6qvJ7qKcJMA+NgRPTNPEwN0eU/ya/TdDH5IYs1vZ8fxiQ0tKd8r0n18Al 6lu+XCbBo3YM608OgdXEGfLgfn+WhWrkLQdzEV9jccuMdHzSMY0UidbB5sDRwklewM9z D9HYwbiSEK6RqwGMJP5psiLobvQ3R1PQjy1jXZHy+r9saaDz/M/9ihOjov4+wK+CJBSe RHeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717676065; x=1718280865; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=P4eR0U8qSC2JKNbsIe9eb3BDB8OBTYCS7ARMldo+loA=; b=bH4y0rKTmEyV8h77DYrYxyKgehyieg26cvgKOHm09RYVxSzmvwxTVyLZAZ/g/iAnpM BIUga4Aeki2a8cwxkDdEcvoRPJCicPEzE+2x0EbMgpcCuj/A/bIYq+H1+73PskIucaAt KPBqfICljdWzw6bbH62ZTWymjEtk1iifhKYa7/F1SnCxAxvKuQ7IdLH62sBijVBNktUT ZGhqJA4LFo74Gh/5ox40IQ3eoIIDcIWofFE55P15gh6151QeLbas8Q+Ijm0/+3Pa49b9 VK2dp8JanLfhFOrPI7cRy370vOpfm8KsvSygvK8y6FIZHpkeQ/MIcVDcQ6w2wm8l8YGd dgTg== X-Forwarded-Encrypted: i=1; AJvYcCXKn5nmUvQieRjG+dOAd81Uw9TuRgHnBN8sKzv/ai9QXCd+ASaul+Revm6qO6kADo20/x7Zb1V+TQ1N65WrqRyvemjK2YjsplMg/Q== X-Gm-Message-State: AOJu0Yz8foXcmyEIv8yZVrZL95XX46bV0tElwWBhXORhCg75A/cybzWN L08dgqYSOYeikPG/bGgLol6C7eS9NvZ5dRsSuV5afQVXdv0zjO1146MmzzvDviOBfSdCZAWSGif F X-Google-Smtp-Source: AGHT+IEhF5VnQ6RnaPOF2ap3H2sWIDZtTNmy4OAYW9J+Tfvg4TS3Uau9eObHLN4jYtjlQ3mlVjyN6g== X-Received: by 2002:a50:9eeb:0:b0:579:fb7e:2112 with SMTP id 4fb4d7f45d1cf-57aa5425c5cmr2134985a12.11.1717676065035; Thu, 06 Jun 2024 05:14:25 -0700 (PDT) Received: from [192.168.2.107] ([79.115.63.17]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57aadf9d28bsm993500a12.19.2024.06.06.05.14.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Jun 2024 05:14:24 -0700 (PDT) Message-ID: <1094fbfd-0ee7-430e-b62c-20764c1fbeec@linaro.org> Date: Thu, 6 Jun 2024 13:14:21 +0100 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] dt-bindings: mtd: spi-nor: deprecate Everspin MRAM devices To: Thorsten Scherer , Michael Walle Cc: Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Marek Vasut , Imre Kaloz , Andrew Lunn , Flavio Suligoi , kernel@pengutronix.de References: <20240604074231.1874972-1-mwalle@kernel.org> Content-Language: en-US From: Tudor Ambarus In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 6/5/24 14:58, Thorsten Scherer wrote: > Hello, > Hi! > in the past I more actively worked on the ci4x10. That changed after switching > departments. Anyway, I thought maybe it's useful if I share my point of view. > > On Tue, Jun 04, 2024 at 09:42:31AM +0200, Michael Walle wrote: >> These devices are more like an AT25 compatible EEPROM instead of >> flashes. Like an EEPROM the user doesn't need to explicitly erase the >> memory, nor are there sectors or pages. Thus, instead of the SPI-NOR >> (flash) driver, one should instead use the at25 EEPROM driver. >> >> Signed-off-by: Michael Walle >> Cc: Uwe Kleine-König > > You cannot reach Uwe via this address anymore. > > IMHO missing in this discussion is > > kernel@pengutronix.de > > , which I added to CC. > >> Cc: Thorsten Scherer >> Cc: Marek Vasut >> Cc: Imre Kaloz >> Cc: Andrew Lunn >> Cc: Flavio Suligoi >> --- >> The referenced binding only supports the true AT25 compatible EEPROMs >> where you have to specify additional properties like size and page size >> or cypress FRAM devices where all the properties are discovered by the >> driver. I don't have the actual hardware, therefore I can't work on a >> proper driver and binding. But I really want to deprecate the use of >> these EEPROM like devices in SPI-NOR. So as a first step, mark the >> devices in the DT bindings as deprecated. >> >> There are three in-tree users of this. I hope I've CCed all the relevant >> people. With the switch to the at25 driver also comes a user-space >> facing change: there is no more MTD device. Instead there is an "eeprom" >> file in /sys now, just like for every other EEPROM. > > My vague memory tells me (at least some of) the domain specific applications > running on ci4x10 rely on MTD(block?) devices. So this change would break > user-space. it's a possibility, indeed. I assume we don't know for sure, right? > >> Marek already expressed, that the sps1 dts can likely be removed >> altogether. I'd like to hear from the other board DTS maintainers if >> they seem some problems moving to the EEPROM interface - or maybe that >> device isn't used at all anyway. So in the end, we can hopefully move if it's not used at all we can remove it entirely. >> all the users over to the at25 driver. > > The ci4x10 is still being used and sold. Right now I do not have a clear > view on the implications of moving to that driver. I'd like to invest some > time to sharpen my picture (or find the person that claims responsibility), but > this will propably not happen this week. > if it's used then we are forced to keep the entry in SPI NOR for backward compatibility. But we can still deprecate the use and forbid new support in SPI NOR while directing users to the other driver. > Hope this helps. > Thanks! ta