Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp471527lqp; Wed, 12 Jun 2024 07:11:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWRfM6T4dqYVecES7iK14mkRqgWEy39m5mtUNP6Qj6OPZq1LSHxewp9oW1Gg4JLH2VRjb/9cIDI0dMA+oUKQfqzr5Puso7R/nJu4w/uAg== X-Google-Smtp-Source: AGHT+IHF/X5XbSAeLaMlDi+vvFyD7xBpEKUPgsf5dEdLOBOfA4RQiHNalPlq+iQR6RS0PXaBqOVq X-Received: by 2002:a05:6358:7e44:b0:19c:467b:13b6 with SMTP id e5c5f4694b2df-19f69d16c69mr214381755d.12.1718201517065; Wed, 12 Jun 2024 07:11:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718201517; cv=pass; d=google.com; s=arc-20160816; b=jmumoS5ry/47kGXpmk8eoMHaCZWWSIxFvzqx72igCOx1AywMxmkK3Ct/PrKKqpIvYy LDCZuAZb8Y1s6WP7KNI7GDX4fMrgST94dOca6MnJOpqGAYQgMpfdAII/Z6YBgMgulhim BtXqvtNEAPSLMD49GKX2qTeo5nb3UXiffK9kKBCvbIPQ0yJcpxakN5dySRomRB+oxhMx REchteU/5UiO2Q5FpWeLeUfQ5/4z+CKGEgUvMz/sZAQja29V3i1TtNRQUMOBBWmS49Ck dsSdrPgCG7t1w9eUusUMNcvgYClSyLbLhBs/IA3NmoYHWONQEfbVRjeBy0AdNfRLI/Rh 7xQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=sZhjjT6mYCzNLpND5LOJH3nVDScay6T/1TCsy8UFgLU=; fh=BYFGhE9LQ2jYZaGeaJz38hZYRaXy4gBuTxEkldAUr5o=; b=V/MNfX8lk6YRSKBZXZlhYF/e1znmfonCV9qxDFSrQmadxgbO3LdGAXS7WnRvyEMzvP zODM7LcF1PtK/XGVEnc7pbWSHLZvBGpkIK2k9/6uK6rGtx1xto1y2U5yiF5q2gzi3oWB e7yeW5KdIScUnp/k5WeGuYTXrqpAO48AVSRq7WtUfHiiEkmXZCllNbHJqddGUE5tUz0n m17i49SL7/bm2WUwlKCb1GIG2sNL1eRcU8T7V/KOgcEmBfntc76eEaBK5taGQRvjR31U OpstjqteeL7UUHJV7DmM0vhRGBCXrVvkF/8YOpgRrQXxn9yhzNYKuYntbIEF7orRuQNT VKOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UKPUievi; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-211621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e599ea738csi7223832a12.203.2024.06.12.07.11.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 07:11:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UKPUievi; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-211621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3493EB23FF6 for ; Wed, 12 Jun 2024 13:59:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5CD5180A83; Wed, 12 Jun 2024 13:56:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="UKPUievi" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9058917E464; Wed, 12 Jun 2024 13:56:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718200595; cv=none; b=m5GR3i1ZGu/sAlGyT7QQKYgWGq1he/WRF6ahRaeAwbLcj8NUZ+DAqgWT8siqkjpI1zSClwqnv4qoXOgueV1RkeD02nPJShWSs7JlTJf3fCs7JcilTwLEALoNPxAFpGzLVPLUbBmqLupoSvAk5nxaT1gIylmoZMb+VVZuDZvlZ+g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718200595; c=relaxed/simple; bh=LWOX+r7SThhVbtJD1bUMG+QHHjVnqdvBwOYlbpl0fRg=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pU3KcEI9roBzOo6zgrbvTbKtXJYs7AVMDMUqBGtwS80mIV5t/H1kzyzYm1QJaPH/TQERvHMV9nQ0Rs7flCjEtfl03NDr0YUrT/Lk6cpyyznPhcBnxeABB48lOfZZOnqkPotBKn+VMPfQvTHlNQHfLs7wpcQT6M7nYRJvF/8woyE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=UKPUievi; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45CDtdPQ064429; Wed, 12 Jun 2024 08:55:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718200539; bh=sZhjjT6mYCzNLpND5LOJH3nVDScay6T/1TCsy8UFgLU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=UKPUieviMimbmNYWbMP4HyiFCyPrGzswuFHeeRYH3STtLl0v1cefh+aLusVz2DSX6 zKbEQm1P73zzxJzOFyEXvu9pr0ErGg2PrvxNO0++ZEE2dW/AUrHMNI2Yuq1HGIcJR/ 3Ny9lPu0fsFPzROQKQ28tVeNQoOEZdyUri9vCIWM= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45CDtdYC101155 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 12 Jun 2024 08:55:39 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 12 Jun 2024 08:55:39 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE114.ent.ti.com (10.64.6.35) 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, 12 Jun 2024 08:55:39 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45CDtclW092708; Wed, 12 Jun 2024 08:55:39 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Krzysztof Kozlowski , Conor Dooley , William Breathitt Gray , Nishanth Menon CC: , , , Vignesh Raghavendra , Tero Kristo , , David Lechner Subject: [PATCH v5 7/8] arm64: dts: ti: k3-am64x-sk: Enable eQEP Date: Wed, 12 Jun 2024 08:55:37 -0500 Message-ID: <20240612135538.2447938-8-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240612135538.2447938-1-jm@ti.com> References: <20240612135538.2447938-1-jm@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 There are 3 instances of eQEP on AM64x. Only EQEP0 signals can be routed to the user expansion so enable only EQEP0 in k3-am642-sk.dts. Signed-off-by: Judith Mendez --- Changes since v4: - No change --- arch/arm64/boot/dts/ti/k3-am642-sk.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts index 5b028b3a3192f..1992444953745 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -357,6 +357,16 @@ main_ecap0_pins_default: main-ecap0-default-pins { AM64X_IOPAD(0x0270, PIN_INPUT, 0) /* (D18) ECAP0_IN_APWM_OUT */ >; }; + + main_eqep0_pins_default: main-eqep0-default-pins { + pinctrl-single,pins = < + AM64X_IOPAD(0x00a0, PIN_INPUT, 3) /* (N16) GPMC0_WPn.EQEP0_A */ + AM64X_IOPAD(0x00a4, PIN_INPUT, 3) /* (N17) GPMC0_DIR.EQEP0_B */ + AM64X_IOPAD(0x00ac, PIN_INPUT, 3) /* (R20) GPMC0_CSn1.EQEP0_I */ + AM64X_IOPAD(0x00a8, PIN_INPUT, 3) /* (R19) GPMC0_CSn0.EQEP0_S */ + >; + }; + main_wlan_en_pins_default: main-wlan-en-default-pins { pinctrl-single,pins = < AM64X_IOPAD(0x00c4, PIN_OUTPUT_PULLUP, 7) /* (V8) GPIO0_48 */ @@ -672,3 +682,10 @@ &ecap0 { pinctrl-names = "default"; pinctrl-0 = <&main_ecap0_pins_default>; }; + +&eqep0 { + status = "okay"; + /* EQEP0 A & B available on pins 18 & 22 of J4 header */ + pinctrl-names = "default"; + pinctrl-0 = <&main_eqep0_pins_default>; +}; -- 2.45.1