Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3231601pxj; Mon, 7 Jun 2021 05:50:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYL/CXlXtf0bn5Lj7yvvFI2R679zgZsVS5LZp0AbxuQSHzxI4N8N7gexvl68SGUuCbtAn8 X-Received: by 2002:a17:906:b2c1:: with SMTP id cf1mr17393045ejb.544.1623070243815; Mon, 07 Jun 2021 05:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623070243; cv=none; d=google.com; s=arc-20160816; b=PT5JwIenUMo8JWfX9VrZJyRmLr6G8PQteyAmULKCBoYBAYbE9SWSunShw4156WomPO ENlLMDnuImUm+i/wMmxEOpex60ffS7L2yFEIQ2bc9LFv0gKkhKPSWdrNDs6FuFRA+cmc bY3R4fL+A91rKyHvCKyICv99AwHUclVeu9j7O0QCj/TKOxDdMNIH8B1+HR5o2UBz5Es/ 8ykBet7QyTvb37tsgGdkbQaIcJovkU7Ifql+WTphDpcaV6VdTVdW2Jgh3iEZyW5h43dt uEXFT0EoWz+EYfGz7K+POBC08MFtVHrT/3pjoYpVWw3IkRVSSp4QksoKuG+OjJGtOrPI ZilQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YqSp7b2sF5G/FF6lZynv4Wa2NCgdSNo+g2maX/I5cg4=; b=Yn1vbrB0MSWkwCRyfVqn+feI7Iet1hkqvCPwjvKyJ9PRV29z3Ecca01U1i5SoUr46a ZUzYc6uyLIhwbdpd77MYp7aISbOf1KD8eXH3b+QRcY1MGev32+ARcQ30k0xLuKdXLR3s zSK6iE8Lsv/Bx4l8VEOtPA2KUSQMzHHqYEHW0ttpUOztpIff5Ty/PSD7jUfMcajStcfv L4pvgOwp4SNMc6RYvCotNegcUpaCF8DAafYx9PXrcgleeth5DYVtAXLgEuUMcwNPOyi7 mqz4sVpANyQ1J7aadoje4Rg/5hg4m1ksbUG/lEhLYjHAFCrpBCcZaFTx1SmYb9qBqBWk Z3cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pozxQO3S; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n7si11770729edr.392.2021.06.07.05.50.20; Mon, 07 Jun 2021 05:50:43 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pozxQO3S; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230282AbhFGMu5 (ORCPT + 99 others); Mon, 7 Jun 2021 08:50:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230220AbhFGMu4 (ORCPT ); Mon, 7 Jun 2021 08:50:56 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB223C061766; Mon, 7 Jun 2021 05:48:48 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id n12so19044815lft.10; Mon, 07 Jun 2021 05:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YqSp7b2sF5G/FF6lZynv4Wa2NCgdSNo+g2maX/I5cg4=; b=pozxQO3Soc1f0c4FqsKQO2eA/CLdqPKeeIYIWArpk+9A/mym4x8dN7I/j5gGR3eWCA 7+niI5ea+m1cgiXG0rITWVXWlhi9wqIwR+uOMaiyxnAfQVLMmTDlFWNofOaOGNuCaAr3 0PuONwtNf++K6/Ic1rzwBZAHCCUg2yLTaXm4NYBCHfWWt3mggPqlZECDyQFqLHXGKVTL d6IPcVNbhsAGTPFqoD1oUBIZPh2wVxlsLsANH2szOnVKDKbA8vyDlHwfKWAtlfme1sMJ 7LKj4LtX+sYYRL8oQosg4JYmqzo7x4HS2NBKfP7DfECNN2fg9VKQoiEw9uXxyFKOFMdS zFBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YqSp7b2sF5G/FF6lZynv4Wa2NCgdSNo+g2maX/I5cg4=; b=kk+eWdI4jtOLTKQcyNpjJAYJwWcYn7K/xvwYtnZrnmhhpix6ICHEYkMiUw81aysT43 jRIHWvGYL2DFMqrHaOzRZ6bg2IG28jSV585puFuJXgsfxK5coA0UOUuCWohWlO/vhB3p QgSVNdLbG91kW71m2wvF83JbF+6IJ6s0OiMZxMImmFdodXPVUdfer8ILv3Yd8RR5PMZ9 Ds5QA365+8tXny4TLsK3hD8vyAuYhoygUpghYBBlnkT3tzW5QIhxUge6sJq2sc8BMreI h1ZYThBupYqtIqtT5lSLvokzLLDhGJ+8PI1ROOUWKjgbg3/iMI9PXlodIVRfTybmRBvJ CrdA== X-Gm-Message-State: AOAM532xXO92Ep4vsrT4KtpZc5p2mhCSHIiwmrFlhoIFLuNqNM7/m0mv SJyxi15VSidIwybjq5Vwx9qShEJctpsKAYZUvLMj29oeqk3q3rXA X-Received: by 2002:a19:3846:: with SMTP id d6mr12512848lfj.187.1623070127020; Mon, 07 Jun 2021 05:48:47 -0700 (PDT) MIME-Version: 1.0 References: <20210607081727.4723-1-cnsztl@gmail.com> In-Reply-To: From: Tianling Shen Date: Mon, 7 Jun 2021 20:48:34 +0800 Message-ID: Subject: Re: [PATCH] arm64: dts: rockchip: add EEPROM node for NanoPi R4S To: Chen-Yu Tsai Cc: Rob Herring , Heiko Stuebner , Marty Jones , Pavel Machek , devicetree , linux-arm-kernel , "open list:ARM/Rockchip SoC..." , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chen-Yu, On Mon, Jun 7, 2021 at 4:36 PM Chen-Yu Tsai wrote: > > Hi, > > On Mon, Jun 7, 2021 at 4:19 PM Tianling Shen wrote: > > > > NanoPi R4S has a EEPROM attached to the 2nd I2C bus (U92), which > > stores the MAC address. > > > > Signed-off-by: Tianling Shen > > --- > > arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts > > index cef4d18b599d..4a82f50a07c5 100644 > > --- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts > > +++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts > > @@ -68,6 +68,15 @@ > > status = "disabled"; > > }; > > > > +&i2c2 { > > + eeprom@51 { > > + compatible = "microchip,24c02", "atmel,24c02"; > > The actual part number is Microchip 24AA025E48, but I don't think > the way this device splits its storage area is easy to support > without additional modifications to the driver. > On the face of it, it seems to work fine, and I can read the data correctly. (built with at24 eeprom driver) Thanks, Tianling. > > + reg = <0x51>; > > + pagesize = <16>; > > + read-only; /* This holds our MAC */ > > Please also add the size, as well as a cell defining the offset > and length to the MAC address. The gmac node can then reference > this with: > > nvmem-cells = <&mac_address>; > nvmem-cells-names = "mac-address"; > > which will actually pick up the MAC address. > > > Regards > ChenYu > > > + }; > > +}; > > + > > &i2c4 { > > status = "disabled"; > > }; > > -- > > 2.17.1 > > > > > > _______________________________________________ > > linux-arm-kernel mailing list > > linux-arm-kernel@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel