Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1492610rwo; Wed, 2 Aug 2023 15:17:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlGmMJK3FBoiOPefNPrvCvF7YczTLdybMiFdxR/qZ+bugNcP7jnfayf2wSJSHt2MMIM43hzK X-Received: by 2002:a17:903:228a:b0:1b8:b382:f6c3 with SMTP id b10-20020a170903228a00b001b8b382f6c3mr14970817plh.13.1691014657758; Wed, 02 Aug 2023 15:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691014657; cv=none; d=google.com; s=arc-20160816; b=A5mmwpkjFmTbwzSfgknD2/LttHkjuF3AuuJmc0NM+1VT/B5By5kyteQ9kIeh0scn1y hGDx6jqb8r80/5jn3Cv1VmqHivKMBdwWuaE91SW657g9lPoFI8kpxSSHVAQaxe2mz7KL uQocDi+Bi7OoGmQ38WU3w8pHDPVTzVtXxZIBbT6VJnP0BBEubaPj5+NaNmOWIc34sT6a V6Cr5wTJeaXXfSFnDnUgcgBHP80cvoWc0HUkAF/dY901aTEzYpffpQ9oOLeQb0SFhw2f xZbYCjaoDiyj+ZlBrn78nkmPWSkalCLOONa13/qLUN8dUULUkuOwfWp7m5mSXKEUpzY5 RWjA== 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=c+jmsJ+oDjhDHMr+F50lEy0xYbWV2+4R66PIkMPoEHc=; fh=878OLI05L9osNW8108hv37bieiY2kkkgXUhCMqaYoVQ=; b=phdFG0MTMyBETPMaUW9j7OzFnKCJKVMgY/8KjntfppBRmbDCGamX3WHOTovKCw0Cgj 0P4L1r+wogHKuifIUj94/BVbwrePAxDX49Yzp3gxM7sUxzXVaF+O4rAcNo5MUpZ+5fwx W34cVhPZUy23NPMowLHhJxyrWx8trfasPxUd14Xw6t35dEfGjbR9mpgLUyj6/KyTDe9U TemzyBEhHQwYMXozk3l9k9PXz+ONr5bJUhy5rBd7Pi0Kt4meXFZ5TeH2dbaQwQNu0v6T ceeaC9Y7CJX2fhJpzlhaktwYuucAcr5Dr+x8B5cG6PosiJ5M2g4z7dwV//HyYbHHD9De DlcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VA21gPlY; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kr14-20020a170903080e00b001b878f9e11csi1878778plb.54.2023.08.02.15.17.25; Wed, 02 Aug 2023 15:17:37 -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=VA21gPlY; 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 S232698AbjHBUxz (ORCPT + 99 others); Wed, 2 Aug 2023 16:53:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232685AbjHBUx3 (ORCPT ); Wed, 2 Aug 2023 16:53:29 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14A5B2708; Wed, 2 Aug 2023 13:53:25 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 372KrFg3092475; Wed, 2 Aug 2023 15:53:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691009595; bh=c+jmsJ+oDjhDHMr+F50lEy0xYbWV2+4R66PIkMPoEHc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=VA21gPlYMCyuyIXHUg2e8QhSPmScsqGmfRSz3wFQ0x4Tg7BGWYa9shIF4PpAiIYiw kwGNUEC1XqqvfxTo7rFG/RXTrAcdQJdRqYkwoBbZ63FOTl6FPO51EAB3B+TSqiOygQ KpkzL6vJiV06m2+gcYPyN1LXLS8SGXQXjaJGcO58= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 372KrF10071674 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 2 Aug 2023 15:53:15 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) 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.2507.23; Wed, 2 Aug 2023 15:53:15 -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; Wed, 2 Aug 2023 15:53:15 -0500 Received: from lelv0326.itg.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 372KrASE090834; Wed, 2 Aug 2023 15:53:14 -0500 From: Andrew Davis To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , CC: , , Andrew Davis Subject: [PATCH 07/13] arm64: dts: ti: k3-am64: Enable OSPI nodes at the board level Date: Wed, 2 Aug 2023 15:53:03 -0500 Message-ID: <20230802205309.257392-8-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230802205309.257392-1-afd@ti.com> References: <20230802205309.257392-1-afd@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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,T_SCC_BODY_TEXT_LINE, 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 OSPI nodes defined in the top-level AM64 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-am64-main.dtsi | 1 + arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi | 1 + arch/arm64/boot/dts/ti/k3-am642-evm.dts | 1 + arch/arm64/boot/dts/ti/k3-am642-sk.dts | 1 + 4 files changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index d3dd8c426dada..49f910e4b03fc 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -802,6 +802,7 @@ ospi0: spi@fc40000 { assigned-clock-parents = <&k3_clks 75 7>; assigned-clock-rates = <166666666>; power-domains = <&k3_pds 75 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; }; }; diff --git a/arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi b/arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi index 5606d775153d4..1c2c8f0daca9f 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi @@ -181,6 +181,7 @@ i2c_som_rtc: rtc@52 { }; &ospi0 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&ospi0_pins_default>; diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/ti/k3-am642-evm.dts index d84e7ee160328..b4a1f73d4fb17 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts @@ -520,6 +520,7 @@ &tscadc0 { }; &ospi0 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&ospi0_pins_default>; diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts index 963d796a3a970..af06ccd466802 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -518,6 +518,7 @@ &tscadc0 { }; &ospi0 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&ospi0_pins_default>; -- 2.39.2