From patchwork Fri Aug 11 11:02:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Botka X-Patchwork-Id: 13350676 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 E227BC04A6A for ; Fri, 11 Aug 2023 11:03:39 +0000 (UTC) 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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vLl99tG0vvP4z9ykWCWWAgjR0rMaV/3UJur+3cPJZyU=; b=wjW/fze78J/dGu NbP2nQhXMT24JpTYTy1qTcN1IftEM3MxBbq4BtN6/wOx39fd6KmKb9cxmV2btMbeJDhoq8QxrMJt6 zMFt2s0yJ/UPZ7cICXh5LvJI9kLVrGKAH0VdtZVKWom43c5+8fvkRbzC1Kj3xFRGmVx1cRx4AXrDV dCnfLdlgQ3rqShp3DaVa09SQu0u1R53h+gprUKGxMR3Djtshymza3MzE071YpTLcznfhUSab++cF8 evOSeRwVhVwHYbbYtFwOIY84TC7u6qu6DBwFj9qoj1jHjIUJb3Qp3OFqWLVNTsQQBVS3TQPYOgLti /c4AXQLFq2NxrdeOk31A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qUPvH-00AMm6-24; Fri, 11 Aug 2023 11:03:15 +0000 Received: from relay01.th.seeweb.it ([5.144.164.162]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qUPv5-00AMfZ-0O for linux-arm-kernel@lists.infradead.org; Fri, 11 Aug 2023 11:03:06 +0000 Received: from [127.0.0.1] (bband-dyn221.178-41-211.t-com.sk [178.41.211.221]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id D47341F635; Fri, 11 Aug 2023 13:02:51 +0200 (CEST) From: Martin Botka Date: Fri, 11 Aug 2023 13:02:34 +0200 Subject: [PATCH 1/3] dt-bindings: nvmem: SID: Add binding for H616 SID controller MIME-Version: 1.0 Message-Id: <20230811-sid-h616-v1-1-d1dfc9f47b19@somainline.org> References: <20230811-sid-h616-v1-0-d1dfc9f47b19@somainline.org> In-Reply-To: <20230811-sid-h616-v1-0-d1dfc9f47b19@somainline.org> To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Andre Przywara , Alan Ma , Marijn Suijten , AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691751771; l=826; i=martin.botka@somainline.org; s=20230811; h=from:subject:message-id; bh=UNrJIzFYMiFBJT0dhRHON+UeOYIjcjf6t1SJcZFXSVI=; b=BdJZkaTbv96+Ln4S1XO2MRIdsSqy+NoUgvGA3NONN4d9/PPw9u2rL1aJi8M2VVuPfZuTu7+tb oPClU7MHvJlBRRl869ea1i4ydu/+fX9KalxZP68lASgQO4+C7rRX19y X-Developer-Key: i=martin.botka@somainline.org; a=ed25519; pk=aTCd3jmwU8GrJidWg3DSKLpdVMcpFzXzCSLXLR6NtWU= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230811_040303_335601_FE3CF894 X-CRM114-Status: UNSURE ( 9.40 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add binding for the SID controller found in H616 SoC Signed-off-by: Martin Botka --- Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml index 296001e7f498..2ec0a1b8f803 100644 --- a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml +++ b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml @@ -27,6 +27,7 @@ properties: - const: allwinner,sun50i-a64-sid - const: allwinner,sun50i-h5-sid - const: allwinner,sun50i-h6-sid + - const: allwinner,sun50i-h616-sid reg: maxItems: 1 From patchwork Fri Aug 11 11:02:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Botka X-Patchwork-Id: 13350677 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 3FDDAC0015E for ; Fri, 11 Aug 2023 11:03:52 +0000 (UTC) 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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dGPNnxUcQmNYJzcF6GA7LoFCeBYdVijBF4ZzpMOU69o=; b=16CYap4wFvZBSd +aAlmfWc/pFCuJ9h7pOnO+nTCubwXtj9lr+BlGwh8+MlhSbSw6bK+tKzPLM5lcpmafiTzNc7QnVyD woGr0397DB/GKr2FiT6M4KqO1LoJwwoEnzJdkcouA/tlvhZHRVtCXFtWEYAWzR18eH310CYSHu0RT ccf+gELfHt+DOlfMi8fyMN0SJ9vJinKDe6rI5lgnCcoOOOrh3Hbp+TRLqeUtbesw6c7DQ4KePG35B 3xLrNgs2SR0iVN0+4fxpsNtY1b98LSSSYdYmXMnnrr2/iCbKikpUsWFj4ZUFqld+A5HelShl3blqz pq/a4w8emZnq7XxKoM/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qUPvI-00AMmG-0U; Fri, 11 Aug 2023 11:03:16 +0000 Received: from relay02.th.seeweb.it ([2001:4b7a:2000:18::163]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qUPv4-00AMfa-2R for linux-arm-kernel@lists.infradead.org; Fri, 11 Aug 2023 11:03:06 +0000 Received: from [127.0.0.1] (bband-dyn221.178-41-211.t-com.sk [178.41.211.221]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 6EE5E1F6CD; Fri, 11 Aug 2023 13:02:52 +0200 (CEST) From: Martin Botka Date: Fri, 11 Aug 2023 13:02:35 +0200 Subject: [PATCH 2/3] nvmem: sunxi_sid: Add support for H616 SID MIME-Version: 1.0 Message-Id: <20230811-sid-h616-v1-2-d1dfc9f47b19@somainline.org> References: <20230811-sid-h616-v1-0-d1dfc9f47b19@somainline.org> In-Reply-To: <20230811-sid-h616-v1-0-d1dfc9f47b19@somainline.org> To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Andre Przywara , Alan Ma , Marijn Suijten , AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691751771; l=851; i=martin.botka@somainline.org; s=20230811; h=from:subject:message-id; bh=gMHCxqgi4YwQ9D8pchBHMnIgAOKw9tONOR5pmmXSDH8=; b=hZ3vSClPmzmhvFYP1YXc3lkvXLc5QdKp/p8EMkXkI7IJBbm8XpGdyyFh4e/nW7ShUyJiaM2JI nACWxrD5rweB6sy50fA2Ut+ojbpq3/mXMZbRPXF7qM4yO7i/dDa+Oje X-Developer-Key: i=martin.botka@somainline.org; a=ed25519; pk=aTCd3jmwU8GrJidWg3DSKLpdVMcpFzXzCSLXLR6NtWU= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230811_040302_996654_2AB46EB5 X-CRM114-Status: GOOD ( 11.30 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for the H616 SID controller. The config can be reused from A64. Signed-off-by: Martin Botka --- drivers/nvmem/sunxi_sid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index a970f1741cc6..df6fb5e0b724 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_sid.c @@ -216,6 +216,7 @@ static const struct of_device_id sunxi_sid_of_match[] = { { .compatible = "allwinner,sun50i-a64-sid", .data = &sun50i_a64_cfg }, { .compatible = "allwinner,sun50i-h5-sid", .data = &sun50i_a64_cfg }, { .compatible = "allwinner,sun50i-h6-sid", .data = &sun50i_h6_cfg }, + { .compatible = "allwinner,sun50i-h616-sid", .data = &sun50i_a64_cfg }, {/* sentinel */}, }; MODULE_DEVICE_TABLE(of, sunxi_sid_of_match); From patchwork Fri Aug 11 11:02:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Botka X-Patchwork-Id: 13350674 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 95D18C001DB for ; Fri, 11 Aug 2023 11:03:31 +0000 (UTC) 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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pLYiolpuDy1DgVORzg03ddGw047nyD4lELAgGxj5nMw=; b=yrP7yrLSMGrrFM 8rjfk+kNtPa+u4qgOhyOHJW+6xLczkG8TvnCH/giGfFB6DUm+v5j2dBDmmxfOIrbl8spT/jgssJGj pvbtNU9PHPVvyhcwarHLwKDgz9NvPcbZBEsfIBzX1KxHHWfttAbmt3tKsUeffkGZ3+if9uIj7pNzJ 0Gwd7L/2v1dHRYnUo8WR7prsCWsiPsYKQgWESSzEfKfSg7SkS62hpHdyN1u2eevfhm7rFqf8rR9sy +xNTuePH+WH4JVJQH278yOhK3BG/+0Ee5hSSjEe24dwVNVl7kebRdy1EnAZAKcpcOWBeuLqjuLmUy uMKyivFQFn4baLkpJwVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qUPv9-00AMj1-0i; Fri, 11 Aug 2023 11:03:07 +0000 Received: from relay01.th.seeweb.it ([2001:4b7a:2000:18::162]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qUPv4-00AMfc-2R for linux-arm-kernel@lists.infradead.org; Fri, 11 Aug 2023 11:03:04 +0000 Received: from [127.0.0.1] (bband-dyn221.178-41-211.t-com.sk [178.41.211.221]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 0919A1F8A3; Fri, 11 Aug 2023 13:02:53 +0200 (CEST) From: Martin Botka Date: Fri, 11 Aug 2023 13:02:36 +0200 Subject: [PATCH 3/3] arm64: dts: allwinner: h616: Add SID controller node MIME-Version: 1.0 Message-Id: <20230811-sid-h616-v1-3-d1dfc9f47b19@somainline.org> References: <20230811-sid-h616-v1-0-d1dfc9f47b19@somainline.org> In-Reply-To: <20230811-sid-h616-v1-0-d1dfc9f47b19@somainline.org> To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Andre Przywara , Alan Ma , Marijn Suijten , AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691751771; l=836; i=martin.botka@somainline.org; s=20230811; h=from:subject:message-id; bh=zF5rOJQQd+tRiwfWA9ycZ6InOOycJBFvTb9NwPa7BIU=; b=sQUhdXKlxgSjRX3ISVrvQAUxVIaFJV3/Fc8b5pXne7PTvcxtU9aR6zu3wX5PHc0AVQR34iEE/ cxMuuAnm3czCzylbVqHuGkztObZ8KaNJrttrZUk2JHCqD/f8poJhxDD X-Developer-Key: i=martin.botka@somainline.org; a=ed25519; pk=aTCd3jmwU8GrJidWg3DSKLpdVMcpFzXzCSLXLR6NtWU= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230811_040302_973068_CB208F1E X-CRM114-Status: UNSURE ( 9.86 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add node for the H616 SID controller Signed-off-by: Martin Botka --- arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi index 74aed0d232a9..5c5187a22537 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi @@ -133,6 +133,13 @@ ccu: clock@3001000 { #reset-cells = <1>; }; + sid: efuse@3006000 { + compatible = "allwinner,sun50i-h616-sid"; + reg = <0x03006000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + }; + watchdog: watchdog@30090a0 { compatible = "allwinner,sun50i-h616-wdt", "allwinner,sun6i-a31-wdt";