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: 195005 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp68705dyc; Wed, 31 Jan 2024 14:42:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFE+mkqa8cplU+L8+vHn4+MtiW/i7d66889warmKIVp3gmsXv2pp7HTco7z1o208/Sg2plQ X-Received: by 2002:a17:902:ecc1:b0:1d8:a108:2cab with SMTP id a1-20020a170902ecc100b001d8a1082cabmr3709874plh.67.1706740933116; Wed, 31 Jan 2024 14:42:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706740933; cv=pass; d=google.com; s=arc-20160816; b=r6Ai46Bv712ufbVu3S10nIkYEWOuWEkt+jR6cgBZ2h5bW9M6GcWu/6De6r4lRFGb/Y k/LthzmyZ8+xvDRLoEJGGqKNee2gke0PtgaYYhXynAtWyN2JqMxUO1jdJhbDG68cWw2l eKXWo9ycFJlnVAPgxeQeYHbmGLufq680zR/UVd7AYBPTkedLElW8F9S0vxgvezNxC2LG sNM5LA0vGBFzIIuYsZGYj8kfXE09ERgtBFYQN8y/skH5Jn4tLY5ed51a0aTTy2pwAjiK HaHgbKA3i9h1yQq24RJodvTkj280XLS/dnc+NbDz6BrA6isxSdoMh10q4lYgzpWW0gC1 EidQ== 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=eN3oPr+M4EypKKu046DK8GJ27aJRTrtTuWvBbhbnFeE=; fh=IYcH6jUbYBVE+JzjnNN9f/U19gtm74mqvqQXHahM+jc=; b=ghrV2mc4OdICw3PuHv9TdaV2z1y7gnQDl8RWgrHLa0trZRO555jrTQOIVe2OTdgwER V284gQFxwQxIljqhJecWoB33O0nGY+6LWtQfw4AKNkp328SW5Q7FKCYr2+/izAQgHisG 9gKBWs9lDtODAeMYpPpWsyBvOKnRHuo2cNtXQA9ByVw1brezOdzq2zbCP23VU6rMRgxF jtnoWVjyoZjH/DPIlWGBq8Fob4M9YYoQhK8PzUydHHCM8NvIlWvzqcUYDdytWYuPk6ZZ ZPEy53F6ijeVFWlj6Vk+DdPXd5bJfaNQAwG8tV3rzrpw50NwWgxfrgenzb8l2WrHCcI5 4z9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tjvEzXJd; 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-47244-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47244-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCXKktzidB+JgbXQKx3UoQDhjTBlNjU1kqkU3DiWVWMWRkrvhC8yyceGfwjaDG9ZramqZ7w9+vWOJ2/ENFLZE2a0w2/Bxw== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q15-20020a170902dacf00b001d88bce4b30si926575plx.317.2024.01.31.14.42.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 14:42:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47244-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tjvEzXJd; 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-47244-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47244-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 96B33B263B2 for ; Wed, 31 Jan 2024 22:22:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EFB393CF55; 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="tjvEzXJd" 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 06F83383A4; 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=el4IgLZlNUz2o3m2UNUSIDwFteyFlGe9B/0ZpeCTyEB9mBtCPB4d0z1uYYEdxPlEJHaDmB/ELw8IWbXx/OO8Zpx5C9Gve0/hFLSfLlith0JPMg6EMCtw8AsQxxvGUx9PyG/kSadLDeikfdNqRbXrrccka+R7zXzEjlWcP0yYQVE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739609; c=relaxed/simple; bh=bTBSyAWO+uR3Dr01EJDzUVOpbsMhuSfmMb5DDrgVaWI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=os5kNUn2JVSyETplaKaUNpc3W8HhDFDyCKrAQQdRzd+/NPV8ux7kvs7NH4nEy9ZhCKN1FLym2jJ48e0cClbaaXQ0yqCJfE+OCTM0nNYzMQMAMu6qi5UrZN/G4XejVx/ZPtjRMQrLrWJotg/JTpmBx2quPnC/4W8D0vQ0lFeMVfE= 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=tjvEzXJd; 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 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789647580380753812 X-GMAIL-MSGID: 1789647580380753812 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: 194992 Return-Path: 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 (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 ; 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 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789646326078182802 X-GMAIL-MSGID: 1789646326078182802 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: 194991 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp59799dyc; Wed, 31 Jan 2024 14:22:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdick7hcLCT95VmVa6W4FMKZjz7ppAma+BJ1JbDezkc8A5zhKva7QNk5FKLzVNA69ANZb8 X-Received: by 2002:a05:620a:2987:b0:785:43d7:25e9 with SMTP id r7-20020a05620a298700b0078543d725e9mr586656qkp.56.1706739723684; Wed, 31 Jan 2024 14:22:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706739723; cv=pass; d=google.com; s=arc-20160816; b=Zsh9ylQ7M8kIRu9EklqgEEJt/auyKqKyaX/cP4fRMdPGgI1PMkj9839bhZfEaRjMQF slHkTJVqWhmSgpVf2aO0wd1+jcyTbMqVAbUvfocoq6M31bN3z8j24jurArSjE8G23PTj mWwscsZkBUlHP0iYzEMvLFr2vcnrjZTM0hmzzz9ufLhgTB2Ybp9+QtZ/FOdb5egVgW2z v+yOrdxMRslh1p0HdjiV8DkgEH2DSgIqkSRj3Oy/k7ZQ+/QeNI7+E0JlVrkQL3FV0Ow/ IsxBKs6wnATYi/2fzvTl6FEJhZcC9b8tudbNpInrLkL0mTHlAPKUNVfKiR9IjP0Va245 0Zhw== 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=1YUSJDF+znyudL9/WwRSORWM+cm2PVwYB2DPgs0ZaYU=; fh=2i4VGRXIXTD6NiuG3+N/9QFov/3ElOs3IzDYQt+Uoq4=; b=KvbJXnmoyBnxDMQsY1vc/kC3FG63gnOkfKYUWMaM58JagJv3Kp+RAmcuZsfqv21TtV XSFCkF05pXjb2WlaO4mGnMvRsPnzIfYBzPG+ZZYGDWph6mfidgVe1Jxrtk5Abk/n39Ox 2mL2Xm6gHDk9N5OIUUv1+1yJLpd2qn51BN/9m+12QBOaAoZfwuzNtkL6U+1576mqIIXI mCZYg7AfKrn8O0IV93YrZKQ8eRSD2Kc7jAWSMbdh6wiIN3F9TvInyIZjkEJQ2DVTqVy2 JsOc20FO80cOwuqEwUknpsrFjBUK9N/SoinZItON0FsqLPs77KbQwEqL7iqOUZocygkQ NTqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="hTi6l/P5"; 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-47240-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47240-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCWseEvxs8rC8fOxfxoEoyOIHah06uCtYT0z+5Vn1bpFTiKCOaCVV8MHZUoDSr67d3tp/p1prsN0GClQuAGOojRL+vjsdA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m15-20020a05620a290f00b00783daee4340si13184436qkp.782.2024.01.31.14.22.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 14:22:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47240-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="hTi6l/P5"; 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-47240-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47240-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6B7EA1C216D2 for ; Wed, 31 Jan 2024 22:22:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6430C3C465; 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="hTi6l/P5" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 2A2C039AFE; Wed, 31 Jan 2024 22:20:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739608; cv=none; b=K/itngneC1WAiGo4Moww2LJN+0CMfvCDaUdghUaZjb55NfcJH4myAxfpb+OyQa2Q7GGKGrkVl05x+8uj7Y7R+ySLPa4UXlr3GyCIZiXrpTtOaA9MqESzrvt47W3QqiUxj72Oc2dq1acofdT98tw70OeDUWl4Ygsnw/HQr0Mlt5A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739608; c=relaxed/simple; bh=3XrBhJ7lFcCw9u4MVsQS//A6rOZ4Nmr3IhSO+twZxug=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=SIrVcEEoSRcA77KNoyanwi3ys4weqnKXkBVKro4jYJ8YTsi9Dm2ibEAFzrz3qN2hPmL9Mti8SW7seoTUY2cubDK2nFMLYr3/Pjyqly/Vd5gPIKakxmYmv8DzEUI2l/b9p4f1SjhtLn7toWpdEjhOMPgENlDpPCPd9abzayg+rYs= 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=hTi6l/P5; arc=none smtp.client-ip=198.47.23.249 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 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789646312279489290 X-GMAIL-MSGID: 1789646312279489290 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: 194990 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp59772dyc; Wed, 31 Jan 2024 14:22:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpE/UQR4yxqmZi3/jZm3pV+XQ/qXd7/aXKof/Vdf5K8tPSKqCR9UtcxDGmlj9VFP4oVsMO X-Received: by 2002:ac8:5787:0:b0:42b:f0b6:75b1 with SMTP id v7-20020ac85787000000b0042bf0b675b1mr1352475qta.49.1706739720342; Wed, 31 Jan 2024 14:22:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706739720; cv=pass; d=google.com; s=arc-20160816; b=Rb92NeHDfpYFkMAaSvYVPSKn9BzqfrWk+11qJt11A+eZOmOWfZJytlBnr0FTATF+sB IRrJeQi2TxZ2GgHM5ZUS4vu0Xh/1srkrjEH48WUdz5zdjYnyZ3Y9fCddoJbkPdFtN2un leDJ9JSlpGLK4UWAH7mLjr+ZnImaJiBkgorscLaygv0QXapbiBDYlVkfdbBt9KfwzYI8 NcdC/qQafcEI3orgD7kVLD/SMiWPb69ez1nEGTGShxv9rJP4Em8Naxhrb5GuG0wmaJVs rtMxaw7x+9OoU9qUPQoa9nETOCa5Gfa2CpKk0fqw8pfoN3KHML4QpOI0kW3hwxn9XJVn 38tQ== 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=HXQ+AwkFKcLP+/6vu6+08VVIk7h1vpO4bRIC5MHidjU=; fh=tgGrFAm2tOhpJMcjlrSRZNAkCarE8VVLnKKqEBRNBG4=; b=BnWZ4WNSJSuvDdcZW0JT68cRKz3xa2k1umZLuiktI8Lr1z3WGfwpQEA7RIxxzjmpfA SurbVoHbNWyXUlK+78RKNmicpbMKPHDGS3gDZvoK6tVEywCbE1Nq6TgCnbVTEHHqYuzL ATs3YBs8cQQyw4Cjy4HjLlDPtsMwvl1TTu6opVgAlcTfqiCJsAM54vXb7UxbsLx4t7vH 2YCh5e01Y5R1nnKYkywE7NzuaIzmw7H48Vy0vEt+l9RvXC4yKWhd8SKDqP4ROiSUwaU6 WdLFfyxVxotx0279BkjGUDTwPoC+x4hDfR1X/lcQErinttJK5oaagyHPCnthk9cPF+f6 Q30g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="qZ/46/fQ"; 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-47241-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47241-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCW9PEQf7aiy2eUYG3xCTqTweenuX84KwYvjuVXr3wlz2bCRhwbYxb6ipEsN3A6qypDGcmMLsoJxMlXDzoT7JCUHTux8Gw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id r13-20020a05622a034d00b0042beebb9dc1si1203030qtw.391.2024.01.31.14.22.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 14:22:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47241-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="qZ/46/fQ"; 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-47241-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47241-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DC4701C21FDB for ; Wed, 31 Jan 2024 22:21:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 50EE73C06B; 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="qZ/46/fQ" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 C5E9539FD8; Wed, 31 Jan 2024 22:20:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739609; cv=none; b=X9qbNltj7s96SU+SgeMBJ+fYxC7qHHVgNX2hvBf1sIAckVxMASmgvJS1KXVqtY7nBNsYav0pyTUpATGez5+Xn4u3bzyrp5c/o4eh/6w4xUHLnyG7Vkq2lRuHHLbbzih295IBF656Sl2W/yWh2w9kdhBE5Dw5lqbcAPA7FBhkqQE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739609; c=relaxed/simple; bh=O+03k//9muAfFhqt4h+dCS0+YHdGNb7/KxA418aTBBw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bzlRQTVx2PGH50sktlCIgk3g74vKnUhjb4qAB/lIa5I6VXzWdxIWizs5/F0X9T13hUlkMVL2TDY11YXswqIHHpjoonHhR74JkoYEuiAHnX+hUqElEfl4c6vG7myXYK7cKvcBsP9MlKjrqV+ScAZxmGSGuhz/9Cjr0F+4QtAqZPQ= 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=qZ/46/fQ; arc=none smtp.client-ip=198.47.19.141 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 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789646308913128373 X-GMAIL-MSGID: 1789646308913128373 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: 194993 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp59898dyc; Wed, 31 Jan 2024 14:22:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3b35x3ksNHiamYCFrfC9MHeydA54Lv5FplC1l3gjeaM/8XoYVhuNbnLd9ylzupbaDUj9A X-Received: by 2002:a05:6870:ab13:b0:206:d28:c65f with SMTP id gu19-20020a056870ab1300b002060d28c65fmr3237729oab.48.1706739737449; Wed, 31 Jan 2024 14:22:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706739737; cv=pass; d=google.com; s=arc-20160816; b=x8GyyxUYoPiAmjxL0p8X6ry1JTay0LjNrcodDNzw/feagZeRpGokVhiXXoPP84Cy7e tchDiR7z1kDS2CV9Gj/wb1ALRfSiPHCMwByFctIbDkMSbRpmqvA1s9ywyC9SCd07Amsd 2WYYFWccgUqu4tNPyF7VU8GlbhxeFHl5Te6VWt9IFkZMiFUkaz627wmNuOhT6tly4PVt rQb8DOON6kNVJdyGkBRw6KVBnBjpaVICQfQYD72eKR/j92dwEgtbfMURkxVDA/eu/yMa Hm0E5qjR/oXPZ3TzZj9+mEwTa6/KaIXoj25BXf9syX3ai8ZSB+zBI3AuVGo6euJwV9/p G74Q== 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=8beJqyzumN9+CMCul7JvqwxP0DOUWWCHmJavY3XFYug=; fh=YkW+0XGbYk1qeswA4Bx+CW+iDd/Kb+FwAe2T86vFh4o=; b=P7M0gTACEEtBZ6QsZ+cO9zyQz3kAk4wKVq64SmsF6/ETMWuWED4E0Hxbl3kLoFdjOj qR0p1ELQ4Yt08cdsjgICGX6vqNf61ZQqbwBI+Xq6KwvJu9Q51pw+hg5bTJy0bxc68baw c4UusCYD5emxotyR7ZmxD1iwRg+km4fe/H0JjQVnaxUQSM/W4tMaPs/Se6i+sT49EY0n Uc3sUjcpUdGWEubgX3SVVRlW8AewnHfsCj5zKJO+GRflsMiatK5RvVa+pP8EJMHjyv3y AopowQB95MJA6afpY+LzKq50A2qb/Ohg+8QkQYDl8Qe3CAio9bcGs8m6f5qi5ivnxw+O UEzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RtmunIjO; 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-47243-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47243-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCVwmuTsgQMqGCYPKqQilDW7SY7/HU2j9dBfW4qzX0D/fO6koZyTfRiEexe78mH6gWkMIlMmWXCRSAU5aEz/rURnYg2lXw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h21-20020a631215000000b005cdd7fff951si10297545pgl.132.2024.01.31.14.22.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 14:22:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47243-ouuuleilei=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=RtmunIjO; 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-47243-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47243-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 C405929138A for ; Wed, 31 Jan 2024 22:22:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF8CA3C6AC; 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="RtmunIjO" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 214E839FE3; Wed, 31 Jan 2024 22:20:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739609; cv=none; b=XTYs5uP5hlbVvlfBls6WJOJ3smIzUkLf7B6v1v0PF5SGy9xaJ55QZnxTIs9RB8v8zq4idAWDlmKnHC102O5lRnewAkJg++eiVDADDqGVCw2gvfhbajdwIYT4oCQF7svUGv1e+dPyiltkOBU63TP5TTWHO5PD4Gq/ZpYTpwqCNF0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739609; c=relaxed/simple; bh=Ceku6KOeH22JGvzJEnc13AFmxOzjxHH5/T5neKtxgds=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WAfUSU7Dbb1TJ7NcUU6xzXfMINabuCDVLIEmb+7UO/99CYsd9JTtDO9s097ZzPEHItwMaRxvt7kvRRuAsXUrNiV9DzOx+A3XAwXErVAmYMBPWEu0hXX2727o10e5pTW5K/yxaSt2s7y9pIYf5oia8DZe7Q02k19jUjrBb3dxmz8= 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=RtmunIjO; arc=none smtp.client-ip=198.47.19.142 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 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789646326875844933 X-GMAIL-MSGID: 1789646326875844933 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: 195006 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp69275dyc; Wed, 31 Jan 2024 14:43:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1pf0yGvvc0IgdyeP5n876gE0lsmtlSgxYMGBbGGpcCtCYgOLtKLiE4lZ3M2aZHQBf8mPh X-Received: by 2002:a05:6a20:1b1b:b0:19c:888a:56e4 with SMTP id ch27-20020a056a201b1b00b0019c888a56e4mr3038524pzb.49.1706741025566; Wed, 31 Jan 2024 14:43:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706741025; cv=pass; d=google.com; s=arc-20160816; b=gj7mZRaUoxhrCYIHiaTrH3IPIwL3DIOf6n8DJyyeDIsG0/s6x4KUJ4MzXhR5quB9vg P9db2MzSe9OUUXhgRWMOZvoQ1pFxGDdbCk86VL7bmX8As4wK2RqQ+KXkI6/LjNZ1d1NB /gjwdpRxHT++h3hdYv7t7zVdFrxQP2jZiC7PuzuULy9z1sOOB+5GhPzepSGIAbxw8BDo AMxoHhbeJwRrY0QaBOkRCV3Kuw5ijfJfB4/+OmH4O9zRCHs6A92D+7BDokRjMuQh+PN6 i75XNu6quWKbmlmC84OcLmCV/tU9Sc3nlXeipo8n/vrjeYRkPQoMPtE0AWWgvs1Z1tgh 1nfw== 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=zj5Poq1SiBWcRYBOWTA5UoHJNRwmeAY0U+bUiO41nd0=; fh=MtehDucWOci8BaymLLT+kX5HiGbCAlVsGmAKjsU3rF8=; b=YzLY00RqbpuNEOiIO/6e2Y9p4T9t/84ULmlk4Jj/gyYxxB58lP2r8tUOQ+VUWs8X0h +xWwMG8H4AK4wm+SbiHxWQBff0YMouxdHCiu/SLZAKoS1XNkC8EY5unbXIbtvkaGHZ8D ee0k66LJ9S95Zp0t1OpaNssip1NBJXiNUynRyz0W1Rde2y+wE12Ja1crB8vFAPYx2PDl oelCoyJy2Y0B04ntgPRTaxxbNETOoSnaWnYnKmi/vB4KHzDA9yTw+etjhTnnYcrzl6ol nP89y9HtsJ9M7YH7GTM+c6Z800HyJP4tzB3DbDJUHmxFA11tqTKpX5u0ut8H+Klep3kf pSBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CnRVxiW1; 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-47246-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47246-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCWP+InlCFcbF/9aY+K39rL5+DaIVJxpgBCzysVOXq38JoZKVgHEedgsswI7SXmsZXSR9bDnG8hnjOk2plF0HK5RvYY+Mg== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x186-20020a6386c3000000b005d8e283c1ebsi4307855pgd.840.2024.01.31.14.43.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 14:43:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47246-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CnRVxiW1; 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-47246-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47246-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DAE02B28B6A for ; Wed, 31 Jan 2024 22:23:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF571405F7; Wed, 31 Jan 2024 22:20:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="CnRVxiW1" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 F0AFE39FFA; Wed, 31 Jan 2024 22:20:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739610; cv=none; b=TWajLdGOM8SXwHJx+sbF+v41UHsrbc2842eAw+fMs3xOvqeoP6TaaMoTA3y33nkZ3AS3Ab5khwPPqsJ27VV0PTziOi9FwNeSOO//jNdNjac1ODNio21WVddc4HWg/roCB6nb+qK5VhWpmkzXbMsq8tBAV53vWHbvRdLrfig3mvQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739610; c=relaxed/simple; bh=MfsdpvyjIkm3Ayj5tycpY7OlS3Ktzu09lZy/e/4xQSk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Vf0jjz/EIJgq+/++UeYthX+G7aV1NsCHulmsFjHUPHiCnH8cE4VP+NjOEc2dGe9noY5xcPWx2kJlXghLrcHr/OGFdv27/a515djA+qlJSNJILiZNPXuA8nzunDLRECub8K6orvzT10he9qa6RA6F6UY0L0JsTcb5+pEpxi0WNeY= 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=CnRVxiW1; arc=none smtp.client-ip=198.47.19.142 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 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789647677860695954 X-GMAIL-MSGID: 1789647677860695954 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: 194994 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp60620dyc; Wed, 31 Jan 2024 14:24:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHs/THr14EivDyUMQ5tYVVMtRuH14m0twE9YOdgN6MDfb4q3KJTfI/wFWhjO2iOlIsfBnJL X-Received: by 2002:a17:906:1b42:b0:a36:6444:7815 with SMTP id p2-20020a1709061b4200b00a3664447815mr2766669ejg.17.1706739842947; Wed, 31 Jan 2024 14:24:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706739842; cv=pass; d=google.com; s=arc-20160816; b=W66dQfGAil84RxsElgTyL82ePkUg86H7PJ9friQX8UvDPJwg9wvutK7YuWrVUXt3mQ 9NJRP5ILKGmfN+KiYqSl+Ed9hdbTwnGQj2vM0plW73jS0Q9Ws9funeiluTVxlWTkn4AR EWhfLAqeDC9gFHsSP6v76FwCLfnp3dp9SHZ8DRSa54VyceGnKzgxksgQWxFcx4DqvVw0 dGl5yqodUSdzHeT7hHNT2tbhB5Y8NcrsJ/04YAlJDKeY2QeEN09t5I/BH0jIJy7FDJRN eEy7tkM4YmzVsS51/m9o5NV5ipmz3H6C3XS+p+e9JmZEHmU2+96ay0GrtVnb5TZniA9I bWEw== 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=bJezzvZCS+PMZW3omJ3JmDnR/p5mY4rG5hJQxDz2DY8=; fh=/O5zUZXVUblHzVpoaTHke5oUv2qI2nLBeR3eWV43d8M=; b=RKLZxTEIUxbHiDZhovNYzPQC/Mu2liengAoSlDAr8/04vtBWzAUnm5uPOaCEW0hwIi 0AH0dILbc5HzDWUd133XcuYKsqvJ3/fl9KXmVyMvvvvb+8JGrPi2bYWjHrE60NvKW4qF 8GeKqzCSPFL9NBbTG4uA7CNonvYF/FLJPUszKWNgzBAVhIK5YUAIU0N3Pdp7QrJ6/EfV JhwdOL5yzSFdQLoCGWmzNQsw6MRqNuFWFHItTLJArC6PN/izALzHOQdWVgOOrIxVApqC j4RPYaDAykCmEjfym/Qds1vqGlBqlGm335vQ6vomHIVdJXNU5sYPLCELTWzsN5Ge0gFZ Gn/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tb5eTch3; 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-47245-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47245-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCVRwKXmf534ZMhMTswM3JdX+jirSxXUo2aIDH8RDN3ObSH2FcWslD/KCEqxWH9JNLXWuzj46OhYUjwqSIMlq89Z0FN0ww== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f17-20020a1709062c5100b00a2f4b97030dsi5902165ejh.183.2024.01.31.14.24.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 14:24:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47245-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tb5eTch3; 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-47245-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47245-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6F6DE1F26DFA for ; Wed, 31 Jan 2024 22:23:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF5DA405FB; Wed, 31 Jan 2024 22:20:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="tb5eTch3" 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 A4A6A39FF4; Wed, 31 Jan 2024 22:20:08 +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=1706739610; cv=none; b=dgU5kbulNOpzmHv7TuoCTq7K8h3B3K6VFuDVwO1quIx9ckSrY8SAivTV3T+As4gAsJq7Dcd6Bzo9eBMT95JcXprrh2mc9xZjRzQRJgK0Dcmm6QpJCM14NpWocglZOI6NSyxUOdMgD/eLONB9EBcQc5fGcuJC2xVZ0kod4W3BmGI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739610; c=relaxed/simple; bh=F/FnECU63FRq2A383Tk+QpslYnY6qNtU63SkL8HeUd8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XU4Yg+e8tUUzvhH7mj1VAYWYfGTbtj+ENaXKapWyzyh5K4HwAdGXaviV929zJwGoPKUmUiiImGVwEdszEQMuKqGcUGz2Kxc/4cCZOMETIDDydpRgwG+itrW4Is1m/Qps/4UnNYCedAmnv2LP8h1NvFZsoQvFU6YZadzXXp39DbQ= 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=tb5eTch3; 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 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789646437174028576 X-GMAIL-MSGID: 1789646437174028576 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: 194995 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp60724dyc; Wed, 31 Jan 2024 14:24:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGg8QaMWpJmKCijmOlZhPzCe6n1pmirgALlsoa8vwZcg+hH6sRslImtyj+SivxIR/HZ4Ujt X-Received: by 2002:a19:2d1b:0:b0:511:17f1:8e04 with SMTP id k27-20020a192d1b000000b0051117f18e04mr540402lfj.36.1706739859144; Wed, 31 Jan 2024 14:24:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706739859; cv=pass; d=google.com; s=arc-20160816; b=USEbgaxB5jynVJGojxnMmSPrjtrrW75JmQuNTlq7d1qPTVzT/r8pR4366ii4lLyviy ROFVa/KU3jRsQAI8yHw8gRoorsbTSvxvwL9N3Z7dbi0K0ljXLg/NY2GlP3sRt6+GyHHt mFHwGbyjjPR9FGc3DWr2pCvJIeEFXF1cFmmhiHwQ+ydBcceZ69uLrj2uJcMjUpyshrpV EZfgXjb2Kgui7coE84f9Necn3PMQqv7HgA5R3+yVivKu+iAiTc5QNRtxdCLTWFdPZM0B xjEhysqindoskJ8ntMpmUud/VIZihaZBZWT/naPm57MYX3b5qKaNvq+SFxrxQnA8rJ6C uD6A== 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=acmqRyO+tiR9fvXOE9Zst7bxxUMnJ43gc0m2FLXTr24=; fh=WC9j+Vy0V0aX5nyjMHnAFqiKz76qYfiPTB8MTJSgpZ4=; b=afxioHBlUptxrXPkTMP4ud79lATpsdtzIPe8VY5nGFXEGpBwokuNtLr8x23oLHwLIq WlH3nD0OeSsIyMV6c67XUq+QDZnAizMmUDUDqgvvAh1ppuxvFW76gfpiKMR/h5t31qNM kf1ku4yvpi/jzTXHUE537joFDQpFlNmYR0niN7hZyVWkBZG0uN5Uphpo7BGMvidZUGRD 2/6l+Um/7HsEqsceQyhfwSdxsZFBGLy0g2LWf7SMeyvqM5v70D9QSrDZ0A/uESBMHcc2 mAM+8hEbA6+ox+ff9lbUFxZpaX2FR8f1HYOF9caq4RSgyqkQubF4OYwwHKuIjxBqPBPo 8h1w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EzB4WxSm; 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-47248-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47248-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCVyXgW3+pXsUzQeBJEh5pqgjbNiiJ0+XEn58U9bARSMAMAJozTHJ44NvwitM8aqJbcdBAljE5g/J5prwX/WQFM1PYjiDA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u11-20020a170906408b00b00a3599b5fefesi3866169ejj.194.2024.01.31.14.24.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 14:24:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47248-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EzB4WxSm; 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-47248-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47248-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A32BA1F23C60 for ; Wed, 31 Jan 2024 22:24:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C89E445BFD; Wed, 31 Jan 2024 22:20:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="EzB4WxSm" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 CEBDC3A26E; Wed, 31 Jan 2024 22:20:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739611; cv=none; b=eqTafBXueOqTDOeRjaB9U617Kl+eu5XQQ+oS9+3rLsZWE6MXT2DJ8LHwglcvAGcnerKlIGeyUHazfI8mTFPFcu9B/IHjGrS3WZKCudMlDf5pzV9Pkv5DawBS/Y/VLWWWNSN60nkklF25vrNVVU7lxNLK+GLev/cXgaqKF56wHVg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739611; c=relaxed/simple; bh=5U4/5qMrAvs4IdtfBNx90muP+svLi8zwsySBap8hLow=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KI6e4WJ5chGIXiq9Elw42gpRpYW2ltcE1Yf87VuAfQJJVWqX4EH8ifqMXY69FJ55ocATlybgoOMOYVGni3nalGFNj4kEZaXUN1GMMKGtr1pKtq1MVb+g7FXriJkqWgD8mBPPqHT3Qf7M4cS8CSpr83kUMoJ4ztJxQvfBzNF6LX4= 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=EzB4WxSm; arc=none smtp.client-ip=198.47.19.141 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 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789646454659056401 X-GMAIL-MSGID: 1789646454659056401 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: 194997 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp65704dyc; Wed, 31 Jan 2024 14:35:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGRSQ+PYFBXOH5C9gpT+ca81f8HH6PWZZBJ0B2gdoULtUecjObhEP42KiZ9zq2WSmo5JDfA X-Received: by 2002:a17:90b:251:b0:295:bc79:5b5 with SMTP id fz17-20020a17090b025100b00295bc7905b5mr295417pjb.48.1706740527180; Wed, 31 Jan 2024 14:35:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706740527; cv=pass; d=google.com; s=arc-20160816; b=dC77bQwJyWLxjbMjEJawQf8UQxV3iRe/Wc3rAcufvR2jfHH/rAUxyWLrJPyfHM11+L iWF4eC2ElR7lNrq3aOW2GCpA7DKfPNMxbnvA/V0Q6+o1zynguNyRFvm2xTF0NN0eRxtv K8RHLQh7UNBJrHbWIGl7PJrvFHxqY7B4jPOTBXidpbH2j9ZhEMHbeeSZv/l0R3zkAy3P c0jQp+C03SUZPozmJhIjfZhMs+Qodc5Qc2A7LApg2wsItsyFkT9Wru3ete/4OUpBgWQT 2qXmNcEHPqQq2sUl7nBIOemwKtSjk6yti46XM0CT83ijEgFIYhPcDCZmn/D+MRzNPNZI XliA== 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=qWbSUtrKJS9+NDn8QtaMwirutdkz/edGVbVEUKGhHkM=; fh=OjQwEb52tq5MBH0hyDvz9J43usF6jemqOjGt65OgN28=; b=p3SBVtcNpC+lZRcnMa8XCuW7ccN7zTmG9ikBb/Zyw7WBJuDUVAOpLcGJVAxpXUmgHd DS4Il+g3yBanuWBBAuFNflmWTJNC0DmeC2dPNez8sOYOws+B+lSEZkNnAfVbFXeDZj5q +NlwXrT5KPUhnysTKZ90S7C8KTePxvTDu6/Dd2UJZkz+r13ebUXZxpZmcCfOwjCimIsT 4oydGiYorW2R28qGtdwfwZ2aQA1MIu7rNrAPSoUGp1gIbdAKbjCkzvTxs27OeQWMD2Ep srCfbPqVA0wx0272PPHbP288Is9IisGlhelS63r4U5SKAz7vY8+5d6tTTMRgYdVkxL1f wwnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=THPOF6w9; 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-47247-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47247-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCVdm258Ow5CPmvs+cjDVbgXUtju2KqJwAWfKiOe5IcxKtlfDYPNpUp0deNvMs70YBZNhtClQjdlr5n/YsjKpbvIODf+Yw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s8-20020a17090aad8800b00295d293817esi2149425pjq.89.2024.01.31.14.35.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 14:35:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47247-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=THPOF6w9; 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-47247-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47247-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 CB2022931F8 for ; Wed, 31 Jan 2024 22:24:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8AB745C06; Wed, 31 Jan 2024 22:20:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="THPOF6w9" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 CEC2D3A278; Wed, 31 Jan 2024 22:20:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739611; cv=none; b=tXCQZy8EM7XvEgJ0SzBP/zRNe0l1c9RJEG7LUz6i9RlswPwIgCJRsYacDk08zpUKoSbiP6xgOl5HDnyRQBRIPqNKzciHTwN5Pb53FyhmZPPmLATpXk7OofWE+rAIb+12lSW9KRP1k3BRa5kePrqN9076FN8pwAOi8mrV0mzql1s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739611; c=relaxed/simple; bh=7JjgghQ0SCI42dyRV2VURiHTHosLQOd1S81tXSYqLZo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Yf3Oha0YrttaA1uy8Dmz/9XqiwDTVwGx3xaqGCDwp9JiSC5X9Fbn5PMH9k2bB83YjgUwPsigh0EMyXCvCXcO7WENdwy+Hd+2a4cr4qa6NjyG2fj+X5c4ZHotmdJ46cAEGcNycekW7HYZxP58LqeUyUc9IdMs9sLmifM92/X/pjQ= 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=THPOF6w9; arc=none smtp.client-ip=198.47.19.141 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 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789647155407635224 X-GMAIL-MSGID: 1789647155407635224 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: 194996 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp64475dyc; Wed, 31 Jan 2024 14:32:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGkhh7f9i1alDomfcrifxg3VDJxszFc26H/LA6zLRJDBTw5jR5d7Tn8uO42i2CWAXO3hyW+ X-Received: by 2002:a05:6a21:6d9e:b0:19c:9e57:5d16 with SMTP id wl30-20020a056a216d9e00b0019c9e575d16mr494741pzb.18.1706740358398; Wed, 31 Jan 2024 14:32:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706740358; cv=pass; d=google.com; s=arc-20160816; b=VKHMx0Td6aQDSMbTqqmclerjU+w8H8cXikpYJrucw6qjW8P94FUvvVNeeTRzUY1OCy QtjypmfoylDbBlpSTL3+sSWY9IePKIKJnxX0CrPBfeal4PkDfSsheyHNilhNRn5toRJs BOyodv5JvkIeyo08VuwoX7Tr5DgRlGP4hq0CF9/mckw18ZmSHgyN4+VZFTOJCtvLrsbt 3kdtYETCDsryGpkThzkgRYLVO+FsmKPDEoSY0tnNVEXXhj5dmmx2RLTmMQeWtLGSlAsO ZM8+Fh3fEacsAZAjW6nCR8CFYznHX9GbJmy0+YMXMlAJ8BZznaTAyfjumIh3g0m32e6I d9pA== 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=DeArmwL5A6ChLHjlxtBE6qbZsi59MzvYwmK1NjDWhTA=; fh=uGtiJA59pVxoJYnlaNdnYWFgia83cOJlZR2FmHaFzYQ=; b=okFj4E2TobNnIlNraIckLDIrxr7UnUF+ffoGl0ylzc/tgpl2I1Om5bl23NojMuWm2A JddKZOz5rzu57TW0N7qNKbC5vK3Y+2MAxA5NvGFvird8TzLv9EqzpZD6cW9CkdGq9fcF 40jQPHVwIzxxmfXGxodejvDMIXJW6Iy81Ceel4iQbzZYqaRkoYE95G97kwND8RjCBExF nwluZdh0EQrq9nfxmSjImzseOb6JBBMsk/STWXO+Dts95/V1nR/r1hE7QcksEGEWSv2/ De+7dPRh1vN5zWJgOdSKZJA5rbpcvuM5/TeXhwsyG1OKlSnlZRwKzfmoFza4NM1XnrVF DSZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NtxkKmlh; 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-47249-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47249-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCVJjKVymr2FuB0zYSIUum+lAm2OAJhMrU+X8qOhvOXlxVUeI4Hu9xOj8z5SbKy5OOV5YYv43w1V7gBR+oYan0xCkn5gPQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t4-20020a170902e84400b001d91b6110c4si1281776plg.487.2024.01.31.14.32.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 14:32:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47249-ouuuleilei=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=NtxkKmlh; 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-47249-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47249-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 D49562931EF for ; Wed, 31 Jan 2024 22:24:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBDF145C08; Wed, 31 Jan 2024 22:20:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="NtxkKmlh" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 1AE4E3A8D0; Wed, 31 Jan 2024 22:20:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739611; cv=none; b=PX8qMjiFZhB3cnEJWWuaOdbfaBC/qkKfA/Jho4pilt8SlEOOh+frrWOP+TjU778houyHhfQCsKzFO2zpJ8k2F3STf/Hn4h0KS8giHL4Ubxx3rzHGCznIRr6Hdn8eAf49xFMtLmExK2W+Zye93064YcySvYnFw8Y0tnajXCk1J3U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739611; c=relaxed/simple; bh=uPWhG/KtTJkWfWrszX+pevmCTyHmRbRSuQR2ghNMKo0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fP7jHg59N8z0v0yP226HwbDhBQmr8Is/udAcpl9jaCKcqjKl+JOUrjt6he84vKXFOuTtVeB2cllBGO62Y6M20ldpKsxpqEiCTH2l6Tx+8Rr6I0xtovFSiogIppeaz0drJJKKU6In/EW2XTHEoOedJdMHRLyI+PgZY+OCA3AN8I8= 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=NtxkKmlh; arc=none smtp.client-ip=198.47.19.142 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 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789646978290201174 X-GMAIL-MSGID: 1789646978290201174 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: 194998 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp65765dyc; Wed, 31 Jan 2024 14:35:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHuxoE9B6jl1LB3sI/PzvdBnwEwe6f2aeOCksW9LIgMJsmJqQG2BirHjpuTTzJtie6eNaIe X-Received: by 2002:a17:902:e54e:b0:1d9:55b:6a2f with SMTP id n14-20020a170902e54e00b001d9055b6a2fmr496858plf.48.1706740534966; Wed, 31 Jan 2024 14:35:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706740534; cv=pass; d=google.com; s=arc-20160816; b=MfxG5+BGTO6l7xGpuSRxu1vjSYviXcK1JFpG7hSKlpTipfSFYsINmpETBhWytrTIFg XsyU6fUbQ5YyH6UCkANJw6FaYRF1c1aXjFrC26eDwse2QdNtzyFCqsYx9Q+XZIAEJXxG 9i3qd6W0P8hlVANEO9uPfQ7cgZKmn3wzG3Vjk0/uy+spfY3N3BgT/FpzoiKE9BsTumyh rhnQ+MVxChmEzBIc1JloBUv0HSpA2Nj25nUubOgD6AePL2dtCVtblZZoYeDLEch4VOMt oLCOy15YFwv6ftN5EqCooazQfmkHY7MJjD68JR7/PLX6NXV/ZRvSLia2WpexNMA9IoHJ 38Xg== 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=5ccLGxfgTaF7LvtMbW1DBgvnDAXYVO9eKs/8Du1oT9o=; fh=bF0H7af6PIRSvpWzUdRNszHNRttx0MnIFd1z07/Xix0=; b=Ru6XaSztaN88MMCecbMFP1cyDQYcKhhTCqokSxMdzqxqyl4ysLNEXsrieiD7g4DiXH yrYhvky+F8ENAlE2PQPl/LedNsGVYjnf6cHMAVpBTfI/kIun6SCE10ki91vB0Rbf6hwd 1hNpGj3LYiBPyaJeFt0+gLzOwKfYwlXSNhPKIz6zvwTNc2TZvYZCwo8QW2xrvOYo+izC bgzyWqoRLxdTV4ydV78CmzQq7bO4yfyD3yz+C7FHMwp4cGPzJBBJN4fq6S2BwImtJjsN +HgeDX0fAJd8ztvw82X8W5Jkr2FGCBfQJeXw/0WXlux7UCCQkOJGD2XShaR2EEyCdjfa H82A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Awfcy8Z9; 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-47250-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47250-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCUq/DQbkXi93z6ro0/n+wAVhHU48g3/2VBsYxwwJfQeggMSodWViRQxWp/IZYk7OBx3nwyNZrLOvSwWmAMoYgfC63IZwA== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v11-20020a170902f0cb00b001d8e1f09afcsi6251383pla.128.2024.01.31.14.35.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 14:35:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47250-ouuuleilei=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=Awfcy8Z9; 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-47250-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47250-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 812E229340F for ; Wed, 31 Jan 2024 22:24:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 127F746439; Wed, 31 Jan 2024 22:20:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="Awfcy8Z9" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 A7C043AC0F; Wed, 31 Jan 2024 22:20:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739612; cv=none; b=mDsE9TYN5o7bK/hVbk4BF7ACTKuC3BMwGzWwMQAll0T9qXnChTGbvjZiDheS0/lcDNLNiTJAe7bMxKdMCopvrX/CJJtIPe234Xw9bDbOcfbjI+hGHpJpxZAveDlGazPuMgbiObq8wjKM1scMOM/xyhKADmVnY+hUQnoavh/65ts= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739612; c=relaxed/simple; bh=DjoRezQAyDk/p1frAkIYTwHmWJB/D/g0YDDF4pM0g2Y=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jlBptTbqRO2seFw8jAiCNpyu276Dd9zX39KuesuCk7HyYiow3Sa8W/tqV5PfSjeOljziY1quM9BV4REJXCb0VVZTlxTGBHbWmUS7XSOUfZ8wvs3HlELBu3r2hfiu6SPoO0YQcde0oOaXt7CCzeScJYbb0Xe0O9nJaZnreCRPF10= 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=Awfcy8Z9; arc=none smtp.client-ip=198.47.19.141 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 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789647163496748164 X-GMAIL-MSGID: 1789647163496748164 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: 195007 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp69761dyc; Wed, 31 Jan 2024 14:44:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqdA4eeuo+EdNe6EEihkGGuQy95CVYb/pmc0sBBHA4pI4vz02/2cGnsrLW9At60Oy8gnTY X-Received: by 2002:a05:6a20:b7aa:b0:19b:1eda:ab61 with SMTP id fh42-20020a056a20b7aa00b0019b1edaab61mr336936pzb.54.1706741098979; Wed, 31 Jan 2024 14:44:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706741098; cv=pass; d=google.com; s=arc-20160816; b=SsbFCfwR5hnPPzfIGf0dtYFBVoBLKX2CTnPzCsZILBGEg+Y+SqAMA/52Mj6/qcWAjl Uq3cMW9HvJHNyHeboTf7sjkmD+BnC++Ex4c+7Cg8k7c3JvNQZ4BFPV/Os74HQsN7B4fM Fb48C+q5idpqwhioYfIcXQIcpUCKTYv6/9QCDwBkRSusFsPENWIDgCnd2Pw9KLBSZOPP A2COrDQ3fiIpPSSDtXX/Sx1fUNjsXLYzwnza+jXLtI1KTp24OybqAqa70fueEx7/cPJq mI2Ate7Wrz5XoaecIqNPC4Ba2EFAOwOIW03ic/Kkptgn/g0kyupB7HarNX3gBOlq5Ojf DGhg== 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=aR2SBKT0vtJHfYIAGBIrORRoaDBuet+1jfTnks5284s=; fh=xynXNnSJTiwG8qfPuCaebEZnoVHsvloMby36qQ1c/W0=; b=XxbRRHmtrRs0K3m9XWcfWkVeO7tApYOIPtWNsPulYVjsnFm1I1H1rElXRN+qMSqnjs m9J0JtA4D3J4HFiifqhm9plCoQ69Asxv8X8JoiWmxKUkdFBN6y90v8Uo/jgez4/L4pk6 rXQSr9ILor93Kt+tuXTKDnPOT8RwlHRy+8TFnZV7XpwVOWUhSuIXnmE3izYQglmkXoOP VZO/ZnE3whCNFdtZW+BTt8NPhe+vx3bo6FF6h/sRgvCBmDZb9nawHb2psV/rPH1Wxvq6 /KT0plD6hFPZMtulf4UBOBl3r2Hww+ALIW2dsI4+/iQLeDdwjbSWSmOC/1r2F7DPPkq6 /TAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KIGUzHmY; 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-47251-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47251-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCVouKz9X+ldY8NLN2TrTIpyObG5oaYOtfbYtxoekiuUISQnexsRWztHYQAltoXQBOnTJd6yPN7iEQ8NO2OGwg9EEKo7wQ== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id r16-20020aa79890000000b006dba0e78b30si10471445pfl.259.2024.01.31.14.44.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 14:44:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47251-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KIGUzHmY; 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-47251-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47251-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8CB47B2A021 for ; Wed, 31 Jan 2024 22:24:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1841846441; Wed, 31 Jan 2024 22:20:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="KIGUzHmY" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 2F0E13B28F; Wed, 31 Jan 2024 22:20:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739612; cv=none; b=uslnpBgMGdPrJRWfm8HP8m+6PsluCYZIHAXH+6t7ZsfjHwU9aVX98HM5vv3rA2Htva2ogfJKaoL0sPy9xX+c68bwLw9J5tWe/wikZ3jD8IrW0lw48J5RdT3d3xpjk9ai/TcnqZVM50EnF+u2Oxtit30IgT0Aq2kFij0yPPs8W2Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706739612; c=relaxed/simple; bh=rXrPV1rX3EqBXdZa52TN75oeVdk6hxNfm8/LdtM6FIo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fDWbthBB3b65E4x6gbthp+5Zt2q6ssgje5pvfCNoXd0NTJMIK/AwHGEQtZA0wL8GTPgns/mFNx5OHGQipf+aqiG3WA9Webh+b+7QrxCbuTCcf66KD75/IenN7OLnDbvzY9Q+uLZ/FCs5SBk2WErUbfpNQHjqJoxh86fLhaJDvP4= 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=KIGUzHmY; arc=none smtp.client-ip=198.47.23.249 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 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789647754448619620 X-GMAIL-MSGID: 1789647754448619620 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 {