Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2603062rwb; Sun, 6 Aug 2023 23:35:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGj7TnS/EzPwjNpXUANBn+M0h1ScrwllGZeK3td27m0LYOVKZNhMONscsyNBSMOXCorv5T/ X-Received: by 2002:a17:90a:4a95:b0:268:1e51:3496 with SMTP id f21-20020a17090a4a9500b002681e513496mr8245860pjh.21.1691390128607; Sun, 06 Aug 2023 23:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691390128; cv=none; d=google.com; s=arc-20160816; b=yOSEwKZzzHrbsiHlfeUz87TEyhkOaBbMISlVrgsYMK1zwmv/BVIaRikxvxrQkOxOLR vyp2LDMgEm2s6xDZje0MXrOPrJIJySxsroTrmzOOga0U+AMVTu6UFik8K+NUIAegFvbU W/eikzPrJCdftk28jdvhHshpVuHCkHpbXruPy36AG2NbrLWIR+La0RBmzgbBe6BMpNjx b14wPSuXZ+XlWHYdqO8ul2lmKVNRjiDxOxb2jALjxong7C+n+gl3kjP0v8Yq7cIuGeAR Egh1/qWuw9vDsntAk4Ksbv2VShZTe94uGgU3Zr31WLdWT07WFlB1F1hj2ROGif79leg5 OWBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=iGxBg5A6V1C/me8rd0dS8lTI+4EDWR61R5JBnylmqkE=; fh=hk6krv4QI2U1/glbiFAXyAusxHHEvPZYw0JzV0klS1I=; b=VEhzCktZruhGScrhy9qzQwcQfhwUXRp8YsP+KTlDOIlnIOLw9VYA2rbK2udnkhIoBp 4kQtqJaXC9eeHcJuTdWnr2q4LdV/wS+gonb490TCNnYjgmPcSX88CxilyzHj9hdCdU2B PsEU1q7IC1ACdlPp5yaRrbRnHSkRdUTMN9bMF7qRqrEy/1pKLGSUbVySM1DGp/IibRRZ MhQbDKEl8LGD3Qu6EzhoSW/3AZMuCHce3IwEzkvXXiJARAKW6N58kjDje4LNqYc4z0WL mPW/3dZgBmNbsvCqo2RDulPhBB0JMxpfOdceGY+7p3CRKKJ6sTLiBOd3rsDgkbih1UPB 8V6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KOK98yqb; 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 pi7-20020a17090b1e4700b002632a1243dbsi8711530pjb.104.2023.08.06.23.35.15; Sun, 06 Aug 2023 23:35: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=KOK98yqb; 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 S230041AbjHGFS5 (ORCPT + 99 others); Mon, 7 Aug 2023 01:18:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjHGFSz (ORCPT ); Mon, 7 Aug 2023 01:18:55 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 501AC1701; Sun, 6 Aug 2023 22:18:51 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3775Ihu1027241; Mon, 7 Aug 2023 00:18:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691385523; bh=iGxBg5A6V1C/me8rd0dS8lTI+4EDWR61R5JBnylmqkE=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=KOK98yqbBDI5mgTKBmrnQwseU99oQcDIBu7A4dWOfl44BfSmH+g5zALjeFakCPNKf AlW9SRf4X45mFpW042keVikgf+TKTit9vIzRE751GKHy9Tahw5YUKtKejvmJMs7o6f VOlV2fPJFvUDM0uit931cacG+COYcQJbOLA4vrSs= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3775Ih0A024388 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Aug 2023 00:18:43 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 7 Aug 2023 00:18:43 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE103.ent.ti.com (157.170.170.33) 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; Mon, 7 Aug 2023 00:18:42 -0500 Received: from [172.24.227.68] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3775Ic2k104239; Mon, 7 Aug 2023 00:18:39 -0500 Message-ID: <5c07e90a-2fab-b7aa-4d8e-6d329a8f33ea@ti.com> Date: Mon, 7 Aug 2023 10:48:38 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 07/13] arm64: dts: ti: k3-am64: Enable OSPI nodes at the board level Content-Language: en-US To: Andrew Davis , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , CC: , References: <20230802205309.257392-1-afd@ti.com> <20230802205309.257392-8-afd@ti.com> From: Dhruva Gole In-Reply-To: <20230802205309.257392-8-afd@ti.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS 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 On 03/08/23 02:23, Andrew Davis wrote: > 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>; > Reviewed-by: Dhruva Gole -- Thanks and Regards, Dhruva Gole