From patchwork Sun Oct 10 13:50:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chukun Pan X-Patchwork-Id: 12548517 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 7824BC433F5 for ; Sun, 10 Oct 2021 13:52:42 +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 3903C6109E for ; Sun, 10 Oct 2021 13:52:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3903C6109E 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:References:In-Reply-To: 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: List-Owner; bh=/jZumdi89rkwa8N1fEjyTwBSyyyZs0gtqUaSVtQkzow=; b=IfRImmau2aGKCP GT49czbRVEusQzDfgOkJJyScvw65iWWhEQuDd/B5q6stzOVQ+GS3KShJEa6l0N4uAyk3wrNnIUexc QMmtcG0P5ojAn3ONq9u6nhMX9rVHiIpv1S5t7FCKJJh77pTnUTpYqkrJZ9niWZGr82GWU8FmmAW1e jsTrBlOHzN3a02G9oKWCqNx9dukWiBsLwzRXW/yrrO8MtdDxjZoEJRRU/0sKpi0VCZCm+yxOr5mV2 EPhVZlSJBCHEJn5GbntxZKQxvyDCNwdoLfiLVoaOjQl7Ab76H5OVfUDDPBzVaZYbIPjL6U+fqGe7c jJddudUEWXDFmiiHMkdA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZZE8-006sr0-61; Sun, 10 Oct 2021 13:50:56 +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 1mZZE3-006snJ-SW for linux-arm-kernel@lists.infradead.org; Sun, 10 Oct 2021 13:50:54 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211010_065052_161043_55D88C7E X-CRM114-Status: GOOD ( 11.81 ) 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 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>; + }; }; };