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 X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E62DC10F0E for ; Thu, 18 Apr 2019 13:36:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4FA4620652 for ; Thu, 18 Apr 2019 13:36:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388973AbfDRNgv (ORCPT ); Thu, 18 Apr 2019 09:36:51 -0400 Received: from smtp-out.xnet.cz ([178.217.244.18]:32849 "EHLO smtp-out.xnet.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388346AbfDRNgv (ORCPT ); Thu, 18 Apr 2019 09:36:51 -0400 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 69CDA4262; Thu, 18 Apr 2019 15:36:48 +0200 (CEST) Received: from localhost (meh.true.cz [local]) by meh.true.cz (OpenSMTPD) with ESMTPA id c89ef53a; Thu, 18 Apr 2019 15:36:46 +0200 (CEST) Date: Thu, 18 Apr 2019 15:36:46 +0200 From: Petr =?utf-8?Q?=C5=A0tetiar?= To: devicetree@vger.kernel.org Cc: Alban Bedel , Maxime Ripard , Srinivas Kandagatla , linux-mtd@lists.infradead.org, netdev@vger.kernel.org, Boris Brezillon , John Crispin Subject: Reading MAC addresses with NVMEM under MTD partition [Was: Re: [PATCH v3 1/3] nvmem: Update the OF binding to use a subnode for the cells list] Message-ID: <20190418133646.GA94236@meh.true.cz> Reply-To: Petr =?utf-8?Q?=C5=A0tetiar?= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1521933899-362-1-git-send-email-albeu@free.fr> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, I'm wondering what is the status of this patch? I'm currently trying to do following with modified of_get_mac_address[1] which uses nvmem_get_mac_address under the hood: flash@0 { partitions { compatible = "fixed-partitions"; art: partition@fe0000 { label = "art"; reg = <0xff0000 0x010000>; read-only; eth0_addr: ethernet-address@0 { reg = <0x0 0x6>; }; eth1_addr: ethernet-address@6 { reg = <0x6 0x6>; }; wmac_addr: ethernet-address@1002 { reg = <0x1002 0x6>; }; }; }; ð0 { nvmem-cells = <ð0_addr>; nvmem-cell-names = "mac-address"; }; ð1 { nvmem-cells = <ð1_addr>; nvmem-cell-names = "mac-address"; }; &wmac { nvmem-cells = <&wmac_addr>; nvmem-cell-names = "mac-address"; }; It seems to me, that this use case is not supported yet, but it could be probably handled with this proposed patch or something similar. What could be done in order to move forward? Thanks! 1. https://github.com/ynezz/linux/commit/919e9a943af4cdf9b78b0ead17e9855be90d9466 -- ynezz