Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3249724ybt; Mon, 22 Jun 2020 19:54:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8T3P32mBTxHOYCrvFKkP4+NiZnweDQl8Ra6/LsHPNOW/uV0EBbb+uCrGew3Nye18hQ7g6 X-Received: by 2002:a17:906:95c2:: with SMTP id n2mr17438261ejy.339.1592880896108; Mon, 22 Jun 2020 19:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880896; cv=none; d=google.com; s=arc-20160816; b=1Jz54nyrj4j28XiRGpM/lw2U4Vt33EeBsbx3zi0KRj1MWLDWRQOtQj0KE08EGpvt0N AqenLf7ZkogBtc0zH1GvzogxT1zdu8TDbl/ivxm4Nh5LrAeeGfdDKJJT5+nDju7iTiY6 7G+lYJtgG02EJvp2q1GReATm7ePynZ0UsS5e7caSCgtzENu0+3zqLL+FwAEkPP4B/yGz T7Y2BQu9U8grSWpJavWJyh++woNhVo+Rf7hlX3GxwK3E02tQB4qP+qDbU3vXIcZ/Feib +LGRwlbQVXaWiYwRfISVOL8eHC4BNIWKfnFAh18pc6pSYtL/npBExK5E+VWuoexbWWc7 i+tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=vycTbMaXwdyZH2lntTjF7ag4rfMqvMH+6psOUyIEuwk=; b=WfiKvJzXG4nDFvkMplrCi+ag6DIQRjGRPPRsdj0+aviMgSPN5welr2r6VFVHTCIILP dd0IJO9jnlEymQjYQ+IRuSeCza+vHNsF9QklNmIx0aRJAa/kBkntN5SOQATrCiJ21xvs d+9pn17gM9MzOtdfdz/Wt1n28JRgTVDOL4XPtz/4X3bXMRVkBOEIt62kee3mNLEMzcCx DZrpZ16Ux8KSzy+145pmyx6aB9UJYWf++kduhkNYVh0+gZs7eMeYZ3kONxQuYiKztg75 swntKBxlVGFgHOhhBSqtacWiCdEDb671Gfj84bWyy6zRZF+qF1YckeFXa47axMv0v9Af 2XlA== 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 m3si405257edv.382.2020.06.22.19.54.33; Mon, 22 Jun 2020 19:54:56 -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 S1732207AbgFWCwS (ORCPT + 99 others); Mon, 22 Jun 2020 22:52:18 -0400 Received: from mx2.suse.de ([195.135.220.15]:33040 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731972AbgFWCvn (ORCPT ); Mon, 22 Jun 2020 22:51:43 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 54B1AB1A4; Tue, 23 Jun 2020 02:51:41 +0000 (UTC) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?James=20Tai=20=5B=E6=88=B4=E5=BF=97=E5=B3=B0=5D?= , =?UTF-8?q?Stanley=20Chang=20=5B=E6=98=8C=E8=82=B2=E5=BE=B7=5D?= , Edgar Lee , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH v2 25/29] arm64: dts: realtek: rtd129x: Add eFuse package_id to chip-info Date: Tue, 23 Jun 2020 04:51:02 +0200 Message-Id: <20200623025106.31273-26-afaerber@suse.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200623025106.31273-1-afaerber@suse.de> References: <20200623025106.31273-1-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the package_id field as sub-node to eFuse and reference it for chip identification. Signed-off-by: Andreas Färber --- v1 -> v2: * Instead of extending reg, use nvmem-cells reference for eFuse arch/arm64/boot/dts/realtek/rtd129x.dtsi | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/realtek/rtd129x.dtsi b/arch/arm64/boot/dts/realtek/rtd129x.dtsi index 8f96d4e4c46b..c35955e915f4 100644 --- a/arch/arm64/boot/dts/realtek/rtd129x.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd129x.dtsi @@ -156,6 +156,13 @@ reset4: reset-controller@50 { }; }; +&efuse { + efuse_package_id: package-id@1d8 { + reg = <0x1d8 0x1>; + bits = <0 2>; + }; +}; + &iso { iso_reset: reset-controller@88 { compatible = "snps,dw-low-reset"; @@ -202,13 +209,6 @@ uart2: serial@400 { }; }; -&otp { - otp_package_id: package-id@1d8 { - reg = <0x1d8 0x1>; - bits = <0 2>; - }; -}; - &sb2 { sb2_hd_sem: hwspinlock@0 { compatible = "realtek,rtd1195-sb2-sem"; @@ -220,6 +220,8 @@ chip-info@200 { compatible = "realtek,rtd1195-chip"; reg = <0x200 0x8>; iso-syscon = <&iso>; + nvmem-cells = <&efuse_package_id>; + nvmem-cell-names = "efuse_package_id"; }; sb2_hd_sem_new: hwspinlock@620 { -- 2.26.2