From mboxrd@z Thu Jan 1 00:00:00 1970 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D6FDCCAC592 for ; Tue, 16 Sep 2025 23:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vZ4jWWafjjXcwH05GnObD9olZZvV2Ky5W91cHEQ+Ek0=; b=Bn3uKHL/s5+HwAKEd+sGhpZpJO w6JO1wZaWsUjpQVK2n1phmGaaeN+aOoMdfbA51EAPzmlt0BbC9scAM9uTcka6CvSqaX/d2KDXrCPN ngylTzg6lU13OZ6Zx81XYn/Qn1c0r0LdlJaUQdIPwAL5vzNopye0mr9LWSm7Sworo0ZtyCX3mh46q RPLZxjBhJBRsuaONhZZxqPdG8Ny4sM/MRFHeipeDL09Ip91Lu1/A3UceN864US4RznAiqQfmvBeDL rmvHscKVUdPa9poS8Cr9G0YevNeHWF3Zs3p7xAfq5zn/0vcBVZcxPVHY/V8OD9g2hduKIfUhqbDYq ZnIkiNsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uyejs-00000009VLR-4B93; Tue, 16 Sep 2025 23:05:32 +0000 Received: from pidgin.makrotopia.org ([2a07:2ec0:3002::65]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uyejq-00000009VK1-1mQq; Tue, 16 Sep 2025 23:05:31 +0000 Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.98.2) (envelope-from ) id 1uyejn-000000005va-3sor; Tue, 16 Sep 2025 23:05:28 +0000 Date: Wed, 17 Sep 2025 00:05:25 +0100 From: Daniel Golle To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 2/4] arm64: dts: mediatek: mt7986a: add 'serial' cell to efuse Message-ID: <689dad6ea05479b520100bd6ec92dfa7a541ec4d.1758063737.git.daniel@makrotopia.org> References: <18af6977cc34de75e64279141dee69dcbc81c420.1758063737.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18af6977cc34de75e64279141dee69dcbc81c420.1758063737.git.daniel@makrotopia.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250916_160530_469403_F18F136B X-CRM114-Status: GOOD ( 10.84 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The efuse of the MediaTek MT7986 contains an 8-byte unique identifier. Add a 'serial' cell covering those 8 bytes to the nvmem defininition of the efuse to allow easy access from userspace, eg. to generate a persistent random MAC address on boards like the BananaPi R3 which doesn't have any factory-assigned addresses. Signed-off-by: Daniel Golle --- arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi index a8972330a7b8..0823eb586ec6 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi @@ -450,6 +450,10 @@ efuse: efuse@11d00000 { #address-cells = <1>; #size-cells = <1>; + serial@140 { + reg = <0x140 0x8>; + }; + thermal_calibration: calib@274 { reg = <0x274 0xc>; }; -- 2.51.0