From patchwork Tue Aug 8 13:34:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 132601 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2285673vqr; Tue, 8 Aug 2023 10:39:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFh5R/cp8iiKe0J4B6qQnvSThEryzwDGbVWnQUbWSkAG1IIAOMj4RVRCDvRRCndVsOqBm3D X-Received: by 2002:a17:902:c942:b0:1b0:6e16:b92c with SMTP id i2-20020a170902c94200b001b06e16b92cmr388232pla.54.1691516398387; Tue, 08 Aug 2023 10:39:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691516398; cv=none; d=google.com; s=arc-20160816; b=qL/Sy3/PlZZ7eG5BI32v9OS9yd51APZWlxo7xzy+bSdUKe3FKUAyAOvchigFS8WF0a C1Zw6TaQ1swpmnefsETCW5sjbOW+n/O+IxZDnapplK0Y1UQKgMoxZRAjyPOcLAiFfQ/I 6KXhr5TCbeepCKRPFXrttO9SyVY3fiSTzByFfENmJqQHpSNzDpj3949lGmX7d17FRi4u 6TMRaaIdHhZlGoyZfSd7EiSQ0POc1KmxDEnz77nMapJF9AIim+yNe+wq3s7TAKcHRc95 +/JkhULD0LX24nnod3qIPl5FbtkQLah0eZRwUBED3IJILNT/nErdJcc97p0aRoKpfasH F4RA== 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=axaV3IF+oJpGqZTfebT8Z/C7DltjDq1rpp6uGgz+omw=; fh=eTKEQKSE2ueRhENNwjAMhmLl+e4r4eZ4EMvyXFrFMhw=; b=gD8iJnC/uVag7k0CXibyhhRT++/TpC8sFLnBEJPcL4Z0N3P3IZT4G3bFjz9kic2wZZ 052rpvwUwROA1cB0MklaId8daBFXdO0gj7WPg+eONbo2qoMvvhxKCgKeca5bFQt7Milo s9+Jv4S8bqFJUKYYhb/daGKYSaUaUiasZEst/7NpA5NR0zuLhc/Wu31ARoanraKQO5nq J780aawQVImMmAUWSdfS0Bv72v67WY2Ul8FHMnvSOtS+g7aVRLQ0VXeITXne4auUlble dXr40GKoFvYklA2TtBZQFovUvti7uZ0I6o2uxbGoJMg3VuydtFxJYuSdQvlXnWTY85qr Wg9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SMuBooG5; 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 f10-20020a170902684a00b001bc65337d55si4369255pln.92.2023.08.08.10.39.43; Tue, 08 Aug 2023 10:39:58 -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=SMuBooG5; 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 S229588AbjHHRDW (ORCPT + 99 others); Tue, 8 Aug 2023 13:03:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233601AbjHHRC3 (ORCPT ); Tue, 8 Aug 2023 13:02:29 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EE755FF1; Tue, 8 Aug 2023 09:01:22 -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 378DZ9xU025824; Tue, 8 Aug 2023 08:35:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691501709; bh=axaV3IF+oJpGqZTfebT8Z/C7DltjDq1rpp6uGgz+omw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SMuBooG5QAgFMtsEa7kd75HxFq1dMKw8VexN3JRXdejARFL2pXeCJQcmYpVeo3Yv+ 4qi/BMvAPM5uphn7Nl1RoEQPjT9ek/qFJ8swSMZy+5bWopEQvxP1ncYhYJXp5nUyXc QgvzQJ79sKMVB+nZqTJs+vTatLnX0dUfSx9vJlOQ= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 378DZ9or103173 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Aug 2023 08:35:09 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 8 Aug 2023 08:35:09 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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; Tue, 8 Aug 2023 08:35:08 -0500 Received: from fllv0039.itg.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 378DZ4Pw053163; Tue, 8 Aug 2023 08:35:08 -0500 From: Andrew Davis To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dhruva Gole CC: , , , Andrew Davis Subject: [PATCH v2 06/13] arm64: dts: ti: k3-j7200: Enable OSPI nodes at the board level Date: Tue, 8 Aug 2023 08:34:50 -0500 Message-ID: <20230808133457.25060-7-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230808133457.25060-1-afd@ti.com> References: <20230808133457.25060-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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: 1773683499016834923 X-GMAIL-MSGID: 1773683499016834923 OSPI nodes defined in the top-level J7200 SoC dtsi files are incomplete and may not be functional unless they are extended with pinmux and device information. As the attached OSPI device is only known about at the board integration level, these nodes should only be enabled when provided with this information. Disable the OSPI nodes in the dtsi files and only enable the ones that are actually pinned out on a given board. Signed-off-by: Andrew Davis Reviewed-by: Dhruva Gole --- arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 1 + arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi | 1 + 2 files changed, 2 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 ee7860913c387..571eb0e2eac92 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi @@ -544,6 +544,7 @@ ospi0: spi@47040000 { power-domains = <&k3_pds 103 TI_SCI_PD_EXCLUSIVE>; #address-cells = <1>; #size-cells = <0>; + status = "disabled"; }; }; diff --git a/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi index b37f4f88ece4f..5a300d4c8ba03 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi @@ -267,6 +267,7 @@ eeprom@50 { }; &ospi0 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&mcu_fss0_ospi0_pins_default>;