From patchwork Wed Aug 9 18:01:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 133419 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2997225vqr; Wed, 9 Aug 2023 11:34:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZwlBFtLpPDNBZIwY9+0epUD7IKKPgxWd++vXapPGiiH2WvIGkIbrV+CWkjBaLwBY/guA5 X-Received: by 2002:a05:6a20:938b:b0:115:5ed5:34d3 with SMTP id x11-20020a056a20938b00b001155ed534d3mr460pzh.20.1691606072275; Wed, 09 Aug 2023 11:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691606072; cv=none; d=google.com; s=arc-20160816; b=YTPLt8r5SLA8wpFtoJBVILctBprL5jlELHITXQbYwXjo9g4cldGbLESZtut5yX+Czy 0t06T4yfdIKeOw93b//6hJ+GA1WjDQzwu4XeSHAlT2RS2/T+KPSxx24PQ0XoRkpqqHEh HooKgAauDzjsa2pUVKA+9XjAWxYogUrPdpUe8xKI4sHKRSi1T+9n75kmHsrq8Fv9jjbC NC3lsmPlSvYVhz+K5H+r+rbav6F2DW9zdhbLCavYAbLtrbfVHQhJyzvqWnH3jnMWjS8q NQuCRm7aCS3qfnfrDVOYV7XqGqEXbDKeJ8mfQFughy8wU7Tp4prULYxGsjbU0MSDLJiD GA7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2GcltlLr2Cryy6/HKdClkFMNUHRT9qaoDZYMPFDOI5M=; fh=Yq+thYAatIKd/T6XtEHx14IvPduxYAAPXwUbXn4m0bM=; b=wY9ddad46i3LTk0xZs3epYf8w3qMkf/CLRmYSoIfNSjvbhr1lnQlOPxhyzFy71YYyg yojD2qEjwRQog8XJfzUOO6gUdnqpMB3/MChvgkfnZ2I5Ac3xNLeAvTRI/ynuJ2VmTlgU feyTCXKXRNNsYPggEfs9kR7vkldi2tMSDOOSfr67UWDlT7IuHEsKyxCxOqME70tuxN9k okCBzxpkFXSQpbPCTtGa/InPgDgaElWog414qCampthnlZzOhzbkXpj1+CI6dKBFD9ZI S6SRPq5msGZ0m06eqVfMy6O0HRDWZUOp1sxDms/NYbiZbYTiYbkKBN6+j9xCmj/Ycun1 lNLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pIcrggme; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u6-20020a056a00158600b006874c4a7b6asi7390042pfk.29.2023.08.09.11.34.19; Wed, 09 Aug 2023 11:34:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pIcrggme; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232941AbjHISCD (ORCPT + 99 others); Wed, 9 Aug 2023 14:02:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231598AbjHISBz (ORCPT ); Wed, 9 Aug 2023 14:01:55 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AED01BD9; Wed, 9 Aug 2023 11:01:54 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 379I1ljU120397; Wed, 9 Aug 2023 13:01:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691604107; bh=2GcltlLr2Cryy6/HKdClkFMNUHRT9qaoDZYMPFDOI5M=; h=From:To:CC:Subject:Date; b=pIcrggmeDpJvIIJ0GjKG6deaSxbXi02FNXaK3OD+3BdG4CHGhn6G0/gXU6msD+EPh jQ16dnIHBVd7mmny/ZKgJ6IiLUROMs9W9IOeeI5ewmP8jyyXWT2oq9Vw2K2y9lQpEq V9/HCwqopBPVKjXKBkFTUk6Svpgc5sBN5EVDZI3Q= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 379I1lZL096419 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Aug 2023 13:01:47 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 9 Aug 2023 13:01:47 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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, 9 Aug 2023 13:01:47 -0500 Received: from fllv0040.itg.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 379I1k56103030; Wed, 9 Aug 2023 13:01:46 -0500 From: Andrew Davis To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Udit Kumar CC: , , , Andrew Davis Subject: [PATCH 1/3] arm64: dts: ti: k3-j721e: Enable C7x DSP nodes at the board level Date: Wed, 9 Aug 2023 13:01:43 -0500 Message-ID: <20230809180145.53158-1-afd@ti.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773777528646912798 X-GMAIL-MSGID: 1773777528646912798 C7x DSP nodes defined in the top-level J721e SoC dtsi files are incomplete and will not be functional unless they are extended with both mboxes and memory-region information. As theses only known about at the board integration level, these nodes should only be enabled when provided with this information. Disable the C7x DSP nodes in the dtsi files and only enable the ones that are given the required mboxes and memory-region on a given board. Signed-off-by: Andrew Davis Tested-by: Udit Kumar Acked-by: Hari Nagalla --- arch/arm64/boot/dts/ti/k3-j721e-beagleboneai64.dts | 1 + arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 1 + arch/arm64/boot/dts/ti/k3-j721e-sk.dts | 1 + arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi | 1 + 4 files changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-beagleboneai64.dts b/arch/arm64/boot/dts/ti/k3-j721e-beagleboneai64.dts index 66aac145e7530..d1235e7c786d6 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-beagleboneai64.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-beagleboneai64.dts @@ -1024,6 +1024,7 @@ &c66_1 { }; &c71_0 { + status = "okay"; mboxes = <&mailbox0_cluster4>, <&mbox_c71_0>; memory-region = <&c71_0_dma_memory_region>, <&c71_0_memory_region>; diff --git a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi index 3acd55ffd4ffc..1aeb97b42b34b 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi @@ -2134,6 +2134,7 @@ c71_0: dsp@64800000 { ti,sci-proc-ids = <0x30 0xff>; resets = <&k3_reset 15 1>; firmware-name = "j7-c71_0-fw"; + status = "disabled"; }; icssg0: icssg@b000000 { diff --git a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts b/arch/arm64/boot/dts/ti/k3-j721e-sk.dts index 0ee4f38ec8f03..377588ba30998 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-sk.dts @@ -1110,6 +1110,7 @@ &c66_1 { }; &c71_0 { + status = "okay"; mboxes = <&mailbox0_cluster4>, <&mbox_c71_0>; memory-region = <&c71_0_dma_memory_region>, <&c71_0_memory_region>; diff --git a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi index e90e43202546e..3c31ab57e959c 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi @@ -436,6 +436,7 @@ &c66_1 { }; &c71_0 { + status = "okay"; mboxes = <&mailbox0_cluster4>, <&mbox_c71_0>; memory-region = <&c71_0_dma_memory_region>, <&c71_0_memory_region>; From patchwork Wed Aug 9 18:01:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 133465 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp3037286vqr; Wed, 9 Aug 2023 12:54:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPQwjOLAGcWOm0SiuYX4LHQbKsG+JszI6Oa9lsMywCohekIBvbMk79LNnr3KvQMXRA//FJ X-Received: by 2002:a17:906:8479:b0:99c:7333:199d with SMTP id hx25-20020a170906847900b0099c7333199dmr96547ejc.30.1691610855466; Wed, 09 Aug 2023 12:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691610855; cv=none; d=google.com; s=arc-20160816; b=ZdMXiH7vQG55jXpClfn8/Jujck2iseGuHunmvoGe9KTllKfU49JVeTK29W4IjFgq/o EkzuOAE/t+ts8Oz/E6PijYx6sEYYtG4BUuY8x0HC2ZcaAM3sOCJtywBu2DZuGmScY7ll ZJBf7YF+RojPdHim92karkqjIIjofiKSHj9DWwGBpKkP8hYfoMomRk20yKQO9MqazJmd 6s3P5tDf+0EfZCrXzPNMW47ah2FJ/nvDVTc88yoiXUkvgt+EEpyXUnPuPc7WpdFFd+cW b+Fx2+047zJM3KZr0gmoAgr3nNqgnlSb39rl/kOMyxq0/2f3ro72fe264qthBbxwhwHg lh7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2usZmKyVgW1mdRa5QRVK5RY6Nv02Qnm4mTipu25bUuU=; fh=Yq+thYAatIKd/T6XtEHx14IvPduxYAAPXwUbXn4m0bM=; b=EnoSaltLAff8kBmM9YCLbEFu+5RlL2gpB7Ext6eGXASbJet8M4FCSjMA6g7pfzDg6h sFj5NViPYW1xBR/af5nwXa/6VqGGHmQgDhQ966F/yVA8OSrWnd0mF89SHQ8VEU+Z6nH9 1RzoxK36Wqvkf1g6q7+Hw2IoBd1ndg65iceQkI92BZuTnXdbS3sQKKwY3RfplF+BM4Ym 0EnjB2KyySQE741ic4IcY8gclWIUJv66h7EvBVUq9uimjcJL0WuwOEWzS6wvypei+eJc H8pdqNv0uronZOGoosgkFiwkpN9Az0ChQyYmZ0LRhrbt+BF0d0LHv45ntWn1yOFI4OD+ NEsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SS1LjWUA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2-20020a170906924200b0099cadcf13d9si8061031ejx.103.2023.08.09.12.53.48; Wed, 09 Aug 2023 12:54:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SS1LjWUA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231167AbjHISB4 (ORCPT + 99 others); Wed, 9 Aug 2023 14:01:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbjHISBy (ORCPT ); Wed, 9 Aug 2023 14:01:54 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F01B19A1; Wed, 9 Aug 2023 11:01:54 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 379I1mhX120401; Wed, 9 Aug 2023 13:01:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691604108; bh=2usZmKyVgW1mdRa5QRVK5RY6Nv02Qnm4mTipu25bUuU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SS1LjWUAH+mcm1ZWDNy8IOMNsC4jtzFdu0TcPXW90T6IbMCGSN6c4a8poOwdUJyND EJ/dY/eoztdkGk6QiBq9YEbLGqz8PjHA4X99ahj1ow06XifOOvs4jAK05aUr8PJesq llI2JPApFzTobgZoOV/7q7nYIZslY0BnRXFbCFf4= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 379I1mXg111371 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Aug 2023 13:01:48 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) 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, 9 Aug 2023 13:01:48 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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, 9 Aug 2023 13:01:48 -0500 Received: from fllv0040.itg.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 379I1k57103030; Wed, 9 Aug 2023 13:01:47 -0500 From: Andrew Davis To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Udit Kumar CC: , , , Andrew Davis Subject: [PATCH 2/3] arm64: dts: ti: k3-j784s4: Enable C7x DSP nodes at the board level Date: Wed, 9 Aug 2023 13:01:44 -0500 Message-ID: <20230809180145.53158-2-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230809180145.53158-1-afd@ti.com> References: <20230809180145.53158-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773782544769005532 X-GMAIL-MSGID: 1773782544769005532 C7x DSP nodes defined in the top-level J784s4 SoC dtsi files are incomplete and will not be functional unless they are extended with both mboxes and memory-region information. As theses only known about at the board integration level, these nodes should only be enabled when provided with this information. Disable the C7x DSP nodes in the dtsi files and only enable the ones that are given the required mboxes and memory-region on a given board. Signed-off-by: Andrew Davis --- arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi index a04c44708a09a..c2e505f3affcc 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi @@ -1524,6 +1524,7 @@ c71_0: dsp@64800000 { ti,sci-proc-ids = <0x30 0xff>; resets = <&k3_reset 30 1>; firmware-name = "j784s4-c71_0-fw"; + status = "disabled"; }; c71_1: dsp@65800000 { @@ -1536,6 +1537,7 @@ c71_1: dsp@65800000 { ti,sci-proc-ids = <0x31 0xff>; resets = <&k3_reset 33 1>; firmware-name = "j784s4-c71_1-fw"; + status = "disabled"; }; c71_2: dsp@66800000 { @@ -1548,6 +1550,7 @@ c71_2: dsp@66800000 { ti,sci-proc-ids = <0x32 0xff>; resets = <&k3_reset 37 1>; firmware-name = "j784s4-c71_2-fw"; + status = "disabled"; }; c71_3: dsp@67800000 { @@ -1560,5 +1563,6 @@ c71_3: dsp@67800000 { ti,sci-proc-ids = <0x33 0xff>; resets = <&k3_reset 40 1>; firmware-name = "j784s4-c71_3-fw"; + status = "disabled"; }; }; From patchwork Wed Aug 9 18:01:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 133420 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2997305vqr; Wed, 9 Aug 2023 11:34:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFFXcsVyWsx2w3Afp3PpkmZG+972lYtRQl2fNwlIrCDdCfoia43YJ4XlMP9QfYBEwRlqeT3 X-Received: by 2002:a05:6870:d311:b0:1bf:fd8a:826e with SMTP id f17-20020a056870d31100b001bffd8a826emr22147oag.55.1691606083028; Wed, 09 Aug 2023 11:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691606082; cv=none; d=google.com; s=arc-20160816; b=RuVFEZcrLMTVR4E2K4MAH3lNcZam0uu0DOBjqn8cuDg8UXrrf4ws6Kxb4faQqlH0R2 iSDviIPlhEG3sWmfKFRMFIas51AQyPrUBEzsjfE9jdFigiS0z9B1rmS+PUZi3kuvXW6y TKHC7Ayw0sGfrG+UeWKBX/TUt4/B05D6OVZIkqVpDFOCqPEt+vpdq/62xC0sS0IEtEm4 HXv1B6ExdV0de15dcJdnWs+gq8Rj8gKAl0kPN59RcymjvvIU/TttE+HsDVaunSHE1yAP +YVtAMyqdzU1F3zDQjayK9EAzKl+3BlKILsuo8lg1GwL4oLOSthjft4ZSRO3jevqu79Q nRxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5XC7IHqNeHF88ET4FV2U6UheHdVvXt6Qi6ZuCGWeDVQ=; fh=Yq+thYAatIKd/T6XtEHx14IvPduxYAAPXwUbXn4m0bM=; b=QC3uyp3J2ZGxWSkIJ2ZBj/rWeWmcpJjXBnJb+zFjUmz7u3CLM/w8emUyWgw47fXe1m k8W8CPk7NrrHSvPrCMZlU0riDm5SI6F2mJRirSQzW390UeibwqBLQkjoaHJJxyZpUu3z UihwH0SYhjAFWrr7N191XmYemShMaELIaXIbQ1sgrlAyZHYgz+HVZW/HjB6PqZ0sos7F KrdPb/F6R4xO/XxbzVs9zJUr+dPVq6Md1zGF4Zq6IKGIL3B3Q4ZaB6Jt1GaRoFFD1emx PkZgnwfMwGxNNhq+yPiPMRbkH7ufLmjpH0T4m3Jco5Q40FMVLNj5whN9GlqxFcBgCGWJ k/nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gEPnebiT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 185-20020a6300c2000000b00563d791d978si9633004pga.750.2023.08.09.11.34.29; Wed, 09 Aug 2023 11:34:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gEPnebiT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233105AbjHISCF (ORCPT + 99 others); Wed, 9 Aug 2023 14:02:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233074AbjHISCA (ORCPT ); Wed, 9 Aug 2023 14:02:00 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31B0C1736; Wed, 9 Aug 2023 11:01:57 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 379I1nRS062917; Wed, 9 Aug 2023 13:01:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691604109; bh=5XC7IHqNeHF88ET4FV2U6UheHdVvXt6Qi6ZuCGWeDVQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=gEPnebiTchlKxzx4rG0tb+1sgQWWsbdBlivo+25wLUpmf+wjPJxIKzaNkDqAJVdTU Gj28pRgXEq6Ow1iaz4zWohfrH92cAimmK4aeAGLczvLH7n7ry3fTjUyjV47vN5gNp8 gkTj9c/zVZm3ehdzp2gL4lnYjwooyRoPuHb4UdTY= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 379I1n7s012097 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Aug 2023 13:01:49 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) 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; Wed, 9 Aug 2023 13:01:48 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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 via Frontend Transport; Wed, 9 Aug 2023 13:01:48 -0500 Received: from fllv0040.itg.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 379I1k58103030; Wed, 9 Aug 2023 13:01:48 -0500 From: Andrew Davis To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Udit Kumar CC: , , , Andrew Davis Subject: [PATCH 3/3] arm64: dts: ti: k3-j721e: Enable C6x DSP nodes at the board level Date: Wed, 9 Aug 2023 13:01:45 -0500 Message-ID: <20230809180145.53158-3-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230809180145.53158-1-afd@ti.com> References: <20230809180145.53158-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773777539929421664 X-GMAIL-MSGID: 1773777539929421664 C6x DSP nodes defined in the top-level J721e SoC dtsi files are incomplete and will not be functional unless they are extended with both mboxes and memory-region information. As theses only known about at the board integration level, these nodes should only be enabled when provided with this information. Disable the C6x DSP nodes in the dtsi files and only enable the ones that are given the required mboxes and memory-region on a given board. Signed-off-by: Andrew Davis --- arch/arm64/boot/dts/ti/k3-j721e-beagleboneai64.dts | 2 ++ arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 2 ++ arch/arm64/boot/dts/ti/k3-j721e-sk.dts | 2 ++ arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi | 2 ++ 4 files changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-beagleboneai64.dts b/arch/arm64/boot/dts/ti/k3-j721e-beagleboneai64.dts index d1235e7c786d6..f6516a36f9039 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-beagleboneai64.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-beagleboneai64.dts @@ -1012,12 +1012,14 @@ &main_r5fss1_core1 { }; &c66_0 { + status = "okay"; mboxes = <&mailbox0_cluster3>, <&mbox_c66_0>; memory-region = <&c66_0_dma_memory_region>, <&c66_0_memory_region>; }; &c66_1 { + status = "okay"; mboxes = <&mailbox0_cluster3>, <&mbox_c66_1>; memory-region = <&c66_1_dma_memory_region>, <&c66_1_memory_region>; diff --git a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi index 1aeb97b42b34b..5da86921b1779 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi @@ -2109,6 +2109,7 @@ c66_0: dsp@4d80800000 { ti,sci-proc-ids = <0x03 0xff>; resets = <&k3_reset 142 1>; firmware-name = "j7-c66_0-fw"; + status = "disabled"; }; c66_1: dsp@4d81800000 { @@ -2122,6 +2123,7 @@ c66_1: dsp@4d81800000 { ti,sci-proc-ids = <0x04 0xff>; resets = <&k3_reset 143 1>; firmware-name = "j7-c66_1-fw"; + status = "disabled"; }; c71_0: dsp@64800000 { diff --git a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts b/arch/arm64/boot/dts/ti/k3-j721e-sk.dts index 377588ba30998..cce25f13cf8af 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-sk.dts @@ -1098,12 +1098,14 @@ &main_r5fss1_core1 { }; &c66_0 { + status = "okay"; mboxes = <&mailbox0_cluster3>, <&mbox_c66_0>; memory-region = <&c66_0_dma_memory_region>, <&c66_0_memory_region>; }; &c66_1 { + status = "okay"; mboxes = <&mailbox0_cluster3>, <&mbox_c66_1>; memory-region = <&c66_1_dma_memory_region>, <&c66_1_memory_region>; diff --git a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi index 3c31ab57e959c..eaf9e4564d032 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi @@ -424,12 +424,14 @@ &main_r5fss1_core1 { }; &c66_0 { + status = "okay"; mboxes = <&mailbox0_cluster3>, <&mbox_c66_0>; memory-region = <&c66_0_dma_memory_region>, <&c66_0_memory_region>; }; &c66_1 { + status = "okay"; mboxes = <&mailbox0_cluster3>, <&mbox_c66_1>; memory-region = <&c66_1_dma_memory_region>, <&c66_1_memory_region>;