From patchwork Tue Jun 23 02:50:38 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: 191415 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1590211ile; Mon, 22 Jun 2020 19:53:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzx5plMhz81fFj+4Vz0moQQWTf1XCMu3W+hxKvuxkAhD2fn0xGZ0d4RInYMGyWiYTXkN/U X-Received: by 2002:a17:906:6410:: with SMTP id d16mr19374965ejm.376.1592880827229; Mon, 22 Jun 2020 19:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880827; cv=none; d=google.com; s=arc-20160816; b=KIO7fs3zIng7Gc0sJ725KGucLN2NBU5MnqCxJi2zV9hVwidLJY7o9HY+/wBa6CSjoV sm4rlDH1UzhvAT1EbLqvJJJD0PtNqMva+MLR57M7vzbY3rO4luYFMwDKTTVe1HiehE4U jz093MTkYomIdQ4EnBPXBAhNsWkiCBj/ym+30cBslGsDvlKQhMIAefIZ5s+KCJhkFtKL ZDouMYP9zAcHcAi9t3mM8qrnQrmGyrAO+SftEL2J6189OBWeQXFfCIMh7R3/iK7tr45N 16e2gnJj0WgzAImw45C3sMRZCc1zARR+4lXhao9wlVbfbCBqFs5uFpyk6mCIyjV0uGjc FB5w== 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=Uc2i3MZrgudvEMiFdYZR8F864V70lvULEouJoTmf7rc=; b=SI9eJuILs5nsz0etj5cKFR6atTWXk/k/KwqWjlkVktn1BOdhEjNald4T9lYy8gi9Dm CiWOEtSmVxvWNHOWwbZ84R5UJFOzL2svFJ+FuZ60C7z9vez8uVihIXE7ogTzjkGYSyj7 nkf4hii4uWahQFIAHZTCP2HMJN/Xh2MNl31Wa3Myf6zUlGljlEQzdMj1TX1Sms6yNasv VK+mJNghZyhXnJLgOOUTGmwFPyX154rreE9L4ulpwjjcnnJt49eZYFbMzsk46tAuBDim TUJr4SAElW7WLrhgNyui8kCpqAFgbNzCSbzWBZVD/aEN8Y5zXsBqEORCnw8/UK+oZOM1 cPmA== 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 l22si490302edv.546.2020.06.22.19.53.47; Mon, 22 Jun 2020 19:53:47 -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 S1731848AbgFWCvc (ORCPT + 6 others); Mon, 22 Jun 2020 22:51:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:32924 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731842AbgFWCvc (ORCPT ); Mon, 22 Jun 2020 22:51:32 -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 6AA9FAE35; Tue, 23 Jun 2020 02:51:29 +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 01/29] dt-bindings: soc: Add Realtek RTD1195 chip info binding Date: Tue, 23 Jun 2020 04:50:38 +0200 Message-Id: <20200623025106.31273-2-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 Define a binding for RTD1195 and later DHC SoCs' chip info registers. Add the new directory to MAINTAINERS. Signed-off-by: Andreas Färber --- Note: The binding gets extended compatibly twice with additional properties. Could be squashed later if approved. v1 -> v2: * Dropped quotes for compatible (Rob) * Added additionalProperties: false (Rob) .../soc/realtek/realtek,rtd1195-chip.yaml | 34 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml -- 2.26.2 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml b/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml new file mode 100644 index 000000000000..86a1de214782 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml @@ -0,0 +1,34 @@ +# SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/realtek/realtek,rtd1195-chip.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Realtek Digital Home Center chip identification + +maintainers: + - Andreas Färber + +description: | + The Realtek DHC SoCs have some registers to identify the chip and revision. + +properties: + compatible: + const: realtek,rtd1195-chip + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + chip-info@1801a200 { + compatible = "realtek,rtd1195-chip"; + reg = <0x1801a200 0x8>; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index d282ee3492e0..78adbc3cc101 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2307,6 +2307,7 @@ L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) L: linux-realtek-soc@lists.infradead.org (moderated for non-subscribers) S: Maintained F: Documentation/devicetree/bindings/arm/realtek.yaml +F: Documentation/devicetree/bindings/soc/realtek/ F: arch/arm/boot/dts/rtd* F: arch/arm/mach-realtek/ F: arch/arm64/boot/dts/realtek/ From patchwork Tue Jun 23 02:50:40 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: 191413 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1590156ile; Mon, 22 Jun 2020 19:53:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyT+dHzWurf+DGJ6eX2zwZBIpZrh/Q1S2SYOPqGOLIKvDOPd5m4Gf38l1zCzrb9MJb+St42 X-Received: by 2002:a05:6402:1a48:: with SMTP id bf8mr20223218edb.133.1592880821714; Mon, 22 Jun 2020 19:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880821; cv=none; d=google.com; s=arc-20160816; b=vC53xfpFaoTJkHWU6jXke6IPoUakdiOLvs2mIdDSPo3Gvhjr+QHOHkyzdJIwiCB1sJ +BahvWflYfWiFVTfxKws6OPkWf57L57pSMg2q/YoEO84LQLP5sKvht1xv9ymfhPGXDWX iEyOBcTqMBX4cGIn0Ln3H0uIS8fPpRj7K589oYfKmn93kmIlaUx5f6ZS1iYA3rgr0z3z GtS+P52zzbOmr8W3VOH3aZT8puY4JdF2bsBaxxBTzKlqdI+3IGTntmTG7FzV2jPAQ9/W XRC4fIih3y4qhmJAV/idEI2WyfTEdfSq6hU/Slgxx5w4lJwPT9PhFvBJT4AOMG/dzMCX 8nrw== 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=0YH2uljtALUy0BsKOt+EZ2u0vwG8VMIz/MvbYT4M+ps=; b=Qeq9l4I+yR400St+QEj4+s80uuLizPVS1LwInQfhSxLdOws9J2CcizPIzpyeWv/YmS 8eCpEpPUAf6lQLGIXqpy19j4hUV9sh0OHUay04A/whpMynV3eAIWSwHKpSjkkR9699Oe u9ACCA5ehy0BiYFvbUKrCopIYUZ3drVTHvz7E5erOXWn6g9Oi9OuLuI+ATHj2VzxQ7Vn HcKe/TO+BGtJe7ZcLaSgyfwX0bojsAl2vpt4OWTkaC65TCkUnrwJN6f5iUh933BOCFjN 3lyQRiO20lbIYsBOE0vaJHRtqYbB0Gbz76ve15DgwKHA16rdxjb2HTtq7NyS4mT0WOIW 5igg== 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 l22si490302edv.546.2020.06.22.19.53.41; Mon, 22 Jun 2020 19:53:41 -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 S1731869AbgFWCve (ORCPT + 6 others); Mon, 22 Jun 2020 22:51:34 -0400 Received: from mx2.suse.de ([195.135.220.15]:32972 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731843AbgFWCvd (ORCPT ); Mon, 22 Jun 2020 22:51:33 -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 DADD2AE7B; Tue, 23 Jun 2020 02:51:30 +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 03/29] arm64: dts: realtek: rtd129x: Add chip info node Date: Tue, 23 Jun 2020 04:50:40 +0200 Message-Id: <20200623025106.31273-4-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 a DT node for chip identification. Acked-by: James Tai Signed-off-by: Andreas Färber --- v1 -> v2: * Rebased onto SB2 syscon arch/arm64/boot/dts/realtek/rtd129x.dtsi | 5 +++++ 1 file changed, 5 insertions(+) -- 2.26.2 Reviewed-by: Stanley Chang diff --git a/arch/arm64/boot/dts/realtek/rtd129x.dtsi b/arch/arm64/boot/dts/realtek/rtd129x.dtsi index 93ab6fdd03d4..b5be9df80dae 100644 --- a/arch/arm64/boot/dts/realtek/rtd129x.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd129x.dtsi @@ -201,6 +201,11 @@ sb2_hd_sem: hwspinlock@0 { #hwlock-cells = <0>; }; + chip-info@200 { + compatible = "realtek,rtd1195-chip"; + reg = <0x200 0x8>; + }; + sb2_hd_sem_new: hwspinlock@620 { compatible = "realtek,rtd1195-sb2-sem"; reg = <0x620 0x20>; From patchwork Tue Jun 23 02:50:41 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: 191412 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1590111ile; Mon, 22 Jun 2020 19:53:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE2fT/dWIFwMME4BlLbDXM3d9VzhYSiVGYqrCyEtQYiser7uBqBTf7Zs7WVrtm8Y90yq26 X-Received: by 2002:aa7:dc50:: with SMTP id g16mr20556640edu.318.1592880816294; Mon, 22 Jun 2020 19:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880816; cv=none; d=google.com; s=arc-20160816; b=Lzu28+ovI/+OylOcTdK5BwNyJlHrwqoclTdHjfnCHB5CGm0Ey1ZbSJPTN7D0qaN3NK 0rn1zrZx1stkr9EDjGVdKFApnLt6H2hI+JIzsjMsTYmC4GNKlaura+qvPXj6IQYpmN9D n6DYHVGqFgpHjV6aTJbLfio6YlHLVgi6VUVIMOM025dJFweXcwKYrtEvPIcZKWbw2UbE titVBl2itXK4K/XkTntG5dwVUrQAfH0MXuT1mQeTqijE209V/OiEnIBnlGwWT+NAyHUG pDELLPJqU7YNxvQSd/OKCLIF3+u6It+69zgDTJ4w+LvFm/5S4Xhos8YGgpT9PJ8/1cYP 7ysQ== 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=jjrl/5YC/hs2GCmFNMVgeIn4srT3qvARfCo+YG7ohZg=; b=d3qeSUtQq9+T0hOYmiFLQQjqHdG9JXoutWwC7Om6W5HxaFrItCoIE4rXFI4eFuM318 dcIhX4LyJmnbaYwgY4uA2U0mZHOcTawODcX/Zx62eMb4iEHCr3h85T93VvCJE+k5VQSq LL9CtwbbjQJ3dSyB5TkCwf6aqDhPdUWs1EQCrSBdvDNsueYvXqxXR1Ihnqj+kSNrLTXu 43cyFVQNQ5bAICjWV8wufJahmtbXjdJpFRKYG6aH+0E/jjy0Pzri/3uNbc2Wbx4SKBya 5kHKRu7/icApW1QJbXzf/QlHFo/6WoJYyCAHca1dApuS5sm4AvSmJCSczkNQvGuL35gH TZ+A== 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 l22si490302edv.546.2020.06.22.19.53.36; Mon, 22 Jun 2020 19:53:36 -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 S1731879AbgFWCve (ORCPT + 6 others); Mon, 22 Jun 2020 22:51:34 -0400 Received: from mx2.suse.de ([195.135.220.15]:32996 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731847AbgFWCvd (ORCPT ); Mon, 22 Jun 2020 22:51:33 -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 52C0DAE7A; Tue, 23 Jun 2020 02:51:31 +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 04/29] ARM: dts: rtd1195: Add chip info node Date: Tue, 23 Jun 2020 04:50:41 +0200 Message-Id: <20200623025106.31273-5-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 a DT node for chip identification. Signed-off-by: Andreas Färber --- v1 -> v2: * Rebased onto SB2 syscon arch/arm/boot/dts/rtd1195.dtsi | 5 +++++ 1 file changed, 5 insertions(+) -- 2.26.2 Reviewed-by: Stanley Chang diff --git a/arch/arm/boot/dts/rtd1195.dtsi b/arch/arm/boot/dts/rtd1195.dtsi index 6fd12a2d766e..5ad0e81c37af 100644 --- a/arch/arm/boot/dts/rtd1195.dtsi +++ b/arch/arm/boot/dts/rtd1195.dtsi @@ -223,6 +223,11 @@ sb2_hd_sem: hwspinlock@0 { #hwlock-cells = <0>; }; + chip-info@200 { + compatible = "realtek,rtd1195-chip"; + reg = <0x200 0x8>; + }; + sb2_hd_sem_new: hwspinlock@620 { compatible = "realtek,rtd1195-sb2-sem"; reg = <0x620 0x20>; From patchwork Tue Jun 23 02:50:42 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: 191398 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1589209ile; Mon, 22 Jun 2020 19:51:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmAv1zOL8DFO5s7UbUMoF/jm42czinXj9U2FeMx/sDe4T4nVQ6RHWhk/e0hUa7bz7GIWdd X-Received: by 2002:a17:906:4e0a:: with SMTP id z10mr17856018eju.57.1592880696825; Mon, 22 Jun 2020 19:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880696; cv=none; d=google.com; s=arc-20160816; b=anMinbY+hCW/WiU0zjhrXkBrnTL/3/F3ByP7epbSb0EIRwj3dBsCX8fiQ9lzJDrEp3 uizo6LfuAWy5tlfYtltTsx/jEO6+g+/4aaCIV+Zs3ll/an6h4ee7Z4K+n6ykEx9LoGJs +qD5ETIBb89ZNEKW2SbQ7/J15keCHwDR5JAH1sMlt7KBydXqMq8Tq635r/rPasDGUChE qDkbRQMVPaxt5WxOvnVsShfHXjRWh2jxUCGX2lYu9uUCGSoZjlzUNsGOTF+sAWM16u3G +deChTq6881qDMeW9EbS1Co6MUq0JPsQ3ZRMQjRU+DsYbuYNFxD9HMkGq0uCI0MZMfIp HXfQ== 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=5WPM/wtqX5R78+w4hNJT615kaa/5c2HUiRdfJ5fBNW4=; b=JMfdetqbgre9jTIaqvXZWws66RdW+6d7wFngxng307+x9JNqDFgwOfH0lxSw7uHqOW I00k6nid+U9DImrILMosk145/6x/x6pkHcuuVfdV5kbcHbReBal2kwH04wa7uucxJ7yY e0oX/AqwiKyqO0aj7wSqK9WS09IqpI5qdi+90wGGXfMoFRDpJDCGv0TYtens9dzzT5GX R4sS71Ja2IKzAzrJitR4AGdqLJJDhP91mrYQWLySVWgbQPjq2Rxw9+AuoMiMA7wny87e nQURqysADFLl5FzqGzqxzvIBApH7rqTl07mSHav2uT1jzwYGSKphHcuDJzIut8LFOr65 YPfw== 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 d6si4469064edx.203.2020.06.22.19.51.36; Mon, 22 Jun 2020 19:51:36 -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 S1731892AbgFWCvf (ORCPT + 6 others); Mon, 22 Jun 2020 22:51:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:33024 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731858AbgFWCve (ORCPT ); Mon, 22 Jun 2020 22:51:34 -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 C6987AE70; Tue, 23 Jun 2020 02:51:31 +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 05/29] dt-bindings: soc: realtek: rtd1195-chip: Add iso-syscon property Date: Tue, 23 Jun 2020 04:50:42 +0200 Message-Id: <20200623025106.31273-6-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 Allow to optionally specify a phandle to iso syscon to identify the chip. RTD1295 family will want to check the ISO_CHIP_INFO1 register. Signed-off-by: Andreas Färber --- A SoC specific binding would defeat the purpose of the generic Linux driver detecting the SoC based on registers. Simply allowing it all for SoC families seems the most flexible. v1 -> v2: * Instead of extending reg, allow optional iso-syscon property for RTD129x. Iso syscon currently does not have a compatible, and it may need to differ across SoC families. .../bindings/soc/realtek/realtek,rtd1195-chip.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.26.2 diff --git a/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml b/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml index 86a1de214782..dfe33c95f68d 100644 --- a/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml +++ b/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml @@ -11,6 +11,7 @@ maintainers: description: | The Realtek DHC SoCs have some registers to identify the chip and revision. + To identify the exact model within a family, further registers are needed. properties: compatible: @@ -19,6 +20,8 @@ properties: reg: maxItems: 1 + iso-syscon: true + required: - compatible - reg @@ -31,4 +34,10 @@ examples: compatible = "realtek,rtd1195-chip"; reg = <0x1801a200 0x8>; }; + - | + chip-info@9801a200 { + compatible = "realtek,rtd1195-chip"; + reg = <0x9801a200 0x8>; + iso-syscon = <&iso>; + }; ... From patchwork Tue Jun 23 02:50:44 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: 191411 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1590066ile; Mon, 22 Jun 2020 19:53:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMP2aWtoAU3r0VD15F3y/aDVqPXfutMmXsE2XhvV7TaoJ1eAxkiPmquGmYi5tqxrLSVGOQ X-Received: by 2002:a05:6402:943:: with SMTP id h3mr20676244edz.89.1592880809647; Mon, 22 Jun 2020 19:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880809; cv=none; d=google.com; s=arc-20160816; b=gkqNEVb+W96zyw2NceNti3IdCIy3y8uc3m7nVZIirfatpVL3n7CWip5Gx60tmlMRCz C26xnlCB8g/Fex44JAcDHLTdl/bnjMidDiAFQqYYa9lHGOpheIRnFn01cimvpgAO41X8 Wqm7SachC8t8Cw1JpZ1QiCVjTs4i57l2qxH34lk8CvqLKhg+I/SBtFZkE+s8IQsU7fYW ozL3kNwXxG2QYExVcjl2cy80b97e824h3uwtq7mIsk10TBakCKxaErminiCrZ4Yaoot8 vsww5htnPt8A/IQz4KDaeXHLjqGotfuGjH9Tt1K1XqVEkyiRGZtV7xBaDYZNCvStYXXG evqA== 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=5bYRVCZRiplsWEmicrYbPTHAZCti5245jcIroh9ni4Q=; b=l1arsvKEu0y8xKKDT0ITUqIGWlyj/NjMUjEAmfhjHAP8PgxbobgjyARfT1GH3IsV0n C+Ki0aGkbkPxXw1NR82uz4WnhDqCGfdkNatFkGHUJBBswcdbgeRTAEXhpdTAhUEZKyIC w7YwDghKSHLrNt2kWw/uYY+iy0mx7Q6T0AvBjTwkQncstTSvdV3OvJyr4sPD5RtP1jmc ELFtspnzG3CYiJbESm0h1rrRI2TXbXIUvamOplCQ3+0jSXXH0sX08Nr5p+gdk49VR6UC i9ouOpr4JVmBv8NzrGozZ/e6rkvcJzzY8xBEBWD9Tw+ZsCmKA+QRHJ5aiKh0fT6qSanl AcQw== 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 lm6si5825070ejb.268.2020.06.22.19.53.29; Mon, 22 Jun 2020 19:53:29 -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 S1732433AbgFWCx2 (ORCPT + 6 others); Mon, 22 Jun 2020 22:53:28 -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 S1731865AbgFWCve (ORCPT ); Mon, 22 Jun 2020 22:51:34 -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 A858EAE7F; Tue, 23 Jun 2020 02:51:32 +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 07/29] arm64: dts: realtek: rtd129x: Extend chip-info reg with CHIP_INFO1 Date: Tue, 23 Jun 2020 04:50:44 +0200 Message-Id: <20200623025106.31273-8-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 This additional register is needed to distinguish RTD1296 from RTD1295. Signed-off-by: Andreas Färber --- v1 -> v2: * Switched from reg to new iso-syscon phandle arch/arm64/boot/dts/realtek/rtd129x.dtsi | 1 + 1 file changed, 1 insertion(+) -- 2.26.2 Reviewed-by: Stanley Chang diff --git a/arch/arm64/boot/dts/realtek/rtd129x.dtsi b/arch/arm64/boot/dts/realtek/rtd129x.dtsi index b5be9df80dae..30a7782aa0d9 100644 --- a/arch/arm64/boot/dts/realtek/rtd129x.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd129x.dtsi @@ -204,6 +204,7 @@ sb2_hd_sem: hwspinlock@0 { chip-info@200 { compatible = "realtek,rtd1195-chip"; reg = <0x200 0x8>; + iso-syscon = <&iso>; }; sb2_hd_sem_new: hwspinlock@620 { From patchwork Tue Jun 23 02:50:47 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: 191410 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1590053ile; Mon, 22 Jun 2020 19:53:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1F/OkNCHJakwkXkHHpgTjrFGg09zBGxv+22+P6htZsApE17Ho6k2bTFagJzR+8VDv0nYk X-Received: by 2002:a17:906:594c:: with SMTP id g12mr4702516ejr.255.1592880808128; Mon, 22 Jun 2020 19:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880808; cv=none; d=google.com; s=arc-20160816; b=Wswi+d2SgTau2F8/DfELq3MdqAE3TAjGYL+EUFruBjCO80iuBCsLv2De4LrPcQyqNB thrVvMY7cSyelz51Hpj0Db2sV5l+USBJMTp4Oy+j4CrkH0VtxTw4gsHum+G4Klnbt3Xc YaPA+6wwhRNpx98uIaEFHs6B4Gi3zkbITew3sC0UOIeUXWiYuBRsPKGxvQrO3mKlKCrg tTZCuNkkMTIjQrPR/S7hzsw1LLI+J/Yy1iDw68u+1+1Mehr/nWp7iU405jWVDweJiJD1 6bNV7SJywIbFWStqouIi8h7Tr3td6SmcdDgGx/RcL1jZykKwcDLng3PLN7OXd66QekV3 kZ2Q== 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=O/Bw+Xz/1Uu6iRAsjzAQVYyB5wNOqsNApObh87tDfRo=; b=zpu+II0DBlbNkRONPcTaSjcz++t7G7nRC6qcPtzso5hBoay2DUBFzDz3ALHAstzADW Pgs/ZD9j10xrAKO1JzoQ2gTiB5LT0k3tODnPzANR4WYm9uxvPRLJcKoGuOQAs/Q9OKxz mZ8KR3lkpPxQ+aQiklH3dJ3PiPJrzQ3ES5YdzkaUQpHMTe46HpgjjyejBhidkDPuAsoO yq15Xpbizkjuc9QdtygwikyHEa/ySpua7KKGFTZeN+fgjIC3/LMfykSiKax4GBvtkwrf UGiUyKH+gIKY41xrCJ7oLe3tWMfl9KptY1JrMr5yw7c6OiC+mDxjDej/0pvc6F6rdm8h +INg== 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 lm6si5825070ejb.268.2020.06.22.19.53.27; Mon, 22 Jun 2020 19:53:28 -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 S1731901AbgFWCxW (ORCPT + 6 others); Mon, 22 Jun 2020 22:53:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:33028 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731891AbgFWCvf (ORCPT ); Mon, 22 Jun 2020 22:51:35 -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 F4034B196; Tue, 23 Jun 2020 02:51:33 +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 10/29] arm64: dts: realtek: rtd139x: Add chip info node Date: Tue, 23 Jun 2020 04:50:47 +0200 Message-Id: <20200623025106.31273-11-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 a DT node for chip identification. Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/realtek/rtd139x.dtsi | 5 +++++ 1 file changed, 5 insertions(+) -- 2.26.2 Tested-by: Stanley Chang Reviewed-by: Stanley Chang diff --git a/arch/arm64/boot/dts/realtek/rtd139x.dtsi b/arch/arm64/boot/dts/realtek/rtd139x.dtsi index 586b05350274..3d4d2323294b 100644 --- a/arch/arm64/boot/dts/realtek/rtd139x.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd139x.dtsi @@ -199,6 +199,11 @@ sb2_hd_sem: hwspinlock@0 { #hwlock-cells = <0>; }; + chip-info@200 { + compatible = "realtek,rtd1195-chip"; + reg = <0x200 0x8>; + }; + sb2_hd_sem_new: hwspinlock@620 { compatible = "realtek,rtd1195-sb2-sem"; reg = <0x620 0x20>; From patchwork Tue Jun 23 02:50:49 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: 191409 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1589952ile; Mon, 22 Jun 2020 19:53:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHK3d+wGsKmtQnsUCSgna8YOfkQQqFCSMcL8rGspLDbFxRZ+l6sNH25zzB9yxHOoHnN1Pp X-Received: by 2002:a17:906:90b:: with SMTP id i11mr18030846ejd.343.1592880796201; Mon, 22 Jun 2020 19:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880796; cv=none; d=google.com; s=arc-20160816; b=PdyyE+a+bgAhpmq/ppsRnPxLDRpIXquJY8JiWBY6udxCPNIo4K1CjbxExPEcTjbPsX u+pqHvDMjeR7tYne0ydFauN36x/vPaqnfOrJjS7MZVkq/lBegcURznwTGCfcEAS/zxdT ByXujxtRCn8WmqSg1ZxW4qFeGaZDknHdAtIJNLPPcHj2ygDw6/h0/rvKFOr6Uoevb43e ROPvMda/osVuSW4RJ2K1zRNoSsfdeMU/W7eMHUiFVIqZ+bHlIJkq2Z+JmaEl13+H8ZQD KVviOaO3PmH6NbU5FY9pjlj8xCXV7+6w2z5F3UaT6BDnmOcDjkJc+GefYiAvpH3E+Cy9 opJg== 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=yTb0ew0ww8fqIJmYxxioJL/MW9SRbIWr8kakW2CGQ34=; b=H9yxo3B4oknaW73NddjMuSmeRE21b3dINjwoW4liYFSe9tojKc59hNfx46F7QtkNwr 7LHgVFURfj8psCf+RShHiBVWoTHq0T4dvykkXeixXLj7am540lWMCG70o2GoE3ikM7vp tOaLDl7ouu2Dg0w0v4i3M72HN8vSZKLHhFcJIHtuE7WW4ts4rHfGexjveOpFb1OcWuyd xL4IY+kwiZF9xoLOJT0Wbfh6XiYXyFTiI+MbmfIZCg5h8Szv5H9Utrlk3j7i4xecLYOf 1Na5wVOPv8XA4wMc2ZKy60N/f1fiL1fGQ3ArR2zRwjg8tntoFKctcJhVVoReU+Fv6r6P QmiQ== 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 lm6si5825070ejb.268.2020.06.22.19.53.16; Mon, 22 Jun 2020 19:53:16 -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 S1732363AbgFWCxL (ORCPT + 6 others); Mon, 22 Jun 2020 22:53:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:33056 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731896AbgFWCvg (ORCPT ); Mon, 22 Jun 2020 22:51:36 -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 CE9A9B188; Tue, 23 Jun 2020 02:51:34 +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 12/29] arm64: dts: realtek: rtd16xx: Add chip info node Date: Tue, 23 Jun 2020 04:50:49 +0200 Message-Id: <20200623025106.31273-13-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 a DT node for chip identification. Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/realtek/rtd16xx.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.26.2 Tested-by: Stanley Chang Reviewed-by: Stanley Chang diff --git a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi index afba5f04c8ec..04cb546142a0 100644 --- a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi @@ -227,3 +227,10 @@ uart2: serial2@400 { status = "disabled"; }; }; + +&sb2 { + chip-info@200 { + compatible = "realtek,rtd1195-chip"; + reg = <0x200 0x8>; + }; +}; From patchwork Tue Jun 23 02:50:52 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: 191399 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1589225ile; Mon, 22 Jun 2020 19:51:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8w7NkjTQIdWsdUCAXqqLEQnz96A0h5RrVoYpUk0ttvyrQuT0hB8Gnv48ApoA7LMl6yWXp X-Received: by 2002:aa7:c6c7:: with SMTP id b7mr19948680eds.213.1592880699719; Mon, 22 Jun 2020 19:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880699; cv=none; d=google.com; s=arc-20160816; b=EWDnY4bW1Wzea3GejormrgT3sW/HwsCktR/yYR7N3da3EqowfhA5mwkTziFG6F/T2h 7Yv6EnmfBBGyWLYI9CqPLDV0SEcaAHkqAAe79ErM/8QInzZD+dDroVYBJpKVwi7HLp9I dNOpe87US4RolH2RbWfJDS3K+/1SQ1LL2Z2+ZpT6U7r/4d9XAo0Fn+4NTANeYEsLHdky guaTUGZ3epHNz8EMGkf8zQmu+QYFkYVqgtijuA3mZMCN67e+7NqBloY/OQwFdabjILlq qTJ5YbOGMJnSY4A7WW2Aq70CZVFEkn0r3SfgmZsc+l8sczrAHs2qQNjr/rWRb6j2stmh zuww== 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=3Hq4HDEOz0lRfxVQ86lu5JOouF1wz3yz2TAgiLb1qig=; b=CLiZtGRSxZ76E9QKexQ6lkCUMkn4jauHC2+ZMXfu6sKtu3uRVkEyRE9tJQwbl0cdIN /mHTSr42SgbPiRjy69ordV8srTvSKYV7r/E1qp6ajn08eIygdBw6WlfSKLmoFTpdIXIi Tub+IdR9aAcaBgdYhZFJqTK7QpkWTyhF82osPkmdJW2+bKqOA/NsLJ9i7BqaXpCv8UxB JYr9Ycje5/U7deG0VBB83aMIF2SOqrmmYnvXYjOtuL9+ZzMNP9b61p95Q5Gzr8ewQCzm mcwDZ6wN3ZBRUDy435bIt14RQx8RvocZFTvQyjbvPqwRTMOuSsQ6N2XBU+SH7Sx3qCxB ebcQ== 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 d6si4469064edx.203.2020.06.22.19.51.39; Mon, 22 Jun 2020 19:51:39 -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 S1731931AbgFWCvi (ORCPT + 6 others); Mon, 22 Jun 2020 22:51:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:33024 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731911AbgFWCvi (ORCPT ); Mon, 22 Jun 2020 22:51:38 -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 2A507B18C; Tue, 23 Jun 2020 02:51:36 +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 15/29] arm64: dts: realtek: rtd13xx: Add chip info node Date: Tue, 23 Jun 2020 04:50:52 +0200 Message-Id: <20200623025106.31273-16-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 a DT node for chip identification. Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/realtek/rtd13xx.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.26.2 Tested-by: Stanley Chang Reviewed-by: Stanley Chang diff --git a/arch/arm64/boot/dts/realtek/rtd13xx.dtsi b/arch/arm64/boot/dts/realtek/rtd13xx.dtsi index e41be02f2e3a..e4271ef5cb1e 100644 --- a/arch/arm64/boot/dts/realtek/rtd13xx.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd13xx.dtsi @@ -211,3 +211,10 @@ uart2: serial@400 { status = "disabled"; }; }; + +&sb2 { + chip-info@200 { + compatible = "realtek,rtd1195-chip"; + reg = <0x200 0x8>; + }; +}; From patchwork Tue Jun 23 02:50:54 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: 191401 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1589244ile; Mon, 22 Jun 2020 19:51:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxh5tTFby99U96TeD3DeUfmXKOOIFnqt7AIw8PV02457wygKtnDmfpFFMxF1V2SIAujDaSG X-Received: by 2002:aa7:c74e:: with SMTP id c14mr19334647eds.322.1592880702390; Mon, 22 Jun 2020 19:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880702; cv=none; d=google.com; s=arc-20160816; b=PY3HoAvCwjze6S9amPaFEHhhQ4kQZj4+wg0cudSO03zKkSsMe58Q+ArPYUpzqkVxlJ 9QEnp25Z5z8J3RrGkLabwO1sTQ95RFb+rbMBOKmAcp6VQBBKB2OS86RPmU05LrUoK2gV 32bt4LG8QUytHavG4QbOw8gfCu1sOWuW5n8P3WzcqgOHoHE37pmDIbZXDr5Z3EwdSrAv /EnuyvCH2C5se2YmAVtRdpjo/YtoJq+hvZz9gKxp/Xn5j5APOyGKpmQRiTYvbgQKh485 58CDM25HnvVXBxip6u627lvddRr+MRSwPo1Xj1yOobuqzi/wGQf9J7IqZwXXEo3P/e8b WIbQ== 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=QzRTMw7cGIiDF1EpWKvK1ncbe3cUG4saEVjAPbs+RQ8=; b=XAo5UhLsmk4mytSKEeZFDOmM8wRGeaxgSA4dhWNwaI753BMAG2WrGg0g4DDg64K+gw 8Uv0duSMJ94a15gGve7Lm3ozzI7thMLnLrBroz4veFItdl2ye8biP5hp3yU9Nzsf46Ip B7Lpgrf/DFNM51x1jUiy/WwMian92IBUdpQB5SSf7D7LWv/PNYgpaOlx0hSod72AzzFH PFF/B4/EHkPspFdSfKxHOOdLCf1SfWgx/ax6L5UPSMxWGJi3lFJYTbKG366rWXoDNYyb Xp//EnsmajehLVPf9+rg5ifT1Gpj7KSkRguE236DpOlBtYOguRbRduJsCqyohNDDUI6w slqg== 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 d6si4469064edx.203.2020.06.22.19.51.42; Mon, 22 Jun 2020 19:51:42 -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 S1731956AbgFWCvl (ORCPT + 6 others); Mon, 22 Jun 2020 22:51:41 -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 S1731917AbgFWCvj (ORCPT ); Mon, 22 Jun 2020 22:51:39 -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 4D6B6B199; Tue, 23 Jun 2020 02:51:37 +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?= , Srinivas Kandagatla , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH v2 17/29] dt-bindings: nvmem: Add Realtek RTD1195 eFuse Date: Tue, 23 Jun 2020 04:50:54 +0200 Message-Id: <20200623025106.31273-18-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 a DT binding for eFuse on Realtek Digital Home Center SoCs. Signed-off-by: Andreas Färber --- v2: New .../bindings/nvmem/realtek,rtd1195-efuse.yaml | 53 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/realtek,rtd1195-efuse.yaml -- 2.26.2 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/nvmem/realtek,rtd1195-efuse.yaml b/Documentation/devicetree/bindings/nvmem/realtek,rtd1195-efuse.yaml new file mode 100644 index 000000000000..a616cb22673e --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/realtek,rtd1195-efuse.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/nvmem/realtek,rtd1195-efuse.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Realtek Digital Home Center eFuse + +maintainers: + - Andreas Färber + +description: | + The Realtek DHC SoCs have an eFuse block with non-volatile OTP memory. + +allOf: + - $ref: "nvmem.yaml#" + +properties: + compatible: + const: realtek,rtd1195-efuse + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + +required: + - compatible + - reg + +examples: + - | + efuse@18017000 { + compatible = "realtek,rtd1195-efuse"; + reg = <0x18017000 0x400>; + }; + - | + efuse@98017000 { + compatible = "realtek,rtd1195-efuse"; + reg = <0x98017000 0x400>; + #address-cells = <1>; + #size-cells = <1>; + + efuse_package_id: package-id@1d8 { + reg = <0x1d8 0x1>; + bits = <0 2>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index ff0ee48fee6f..1d0d6ab20451 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2307,6 +2307,7 @@ L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) L: linux-realtek-soc@lists.infradead.org (moderated for non-subscribers) S: Maintained F: Documentation/devicetree/bindings/arm/realtek.yaml +F: Documentation/devicetree/bindings/nvmem/realtek,rtd1195-efuse.yaml F: Documentation/devicetree/bindings/soc/realtek/ F: arch/arm/boot/dts/rtd* F: arch/arm/mach-realtek/ From patchwork Tue Jun 23 02:50:56 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: 191400 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1589241ile; Mon, 22 Jun 2020 19:51:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW/gVkeI6lJxRCgEJRT9+8ZGkOUQxTJe+Dja29/Im03ynmVK0cfDmuAk5cjEpQWMOXLzvf X-Received: by 2002:a17:906:b1c3:: with SMTP id bv3mr18943777ejb.292.1592880701789; Mon, 22 Jun 2020 19:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880701; cv=none; d=google.com; s=arc-20160816; b=QrW33/2M1ul55GcJlzsZ1Bh4xK9A3FqGslKtHNbeuqRZUoNiX21RKuWRJx6fAN2Grg P89/iLuIWJIg1aimCst/Ha6c1EM0FUJbgNHolR9Bi6bxparMI3JGC47T8nCoNvteMav4 bOIFJnGYu+hiOt1qBgDB/TMdouTRSWT9cWEpOMCCDj/yGzGei6jJqmXEl2CmLn5478Il du7ANZ0ZRfr2w++CV2/Nqg0MwkI1SOQxZIUSGZs7MkMO7wsa0iJd8IOnWQGXp6Cq1OGU jA0mAU/j8M5Nyj05TRroSSk+hLZYo74M7kim6AorZxQ9zWuL6DFLrYBLDvRaiOYFSIhD ioMQ== 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=FZ8mNEOZwDKA+BqRbJyHkuZTBHzqivD423ZALeOEP9Y=; b=OShCd/Q8Lp43E0tu+IGe2jkXa0XIH+h1raXuUPsISgnFHZCFKBJC6l4gHqYQ/K83OO k1SS2uMZZBfXfdZhLJJXKs3tjJlwY8rXxS2rt6fwcXUfdDUVZv6WlB79MeVVtFzVK1O1 LQ4RTIqZVkB/0KS+TQSnw4PSJr4TYXtjCR5AxNKJjGQmFaLmq3nO0p0TDjDsKT4LiZKP zzIEhEGddIwUbD/y4CcL9JXPAp3qbTias7r1V7WuvLXLXVrd3MrLYhpMbDbFgoI2VPzD nFBSLYbCEoMaHUIEfw0NaAKfFGbqpta8DRTrMxLjL8iQuQ+TUo4kU8v+gB4pVx5efS/Z CCYw== 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 d6si4469064edx.203.2020.06.22.19.51.41; Mon, 22 Jun 2020 19:51:41 -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 S1731951AbgFWCvk (ORCPT + 6 others); Mon, 22 Jun 2020 22:51:40 -0400 Received: from mx2.suse.de ([195.135.220.15]:33028 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731942AbgFWCvk (ORCPT ); Mon, 22 Jun 2020 22:51:40 -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 98491AE82; Tue, 23 Jun 2020 02:51:38 +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 19/29] ARM: dts: rtd1195: Add eFuse node Date: Tue, 23 Jun 2020 04:50:56 +0200 Message-Id: <20200623025106.31273-20-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 a DT node for eFuse. Signed-off-by: Andreas Färber --- v2: New arch/arm/boot/dts/rtd1195.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.26.2 diff --git a/arch/arm/boot/dts/rtd1195.dtsi b/arch/arm/boot/dts/rtd1195.dtsi index 5ad0e81c37af..2ae08f6da9e8 100644 --- a/arch/arm/boot/dts/rtd1195.dtsi +++ b/arch/arm/boot/dts/rtd1195.dtsi @@ -119,6 +119,14 @@ iso: syscon@7000 { ranges = <0x0 0x7000 0x1000>; }; + efuse: efuse@17000 { + compatible = "realtek,rtd1195-efuse"; + reg = <0x17000 0x400>; + read-only; + #address-cells = <1>; + #size-cells = <1>; + }; + sb2: syscon@1a000 { compatible = "syscon", "simple-mfd"; reg = <0x1a000 0x1000>; From patchwork Tue Jun 23 02:50:57 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: 191405 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1589780ile; Mon, 22 Jun 2020 19:52:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9HZu+NUmBd8uwWSKYvCpbMKhRC9+9X1o0xeyBgEVQzL2rN/nLbLxCcEpMCprNsjl+tO37 X-Received: by 2002:a17:906:6686:: with SMTP id z6mr17770334ejo.258.1592880769617; Mon, 22 Jun 2020 19:52:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880769; cv=none; d=google.com; s=arc-20160816; b=k4OPZQMFLKqPq2p2CrxeDeZduWwLIkN9NJ5kG8jIrikOINhoLZKbax3z8Y0Sqp9wuZ EE0xCBhVWap6nRAP1RYxVDUc+SvqaijH0p22NX7ytpwyDGaOwXrkHmh7HxcMKZjef4pY uzaRSj8grhDkpTWY45Le2Yo32xSJU5gYlFZhST0hwbBD4KGnwvrkcRitD3vHx2jNBp+1 l3W9FeVXssrtZ/uZ3IWRJrVVaGTtl8jj6Qv8KtqUVqafqiURfKircZVS+q8RfzKAmpVS gUnp5/LJxcnt452h/mB80BL4aZA1iY1kuPNfgzfAGNr3MKn4Upe2LMfeqRymYgiGx4qI Dzyw== 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=/wDPMpwGdsui6w6+3M4iGPTGVigcmcxPpTbDSnAq3Uw=; b=e71THPnu6IaRd+YiY+YoO1kj+Z8tHT2tLEhRkJ+OzsRrKJUIRViky+C5CayGcmNWRK HNC+M95aieJU427XjmZIeiLJrdhhCZkNN7V1AdlwnpOUyR//miZ7ftHX22PX6UFfGUSU efj2GMJMDJHz3TAhE4t4WF2GrjYhOKw+ZegJgviFX2yWpTk2vZ1tq9zxCSbBW8GdYtXv 0MSj2l8bxyde3lc+LAR2QtGudFIgt4JgWyNv+3wurkaNW+l1SGPgCzY+eiaDHqYPA1aD 5gmSu/cnIsU0+ZQYFRD6eh9/Hz7M5u3h+8Mn7gIUCw1nq8LNInKJfyAYx0R99FfFhUBO 6X3A== 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 g11si11044792edk.96.2020.06.22.19.52.49; Mon, 22 Jun 2020 19:52:49 -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 S1731967AbgFWCvm (ORCPT + 6 others); Mon, 22 Jun 2020 22:51:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:33226 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731946AbgFWCvl (ORCPT ); Mon, 22 Jun 2020 22:51:41 -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 13A89B19A; Tue, 23 Jun 2020 02:51:39 +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 20/29] arm64: dts: realtek: rtd129x: Add eFuse node Date: Tue, 23 Jun 2020 04:50:57 +0200 Message-Id: <20200623025106.31273-21-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 a DT node for eFuse. Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/realtek/rtd129x.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/realtek/rtd129x.dtsi b/arch/arm64/boot/dts/realtek/rtd129x.dtsi index 30a7782aa0d9..8f96d4e4c46b 100644 --- a/arch/arm64/boot/dts/realtek/rtd129x.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd129x.dtsi @@ -81,6 +81,14 @@ iso: syscon@7000 { ranges = <0x0 0x7000 0x1000>; }; + efuse: efuse@17000 { + compatible = "realtek,rtd1195-efuse"; + reg = <0x17000 0x400>; + read-only; + #address-cells = <1>; + #size-cells = <1>; + }; + sb2: syscon@1a000 { compatible = "syscon", "simple-mfd"; reg = <0x1a000 0x1000>; @@ -194,6 +202,13 @@ 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"; From patchwork Tue Jun 23 02:50:58 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: 191408 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1589899ile; Mon, 22 Jun 2020 19:53:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXfm6rw4zRChYV4WbNQDake99XhQcTHTuRi3iPS5Hzeof3R8PmLlW7U0rGmHztZWpgvWt/ X-Received: by 2002:a50:8186:: with SMTP id 6mr13530829ede.45.1592880788196; Mon, 22 Jun 2020 19:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880788; cv=none; d=google.com; s=arc-20160816; b=x5Djke89uQD+psD9ZBsrstOIild7zDLflr1wF3p4L35mGmPVCtC2Wf1o4eT7zJB9mc lVPaTHWE5lKyWUE71mjpYX83dhnCqKMyOw9xtlyy/2xOI+yycQnyaHbA4BoqvzM4sLGw VotGhIIinny/ilX3uzUo9JeSskBypFWwAtFzbJIyiTJckNf9fTh2sUkhnyswhGj1r0mL iYO4iysjPgrDZAClJTrfybVK3azYSN3l0dJFJqpdXw3dXyhbK9MlGuGsiMuKiFvIsXIl LgUPyhtKxYUPeoMumMUoTdPDNxIjFMAK+A2iLyu1mHptv3EwwR1kv9tFCUGp5ZwHQjJP nheQ== 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=iew7H/EVRNXvgh3yVhxMyMxaPBYWFu5r4E4KFncMwUI=; b=p549SBcC/JR3Cwr0fMt5FB2l3Yz35Czgpzfnnaku5vBi+3dlLLXyezTekV7+gqmKzc hRIEsSNhJb/8Yzu6oLV1tR1674FxJ5BV+Zo1N8QHNmXbMyuEhF612mLdwJ1ef4jN8Mb8 IlkDz25M35RJhVEugls17MLVw0WueZpHMHr5LGHr4GEY7+D4Cxv8k8GUr3/PcnS+LYAP Jvv43RlDCFDj4AXa5RBs7LnBHNX2BgXxUFFp6kga2ZVSy9EVL/mzfUcJjOPE6GSRXaR9 gXSCig/JZPvydo3Cw/6TtU8/8Jcpenuh+DXc/qHMwkhzLSh0p6br9J/1aejN9VfgjYyO NNMg== 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 lm6si5825070ejb.268.2020.06.22.19.53.08; Mon, 22 Jun 2020 19:53:08 -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 S1731678AbgFWCxD (ORCPT + 6 others); Mon, 22 Jun 2020 22:53:03 -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 S1731949AbgFWCvl (ORCPT ); Mon, 22 Jun 2020 22:51:41 -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 83195B19C; Tue, 23 Jun 2020 02:51:39 +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 21/29] arm64: dts: realtek: rtd139x: Add eFuse node Date: Tue, 23 Jun 2020 04:50:58 +0200 Message-Id: <20200623025106.31273-22-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 a DT node for eFuse. Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/realtek/rtd139x.dtsi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) -- 2.26.2 diff --git a/arch/arm64/boot/dts/realtek/rtd139x.dtsi b/arch/arm64/boot/dts/realtek/rtd139x.dtsi index 3d4d2323294b..48746d432328 100644 --- a/arch/arm64/boot/dts/realtek/rtd139x.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd139x.dtsi @@ -2,7 +2,7 @@ /* * Realtek RTD1395 SoC family * - * Copyright (c) 2019 Andreas Färber + * Copyright (c) 2019-2020 Andreas Färber */ /memreserve/ 0x0000000000000000 0x000000000002f000; @@ -79,6 +79,14 @@ iso: syscon@7000 { ranges = <0x0 0x7000 0x1000>; }; + efuse: efuse@17000 { + compatible = "realtek,rtd1195-efuse"; + reg = <0x17000 0x400>; + read-only; + #address-cells = <1>; + #size-cells = <1>; + }; + sb2: syscon@1a000 { compatible = "syscon", "simple-mfd"; reg = <0x1a000 0x1000>; From patchwork Tue Jun 23 02:50:59 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: 191406 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1589813ile; Mon, 22 Jun 2020 19:52:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWaCbp9q8l2iC1ZdejPYfb4ybABCJmIb54bhcuBFNmcWwJizO2BTZuAaAQKOj6hyfvh9/z X-Received: by 2002:a17:906:c2d0:: with SMTP id ch16mr560683ejb.414.1592880775014; Mon, 22 Jun 2020 19:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880775; cv=none; d=google.com; s=arc-20160816; b=J7sfihDg1Tpm39NyGqgn+6mMG0nAoFV9Cs2v8UWrwjJNHC473NtokAjIBNwv6pAKWk WkPOCoNOw9eu/cng3GJPg1shHYjSyf5639MGQ3mE0FQWffO7kc9osoVxO4u2SLld7BpH PcZCEt5e8bFzNzweoFdXECD2WYOzFeqkpLgmWe+BIbowEc6vQMkyJ+VaUg+95axMB/uq o3CLtWoCCCIEBT/O1HE6o5+LC9AkPANVL7rNAoCcDCTyxOKZ2cdkMcwPwabguY9cyPCc 6mxn0GoJ2Bbr5qndFiBNe4F10nf+Bewdzd7s14QR0hO0gtJRpvpeguYZw+QFsk1qJ3ZS ixWg== 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=7afkiovvBrm38fpuv6bA8fyfg1ErFOdZAkfNdt1UrDo=; b=kO4f6rkwFkulTIj5h9CAbrfhJhtkg/IiREtSFDjuOigakhGtdpvATZCJ8cHaNnqnOE zeqClelu3OTKfaU4jz/dJbU8zlSpgqNCcFnKoP1lb0LW97zde+8pl581YY0EBOqqAiX3 fo13VYmFk9WCZmi29BOMCq8hQ9DGpTcwr0O21nOEs5KBFfSUtngCqY8mlKhwSnEGg0jh RRDy46XxfvzdIGLqqeGQuIBJvinnQKhjXZDYegyV2IIAc6Pt5HIsD/03skZWZF/grODZ I8mxNH0HGhTwgmNk863n0f3hVpvbAcJCYwJCS/T2OQqQi00RUpzMjYQN/qYJuwA+yYRi eA7g== 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 lm6si5825070ejb.268.2020.06.22.19.52.54; Mon, 22 Jun 2020 19:52:55 -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 S1732306AbgFWCwt (ORCPT + 6 others); Mon, 22 Jun 2020 22:52:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:33024 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731954AbgFWCvl (ORCPT ); Mon, 22 Jun 2020 22:51:41 -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 EEDAAB1A2; Tue, 23 Jun 2020 02:51:39 +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 22/29] arm64: dts: realtek: rtd16xx: Add eFuse node Date: Tue, 23 Jun 2020 04:50:59 +0200 Message-Id: <20200623025106.31273-23-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 a DT node for eFuse. Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/realtek/rtd16xx.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi index 04cb546142a0..3c955fc7450c 100644 --- a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi @@ -155,6 +155,14 @@ iso: syscon@7000 { ranges = <0x0 0x7000 0x1000>; }; + efuse: efuse@17000 { + compatible = "realtek,rtd1195-efuse"; + reg = <0x17000 0x1000>; + read-only; + #address-cells = <1>; + #size-cells = <1>; + }; + sb2: syscon@1a000 { compatible = "syscon", "simple-mfd"; reg = <0x1a000 0x1000>; From patchwork Tue Jun 23 02:51:00 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: 191407 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1589861ile; Mon, 22 Jun 2020 19:53:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzszNgP02x52uhY2f0Ki9q9uGmcR9Gg7VQ3MJAd849hjFlI7D/f9VRCojyScO+Zs3iE1x+/ X-Received: by 2002:a17:906:689:: with SMTP id u9mr17880594ejb.13.1592880783103; Mon, 22 Jun 2020 19:53:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880783; cv=none; d=google.com; s=arc-20160816; b=an0S2M9oY5Qin2fnOu1WRNgLDW21io+QqMxk8evHoX7LIMd4LO3FjBgZhd34o8Q2nv bLGcEn/7c74EsZPrANjpAMeXF6PFcBBa8XauLFPMnhWwi6sZ+SHNIff6UAK7mrjnls7v tE829RtKRnviroRFNcuP5ppU3bDECzodeNiXbAv1XoOgY9RHQvknP2e9qHuesdWHkCGI Gb7Mg6dMe2kSThZzboHNxtQK91Pj5OK3kf6EpoUkxv3tKjkpK1S0z1HEqka8fOu8wG9D PcFnqNA6FZEZR0ljXsDLfI0cnVkd7yxJRmTnv1xRnKbEy+YM2TnDN0aJWJIE4+LeBGZ7 paKw== 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=Yyf0vaGQRkOF7JfU8m9igdunI9kq3tvICEmswWLv7pM=; b=XfJ1ZBnE+VbIyRbJ2VRxD53qXmiWQZL2Lg/KJt50NYMt5RmdvFYeiu74BkS9trqhM6 Glf0nloSa8gN8WhBGDP8F9ZV4cOkUtuoyYt5E3+e+pjv3tC3nsUaaG9UWzLhVrhOqEFK pv2vVkBIQCbShJCC/pNjW4H8hErTOLXXbSVPp2mHOPLSFZ5yawH9CUjuNRNNDveWPa5T oQZkdgBLrPxE9+Bdn8Dqca8Ns3JRa4S+OAZ3PfxMFWbYk+Okv4kFbkbqN453jqvfRX53 87gEczkj/+CmTtPf7cJ9Zs+ijfP1Yhe3tkdTf0z1jzo1s6+IyqqBTbzuwk1U9y5RZ/xD /B6A== 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 lm6si5825070ejb.268.2020.06.22.19.53.02; Mon, 22 Jun 2020 19:53:03 -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 S1732298AbgFWCwt (ORCPT + 6 others); Mon, 22 Jun 2020 22:52:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:33028 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731957AbgFWCvm (ORCPT ); Mon, 22 Jun 2020 22:51:42 -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 6B2CAB1A3; Tue, 23 Jun 2020 02:51:40 +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 23/29] arm64: dts: realtek: rtd13xx: Add eFuse node Date: Tue, 23 Jun 2020 04:51:00 +0200 Message-Id: <20200623025106.31273-24-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 a DT node for eFuse. Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/realtek/rtd13xx.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/realtek/rtd13xx.dtsi b/arch/arm64/boot/dts/realtek/rtd13xx.dtsi index e4271ef5cb1e..ed5ee7cc6a44 100644 --- a/arch/arm64/boot/dts/realtek/rtd13xx.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd13xx.dtsi @@ -139,6 +139,14 @@ iso: syscon@7000 { ranges = <0x0 0x7000 0x1000>; }; + efuse: efuse@17000 { + compatible = "realtek,rtd1195-efuse"; + reg = <0x17000 0x1000>; + read-only; + #address-cells = <1>; + #size-cells = <1>; + }; + sb2: syscon@1a000 { compatible = "syscon", "simple-mfd"; reg = <0x1a000 0x1000>; From patchwork Tue Jun 23 02:51:01 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: 191402 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1589261ile; Mon, 22 Jun 2020 19:51:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDeHd9QQBwdjPbV+B3RIaWYl4/LOw14vD7dMPY7GQ1iaMktEpgy/HdmWNdpII02n2PXntN X-Received: by 2002:a17:906:8d2:: with SMTP id o18mr10092329eje.183.1592880704806; Mon, 22 Jun 2020 19:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880704; cv=none; d=google.com; s=arc-20160816; b=hEM+cNARZdRPW/UFG4+zP/InlRDaXix2asvnxUMQx0rGdlc9XKhhRc4wRQtWU+Xci1 VvbKnMQaedS8pWhKrlwDvormlA+6NgGtYP5yqi+mVZ5J4uZnqKCeZmh+p9mVKK9kJRw8 Or6Hf1pfltpTY7XlFW0IAnTmrHbqtcGV8/8lYUgY+pW/1Rl1gZvhEA//B91lx/kqxu5K pJ/w5afsPuLg42z2Tj9qyH/opBuR3QktIbedGBczvAulPsUzBRJ9uvCWWbEiwJUESfZF 7vSCelnpqpaoXgbKvK+wreho1hcQ9VCGXrujUnF8ijuqKFg4U5RVQ5ju/LrXlmy5sRXW eA8Q== 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=t8vt1YKDenc7IUtgSCB3yh6P9MKWgZLRnb1Wv+BhdQA=; b=E2jaeA/UHXK7XnOXWx4SbTIALrqgGfrBiXuBs1TSeY/DznaL5we6keVsmxWnN+2Fqc x0NfwDkulBCXyd6sp2WtejXJzh4didb6NdSTtibXYSAaD7W5YSFqsvi1hC7C4QC1Ks3C f9iUeAAcyn/CAv2jBM0tQmhffUCb9T4C8uhn7/MDHDBfu5morfl3U/cco7koQzQ3tb2H TwCCE6I9sqsp/YgSIOqciQKI8PZ3xGgajFCv8tmWyW7ZErv9O1yxzQhoof+drEPzI8+1 h5sp9moHFEEa45lVu+P7uW0eIiM/WW/g/DT+1hPPskFEiy8tvckCMe89+98gyFlMBaqU yvng== 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 d6si4469064edx.203.2020.06.22.19.51.44; Mon, 22 Jun 2020 19:51:44 -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 S1731982AbgFWCvn (ORCPT + 6 others); Mon, 22 Jun 2020 22:51:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:33260 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731964AbgFWCvn (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 DC84FAE89; Tue, 23 Jun 2020 02:51:40 +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 24/29] dt-bindings: soc: realtek: rtd1195-chip: Allow nvmem-cells property Date: Tue, 23 Jun 2020 04:51:01 +0200 Message-Id: <20200623025106.31273-25-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 Allow to optionally specify nvmem cells to identify the chip. RTD1295 family will want the eFuse package_id cell. Signed-off-by: Andreas Färber --- v1 -> v2: * Instead of extending reg, allow nvmem-cells reference for eFuse .../bindings/soc/realtek/realtek,rtd1195-chip.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.26.2 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml b/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml index dfe33c95f68d..57a6e0df4494 100644 --- a/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml +++ b/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml @@ -22,6 +22,10 @@ properties: iso-syscon: true + nvmem-cells: true + + nvmem-cell-names: true + required: - compatible - reg @@ -40,4 +44,12 @@ examples: reg = <0x9801a200 0x8>; iso-syscon = <&iso>; }; + - | + chip-info@9801a200 { + compatible = "realtek,rtd1195-chip"; + reg = <0x9801a200 0x8>; + iso-syscon = <&iso>; + nvmem-cells = <&efuse_package_id>; + nvmem-cell-names = "efuse_package_id"; + }; ... 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 {