Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp446708rdb; Thu, 1 Feb 2024 13:14:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3ZnM56gZ2O+HlRpd79tqwmaR7C4kaf4oLZhGPmwkfC8pggKBte5JgwwdjBJOOpr+D1owL X-Received: by 2002:a05:6a21:1798:b0:19c:a48b:300a with SMTP id nx24-20020a056a21179800b0019ca48b300amr51661pzb.37.1706822068696; Thu, 01 Feb 2024 13:14:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706822068; cv=pass; d=google.com; s=arc-20160816; b=qCfnfXf63bJYFXvQJVL+GuRJkR0YbBV+S0VfvzUHJGhgo1P57ReN2gAWE4DYt3C3b3 vlqtZr7qnOAdt6GJKi4qfAl8XSzPm7yuVO6qExId3Ks+0VvLaX+mTfTEUVu+GiDTRWwr yDte9Chz9nMam0lL7MEw0PHe36IEO5aCxCEs/tTk0i0va5e8ILVGFpFv3m3ExWYQFmdJ dXEheKHMNswyamhMepIzku1mq4+D06mm4I8U5giyQb8cRff7KjwgaGle0G2adG1Z36Ql XGDFgq68l2YPeJu86RGTZIbNtx5vDbqDzkTTr03lPujRVFAWcYpTzONk6Rc9lZJwEc7H r3gQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pEAsrojppbvro419UF7rpGJv30BuKmWk+tcLVk+eenQ=; fh=Z7Yu9nm6eaDWaMXONi6QyS7l/XdLT7PzXmPuYs+fvVw=; b=onM0NRjZ5+JsrYbeZi9B9/iGWmESMSQ8MfSnox8btyKkoOjXkf3J5fDX8CGcRSPfnV cToRkASbzzZN6QOy3deVf0aj5TKD+IogPqsxlPhR8McWAZQBbuegaEg+xp4WYH3H/8Uo v0kTw+TCIz4+MmvppByQ6GcnvLPimd1OLPvGidlil4Gfh+dVrpK5jgRhYjQSW/SEzmpl fDS+cG1QIWlTUuJxNmqd9QPuvOMwXSr5QiqH0gUwj3kS06Rf4zVerfvR+ufJ8YFFQ9LG 89TEBqCkim3fRwJp85VoRlPyFzQEra0ADYFrN96qJJt/ruZzGB0Z5zUL7z9gLxcJYHBQ Em6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FtacmHPF; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-48864-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCUUCF5w5m+dDopAVc5KkOZ2wblHx7d0hFoIJPrwAr9ubKlwlbqpAY110IUiQinyvaDAmNzgiME1pJEaCE5N+tmdL2kQznjQn8AqSzdkew== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y23-20020a056a001c9700b006dbcc2013aesi293772pfw.137.2024.02.01.13.14.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 13:14:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48864-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FtacmHPF; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-48864-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5CFA428CF6B for ; Thu, 1 Feb 2024 21:14:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CD973CF7E; Thu, 1 Feb 2024 21:14:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="FtacmHPF" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 395CF3CF5D; Thu, 1 Feb 2024 21:14:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706822056; cv=none; b=ie42kLu35Z7uPXeAClAA8F1I3IRjxpk8KQHRC0UM7c0tPfMXAYmSSOJsa1MFHdKJMhsTmHTxlEIzuPd6jIJBlWV0gqTmVU21ipSegvnJBVii9LbP5yPKvbzMV7MuwcRd7lLFuF7AsjrEvT1X3fZl7NPu4/hn6j57R5Hz6hWmEy8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706822056; c=relaxed/simple; bh=9om5/uHJZU5XBcVgAeZIRJGYJUvAq7Y1kYG+2l1D41M=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NBeZiNzVYKHWfah4OvhbR1U7rgWwEN2oil8yP4mjv+yxeonamhlO7NZMjP8OKo/pM49etRG1uDTQSKK4im61cO693pkYd+4YUtqiuB/ntHxWegywSj3jeqkKgICaVdrgEl2eDnH7lLE7vx3IxxLnTayPDE6gL3xtXtYASzllBrA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=FtacmHPF; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 411LE2MV100921; Thu, 1 Feb 2024 15:14:02 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706822043; bh=pEAsrojppbvro419UF7rpGJv30BuKmWk+tcLVk+eenQ=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=FtacmHPF72QEDzuSyCA5vjFHJFnXLWxyY9tnRvzCMGWw3NRVMSDBWE0zfBGXoF9LQ 8PfgLZ1psWpVLNdbjG6iHdb1/LQ6mfXyX6LHvjXva7mK0Cvzq/PKwttPAaT1B7Ue7M BInzEVk0dUiPuLabIVEwrwHfuofNK1JH8UjHKyqI= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 411LE2kI062853 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 1 Feb 2024 15:14:02 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) 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; Thu, 1 Feb 2024 15:14:02 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE113.ent.ti.com (10.64.6.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; Thu, 1 Feb 2024 15:14:02 -0600 Received: from localhost (uda0133052.dhcp.ti.com [128.247.81.232]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 411LE2ir109903; Thu, 1 Feb 2024 15:14:02 -0600 Date: Thu, 1 Feb 2024 15:14:02 -0600 From: Nishanth Menon To: Andrew Davis CC: Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Vignesh Raghavendra , , , , Subject: Re: [PATCH 00/12] Add TI-SCI reboot driver Message-ID: <20240201211402.nldc6x2iosi4fkxq@morbidity> References: <20240131221957.213717-1-afd@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240131221957.213717-1-afd@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 16:19-20240131, Andrew Davis wrote: > 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 Maybe after the driver has been accepted, a defconfig patch(module) might be useful? > > .../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 -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D