From patchwork Tue Jun 23 02:51:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 191404 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1589281ile; Mon, 22 Jun 2020 19:51:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeuNrdM5/MwmKFWEBjrG7NtSBXlVMUe4D6XjFEaoEwZqUOQhnmmfqZihhvDEBdn3Lrq+Ot X-Received: by 2002:aa7:da17:: with SMTP id r23mr20548024eds.261.1592880708060; Mon, 22 Jun 2020 19:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880708; cv=none; d=google.com; s=arc-20160816; b=K/Qn4+zyUTWLj73MrJNekKNa1iMQwNJ287pzek9oLBYPlwA6yfrPUL2+fjdokXqaxY cBkfBv6vH9vlnL2Z2lPUjJUKfV1xWMTK0NjHOo6I6X9Y448/UJkDdvpem4dUsXLJJopA kbO7yZ6HFbfxBlTFHc4m2RKJrWqtTbP7pQDOoQqXYU90BOEr85v7Ehui2+TesgNv1wsc BJbqGa80w+KosAQRs28+MAtBnUOA6Ktu9cJAPx5AVJUwPvk/LtZpUWvhdtcHJV5C6uWY e9aNb5bMMyv/rzYgmHth2IhekcWFGll/+Z9fd5xB2jmxST218lb3N4uvAS4aQU2ZMWlt KS8w== 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=bzumRYl9bYgYV7r0BUGG6DbAI7UobNFspzbHnZkFU0AGdk/INTfGtQExTcpyq/6lRI Q9G5TC8QNYF18NOCNxRp2/E/w5T4T93oAtQNsvm0eEGh+HlkOBm8vSJnqGaiCA8PB/Nj fT9MUKL2MdSPgyjUxEzZ8bAcRa1LS/YQ560lzn7Gwtw5z3UiCmcTllXTAI9Mzxt1lPrA L4E8gIGkrtxXtzECxLUTEjitJJQnHA8mbpasKsvqhh7qubwlTPbeaGlggNeQZYeUkD1v HKKP2H4HQoXdEh5Y0molmxmcmd4JGN1WKyL8FG1Fmwd/OSH384OYIibHx693kgUIt4Fm dQ5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 a9si10392776ejk.553.2020.06.22.19.51.47; Mon, 22 Jun 2020 19:51:48 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731988AbgFWCvo (ORCPT + 6 others); Mon, 22 Jun 2020 22:51:44 -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_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?b?SmFtZXMgVGFpIFvmiLTlv5fls7Bd?= , =?utf-8?b?U3RhbmxleSBDaGFuZyBb5piM6IKy5b63?= =?utf-8?q?=5D?= , Edgar Lee , =?utf-8?q?Andreas_F=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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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(-) -- 2.26.2 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 {