Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3647251pxv; Mon, 19 Jul 2021 05:34:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzcrUK0TwOX3iRrgpj23/7LJ2C0wr83URBtYh22Ykq8rm1k6aq8Ag6JPUKqlDqwxkHq4LR X-Received: by 2002:a05:6e02:190e:: with SMTP id w14mr16398997ilu.61.1626698079201; Mon, 19 Jul 2021 05:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626698079; cv=none; d=google.com; s=arc-20160816; b=s0R/2p4Y3UumZA/haICDGPAzs/ST9Mgs65Tq+lSicweSOtx7SCLz/JyzM69sfhcCBm hoQvRiB+hsRA93Lak+7rxEaFQK96X93kYoMkJ4/sBEHk+NuAltQ4FrCqnsB3JhbO7J7Q 5WW16hFcy5k2rr6i86rDeR0qV/I+dxPB9hRrY3D0edr5tmkGeNCnVqQ8w+DmJUl0Rl+R bgAfdiEp4NETZkDdGX+XKjOCrHEXCJfxzpG4Dc9j0yVrQwGSRh/uScfQyKDwHDY2yxnL kFWr9ugMUVuPLMwQFesSRw+5hwhK73PwkwuXgtzm2qHmcGNqQJWi0/ZQ2mQrrpa84GUb L+Hw== 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=P0p8GvAUCyAYZKTuQ5HqWppkxFzfMtSjgIjGyXyRRGQ=; b=za64+JaWaQiyMIbarIAc+408tFXCRaN2yEqw8HEznR1p/koT2Yf3vMqb7sCp6NiSF9 R/aqdnhxFNRfyA61oIEeeiZia/c0dz5m+olkLqAjkIVvXAQJNzEhqOsePWPF58SmJQCd 2rGslKh/ZGBXhuRgBkkjzG6NNDEh+TyIxyOM3yffmzCHJdX3HNGGvAlPw9CEaDbTaJr2 UWgjfiaNwD0UYI3r04t4VW4a9gEf7we587zduE8E1VADoHAHlP473Q9deFo7SSM2vTAZ YZVRM84qJC46NYRACArBJjGp3h6PF5/w8MiRcYWVr6qeD1KYX5WhsjfaYDeXOPdqFLyt 0s+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dTFkLAHw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si24158862jaj.25.2021.07.19.05.34.27; Mon, 19 Jul 2021 05:34:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dTFkLAHw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236997AbhGSLxF (ORCPT + 99 others); Mon, 19 Jul 2021 07:53:05 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:34086 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236368AbhGSLxD (ORCPT ); Mon, 19 Jul 2021 07:53:03 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 16J8sEki130168; Mon, 19 Jul 2021 03:54:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1626684854; bh=P0p8GvAUCyAYZKTuQ5HqWppkxFzfMtSjgIjGyXyRRGQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=dTFkLAHwkL6Ws2taGu6HNmNYbQIGt+fyRRcOL3r44aWq6wCcRiQ9LHlDnInzTX+Ab uuoM6j77e1ugeYwBs6jj/GN6H0Ob4NardzPZ9+HfnfrAgEKqjaFoGbUYaIFZzP3faC hfwE1clOJDCXx7r0LZ8MuhPN0uo7J6INO2SqFuic= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 16J8sE80121290 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 19 Jul 2021 03:54:14 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 19 Jul 2021 03:54:14 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Mon, 19 Jul 2021 03:54:14 -0500 Received: from uda0131933.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 16J8s3hE047822; Mon, 19 Jul 2021 03:54:11 -0500 From: Lokesh Vutla To: Nishanth Menon , CC: Device Tree Mailing List , Rob Herring , Linux ARM Mailing List , , Lokesh Vutla Subject: [PATCH 3/4] arm64: dts: ti: k3-am642-sk: Add ecap0 node Date: Mon, 19 Jul 2021 14:24:01 +0530 Message-ID: <20210719085402.28569-4-lokeshvutla@ti.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210719085402.28569-1-lokeshvutla@ti.com> References: <20210719085402.28569-1-lokeshvutla@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ecap0 can be configured to use pad ECAP0_IN_APWM_OUT (D18) which has a signal connected to Pin 1 of J3. Add support for adding this pinmux so that pwm can be observed on pin 1 of Header J3 Signed-off-by: Lokesh Vutla Signed-off-by: Vignesh Raghavendra --- arch/arm64/boot/dts/ti/k3-am642-sk.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts index d3aa2901e6fd..eb0d10e6e787 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -210,6 +210,12 @@ AM64X_IOPAD(0x0028, PIN_INPUT, 0) /* (M17) OSPI0_D7 */ AM64X_IOPAD(0x0008, PIN_INPUT, 0) /* (N19) OSPI0_DQS */ >; }; + + main_ecap0_pins_default: main-ecap0-pins-default { + pinctrl-single,pins = < + AM64X_IOPAD(0x0270, PIN_INPUT, 0) /* (D18) ECAP0_IN_APWM_OUT */ + >; + }; }; &mcu_uart0 { @@ -453,3 +459,9 @@ &pcie0_rc { &pcie0_ep { status = "disabled"; }; + +&ecap0 { + /* PWM is available on Pin 1 of header J3 */ + pinctrl-names = "default"; + pinctrl-0 = <&main_ecap0_pins_default>; +}; -- 2.30.0