Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp672572pxb; Sun, 10 Oct 2021 08:17:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwK7z/2ceZ7kxikbI7G6DmnUBnH06OgtGy4vedUeIq32MZgyT7hOLEcpMMGHkb4o2N5EhkX X-Received: by 2002:a17:902:7e44:b0:13e:aaf8:e259 with SMTP id a4-20020a1709027e4400b0013eaaf8e259mr19442616pln.14.1633879042537; Sun, 10 Oct 2021 08:17:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633879042; cv=none; d=google.com; s=arc-20160816; b=HgcbQrlqSC6GSM7ryzfs5G2ZWHsYILCCrCoFLwI53zdP/RxIXxQjSNf7BOpL0amKga CICKlXAjwpxf1bQRo2ChcVhArgbvY7cvm3DeKROhTf9BO0GAhZocr3T6JF6LERA2x8eJ ZTroFnfvIpqie3AwG4GmMEGiaR7SEcbb9l6AP2eyPekWzP48DL9alxRoSYYh2t2SG4Gd UVpVdFSoLQmwYzUnQi9/zuLkhlhsdUK/B18lfPJl/gHBDe4I/AKR41xh6Dc2UrJbwTZ7 Eu3QZa7ok8PyIfr0BzWNzxNDysuY4bk1NMIHwhEdS+zOJASnofy1XW3N/GMfheQGLS1D 8VZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=7yGAoau4GBpzdjDpBn72jLgsD1SQTFicIO44GNUd0yQ=; b=v3r7CwJIpVJy28eINadm5z7UJj+c/MErUsgs8LhU+gbfRZ1YNdd+wM6KS4IprWtQa/ JlLKJvOQZTY1jVqAN94g0D6ftKJdk+qhZeRihsZVIo9bVb8ENpaoeZL+30crTafTFhi5 Xnll9j9N8fsX+3L6XkAPCZFL98JCo58MefqWUWB6nog4/TdE9jzRLUGqaNMs/e/8NEB9 q1Up+Z/Wo0BpGqLkMhu4SLnSY4bEZmGCPgnlhB7WMqiR6leycg7NWpPR+VaO4X1YWVoO AojDq6UpBZhGQtYk9Bgbv2tyCDVHGS0EboUlmT6/I9XR+Gc5snEn464p0VA5YAemVJKZ MzyA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x16si5031154pgj.261.2021.10.10.08.16.55; Sun, 10 Oct 2021 08:17:22 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232549AbhJJNwp (ORCPT + 99 others); Sun, 10 Oct 2021 09:52:45 -0400 Received: from mail-m17638.qiye.163.com ([59.111.176.38]:33550 "EHLO mail-m17638.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231907AbhJJNwo (ORCPT ); Sun, 10 Oct 2021 09:52:44 -0400 Received: from amadeus-VLT-WX0.lan (unknown [58.23.36.250]) by mail-m17638.qiye.163.com (Hmail) with ESMTPA id EAD921C0190; Sun, 10 Oct 2021 21:50:42 +0800 (CST) From: Chukun Pan To: Chen-Yu Tsai Cc: Maxime Ripard , Rob Herring , 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 v2 1/1] arm64: dts: allwinner: NanoPi R1S H5: Add generic compatible string for I2C EEPROM Date: Sun, 10 Oct 2021 21:50:17 +0800 Message-Id: <20211010135017.6855-2-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211010135017.6855-1-amadeus@jmu.edu.cn> References: <20211010135017.6855-1-amadeus@jmu.edu.cn> X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgPGg8OCBgUHx5ZQUlOS1dZCBgUCR5ZQVlLVUtZV1 kWDxoPAgseWUFZKDYvK1lXWShZQUhPN1dZLVlBSVdZDwkaFQgSH1lBWRkYGkxWShkaGh9LHxhOTU xJVRMBExYaEhckFA4PWVdZFhoPEhUdFFlBWVVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NBw6FAw4NT4TPzcWTgIsPw1D Dj4KFEJVSlVKTUhIQ0xIQ09ISExDVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWU5D VUlIVUhNVUlOS1lXWQgBWUFJT05ONwY+ X-HM-Tid: 0a7c6a7853ccd993kuwsead921c0190 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 'microchip,24c02' compatible does not match the at24 driver, so add this generic fallback to the device node compatible string to make the device to match the driver using the OF device ID table. Also set this eeprom to read-only mode because it stores the mac address of the onboard usb network card. Signed-off-by: Chukun Pan --- .../arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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..55b369534a08 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,16 @@ status = "okay"; eeprom@51 { - compatible = "microchip,24c02"; + compatible = "microchip,24c02", "atmel,24c02"; reg = <0x51>; pagesize = <16>; + read-only; + #address-cells = <1>; + #size-cells = <1>; + + eth_mac1: mac-address@fa { + reg = <0xfa 0x06>; + }; }; }; -- 2.17.1