Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3082991pxj; Mon, 7 Jun 2021 01:38:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJBUEXtIJ/prvElyBdMoEKzgpb019UDWJ109tORFtqLNcRS4at2JM4N08X2U2nkCBLJYdp X-Received: by 2002:a17:906:13cb:: with SMTP id g11mr16655548ejc.169.1623055094516; Mon, 07 Jun 2021 01:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623055094; cv=none; d=google.com; s=arc-20160816; b=Ki5/3f1buN8O/TLZUIubl6kWZ7ARcEE0MSAiPNA40zA+MSz7dtmGCVS71ZpnSAD+rm Ah/N/OQMi55gnZX7tQdftd+cN6sPhIIUibApzEor46HqmAESQdbgxk3eBp7CXTO/tFbE c/WAK9ojjK6rlTkYcTKTY5reovlD68soRZZG+kGKH7Vsayx1ZPPJY9GP1tyfym1dUgqi ULpJ9IH2hK0HKEeMmAO7fLuDUcjfrmQbG8be53Hgnr121uYc8uIAcazG6mk04zTckae9 FHWgZ/ynnWcJLsn+5/yE8N0pVfFHTWMlHPXUgBIMe1eaI3WbOKm3K5qzFiL3uS3TS+Yq Ldmg== 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:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=5GGca0IMDhsVTKQX2jehJeDoBeRKHLKAj7zoaPRNwE4=; b=B6+2f0Rtm7NvE1H5HhzE3UZYTCYAAAYvu/Fhg9hRiXjespOW5pEm1LkflJj38IAZPa +LVA9UZvnZ3Q+G3ZwaeYUpk1/ljdGNJVMKOWLI7rBQvJlqhS1E29EaDjQrn1c30mBQcB 8SAwRmA6a15LP4xooLElH1b4CEJpy7Q+jYYj4o08R135KfiCWX4Yt3p6DxLHHUpBQ3AF 9Ttjfp0KJjF2XhKl8nyoLTqz0JAmbTXLYyk/HEak5X0+dLoJV0ZjMlt7KRwasSF4CvP2 PkMIQG3mvOCHqH3/jisrQ2t5l1hKt5pp/VJDd3GEey5p2bvVvVLwB1husamyrOeT2fuX kHOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GZbpZm9T; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m11si11908118ejc.708.2021.06.07.01.37.51; Mon, 07 Jun 2021 01:38:14 -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=@kernel.org header.s=k20201202 header.b=GZbpZm9T; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230289AbhFGIh6 (ORCPT + 99 others); Mon, 7 Jun 2021 04:37:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:51132 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230215AbhFGIh5 (ORCPT ); Mon, 7 Jun 2021 04:37:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 881EC61168; Mon, 7 Jun 2021 08:36:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623054966; bh=+zpft5AvcXKHe9fOwi2skebaDDUqkpkOm19ZzHH053Y=; h=References:In-Reply-To:Reply-To:From:Date:Subject:To:Cc:From; b=GZbpZm9TbLHT/N2VX0Son6t/vyD7AMhsahjBFCqzWfSUhiinh2pOyNJcTOc3CZhFz HNY/0R07HDwHvIkJ05lEC2uDiwSWaSSkJM4MoT9CEZtZTLEG21wZ67pvlNYYdl0n+X z5jIoi7RbbG1lEN5NA0wB/M37Ln0NgHyA5unbZ7x03fa1Ui6rissdWxa4snkjdmkkp mSumNC3IsVj5SmEcCocVCx26/ofvtHi0BCCzcVkC/C+MmTXpKl58epozHrVb5PEprq D9Coh7tg2rJVKgOOm7uiu70Q+zl8ERIlJr8xgRkKjZIUoxEveLWclbbiPPlk+2Wa0s QV9ROzmR6qjKw== Received: by mail-lj1-f173.google.com with SMTP id z22so5099154ljh.8; Mon, 07 Jun 2021 01:36:06 -0700 (PDT) X-Gm-Message-State: AOAM531+3otKkwVpgY+J64KoB9EuL6HPt0zMw0lzSBj3WXrrvV2Q760Q Lh6wIciEj6J9qAvscD8oFbJpkH4W00Qw7HIFFQ8= X-Received: by 2002:a05:651c:1501:: with SMTP id e1mr14575535ljf.74.1623054964950; Mon, 07 Jun 2021 01:36:04 -0700 (PDT) MIME-Version: 1.0 References: <20210607081727.4723-1-cnsztl@gmail.com> In-Reply-To: <20210607081727.4723-1-cnsztl@gmail.com> Reply-To: wens@kernel.org From: Chen-Yu Tsai Date: Mon, 7 Jun 2021 16:35:52 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: dts: rockchip: add EEPROM node for NanoPi R4S To: Tianling Shen 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, 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. > + 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