Message ID | 20240131221957.213717-3-afd@ti.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-47242-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp59890dyc; Wed, 31 Jan 2024 14:22:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFl6PovDmAolYFC4LLbUxfF5xXNI3EXiFdIE88o+ZMR23yp5CKw+TOgOeatuYHamx+JSdWU X-Received: by 2002:a05:6a00:17a9:b0:6dd:86b2:a4a5 with SMTP id s41-20020a056a0017a900b006dd86b2a4a5mr3586153pfg.5.1706739736679; Wed, 31 Jan 2024 14:22:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706739736; cv=pass; d=google.com; s=arc-20160816; b=wAmv+KWN2G2mJBDtgH7D7TvEY73Ce1cPU2LldNM3K5JMNUGTckdERPSxmsCGHzrnEP ZFSNRv4gTpQXZ2WMvSmiB1BxF2ZspTMH92JeorefDYdB722O83mBiZs55AQuNHhegAhj PdQGoozW6TdNIxnLiouAOSUJ6vOOLptgy2RRHgkA3gpqnuJ3mWZFXOzzIUunfKa+fCR1 08e5Pp4MRCPUsj+Ta0tgUpeR3jEdtbDRBkJXGPJkILYHq3IXrqnnUn6aPEi6Rd/MNCJa qHsvcF0OzprdS/HcKDTQIjzkozDpEYt19fCRaM2xE2j3h9+tOAhvDS6O8KPHVCZydXzv Buvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=MsGtrKLONpa1skHO9OSysJpEjYSFARrrS4U8i/PdCBY=; fh=tEmNfPKS/vcJiQ1wH+clQnmSwETL4S7x4E6nWwv50l4=; b=gtrL3cAyO8Z1zXcTu9KcvXxMDhQKdbYmZ/orGtVpqE3gaIxbHDqOxyxzsJiNHDICz8 omCVPzDbAdPIih1Q/OoXxr23q0RifpQhRdzcdw3VJbQC4YX5KFlt/80kMvrJN7G6/8YH p/YwjpK5yYTIF/Du5bVtjfT/gtA4HcCDPyIsd9dOMGgnqPFU8Enu58SGwLbQqE6jGTeo x9QE1tPERNhc/VYDn2kMajsNS1RAnoVqRdh+NzE0ez1I62/hjGRxfxNP3X8zxmLthdB2 K2K4GVrSMyxfr8cJ0dHgaYCBmCf9tW/8n6ZUJW/zFFJ9zqMBBqUy/WG0fDa/92c+AQ+0 Ejmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qw6nWHDW; 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-47242-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47242-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCV8lySgWtxFUfASh4LMlo9ECFbGvAQhNW1TALr5QzrCVOaB5bmhjpw4HhzN8HrKUi7TcRb0ZjPPs3l/b9EJDBsAOSA4vg== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x28-20020aa79a5c000000b006dbc5fd79c3si10457961pfj.130.2024.01.31.14.22.16 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 14:22:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47242-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qw6nWHDW; 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-47242-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47242-ouuuleilei=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 9746C2912DA for <ouuuleilei@gmail.com>; Wed, 31 Jan 2024 22:22:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8E933C6AB; Wed, 31 Jan 2024 22:20:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="qw6nWHDW" 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 C566239FCF; Wed, 31 Jan 2024 22:20:07 +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=1706739609; cv=none; b=t9sJ/jXj4HT0CFSUjR9MKqCQjRP+ckTc3y0o/qxCCeujxbQc7BIIPhS50bBX+WlZBeIugVbaD3FyA1+VZPxqIkjNSlkNifCKrgqgk+8+MjEySmoSwE+ZU/VJ4xl/n/12Ck5Kfb8K1UBkebAIDZztLKkm/sl4sQyOrlOxwarOlyc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739609; c=relaxed/simple; bh=8p20tpkDY0SV/epOAIXWXwmyehskxCoLyEVFGjzVQrg=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=etNm149MffJhYAMY2EGEB0PzE55QLULwqxuz1xbD0mQ0bptkdLgCXDyykJUyPnnoYBHbUQODRx5ph/zKSIm5sCSeaCUBPIVjBCjsHLy/XN7hmYjhAK2ZfxdQ7GnSnS6PZBCzSd5AO1vhR52BJ5D1+eNVDZpXJVd6RNyP731xGuI= 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=qw6nWHDW; 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 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 <afd@ti.com> To: Nishanth Menon <nm@ti.com>, Tero Kristo <kristo@kernel.org>, Santosh Shilimkar <ssantosh@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Sebastian Reichel <sre@kernel.org>, Vignesh Raghavendra <vigneshr@ti.com> CC: <linux-arm-kernel@lists.infradead.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-pm@vger.kernel.org>, Andrew Davis <afd@ti.com> 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789646326078182802 X-GMAIL-MSGID: 1789646326078182802 |
Series |
Add TI-SCI reboot driver
|
|
Commit Message
Andrew Davis
Jan. 31, 2024, 10:19 p.m. UTC
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 <afd@ti.com>
---
.../devicetree/bindings/arm/keystone/ti,sci.yaml | 8 ++++++++
1 file changed, 8 insertions(+)
Comments
On Wed, Jan 31, 2024 at 04:19:47PM -0600, Andrew Davis wrote: > 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 <afd@ti.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Cheers, Conor. > --- > .../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"; > + }; > }; > -- > 2.39.2 >
On Wed, Jan 31, 2024 at 04:19:47PM -0600, Andrew Davis wrote: > 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 <afd@ti.com> > --- > .../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# Don't need a ref just for a single property. But then why do we need a node here at all? Can't you assume reboot support for TI-SCI firmware (i.e. based on the parent node). Then you don't need a DT update to add the feature. Rob
On 2/1/24 5:03 PM, Rob Herring wrote: > On Wed, Jan 31, 2024 at 04:19:47PM -0600, Andrew Davis wrote: >> 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 <afd@ti.com> >> --- >> .../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# > > Don't need a ref just for a single property. > > But then why do we need a node here at all? Can't you assume reboot > support for TI-SCI firmware (i.e. based on the parent node). Then you > don't need a DT update to add the feature. > We could yes, but then again we could do the same for all the child nodes of this system-controller parent node. Might even have been better that way, for now I'm trying to be consistent with what is already here (child node per service provided, even though the services are always the same). Andrew > Rob
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"; + }; };