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: 13892980 Received: from out-03.smtp.spacemail.com (out-03.smtp.spacemail.com [63.250.43.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B00B19F113; Tue, 3 Dec 2024 21:16:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=63.250.43.88 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733260564; cv=none; b=E2nnCjjZjm8hOaVhhyU9xkyXH0ca6yKm7Yeeau4Io7+1IF5Rz4/o3wTaGhnba+tRLNxG0+oIPs8zwNsKrW3fUFfp7Q5NHR8SvdJ+DrhaXIU2NwON5W2ZXTSjkDEgfHxzLPNsdQvclKk1OCcD1kXfb2VBGk4KUy1bEKy6SHmDjM8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733260564; c=relaxed/simple; bh=Ndjf1g+BU+5UelJoyYqUccW642JOsDzZXgrOdY312Oo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YPqf9iuvt2fdIVKHViIgiDjqKnznpiL3scHyf6aMmtByAV+lAa6Mol6Yczv0qx19P6+e0ZY0F5vZhMgttx8HoC2lSyvFTanFsE7FY01orFliNqzuzAkUZF+GIV4KAlZvNPUWj0Chf8jg5rrtGj6yTdqVmb/ffJqiBX8Wi5vjQVc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mentallysanemainliners.org; spf=pass smtp.mailfrom=mentallysanemainliners.org; dkim=pass (2048-bit key) header.d=mentallysanemainliners.org header.i=@mentallysanemainliners.org header.b=EieSj4Oo; arc=none smtp.client-ip=63.250.43.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mentallysanemainliners.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mentallysanemainliners.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mentallysanemainliners.org header.i=@mentallysanemainliners.org header.b="EieSj4Oo" 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> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13892981 Received: from out-03.smtp.spacemail.com (out-03.smtp.spacemail.com [63.250.43.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3138B1F6693; Tue, 3 Dec 2024 21:16:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=63.250.43.88 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733260565; cv=none; b=O1P49w6LmPpLN0bEi3oljkJFYdKSxJ/X6oDdoGSC+E+BvBDzwF3DlItplntRu3Tvgrwkx7T6cPyFZaK6ut7SXzaVtSWnMSAZhd8gbWsEZ/P8Rzq2UYRFOtRzQqpP+Aq5l+pMdPyY0K4RNcjZGz4o2KJpVcVQIontS5HIf0mXTlM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733260565; c=relaxed/simple; bh=BOopPzcToEprpdw2LIS55Y82go8hBPaS/MvQht0hXKk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UObRP9ofQ8nV/W05AivI/Sacg7hbdKQW8U7AhuW0DHZi+3Eu2shaEpaRzCuqyCfZ9eakiPBa/0oRRoSxcED/z+UC/zZ3sBmzlP5ocamrg+Dnegk8CMdEQziK1LMnAMpEojlcsTkQaDeHuSaEOfa9w25050pmeXMqcuVkuRPbVMQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mentallysanemainliners.org; spf=pass smtp.mailfrom=mentallysanemainliners.org; dkim=pass (2048-bit key) header.d=mentallysanemainliners.org header.i=@mentallysanemainliners.org header.b=QfzRP0W2; arc=none smtp.client-ip=63.250.43.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mentallysanemainliners.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mentallysanemainliners.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mentallysanemainliners.org header.i=@mentallysanemainliners.org header.b="QfzRP0W2" 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> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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>;