From patchwork Tue Dec 3 21:13:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Belwon X-Patchwork-Id: 13892978 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 4119FE74AD8 for ; Tue, 3 Dec 2024 21:18:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wOcIN8krKEmhcBKoRnSzkY55VKh8B7LvJrkm860B3IE=; b=LQjE3JocO8zX+0Xmdvpztm/ayg JXSzfBKMPIK7ocFX59tWu1XlLFUc3zpExP1HsrDZT3qSol20q5zoHSh9NE0QMX5QeKSPnd0SDzMCs 65WdVPgv9urErvSPoxm6tcD1sclKrUn80DSvjam7x8YdRFjOyuObvMfDIPDQuNxw7sjR/+4Z/qu2k l8O/+Msj5uA4gC51/oP/0LPsZiBYQoIIGX8JHThcINRkz//mazQwfAvT00VeeeYNcHdfXU5AUN2H6 lU9oc7l/1D4MaEflNnP6eUiT9Q+JcRpSiCMOofv3zLMHRtoeu1HNtaHf/Q+6dCWfwEumC4rRTlXUF qfNNkEtA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tIaHR-0000000AljG-2WW8; Tue, 03 Dec 2024 21:18:01 +0000 Received: from out-03.smtp.spacemail.com ([63.250.43.88]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tIaFS-0000000AlRH-1IIn for linux-arm-kernel@lists.infradead.org; Tue, 03 Dec 2024 21:15:59 +0000 Received: from prod-lbout-phx.jellyfish.systems (unknown [198.177.122.3]) by smtp.spacemail.com (Postfix) with ESMTPA id 4Y2tjh2Yl0zGp8j; Tue, 03 Dec 2024 21:15:52 +0000 (UTC) Received: from localhost.localdomain (83.21.102.241.ipv4.supernova.orange.pl [83.21.102.241]) (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 mail.spacemail.com (Postfix) with ESMTPSA id 4Y2tjY0mVvz2x9G; Tue, 3 Dec 2024 21:15:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mentallysanemainliners.org; s=spacemail; t=1733260547; bh=Ndjf1g+BU+5UelJoyYqUccW642JOsDzZXgrOdY312Oo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EieSj4OoT0eXeNH81LYbtt5zuDETVUdrhB+f4TdGvNzCH2nmm3a5InJ/eUAGsq64V 9XULMX8CuHGQWW0sVc0hTla6rN6SPvYf++RI33WNhoeK3GVyt5jS8Ic7O8A9Lpx/PS SVl+dDswf2lrAgS7uSmXxzDAkQptZNeXCcpiGWR9s3ZEoY2PaqiU63308+MmbYx+6x vgkXthV6fWiBwZtAjCwuFm71q2PPd3YknsEk8fSXU7RYi9Rg9CZGDW/PXt+9GYbJX6 9NmjdwEgQGK4Pn2pyuDMlA8uAAjy/hJMgo7yIOI+KGTq+/WrITm2lZcTilm1t6OtEk qqv9oyiNdm2zg== From: Igor Belwon To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] dt-bindings: soc: samsung: exynos-pmu: Add exynos990-pmu compatible Date: Tue, 3 Dec 2024 22:13:43 +0100 Message-ID: <20241203211344.515431-2-igor.belwon@mentallysanemainliners.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241203211344.515431-1-igor.belwon@mentallysanemainliners.org> References: <20241203211344.515431-1-igor.belwon@mentallysanemainliners.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241203_131558_422643_DC70AD13 X-CRM114-Status: UNSURE ( 9.13 ) 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 a dt-binding compatible for the exynos990-pmu. Signed-off-by: Igor Belwon --- Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml b/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml index 6cdfe7e059a3..8e6d051d8c97 100644 --- a/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml +++ b/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml @@ -55,6 +55,7 @@ properties: - samsung,exynos7885-pmu - samsung,exynos8895-pmu - samsung,exynos9810-pmu + - samsung,exynos990-pmu - samsung,exynosautov9-pmu - samsung,exynosautov920-pmu - tesla,fsd-pmu From patchwork Tue Dec 3 21:13:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Belwon X-Patchwork-Id: 13892977 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 DD5CEE74AD9 for ; Tue, 3 Dec 2024 21:17:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xrvwlR04qm2r6yLtEcwqQfocqUOn+5+kugRB+ZXnHmk=; b=fRB5qxbq7HhEWm3DipukW36mcO 2WkQdE8wd/dwZFP6VmguSegX4TORq7FTQ9BOp2hGtQVxIzSyGCOruPIhJIIXIVHRAx4VGD3wQXGKe ccj3spNNelAV0f2ngDYyeAbsBWnpqqeMycTIcn6v8RHJ369mF7hBGunTnN1nuL6MmsjQLPV0K/Dlr SHJ2hT/iWKVigO8ATqzUhz1VyZD65akFclirb1Jj3A4ZmZglW38nRIrntgnPSN8xzeVcBsvP9nDzb 2rWbzvrX0Qst+MKa1o4DQ4P19+MRtU/MXkDQQC26r4br0jjg0hz2VjGNl2Bw65xLfk/kcoszWgNN5 ic0CbyWw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tIaGT-0000000Albb-07d4; Tue, 03 Dec 2024 21:17:01 +0000 Received: from out-03.smtp.spacemail.com ([63.250.43.88]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tIaFS-0000000AlRI-1MR2 for linux-arm-kernel@lists.infradead.org; Tue, 03 Dec 2024 21:15:59 +0000 Received: from prod-lbout-phx.jellyfish.systems (unknown [198.177.122.3]) by smtp.spacemail.com (Postfix) with ESMTPA id 4Y2tjk64zzzGp9W; Tue, 03 Dec 2024 21:15:54 +0000 (UTC) Received: from localhost.localdomain (83.21.102.241.ipv4.supernova.orange.pl [83.21.102.241]) (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 mail.spacemail.com (Postfix) with ESMTPSA id 4Y2tjb4hMTz2x99; Tue, 3 Dec 2024 21:15:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mentallysanemainliners.org; s=spacemail; t=1733260549; bh=BOopPzcToEprpdw2LIS55Y82go8hBPaS/MvQht0hXKk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QfzRP0W2T4Rp6Z8+zzdY/1ueAkstrlVjNE+c1I0F4pM+4oSTRiFyZOeNymQ/StDtH wXv+sn60rYhiV4s8QZse92CEVg2zfzfZ1z5cJdkM1w+6smoutjqTm7qx49t3tk928V yL5rQc7F3KKfHytttjG1cNt3Kg1XO5B1JX7f48oJZBFeJB7CMpv2z0frrvmRXbByv7 GtX6GS4iDNFiOdVYZvF4yZHoh9YgZaBrzYzkgw6H9PmxdyCN/IS8PiHVIeh7r5JtjG vTt2TrsmmdeGk5jtvpXeUAUj15WFOLvlttaC8mM/xAV0rDD7kwi+Z4pjpxfjG8rpSc o1YcGNxTVwUQw== From: Igor Belwon To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/2] arm64: dts: exynos990: Add pmu and syscon-reboot nodes Date: Tue, 3 Dec 2024 22:13:44 +0100 Message-ID: <20241203211344.515431-3-igor.belwon@mentallysanemainliners.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241203211344.515431-1-igor.belwon@mentallysanemainliners.org> References: <20241203211344.515431-1-igor.belwon@mentallysanemainliners.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241203_131558_422598_9B3EC3BE X-CRM114-Status: GOOD ( 10.26 ) 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 PMU syscon, and syscon-reboot nodes to the Exynos990 dtsi. Reboot of the Exynos990 SoC is handled by setting bit(SWRESET_TRIGGER[1]) of SWRESET register (PMU + 0x3a00). Tested using the "reboot" command. Signed-off-by: Igor Belwon --- arch/arm64/boot/dts/exynos/exynos990.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos990.dtsi b/arch/arm64/boot/dts/exynos/exynos990.dtsi index c1986f00e443..2619f821bc7c 100644 --- a/arch/arm64/boot/dts/exynos/exynos990.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos990.dtsi @@ -227,6 +227,20 @@ wakeup-interrupt-controller { }; }; + pmu_system_controller: system-controller@15860000 { + compatible = "samsung,exynos990-pmu", + "samsung,exynos7-pmu", "syscon"; + reg = <0x15860000 0x10000>; + + reboot: syscon-reboot { + compatible = "syscon-reboot"; + regmap = <&pmu_system_controller>; + offset = <0x3a00>; /* SWRESET */ + mask = <0x2>; /* SWRESET_TRIGGER */ + value = <0x2>; + }; + }; + pinctrl_cmgp: pinctrl@15c30000 { compatible = "samsung,exynos990-pinctrl"; reg = <0x15c30000 0x1000>;