Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4815327pxb; Tue, 5 Oct 2021 10:53:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUsSTF7Oz5ite+jIXvGM2c58y0W8wVObMkauHXTR3eOgIbgUf0qqZ31FgYg+agC3U1mxOh X-Received: by 2002:a17:906:105a:: with SMTP id j26mr7165222ejj.40.1633456396708; Tue, 05 Oct 2021 10:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633456396; cv=none; d=google.com; s=arc-20160816; b=w3o0/IRPElwht3C9IzOiIYNKtPAvmR/NAWUivZzc7OfqJnSZkR64DgsIjW+LxfkPj0 1AGK+intnwXWHwTe1z19XNZWUgJdTNUK94zjr4UlkwNCzSIxmamYAZ2wOjGL7+HAubPr zbnOgaR7wQKwMkzHMnw2NoaTgKrz7z6rtcYgE0oyke7t0yTbzca5uokwIOwuhsHIpsFQ sZe0CCHcQt9SydFnvFOh26sS+MdUm5E08khn11puzLkQrS+N9+lK1z7ijp4zMxOdpxIk Ag9L7lsiR/As+Bc2i/WE5m8f8v+NiLf12YmEL2Zhs1RdElX2D6vRBQ3f3QxAbFd5Xwff EcSQ== 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; bh=knPNhU6TGHSpaIW4FMVFzxPZT1aU7QZlnO0dpjVPljQ=; b=LV4SfPp2fO1yv4wU648UAdKReWfzLv1YKtMDAD1n5DhS8cUXrWW3pbYtVHtJXphExe kW3gd/IvEJcIklRCsVrvsRHysC1kO36fYme+z/L0vkqZcC1TLGjhDjIJNukc+wnLBxH3 rXHul5WIvrtgdGg4c9IayUmd4cY7EHZgFo2FsCCqMzrszM2lbyUb5PpKPExAvgoGogIY UO+IlToV+Af+9Y8r5SwmvBIpfnQmjnOffdNPjwA9VdKywGDJXcUEDXKMArwJ0Qt5pnoc bWIOjot6QtTDLSXQF0RVchr3CiF2r2Dz+kGIodmHNyHMNiU7vCKEcV1S+XKVOfQbHzOM fjqA== 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 kl25si22291227ejc.370.2021.10.05.10.52.52; Tue, 05 Oct 2021 10:53:16 -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 S232869AbhJERur (ORCPT + 99 others); Tue, 5 Oct 2021 13:50:47 -0400 Received: from mail-ua1-f48.google.com ([209.85.222.48]:38457 "EHLO mail-ua1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbhJERul (ORCPT ); Tue, 5 Oct 2021 13:50:41 -0400 Received: by mail-ua1-f48.google.com with SMTP id y3so10074756uar.5; Tue, 05 Oct 2021 10:48:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=knPNhU6TGHSpaIW4FMVFzxPZT1aU7QZlnO0dpjVPljQ=; b=jXSv8vv+Rp5zFIA41ygAAJT/L+MjQL+mklcAYKMyRzjImD7k87K+TNEu5N6DezYmm2 Jf71Vq7m0z4EkRlcZi44cl/lN0BoDhOLIgwkI/VY4DgrXYdotCBWWKE0UWt0YaBwYzBL ks7JR4BUK1TXox4/Bc/Os0OhFaa1Vl2/0GNNjBBQELORSWo7UwXm00107iAAcTkstTKa crCot3HUshp1zoepu8IRLv1nGcZlShcSpGNSfJEKZEz9QHtd/uWVF5jqm4j+ZI3zx4Jm OmYQeygXTlYUTluuISzULVsOGioOQfW9gWl9Jk7x+ZbhQ9YtYjKFGSbZ0lAvXRsoyl6u xJMg== X-Gm-Message-State: AOAM531z4jDWUu1xwttOWDaUTXR3Z5PJH1ClFpZIKAahEAPSmkGQI42t p9X6wjo2/AM7V2DF5xOmdaaIwC39t0epeQ== X-Received: by 2002:a05:6130:40d:: with SMTP id ba13mr14837438uab.124.1633456130422; Tue, 05 Oct 2021 10:48:50 -0700 (PDT) Received: from mail-vs1-f53.google.com (mail-vs1-f53.google.com. [209.85.217.53]) by smtp.gmail.com with ESMTPSA id p8sm3296614vke.11.2021.10.05.10.48.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Oct 2021 10:48:50 -0700 (PDT) Received: by mail-vs1-f53.google.com with SMTP id 188so174474vsv.0; Tue, 05 Oct 2021 10:48:49 -0700 (PDT) X-Received: by 2002:a05:6102:448:: with SMTP id e8mr8269328vsq.49.1633456129199; Tue, 05 Oct 2021 10:48:49 -0700 (PDT) MIME-Version: 1.0 References: <20211001145036.18129-1-amadeus@jmu.edu.cn> In-Reply-To: <20211001145036.18129-1-amadeus@jmu.edu.cn> Reply-To: wens@csie.org From: Chen-Yu Tsai Date: Wed, 6 Oct 2021 01:48:37 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: dts: allwinner: NanoPi R1S H5: use the correct compatible for the eeprom To: Chukun Pan Cc: Rob Herring , Maxime Ripard , Jernej Skrabec , devicetree , linux-arm-kernel , linux-sunxi@lists.linux.dev, linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Oct 1, 2021 at 10:51 PM Chukun Pan wrote: > > The 'microchip,24c02' compatible does not match the at24 driver, so > replace it with 'atmel,24c02'. In addition, because the mac address > is stored on this eeprom, set it to read-only mode. > > Signed-off-by: Chukun Pan > --- > arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts > index 55bcdf8d1a07..4f01c17c49e0 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts > @@ -142,9 +142,10 @@ > status = "okay"; > > eeprom@51 { > - compatible = "microchip,24c02"; > - reg = <0x51>; > + compatible = "atmel,24c02"; You should add the atmel compatible as a fallback one, not replace the microchip one. Also FTR 24c02 is not the correct part number. It is 24aa025e48. > pagesize = <16>; > + reg = <0x51>; Please don't move the reg property. It should follow the compatible. > + read-only; /* This holds our MAC */ Please also add a cell representing the MAC address, and hook it up to the GMAC. You can find an example here [1]. Regards ChenYu [1] https://lore.kernel.org/linux-rockchip/20210622034505.18824-1-cnsztl@gmail.com/ > }; > }; > > -- > 2.17.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel