From patchwork Wed Jan 31 22:19:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13540037 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 4A5ACC47258 for ; Wed, 31 Jan 2024 22:20:19 +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: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:In-Reply-To:References: List-Owner; bh=IBAsMihDewAcK5mJa0aS1Gz4w+9fcNLVQBK6y3dvE/Q=; b=XwHyp1NZaNBuaq vSFa3Iastnost/ZY3v86aoB6RcRHWW7L3qGwsdTRsSiwuCNLcVjyJy8q06vPvPvk16ksR2mBdShfB X7t2yJgTO2RJ77bUUMTPsPnw4c0/bSxoabJi752pq1BE/WrPWh9TDUbhWG/wJ14Ignp9bLuj5cdwz UZMIApHfkmUUVwAl/QT2FgxXt6m0gtZKOpmv4evKtDCgnhj9x3DXCI6+lOEnF3dHoVOY0QLhiPH6f bclNXjLjFkc5q8jUEWsurC0AdIU+Ym6osYIiWBVd2kuIl1HeMmT4rJr0OgQbf0qCMyc8xP84dX/l9 8parakkZXaMBboxOwr9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVIwA-00000005fyb-44uU; Wed, 31 Jan 2024 22:20:06 +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 1rVIw8-00000005fwM-16YV for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 22:20:05 +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 40VMJxeY004316; Wed, 31 Jan 2024 16:19:59 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706739599; bh=oxfY+NQUBrJCOZE6uSbWk7em4uytovOm7ANLLvlhJLU=; h=From:To:CC:Subject:Date; b=wDwTMp9z16PtwTgdyWMduRQ3Rr9ypGsPlc4vQW6rgC04yJqs0J6ofVm+qxH5rlw1k 6qP1onbHSC8bcOYQA71ChorAohuKFFXGb2I56CmgrZnNTG18ILuOQ9vGZrXG3YO2RK kV4qMm5hHjiR0RvYLHVOYvJOgDRDsp/oH9eeCnA0= 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 40VMJxtN100443 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2024 16:19:59 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) 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:19:59 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE109.ent.ti.com (157.170.170.41) 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 40VMJwx2102504; Wed, 31 Jan 2024 16:19:58 -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 00/12] Add TI-SCI reboot driver Date: Wed, 31 Jan 2024 16:19:45 -0600 Message-ID: <20240131221957.213717-1-afd@ti.com> X-Mailer: git-send-email 2.39.2 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_142004_410609_2A1494BF X-CRM114-Status: GOOD ( 12.82 ) 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 Hello all, While PCSI normally handles reboot for K3, this is an available fallback in case PCSI reboot fails. This driver is registered with low priority as we want PSCI to remain the main way these devices are rebooted. The important part is the binding/DT changes. Currently in U-Boot (which use the Linux device trees) we may not have PSCI available yet (pre TF-A) and so we need this node to correctly reboot. Adding this node in U-Boot is one of the last remaining deltas between the two project DT files. Thanks, Andrew Andrew Davis (12): dt-bindings: power: reset: Document ti,sci-reboot compatible dt-bindings: arm: keystone: ti-sci: Add reboot-controller child node power: reset: Add TI-SCI reboot driver arm64: dts: ti: k3-am64: Add reboot-controller node arm64: dts: ti: k3-am62: Add reboot-controller node arm64: dts: ti: k3-am62a: Add reboot-controller node arm64: dts: ti: k3-am62p: Add reboot-controller node arm64: dts: ti: k3-am65: Add reboot-controller node arm64: dts: ti: k3-j7200: Add reboot-controller node arm64: dts: ti: k3-j721e: Add reboot-controller node arm64: dts: ti: k3-j721s2: Add reboot-controller node arm64: dts: ti: k3-j784s4: Add reboot-controller node .../bindings/arm/keystone/ti,sci.yaml | 8 +++ .../bindings/power/reset/ti,sci-reboot.yaml | 33 ++++++++++ MAINTAINERS | 2 + arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 5 ++ arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 4 ++ arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 5 ++ arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 5 ++ arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi | 4 ++ .../boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 4 ++ .../boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 4 ++ .../boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 4 ++ .../boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi | 5 ++ drivers/power/reset/Kconfig | 7 +++ drivers/power/reset/Makefile | 1 + drivers/power/reset/ti-sci-reboot.c | 63 +++++++++++++++++++ 15 files changed, 154 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/ti,sci-reboot.yaml create mode 100644 drivers/power/reset/ti-sci-reboot.c