From patchwork Fri May 14 01:10:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 1478266 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256 header.s=ti-com-17Q1 header.b=d+mMqEdi; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fh9TY28h7z9sWW for ; Fri, 14 May 2021 11:11:26 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4B9E681D48; Fri, 14 May 2021 03:11:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="d+mMqEdi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8114C81D43; Fri, 14 May 2021 03:11:11 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 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 phobos.denx.de (Postfix) with ESMTPS id E9C4581D43 for ; Fri, 14 May 2021 03:11:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=s-anna@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 14E1B6Oj128158 for ; Thu, 13 May 2021 20:11:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1620954666; bh=j7BjK5L4m4KPEqtiY3Qi4gCW6gHD8vo2SzHlFk31f6A=; h=From:To:CC:Subject:Date; b=d+mMqEdigtRpRx72s8IousSHUaJmlh1LKs6N/p+m4XhtKQzywOiorlrWU40a+E6Wu r6Jh503FfMkxdh2GmzPAFNyLRPW47aXRzE7ToAHMnth4ZWkoii5muy2BYl0NjsEp2t weFGERJhjLyhttYNOGU1dIwHzoAoB1iTnqkDi+EQ= 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 14E1B6aS077802 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 13 May 2021 20:11:06 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) 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.2176.2; Thu, 13 May 2021 20:11:06 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Thu, 13 May 2021 20:11:06 -0500 Received: from lelv0597.itg.ti.com (lelv0597.itg.ti.com [10.181.64.32]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 14E1B64B017787; Thu, 13 May 2021 20:11:06 -0500 Received: from localhost ([10.250.35.60]) by lelv0597.itg.ti.com (8.14.7/8.14.7) with ESMTP id 14E1B6vo002997; Thu, 13 May 2021 20:11:06 -0500 From: Suman Anna To: Lokesh Vutla CC: Dave Gerlach , Vignesh Raghavendra , , Suman Anna Subject: [PATCH 0/3] Fix 'reset' for TI K3 AM64x and J721E/J7200 boards Date: Thu, 13 May 2021 20:10:54 -0500 Message-ID: <20210514011057.6191-1-s-anna@ti.com> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Hi Lokesh, The following patches fix the 'reset' command functionality for various TI K3 SoCs. Patches are based on the latest master that includes the AM64x board support, commit ea184cbff99e ("Merge tag 'ti-v2021.07-rc3' of https://source.denx.de/u-boot/custodians/u-boot-ti"). The first patch is needed for J721E/J7200 SoCs with newer System Firmwares (anything newer that 2020.04 SYSFW) and is backward compatible. Without this, the 'reset' command throws the following warnings, => reset resetting ... ti-sci-sysreset sysreset-controller: ti_sci_sysreset_request: reboot_device failed (-19) ti-sci-sysreset sysreset-controller: ti_sci_sysreset_request: reboot_device failed (-19) ti-sci-sysreset sysreset-controller: ti_sci_sysreset_request: reboot_device failed (-19) System reset not supported on this platform ### ERROR ### Please RESET the board ### The second and third patches add the required ti-sci sysreset nodes for the AM64x EVM and SK boards respectively. The required SYSRESET and SYSRESET_TI_SCI configs are already enabled in the am64x_evm_a53_defconfig. regards Suman Dave Gerlach (1): firmware: ti_sci: Update ti_sci_msg_req_reboot to include domain Suman Anna (2): arm: dts: k3-am642-evm: Add sysreset controller node arm: dts: k3-am642-sk: Add sysreset controller node arch/arm/dts/k3-am642-evm-u-boot.dtsi | 4 ++++ arch/arm/dts/k3-am642-sk-u-boot.dtsi | 4 ++++ drivers/firmware/ti_sci.c | 1 + drivers/firmware/ti_sci.h | 2 ++ 4 files changed, 11 insertions(+)