From patchwork Fri Oct 1 14:50:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chukun Pan X-Patchwork-Id: 12530765 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7E1EC433F5 for ; Fri, 1 Oct 2021 14:53:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 95A57619E7 for ; Fri, 1 Oct 2021 14:53:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 95A57619E7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=jmu.edu.cn Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2GNIHTPiSqEsNzAib8Cqw88evreBrolXMShi9H5hQTc=; b=bYMUWDDCP+Eiv9 XY1PSaTD23aUEF6BNaT9jzUJAY7Zb3P6RcsChO6Gzp5+eUvJeOcCSmcZY0PWII0Uyh8LjzYRKq2mF ZvI7ZUdaZb1UKAMha8WhRVdiygnn89afW2qR7t06b61p6T8Nnzh6QmtW5j0eoItbPx77WRrSiThjZ r8646QzwqRNI0/eJtvU+sLhKJA3CuenOdRU19AWlf4I1V9lT+5t9fl2aVV4/JenYcouSsdJ/yxgsL dM3v8pVJN1W14H75em0uejKGmZNCaDhemOYk4L2jkVF7xsRBmMJjp9HbLYjTDhiFPkmEXq00Rvtwf typkFsri4wOdPJHVYMKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mWJsP-000d1N-6k; Fri, 01 Oct 2021 14:51:05 +0000 Received: from mail-m17638.qiye.163.com ([59.111.176.38]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mWJsI-000cyU-BS for linux-arm-kernel@lists.infradead.org; Fri, 01 Oct 2021 14:51:02 +0000 Received: from localhost.localdomain (unknown [112.48.80.210]) by mail-m17638.qiye.163.com (Hmail) with ESMTPA id 588041C00DC; Fri, 1 Oct 2021 22:50:48 +0800 (CST) From: Chukun Pan To: Rob Herring Cc: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Chukun Pan Subject: [PATCH] arm64: dts: allwinner: NanoPi R1S H5: use the correct compatible for the eeprom Date: Fri, 1 Oct 2021 22:50:36 +0800 Message-Id: <20211001145036.18129-1-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.17.1 X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgPGg8OCBgUHx5ZQUlOS1dZCBgUCR5ZQVlLVUtZV1 kWDxoPAgseWUFZKDYvK1lXWShZQUhPN1dZLVlBSVdZDwkaFQgSH1lBWRpJTExWTExPGkxOSUxPGU 1JVRMBExYaEhckFA4PWVdZFhoPEhUdFFlBWVVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MRA6OBw*PD4NNzgiAkkRNipJ OQoKCx1VSlVKTUhIS0JCQ09CS0pJVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUpK SVVPQ1VDS1VJSktZV1kIAVlBSUtJTTcG X-HM-Tid: 0a7c3c561b9cd993kuws588041c00dc X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211001_075058_627576_185F46D1 X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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"; pagesize = <16>; + reg = <0x51>; + read-only; /* This holds our MAC */ }; };