Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2525798rwi; Fri, 28 Oct 2022 08:05:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7h08Z3SiWtMc2k+m94dMrY0SNl5loFSlo8waMRuYoRHp5+Dqzh2eNZcENZiA/3zkGzE3tD X-Received: by 2002:a17:90b:1e03:b0:20d:7f0:7671 with SMTP id pg3-20020a17090b1e0300b0020d07f07671mr16567228pjb.174.1666969507705; Fri, 28 Oct 2022 08:05:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666969507; cv=none; d=google.com; s=arc-20160816; b=wHca8mmtlLB7YBkNKrPVYGpoJ3eOCwl6yE/ktNw8/kkARYKJkKQH/lmaQ32Gzs6nvz VNClHXJZXwzK0dKwUV40oaMcvPETbIWfoY58aQ+tphv6YaSpC3lzYDFVd4Qg1ag0qwwE KDvfDE5XAPiB+xx3HDEvG5FEFTgjNFT22t6KNndrZ9tMQKAPD6rSwwosFd807WbbZum9 CTqc8Gd6rF3iWOKAAT/Bqr1OpS+NfZdCQmvR3ED3JmV8Oz+1HsQk+edx2cjdxlyY0I/E ofioJ2LQVvAVoV7x5FOvXrGciMbxDqrrWgVpS812B82DIOXCVNaKCTnxb9gd3okyvZWB 84YQ== 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=We7DGZJnnN+asZSg5VkBuhvEFp1mF0S4GMcmYW01PCA=; b=zHP/Mwf1O94my+m0iyO/a5jhs7xfnbb3lyYnijVOCR60jp0QahjA3VKEdHHk8QWyJA 7ToqnRB/LGvjTkdPm9Mp3XGr9XAnrUwQWg+YRIRzlDK9zASbPiR1da7Q5v9hHLyl7GYx vWi4TjgXImcG25HUYJP4G3FhWuhc2GJ1wYipU/mHFADg4VOzZGoPfuEv4U8CZv59EVyd BtXbn2jqqx3s8kIeDzq+aVc91U68Sdk7q9N3nzv50PZfh0icG9vi0YIYT0QuO46lEelF ChoxrE7GEpymVpY4x17R5Qhmv8ZFuI8tr0H9eZquSGPGEnrP0ATpXRgUCyvvojc+ceG3 +VaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PacDIFXv; 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 g27-20020a63201b000000b0044c3ec9ea71si946020pgg.630.2022.10.28.08.04.54; Fri, 28 Oct 2022 08:05:07 -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=PacDIFXv; 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 S230429AbiJ1OY6 (ORCPT + 99 others); Fri, 28 Oct 2022 10:24:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230177AbiJ1OYi (ORCPT ); Fri, 28 Oct 2022 10:24:38 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2064F19; Fri, 28 Oct 2022 07:24:32 -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 29SEOMK3112733; Fri, 28 Oct 2022 09:24:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1666967062; bh=We7DGZJnnN+asZSg5VkBuhvEFp1mF0S4GMcmYW01PCA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=PacDIFXvz9xUrvBomuz1seFlpdPav7uvAUG+poan0mXROh1wb8AHSIl6sGVDdjGQm rdzpMqyFc/5pQ6K0Ji3IGY6Bc7XMp8HvlQcdB4FkE/NBTJrfzhd8CQWJ2AvUJ1T/B2 LeH//mqxgtFtZLgj1kGPCI0NvYJ/Y/0reSUJRjTU= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29SEOM37072883 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 28 Oct 2022 09:24:22 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Fri, 28 Oct 2022 09:24:21 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Fri, 28 Oct 2022 09:24:22 -0500 Received: from ula0226330.dal.design.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 29SEOHfU039275; Fri, 28 Oct 2022 09:24:21 -0500 From: Andrew Davis To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Bryan Brattlof , Le Jin , Jan Kiszka , CC: , , Andrew Davis Subject: [PATCH 05/11] arm64: dts: ti: k3-am65: Enable ECAP nodes at the board level Date: Fri, 28 Oct 2022 09:24:11 -0500 Message-ID: <20221028142417.10642-6-afd@ti.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221028142417.10642-1-afd@ti.com> References: <20221028142417.10642-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=-4.9 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_NONE,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 ECAP nodes defined in the top-level AM65x SoC dtsi files are incomplete and will not be functional unless they are extended with pinmux information. (These and the EPWM nodes could be used to trigger internal actions but they are not used like that currently) As the pinmux is only known at the board integration level, these nodes should only be enabled when provided with this information. Disable the ECAP 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-main.dtsi | 1 + arch/arm64/boot/dts/ti/k3-am654-base-board.dts | 1 + 3 files changed, 3 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 fa4b6eb02fa57..56562081a8e52 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi @@ -550,6 +550,7 @@ &mcu_cpsw { }; &ecap0 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&ecap0_pins_default>; }; diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi index 49287f8493aea..fbb631c7664d2 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi @@ -205,6 +205,7 @@ ecap0: pwm@3100000 { power-domains = <&k3_pds 39 TI_SCI_PD_EXCLUSIVE>; clocks = <&k3_clks 39 0>; clock-names = "fck"; + status = "disabled"; }; main_spi0: spi@2100000 { 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 3f5a5ebfc8f3c..f4b8747ebaef6 100644 --- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts +++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts @@ -337,6 +337,7 @@ &main_i2c2 { }; &ecap0 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&ecap0_pins_default>; }; -- 2.37.3