From patchwork Tue Aug 8 13:34:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 132670 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2307952vqr; Tue, 8 Aug 2023 11:16:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9v8MjvKwlEgfvG/0cNbfGFWQd4zlFENno5mr5p63ij3j23969gc5J+oM+9qG3fRTjo4zK X-Received: by 2002:a05:6a21:271c:b0:126:a80d:4960 with SMTP id rm28-20020a056a21271c00b00126a80d4960mr282947pzb.30.1691518588327; Tue, 08 Aug 2023 11:16:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691518588; cv=none; d=google.com; s=arc-20160816; b=hd3AGFEVNc1FWUmPNgvBecTgJ/TpfmYuadRle3E23M9xw4FFyy7TEQ6j2jEEIF71he QeJ5KxqSIuZcGsC6FPi4aD3uJ4vDR2RLYVWFTCXrrq0nAUd850dsYFC6Zu+SXox/2D2c 5gEDQiRttOYFl6CnzBCgDNkeKtmsawHjbEWNTb/bL2SLO9+2YBP8n5uvMWJ5xkP3e6ky 3h9Xvo7uhX/An87ZzAbDCX9eCWONlZpKwgfXRF3fltTGXKzF5nyeACFSG6TSwix5Xm58 9IylyEFlDkWmsdI6i01Qrl4o56mHCAUnxFMBxOt41RcsYkuKo2hHOa2ZI4qmJ5ERrsAM qMtA== 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=T2Jvzug+TU1fil/sjwLWcwKegAlbi6xOz4QlTOH65sQ=; fh=eTKEQKSE2ueRhENNwjAMhmLl+e4r4eZ4EMvyXFrFMhw=; b=wHYleoB+FQzDtgBNG2DoM5HPTaUSD2HkQ5nPGRQo21aw24cPE8ROTTvOiDQfJVBINd 7q+1xxuwaMCsVJ0RLlNOwe7qMDAnBbS3kdw9pWOmRo8/3XeFLSKzpOeFRtEJtaDhEWwT Ovd3g0lJM/bcTMVwiphsPPFbKCNsztXofPXAZhkm55gWr+YqDRUR1i5DIxiG7EmC0Mqt mc6gfpqHg5ZfpbVT+v8uNhaKbnQv5t205R6MlDhJ+18N4nZ2/rdEYQqZVeTzIQEMbNya OXn8sYzwgDGlRh6zIAQH23IC4ZFPd/0xsGTG2zcI2kn2WQnnEmujCkfC5WhrXOUVI/Jg o50Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NL9Wjm67; 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 a32-20020a634d20000000b00533fce755adsi7377971pgb.130.2023.08.08.11.16.14; Tue, 08 Aug 2023 11:16:28 -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=NL9Wjm67; 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 S231418AbjHHRsF (ORCPT + 99 others); Tue, 8 Aug 2023 13:48:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234894AbjHHRr0 (ORCPT ); Tue, 8 Aug 2023 13:47:26 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB296ADDE9; Tue, 8 Aug 2023 09:21:09 -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 378DZ8SZ099655; Tue, 8 Aug 2023 08:35:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691501708; bh=T2Jvzug+TU1fil/sjwLWcwKegAlbi6xOz4QlTOH65sQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=NL9Wjm67dazDvj4yJyMEZnraPMCOZggb2Erm/Lwz/qPbL9LYdtF9gYJpb/oncxukm a/zL/+NYKGq/sY0z6gCVl5LQLbOMM7TzFikLgnhUBgXGR57KJ7PsDKx1mhRKkO1vS2 oJ9/X96kUtn+DEzt6YHfvEKX2bHzjBLZ9ZYvCsBg= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 378DZ8Oo004687 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Aug 2023 08:35:08 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) 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; Tue, 8 Aug 2023 08:35:07 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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; Tue, 8 Aug 2023 08:35:07 -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 378DZ4Pu053163; Tue, 8 Aug 2023 08:35:07 -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 04/13] arm64: dts: ti: k3-am65: Enable OSPI nodes at the board level Date: Tue, 8 Aug 2023 08:34:48 -0500 Message-ID: <20230808133457.25060-5-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=-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: 1773685794878340968 X-GMAIL-MSGID: 1773685794878340968 OSPI nodes defined in the top-level AM65x 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 --- arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi | 1 + arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 2 ++ arch/arm64/boot/dts/ti/k3-am654-base-board.dts | 1 + 3 files changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi index e26bd988e5224..6041862d5aa75 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi @@ -593,6 +593,7 @@ adc { }; &ospi0 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&mcu_fss0_ospi0_pins_default>; diff --git a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi index 7b1f94a89eca8..2c9c20a9d9179 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi @@ -295,6 +295,7 @@ ospi0: spi@47040000 { power-domains = <&k3_pds 248 TI_SCI_PD_EXCLUSIVE>; #address-cells = <1>; #size-cells = <0>; + status = "disabled"; }; ospi1: spi@47050000 { @@ -309,6 +310,7 @@ ospi1: spi@47050000 { power-domains = <&k3_pds 249 TI_SCI_PD_EXCLUSIVE>; #address-cells = <1>; #size-cells = <0>; + status = "disabled"; }; }; diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts index 734b051c97000..aac243bacfeea 100644 --- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts +++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts @@ -530,6 +530,7 @@ &mcu_r5fss0_core1 { }; &ospi0 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&mcu_fss0_ospi0_pins_default>;