From patchwork Wed Jan 31 22:19:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13540042 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 3C413C47DB3 for ; Wed, 31 Jan 2024 22:20:33 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sbHric0bjzNsRIW7TaSHpRwaDcn5REohW07Ztmstv5w=; b=CL6z5gxQ2UEPrb jlFvRylwiGoo920bc4ckr/30ZPLaNEJrfHg6++0qCI2aq9fdOd8ySk1cQZQW25FoBOlzxfO13SHjH VoTsDTN3S2jJumv9/KRFq6OYQID2QsX/Sfh3mWUh2MKOeBP4NzofGJwsYRtUUyX7MKEayQtIZW+ew n7So+rvj9VaM1VsJ8hoqHvwv48NhatePY7x2Zj3r9HysA1EFnD1x608qJBuggFMOoSMBtVABYci0u 9KmuTxvR+1qarzWOUU7mC7bSajErIHxim8USK80sMB6+Zh79nl9h9UK9yznd/WR2WH8QUpLZbaRwD OV8IPk4YnsGpE2UrfySA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwM-00000005g49-42cx; Wed, 31 Jan 2024 22:20:18 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIw9-00000005fwP-16DG for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 22:20:07 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40VMK0VA010373; Wed, 31 Jan 2024 16:20:00 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706739600; bh=eN3oPr+M4EypKKu046DK8GJ27aJRTrtTuWvBbhbnFeE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=tjvEzXJdiVDGJgIzny2vLrGdXFezokbLAiE3Vu/6kJCU5vwE1uNKPin+sid+0S6Rt jOHCdbEJKAjO5BwsMdaSw5IPr5F8/C20IKSrDX+0Vaa6dSxp7mG7nTIb3uW1bw07e3 DIAL77wHFiU5aEXCdRXPNEHdvb5Cl92cUl0vtJmk= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40VMK0Wd080790 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2024 16:20:00 -0600 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 31 Jan 2024 16:19:59 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 31 Jan 2024 16:19:59 -0600 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40VMJwx3102504; Wed, 31 Jan 2024 16:19:59 -0600 From: Andrew Davis To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Vignesh Raghavendra CC: , , , , Andrew Davis Subject: [PATCH 01/12] dt-bindings: power: reset: Document ti,sci-reboot compatible Date: Wed, 31 Jan 2024 16:19:46 -0600 Message-ID: <20240131221957.213717-2-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131221957.213717-1-afd@ti.com> References: <20240131221957.213717-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_142005_410667_4AE5420B X-CRM114-Status: GOOD ( 18.65 ) 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 This calls into the system firmware using TI-SCI to reboot the system. Used as a fallback when PSCI is unable or not available to reboot the system. Signed-off-by: Andrew Davis Acked-by: Conor Dooley --- .../bindings/power/reset/ti,sci-reboot.yaml | 33 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/ti,sci-reboot.yaml diff --git a/Documentation/devicetree/bindings/power/reset/ti,sci-reboot.yaml b/Documentation/devicetree/bindings/power/reset/ti,sci-reboot.yaml new file mode 100644 index 0000000000000..aa628be33d122 --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/ti,sci-reboot.yaml @@ -0,0 +1,33 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/reset/ti,sci-reboot.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI-SCI reboot controller + +maintainers: + - Andrew Davis + +description: | + Some TI SoCs contain a system controller (like the Power Management Micro + Controller (PMMC) on Keystone 66AK2G SoC) that are responsible for controlling + the state of the various hardware modules present on the SoC. Communication + between the host processor running an OS and the system controller happens + through a protocol called TI System Control Interface (TI-SCI protocol). + + This reboot controller node uses the TI SCI protocol to perform a device reboot. + + Must be a child node of the associated TI-SCI system controller node. + +properties: + compatible: + const: ti,sci-reboot + +additionalProperties: false + +examples: + - | + k3_reboot: reboot-controller { + compatible = "ti,sci-reboot"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 8999497011a26..45983bb174fe4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -21751,6 +21751,7 @@ F: Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml F: Documentation/devicetree/bindings/clock/ti,sci-clk.yaml F: Documentation/devicetree/bindings/interrupt-controller/ti,sci-inta.yaml F: Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.yaml +F: Documentation/devicetree/bindings/power/reset/ti,sci-reboot.yaml F: Documentation/devicetree/bindings/reset/ti,sci-reset.yaml F: Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml F: drivers/clk/keystone/sci-clk.c From patchwork Wed Jan 31 22:19:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13540040 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 52FBCC47258 for ; Wed, 31 Jan 2024 22:20:30 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pDrGznDdr/mdoQ3zrzVbTi8s+FtjpviftrczqUhT88E=; b=VgYHI1grVryaBa b88ZlXN0SyczKZb/3qW0bjbIlnqEgwMZ8kkk9asAJ3l5Wlov7CutoDh4Tkrh0cSDsNaK7wIDcAa9e Ds7ia8UEQDO5RwNSBiQ0Pjh8jTcwmosdwoH6e3OwH8duPCMyjJQZXRq4Aai7Yk6/znIfSOfpz9lwz VcMX6fyUfXvFLxKD2RNYGBwNqjPHB+cm9i7ady6+UHnl5ncOqNJ3Pn/R3dWMpvnb92rfDSaWyOjTF tGerKO/4k15yjF+SwdBZjtnhfBsi3NneQtCN0SAVpf3OMrk/nmxeOGKjDWL63i8aWJXLzysAbI8nf zCzjbJssXvXXEcLXqqfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwL-00000005g2r-1G9E; Wed, 31 Jan 2024 22:20:17 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIw9-00000005fwQ-1iQl for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 22:20:06 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40VMK0Or010378; Wed, 31 Jan 2024 16:20:00 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706739600; bh=MsGtrKLONpa1skHO9OSysJpEjYSFARrrS4U8i/PdCBY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=qw6nWHDWhShTd2W8O6rh42snINVun7uMDPOUugl2afvc6XJCueT8P8m5AR9Dvj+1E qf5FPvHwwyCSBa0qR4rF3UtFauCCfCR2kHgInxSU6N0C5iN/vN435j4pMUtmRq0HOl 1ke6zcr8zNxLMdbztVr6dt/hl3jJ+rXo5IwaANCQ= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40VMK0qT021510 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2024 16:20:00 -0600 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 31 Jan 2024 16:20:00 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 31 Jan 2024 16:20:00 -0600 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40VMJwx4102504; Wed, 31 Jan 2024 16:19:59 -0600 From: Andrew Davis To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Vignesh Raghavendra CC: , , , , Andrew Davis Subject: [PATCH 02/12] dt-bindings: arm: keystone: ti-sci: Add reboot-controller child node Date: Wed, 31 Jan 2024 16:19:47 -0600 Message-ID: <20240131221957.213717-3-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131221957.213717-1-afd@ti.com> References: <20240131221957.213717-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_142005_562782_8BB10C6A 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 The TI-SCI firmware supports rebooting the system in addition to the functions already listed here, document child node for the same. Signed-off-by: Andrew Davis Acked-by: Conor Dooley --- .../devicetree/bindings/arm/keystone/ti,sci.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml b/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml index c24ad0968f3ef..e392175b33c74 100644 --- a/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml +++ b/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml @@ -83,6 +83,10 @@ properties: type: object $ref: /schemas/reset/ti,sci-reset.yaml# + reboot-controller: + type: object + $ref: /schemas/power/reset/ti,sci-reboot.yaml# + required: - compatible - mbox-names @@ -126,4 +130,8 @@ examples: compatible = "ti,sci-reset"; #reset-cells = <2>; }; + + k3_reboot: reboot-controller { + compatible = "ti,sci-reboot"; + }; }; From patchwork Wed Jan 31 22:19:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13540038 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 496B5C47258 for ; Wed, 31 Jan 2024 22:20:27 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=h/XhdcJTGRz9FhnPNAfSdsKLJne0zY2nfC6fHPdUcnc=; b=GUo9WG2X/Y6NVR jqXerYZuzbUx8JpGyTPalmxFQRh7Iz6Ng7Zl+8ugfOEQm9f/s505HJURAR2qsxA47rWI66dp39PQF hDCp7Q+ChgOwGlGG1sKzphHaH/g78ZfOY4SQtuo8GN0rxJXqkfd+Ui5DakpQlt+94PfL/oWFRpNDA o9PtFy2QlPrd9EVlCvUBX5iNhQDzBMPjrMk5L5qejrTIyR9vwcroOna4PkRYY+ZxGWmve/02wbVtr /1VaTGIMtx3lfZBLwFqrAHNYCHkpkYA7T6M9WxJ7oJ/sD7A17cEn78TblWqFPqN/1//zvQl35khFo Hh9yOwV6fY/FZnHFp3yQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwK-00000005g2M-2d56; Wed, 31 Jan 2024 22:20:16 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIw8-00000005fwR-3ZZo for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 22:20:06 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40VMK1tM060758; Wed, 31 Jan 2024 16:20:01 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706739601; bh=1YUSJDF+znyudL9/WwRSORWM+cm2PVwYB2DPgs0ZaYU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=hTi6l/P5C2NPqg6vQf12o1wOyHOl6v5Jxm7TN+Qd3oaoBR2tG/W2eX748unjJtzA1 ASJEJQE6KYw+bUVBWAuDZrtlUGyIkNTyxm42ICu6wIUQS/QNbhPhvjw0XJzev86EvO BpwTFw9eA4n/ZhFBxvh12ho+mVqQDdp1aEMk68Bc= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40VMK1wi021515 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2024 16:20:01 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 31 Jan 2024 16:20:00 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 31 Jan 2024 16:20:00 -0600 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40VMJwx5102504; Wed, 31 Jan 2024 16:20:00 -0600 From: Andrew Davis To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Vignesh Raghavendra CC: , , , , Andrew Davis Subject: [PATCH 03/12] power: reset: Add TI-SCI reboot driver Date: Wed, 31 Jan 2024 16:19:48 -0600 Message-ID: <20240131221957.213717-4-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131221957.213717-1-afd@ti.com> References: <20240131221957.213717-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_142005_004407_07FABC8C X-CRM114-Status: GOOD ( 21.19 ) 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 This reboot driver calls into firmware using TI-SCI to reboot the system. We register the handler with low priority as we want PSCI to remain the main way these devices are rebooted. This driver acts as a fallback if PSCI is not able to reboot the system. Signed-off-by: Andrew Davis Reviewed-by: Nishanth Menon --- MAINTAINERS | 1 + drivers/power/reset/Kconfig | 7 ++++ drivers/power/reset/Makefile | 1 + drivers/power/reset/ti-sci-reboot.c | 63 +++++++++++++++++++++++++++++ 4 files changed, 72 insertions(+) create mode 100644 drivers/power/reset/ti-sci-reboot.c diff --git a/MAINTAINERS b/MAINTAINERS index 45983bb174fe4..ee67ea497fc56 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -21758,6 +21758,7 @@ F: drivers/clk/keystone/sci-clk.c F: drivers/firmware/ti_sci* F: drivers/irqchip/irq-ti-sci-inta.c F: drivers/irqchip/irq-ti-sci-intr.c +F: drivers/power/reset/ti-sci-reboot.c F: drivers/reset/reset-ti-sci.c F: drivers/soc/ti/ti_sci_inta_msi.c F: drivers/pmdomain/ti/ti_sci_pm_domains.c diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig index fece990af4a75..d3e91e54cae24 100644 --- a/drivers/power/reset/Kconfig +++ b/drivers/power/reset/Kconfig @@ -205,6 +205,13 @@ config POWER_RESET_ST help Reset support for STMicroelectronics boards. +config POWER_RESET_TI_SCI + tristate "TI System Control Interface (TI-SCI) reboot driver" + depends on TI_SCI_PROTOCOL + help + This enables the reboot driver support over TI System Control + Interface available on some TI's SoCs. + config POWER_RESET_TPS65086 bool "TPS65086 restart driver" depends on MFD_TPS65086 diff --git a/drivers/power/reset/Makefile b/drivers/power/reset/Makefile index a95d1bd275d18..881ca58a43b9c 100644 --- a/drivers/power/reset/Makefile +++ b/drivers/power/reset/Makefile @@ -23,6 +23,7 @@ obj-$(CONFIG_POWER_RESET_QNAP) += qnap-poweroff.o obj-$(CONFIG_POWER_RESET_REGULATOR) += regulator-poweroff.o obj-$(CONFIG_POWER_RESET_RESTART) += restart-poweroff.o obj-$(CONFIG_POWER_RESET_ST) += st-poweroff.o +obj-$(CONFIG_POWER_RESET_TI_SCI) += ti-sci-reboot.o obj-$(CONFIG_POWER_RESET_TPS65086) += tps65086-restart.o obj-$(CONFIG_POWER_RESET_VERSATILE) += arm-versatile-reboot.o obj-$(CONFIG_POWER_RESET_VEXPRESS) += vexpress-poweroff.o diff --git a/drivers/power/reset/ti-sci-reboot.c b/drivers/power/reset/ti-sci-reboot.c new file mode 100644 index 0000000000000..400bd5d740f8b --- /dev/null +++ b/drivers/power/reset/ti-sci-reboot.c @@ -0,0 +1,63 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Texas Instrument's System Control Interface (TI-SCI) reboot driver + * + * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ + * Andrew Davis + */ + +#include +#include +#include +#include + +#include + +static int ti_sci_reboot_handler(struct sys_off_data *data) +{ + const struct ti_sci_handle *sci = data->cb_data; + const struct ti_sci_core_ops *core_ops = &sci->ops.core_ops; + + core_ops->reboot_device(sci); + + return NOTIFY_DONE; +} + +static int ti_sci_reboot_probe(struct platform_device *pdev) +{ + const struct ti_sci_handle *sci; + int err; + + sci = devm_ti_sci_get_handle(&pdev->dev); + if (IS_ERR(sci)) + return PTR_ERR(sci); + + err = devm_register_sys_off_handler(&pdev->dev, + SYS_OFF_MODE_RESTART, + SYS_OFF_PRIO_LOW, + ti_sci_reboot_handler, + (void *)sci); + if (err) + return dev_err_probe(&pdev->dev, err, "Cannot register restart handler\n"); + + return 0; +} + +static const struct of_device_id ti_sci_reboot_of_match[] = { + { .compatible = "ti,sci-reboot", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, ti_sci_reboot_of_match); + +static struct platform_driver ti_sci_reboot_driver = { + .probe = ti_sci_reboot_probe, + .driver = { + .name = "ti-sci-reboot", + .of_match_table = ti_sci_reboot_of_match, + }, +}; +module_platform_driver(ti_sci_reboot_driver); + +MODULE_AUTHOR("Andrew Davis "); +MODULE_DESCRIPTION("TI System Control Interface (TI SCI) Reboot driver"); +MODULE_LICENSE("GPL"); From patchwork Wed Jan 31 22:19:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13540039 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 3E3F7C47DB3 for ; Wed, 31 Jan 2024 22:20:29 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=e5cSEm4jSfhk6HvXl3LVMfmRvIOxnUgDjci4H0IDmEY=; b=FqZpMldxz6BPRN bRIt9ts22VEaEWAueqTTIAWMIZQgfHTcwarr5152nKZeJWpbsUEznynPL8Jyg8+SlfnwkjgKVmdAs D91zdPH3wXj+9d9t5O0zaoZMHSSOUsWgHk8dB3Z0oRNQug2hEDIBKPaUS8TyzaeshdS52bCmYszaB Fqz7D+zEYbG5uI/bu/zSdYKMpU0JbRwXr6WXymE9TYVQf/qJsJoSHRosXPJyQh9++lgck/MjlnNdj Ud61HRzmTwSAvQBRLdQD4RLKhKDacstXgfoEFpuHd5l42E5yA6ZKcj3fpii5DMSQ+1VY1uT0WlTvx Ex8VrGNfxPbrt3fLso4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwM-00000005g3g-0Vfe; Wed, 31 Jan 2024 22:20:18 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIw9-00000005fww-221o for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 22:20:07 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40VMK1GD004350; Wed, 31 Jan 2024 16:20:01 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706739601; bh=HXQ+AwkFKcLP+/6vu6+08VVIk7h1vpO4bRIC5MHidjU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=qZ/46/fQh8RuIt4MHfCQhcJCbUnHmijspMMD0JyoXyN9wXiZ+pOmE7fEMiNMOKzX+ yAf8tA3wpBE42dvrqzJPCOUyswwHW440NQsElHuEU9ZWx9ZSz/ov3JH5gzEWYUDuGE RV48oSXkBq8+FQJoUjcAv2JGBCgM9bSqMMN2260g= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40VMK15p080814 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2024 16:20:01 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 31 Jan 2024 16:20:01 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 31 Jan 2024 16:20:01 -0600 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40VMJwx6102504; Wed, 31 Jan 2024 16:20:00 -0600 From: Andrew Davis To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Vignesh Raghavendra CC: , , , , Andrew Davis Subject: [PATCH 04/12] arm64: dts: ti: k3-am64: Add reboot-controller node Date: Wed, 31 Jan 2024 16:19:49 -0600 Message-ID: <20240131221957.213717-5-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131221957.213717-1-afd@ti.com> References: <20240131221957.213717-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_142005_601905_378E2862 X-CRM114-Status: GOOD ( 11.13 ) 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 While PCSI normally handles reboot for K3, this is an available fallback in case PCSI reboot fails. Add direct reboot TI-SCI node to system-controller. Signed-off-by: Andrew Davis --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index e348114f42e01..f9d2d1b67282d 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -228,6 +228,11 @@ k3_reset: reset-controller { compatible = "ti,sci-reset"; #reset-cells = <2>; }; + + k3_reboot: reboot-controller { + bootph-all; + compatible = "ti,sci-reboot"; + }; }; main_pmx0: pinctrl@f4000 { From patchwork Wed Jan 31 22:19:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13540041 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 2B7CFC47DDF for ; Wed, 31 Jan 2024 22:20: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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=n3KDNRuURJDpsLEvLACLaGcEsWPYznUTsQqHy4in+0E=; b=DAofYfaKAwbEmC TxVqeXGFNsAs1Blr7P6xJgpZGTUxCpv0dMgR60tvioCO6b9YzEu0ZwUVd0U208CFJhIwYVK/zczlX PK1hlCN3Cf3v6gtOEc92WIbc5el5h6fFKj63ukRWsvpHfOAnoKlB+O8eawJQl7pHWqjG+knRrdmTq MmZFMAd6e/oT7oLkEfiCHZZLhfzW1RwXzfJVZfyPDRxUlmM8IwNGJ9Hm2DfpwRS4kUxWXG3rlJnpZ WqJSZ6YwkEvE+vzA5mobRcub2fdE4uM6X3oXCxA5udNYRulJn78GaI0FlPlpt0sE0Nn0Mf6tRlKyr i25bVmcy7+7iatekWhUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwN-00000005g4m-3dw7; Wed, 31 Jan 2024 22:20:19 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIw9-00000005fwh-2x2h for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 22:20:07 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40VMK25X009452; Wed, 31 Jan 2024 16:20:02 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706739602; bh=8beJqyzumN9+CMCul7JvqwxP0DOUWWCHmJavY3XFYug=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=RtmunIjOWplS8pzTdSkBMjo/NrTviIck7Fc43LwA+pVc9eKuw5FMo2ldzeNQA4NHG ECPBN8Q+nC7N6p+bv7sOD85jZCSWPkzl8/NoG9EwHiRT8+PVywkhzRlA2mgmiAX0as pU2hhyqagA6Vui8dtg5kd9WfEj9N3LGZsGftWepA= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40VMK2ua021601 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2024 16:20:02 -0600 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 31 Jan 2024 16:20:01 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 31 Jan 2024 16:20:01 -0600 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40VMJwx7102504; Wed, 31 Jan 2024 16:20:01 -0600 From: Andrew Davis To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Vignesh Raghavendra CC: , , , , Andrew Davis Subject: [PATCH 05/12] arm64: dts: ti: k3-am62: Add reboot-controller node Date: Wed, 31 Jan 2024 16:19:50 -0600 Message-ID: <20240131221957.213717-6-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131221957.213717-1-afd@ti.com> References: <20240131221957.213717-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_142005_845813_06B15EC6 X-CRM114-Status: GOOD ( 11.13 ) 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 While PCSI normally handles reboot for K3, this is an available fallback in case PCSI reboot fails. Add direct reboot TI-SCI node to system-controller. Signed-off-by: Andrew Davis --- arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index 464b7565d085d..eb71523e85c36 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -203,6 +203,11 @@ k3_reset: reset-controller { compatible = "ti,sci-reset"; #reset-cells = <2>; }; + + k3_reboot: reboot-controller { + bootph-all; + compatible = "ti,sci-reboot"; + }; }; crypto: crypto@40900000 { From patchwork Wed Jan 31 22:19:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13540043 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 68AC7C47258 for ; Wed, 31 Jan 2024 22:20:34 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hTtrA8EtqMhaHjWiPLGFxunNAS49wziRUk8VSwgq6ZY=; b=wOGA+JOeGVIJAn gh9BXnvdIu7EIaKtbG0MDILXfh47OL/XQgvqwuTFOXgq9DhgCM/Tg63uRJFaf0bLLVDJrHLsemcJn JCpf7kdSnb0oCogMl/4vB4dTZqwRck+Njj921+/1x8k4/JsFcKuGHrMhF6LGegiBzrg3vtD4Bb8rf ubwjGxahUPL9F23C3e5x0Kt+FsX6zv5HDxPJIcTQ8mAiNHkc/CJKexVXtL0vVLMtMG+RyglB6BEeq hOY/qA9tFT0ifqsqp1MWXz0HB963XzFYGA9mcqRSbb5lN05tIXS92N66GFLhWOQStMrnkzvxF83FS WQ4t8Sa9M6S0rAv63MCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwP-00000005g6Q-3ZjW; Wed, 31 Jan 2024 22:20:21 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwA-00000005fy2-2jQh for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 22:20:08 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40VMK3fO009462; Wed, 31 Jan 2024 16:20:03 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706739603; bh=zj5Poq1SiBWcRYBOWTA5UoHJNRwmeAY0U+bUiO41nd0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=CnRVxiW1IrcYoksjU4H7Jx9OMpVOoYMO2j5onAX2xMNnnsWsBmCS14P6lztHNGgh3 HdKj39+5A+iiVa069Ef5XN+uzGyNaavd/1cdjgAjK7kTorw4NYMM+lNXjD5xxHkecZ 3jsZnX8Ma+N/QPF/bAY5KRp9m4TwKzE94td/5uxc= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40VMK3DT100617 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2024 16:20:03 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 31 Jan 2024 16:20:02 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 31 Jan 2024 16:20:02 -0600 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40VMJwx8102504; Wed, 31 Jan 2024 16:20:01 -0600 From: Andrew Davis To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Vignesh Raghavendra CC: , , , , Andrew Davis Subject: [PATCH 06/12] arm64: dts: ti: k3-am62a: Add reboot-controller node Date: Wed, 31 Jan 2024 16:19:51 -0600 Message-ID: <20240131221957.213717-7-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131221957.213717-1-afd@ti.com> References: <20240131221957.213717-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_142006_758965_BA331245 X-CRM114-Status: GOOD ( 11.00 ) 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 While PCSI normally handles reboot for K3, this is an available fallback in case PCSI reboot fails. Add direct reboot TI-SCI node to system-controller. Signed-off-by: Andrew Davis --- arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi index f0b8c9ab14593..222505edc15bb 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi @@ -215,6 +215,10 @@ k3_reset: reset-controller { compatible = "ti,sci-reset"; #reset-cells = <2>; }; + + k3_reboot: reboot-controller { + compatible = "ti,sci-reboot"; + }; }; secure_proxy_sa3: mailbox@43600000 { From patchwork Wed Jan 31 22:19:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13540044 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 C7320C47DDF for ; Wed, 31 Jan 2024 22:20:34 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Pmt4TFBzQ1DGK5iss2tYPBykAkaRlFB+M0UgMNzXRnU=; b=rz37CRpObkQ9Yc ucnkuQ63Ep68mNqjp3dArj1aVpHcrPqXhnq5ksHZCd01hZSlFCgoyfy1LyldsfziVxgsDxa+kEXuk UBDBwoyQYRi16j+z0pAF2IzxR5DLi6rss0RrXzCu8eaNFcSN58qYVtnXzHAubxhmfXjYU1mfm+fQp mAsK7xyA7N4/lL+359Nc5kB5ej4pyOu0XhdHk/Hpxqg9FtKfixJ+BM/7Qc11k2YNlzVbCxWaMVJu2 imkD5j+GIMgk0sU0+21AU2pHcuSrfBhDuykpCxvBCkfNK3nbigX5cKBIzopBFv5BMIqL9Y7ZZjEJN JbALfcBiqXQ0FjeqfkIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwO-00000005g5Z-3Y5j; Wed, 31 Jan 2024 22:20:20 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwA-00000005fxz-1o0w for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 22:20:07 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40VMK3Bg010424; Wed, 31 Jan 2024 16:20:03 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706739603; bh=bJezzvZCS+PMZW3omJ3JmDnR/p5mY4rG5hJQxDz2DY8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=tb5eTch3dL02rBTSysLAjCjAfCpsgddGgxNUTKWCAQhU+CUw70UGtShWlnYviSXfF gtp7K5muoQAORlFyZJtV6EmY81fTT5IwawYyQCqLXQkngaFZ4DFbrytxbk/40HdIF1 eqY78hbe5eiijznPO0JdHtQUm8BwXKzX/A6Zd3zY= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40VMK33U100619 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2024 16:20:03 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 31 Jan 2024 16:20:03 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 31 Jan 2024 16:20:02 -0600 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40VMJwx9102504; Wed, 31 Jan 2024 16:20:02 -0600 From: Andrew Davis To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Vignesh Raghavendra CC: , , , , Andrew Davis Subject: [PATCH 07/12] arm64: dts: ti: k3-am62p: Add reboot-controller node Date: Wed, 31 Jan 2024 16:19:52 -0600 Message-ID: <20240131221957.213717-8-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131221957.213717-1-afd@ti.com> References: <20240131221957.213717-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_142006_541489_5CD137C1 X-CRM114-Status: GOOD ( 10.92 ) 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 While PCSI normally handles reboot for K3, this is an available fallback in case PCSI reboot fails. Add direct reboot TI-SCI node to system-controller. Signed-off-by: Andrew Davis --- arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi index 4c51bae06b57e..7a10ed7a41a23 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi @@ -185,6 +185,11 @@ k3_reset: reset-controller { #reset-cells = <2>; bootph-all; }; + + k3_reboot: reboot-controller { + compatible = "ti,sci-reboot"; + bootph-all; + }; }; crypto: crypto@40900000 { From patchwork Wed Jan 31 22:19:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13540045 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 1A2D3C47DB3 for ; Wed, 31 Jan 2024 22:20:36 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=P1uH//voofqJ5dqevU1GBYfsw2dRpvBTI8Wjp8wmzDk=; b=iHIQRvVNScMODM w31jZVcFDxfGM5lKuMLWcwFpBE2JAEn9Mj9FtHnAjvz23wTiivwHTtAxHGfFQUcJj+StAmqKjIM4o +i1HOpFdO/KC+DRdp3JzCweNgf+qNBgDi+88HJrmo3hCe7UVy3xYtfUoS6MNetxG+M6K+GPq49fDy VHS1gfhEpN2pJHEYnJhJuRp4NDUqWVCs2w3jpYTs9jCQ9i3djqCm+oXuAYqtnKtgRc3LqSyXnMZ5q n12FBDCTAW80//A+0cdIUMr6Q7NGvdBNUaP2yH+riFALfPR3QIpDcs3g7JEPZDSDk4mVEmfqzwck7 7BARYxxX1Qbu8B1ZbGIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwR-00000005g7m-0wpX; Wed, 31 Jan 2024 22:20:23 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwB-00000005fyc-1Klr for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 22:20:08 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40VMK3sO004384; Wed, 31 Jan 2024 16:20:03 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706739603; bh=acmqRyO+tiR9fvXOE9Zst7bxxUMnJ43gc0m2FLXTr24=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=EzB4WxSmjJ0jR4T/P+1NrARX6NiKLyu+GlwS/snGftYSW9lygHBFEnhCBBeLudlOt dQ3KsebUCDuorBG3Yw9Fo+2pPMuyo62GdmFk71gEfEir80HaEW6Oyhc4kT+JSKzi40 8tYT6t4ydwW1W8ADsPrL6gRTbOTmUypn0gq163+0= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40VMK3Y4021665 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2024 16:20:03 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 31 Jan 2024 16:20:03 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 31 Jan 2024 16:20:03 -0600 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40VMJwxA102504; Wed, 31 Jan 2024 16:20:02 -0600 From: Andrew Davis To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Vignesh Raghavendra CC: , , , , Andrew Davis Subject: [PATCH 08/12] arm64: dts: ti: k3-am65: Add reboot-controller node Date: Wed, 31 Jan 2024 16:19:53 -0600 Message-ID: <20240131221957.213717-9-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131221957.213717-1-afd@ti.com> References: <20240131221957.213717-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_142007_529651_BB7A0F61 X-CRM114-Status: GOOD ( 11.00 ) 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 While PCSI normally handles reboot for K3, this is an available fallback in case PCSI reboot fails. Add direct reboot TI-SCI node to system-controller. Signed-off-by: Andrew Davis --- arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi index f037b36243ced..986684b7a7c43 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi @@ -32,6 +32,10 @@ k3_reset: reset-controller { compatible = "ti,sci-reset"; #reset-cells = <2>; }; + + k3_reboot: reboot-controller { + compatible = "ti,sci-reboot"; + }; }; wkup_conf: bus@43000000 { From patchwork Wed Jan 31 22:19:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13540046 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 C5AA0C47258 for ; Wed, 31 Jan 2024 22:20:38 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gvUtvTInLRsrg6iv56T51pzdC5p91FGrhqOzeWlf6vc=; b=o9HSRKfWGAIGkk 0n2/RJRqc7hCNHrcrlIBF5h+9mQ98aP8j2jTk2LYPPZxEiJjZ+oLektbONwBEycs6Z8ZP4p/njbSM Qei0oM1/zFq0Stzj4OutdZ5W8q0xoSXcCxvL3knohHGFvxEQIEi6JoIKwpN6c8LoCDsOh5Dmi65TJ fNYe8EgfuHMcA3zWoV/eSbHSJTuFX9woDZhD7FNb6BK+UOo+bnEXl83Kpn4TTJh0qvR7fsEKBQhpW p2HGPbygtc0I+6/daeQKEiwGk2b2OpAR+1W8+o9CHCM3gdgDxqvogtj96NKmU4+kbxy8Zif5tvFYJ E0syVXJmJax13sEj462w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwS-00000005g9E-3qlF; Wed, 31 Jan 2024 22:20:24 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwB-00000005fye-1Rzc for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 22:20:08 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40VMK42q004388; Wed, 31 Jan 2024 16:20:04 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706739604; bh=qWbSUtrKJS9+NDn8QtaMwirutdkz/edGVbVEUKGhHkM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=THPOF6w9d72Da9XSqUpfpCBv1QTX5ANMqPDl0ynefu6npMP1cwGj5dYI3kfZlFTJn uP9QwFtcL5BfHtZg+jR73SN4QEPY9CWLlyY6AkJMsfD7LilV679nkawvVj748ElxjR aMDAEkze9O39Ug53tRxUpyZOzlPnio8Wn0Dl7Z4g= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40VMK4vG100745 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2024 16:20:04 -0600 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 31 Jan 2024 16:20:04 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 31 Jan 2024 16:20:04 -0600 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40VMJwxB102504; Wed, 31 Jan 2024 16:20:03 -0600 From: Andrew Davis To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Vignesh Raghavendra CC: , , , , Andrew Davis Subject: [PATCH 09/12] arm64: dts: ti: k3-j7200: Add reboot-controller node Date: Wed, 31 Jan 2024 16:19:54 -0600 Message-ID: <20240131221957.213717-10-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131221957.213717-1-afd@ti.com> References: <20240131221957.213717-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_142007_564590_0AFAA452 X-CRM114-Status: GOOD ( 11.00 ) 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 While PCSI normally handles reboot for K3, this is an available fallback in case PCSI reboot fails. Add direct reboot TI-SCI node to system-controller. Signed-off-by: Andrew Davis --- arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi index 60b26374ae0cc..a37d66bcf93e9 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi @@ -32,6 +32,10 @@ k3_reset: reset-controller { compatible = "ti,sci-reset"; #reset-cells = <2>; }; + + k3_reboot: reboot-controller { + compatible = "ti,sci-reboot"; + }; }; mcu_timer0: timer@40400000 { From patchwork Wed Jan 31 22:19:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13540047 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 98FEDC47258 for ; Wed, 31 Jan 2024 22:20:42 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kGiVw6h6IO8IeyVbB7AL6QWCXZuhR97GZG/jtQIVj2g=; b=jeGo0QOKH2OZHs 2MUGtjKEsg046PQ1dyE14u53kg4Ml35cTVRaeUowl2ZX+NmVyhDU62mfWsaJ0dQHqpcYu2ebHiGCU m2HNVOriS/rekZ9psbWyR8aHqhthQCSyyk+rlPFbfiperq0CCEhb/GwqhxbG9wYa+J4KNlvYV3deb yA2cHU4XuUhZvJ9xNddiujchLTvlVD3wcXp5lpi1NTmA4fI9T6IWpGa24fim+NhxqZ4WdQ8yEZJfn eZWv0eax6N2L9wB+SdRy5dDVzy6cbUdWVVmE7+UE2ZXBOeYLzdl/oa4MN5gK6l2b3V/UU8+wNVlyn eEZ+NEzD6f39eI02j6Vg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwV-00000005gBA-0Gim; Wed, 31 Jan 2024 22:20:27 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwB-00000005fz8-3koK for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 22:20:09 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40VMK47c009467; Wed, 31 Jan 2024 16:20:04 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706739604; bh=DeArmwL5A6ChLHjlxtBE6qbZsi59MzvYwmK1NjDWhTA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=NtxkKmlhGMmbrpM78+HLhEQN6VuQNMlVUDnq9meAOrC93CyxOkYuz5K65IRJPMUpE hulFBTOlevwGyxOPaCCtwJ0XYjLkhdsLvXOj4h4gG/dbttv0aaLmdx5yPv1SBpxjd7 BYpnLOWy5jMdepgjGl7HHNQoIk1rY+oQLCdm6p3Y= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40VMK4P3100786 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2024 16:20:04 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 31 Jan 2024 16:20:04 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 31 Jan 2024 16:20:04 -0600 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40VMJwxC102504; Wed, 31 Jan 2024 16:20:04 -0600 From: Andrew Davis To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Vignesh Raghavendra CC: , , , , Andrew Davis Subject: [PATCH 10/12] arm64: dts: ti: k3-j721e: Add reboot-controller node Date: Wed, 31 Jan 2024 16:19:55 -0600 Message-ID: <20240131221957.213717-11-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131221957.213717-1-afd@ti.com> References: <20240131221957.213717-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_142008_086688_1087715D X-CRM114-Status: GOOD ( 11.00 ) 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 While PCSI normally handles reboot for K3, this is an available fallback in case PCSI reboot fails. Add direct reboot TI-SCI node to system-controller. Signed-off-by: Andrew Davis --- arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi index a74912d9e4daf..a1512d9fbb92f 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi @@ -32,6 +32,10 @@ k3_reset: reset-controller { compatible = "ti,sci-reset"; #reset-cells = <2>; }; + + k3_reboot: reboot-controller { + compatible = "ti,sci-reboot"; + }; }; mcu_conf: syscon@40f00000 { From patchwork Wed Jan 31 22:19:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13540048 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 702BFC47258 for ; Wed, 31 Jan 2024 22:20:45 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dsB8NcbsUD/ggF/Nf+OQojCfS4089zex1S4rlwMAKd8=; b=uY1iZGYbF4YQAJ vA+H6rMjEGN8Q2pO4Hbp1HwRhHPvhHIZUwQPM1agNeBlO8b50anQBC9rdrwRYEKLJSLWA+v9Sf42w nGrINGzvoJj74OB4WILtIUuL/vIdlM9uR9k3NNQeUDropesLhqfaixQdxvt6ifPGoUmsfAOSnyHj3 vlzvUgzkVYlk98xhzDg4T5jD4M4eFYHbBojKsklXkRwplHsFWWNXcozAKwfkPSbpLSn1z9I+2sr2h 5PoQ8VHnacWMVacS2w/bU6Rn/PZEe9wdLfUlcZcxVOcfS8f+XiifjXJw7kDKps0LLS8DUdfmVwgFL mByOB8zNkwiMRXv2C7Vg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwa-00000005gFt-2Fsv; Wed, 31 Jan 2024 22:20:32 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwC-00000005fzR-04Sq for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 22:20:09 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40VMK5IT004445; Wed, 31 Jan 2024 16:20:05 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706739605; bh=5ccLGxfgTaF7LvtMbW1DBgvnDAXYVO9eKs/8Du1oT9o=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Awfcy8Z9EEZu1VprAoWlZNN0I1j1QS2t8GxNvte3XiPjYmv+qGC4Kk761SkkqroVi 6uIyEHasq8/7Wo4JzzVF7oh07ZvZ1HBZWLt7Ngpt4Phbmh+fB7v0V2FNI3QdsCaFlQ DkEK89krqOhvIK0MzH97f3lBbgi7emwhi9vcXc6s= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40VMK5nI080992 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2024 16:20:05 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 31 Jan 2024 16:20:05 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 31 Jan 2024 16:20:05 -0600 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40VMJwxD102504; Wed, 31 Jan 2024 16:20:04 -0600 From: Andrew Davis To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Vignesh Raghavendra CC: , , , , Andrew Davis Subject: [PATCH 11/12] arm64: dts: ti: k3-j721s2: Add reboot-controller node Date: Wed, 31 Jan 2024 16:19:56 -0600 Message-ID: <20240131221957.213717-12-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131221957.213717-1-afd@ti.com> References: <20240131221957.213717-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_142008_443540_C99F0EC8 X-CRM114-Status: GOOD ( 11.00 ) 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 While PCSI normally handles reboot for K3, this is an available fallback in case PCSI reboot fails. Add direct reboot TI-SCI node to system-controller. Signed-off-by: Andrew Davis --- arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi index 80aa33c58a452..1f1125208dedf 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi @@ -32,6 +32,10 @@ k3_reset: reset-controller { compatible = "ti,sci-reset"; #reset-cells = <2>; }; + + k3_reboot: reboot-controller { + compatible = "ti,sci-reboot"; + }; }; wkup_conf: bus@43000000 { From patchwork Wed Jan 31 22:19:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13540049 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 91C3DC47258 for ; Wed, 31 Jan 2024 22:20: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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dHSam/WLw3V0E4T/vleZSmHITE5MUI6VgQWQtgwDwrk=; b=icNy9TyOmgX85E kY7+sOyq+MeousoDS88GSIZ4ZElW+u1UDL3/auUne6dIzxhI5T7OIkHbqJ5jk5LVxURh6F1KuG+R2 SphY2v/n0cV8/eZpGXX424McaXDkpNM47GNPqcToKPLCkZ7sWv8bAbRTTvw2BmdAQAYobCA7rZX6J mWK0Z4M3CkosJVuDMibG30IJZ+gnYejucUyBzNpi09/w0PgiE9SbEsrU+Z2tRv+9ukdvl9C48mWmX mo+5Ds9CesuzAAQiOxlMd1o3ei48srVA81iZwYvilTJ1mkhEYVueBsexgyK7gtY4iiE+TRoiTmOHk uq+MljcaGI+Oe4YR8R/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwj-00000005gPQ-1bQq; Wed, 31 Jan 2024 22:20:41 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwC-00000005g0C-3tOv for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 22:20:10 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40VMK57e060846; Wed, 31 Jan 2024 16:20:05 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706739605; bh=aR2SBKT0vtJHfYIAGBIrORRoaDBuet+1jfTnks5284s=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=KIGUzHmYtbsMo+e0n0axWUsc8Lwyalx+7VOISM/jtBa/mHsKCbhTetQZEJqb7S/AV WYfofe+NyGzP+p2hM2Gb6XwCBiH0Xx6vA9Ecz8vZOJ20xPOlMv1TiAkU2USG0Shte/ REW/v4MqUBd8xtoWsDyfsTePF3OU+OJLV8PEq0QE= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40VMK5YQ100801 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2024 16:20:05 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 31 Jan 2024 16:20:05 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 31 Jan 2024 16:20:05 -0600 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40VMJwxE102504; Wed, 31 Jan 2024 16:20:05 -0600 From: Andrew Davis To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Vignesh Raghavendra CC: , , , , Andrew Davis Subject: [PATCH 12/12] arm64: dts: ti: k3-j784s4: Add reboot-controller node Date: Wed, 31 Jan 2024 16:19:57 -0600 Message-ID: <20240131221957.213717-13-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131221957.213717-1-afd@ti.com> References: <20240131221957.213717-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_142009_106364_B6554782 X-CRM114-Status: GOOD ( 11.13 ) 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 While PCSI normally handles reboot for K3, this is an available fallback in case PCSI reboot fails. Add direct reboot TI-SCI node to system-controller. Signed-off-by: Andrew Davis --- arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi index 3902a921d7e58..6a66de4f6e549 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi @@ -36,6 +36,11 @@ k3_reset: reset-controller { compatible = "ti,sci-reset"; #reset-cells = <2>; }; + + k3_reboot: reboot-controller { + bootph-all; + compatible = "ti,sci-reboot"; + }; }; wkup_conf: bus@43000000 {