Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1158067lqt; Fri, 7 Jun 2024 09:30:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW+wqmTbTw2Eq/uaF44NaLgF62vcdbl4hD3uOnArHYjSWh0YEByvGBn2OF47eP/EOHgWSpNzCplCAnj8KuhKbFgNWKarRy3JB2EFeNrxg== X-Google-Smtp-Source: AGHT+IFLj8cJ6CSr9KLphA1ywAW9aQeThf5PQ68/j7eTBYrLwg6V0kQT1SAFW+r2jB3sgzmZd9vf X-Received: by 2002:a17:90a:ad94:b0:2c2:5f25:26e8 with SMTP id 98e67ed59e1d1-2c2bcb02460mr3006043a91.29.1717777842707; Fri, 07 Jun 2024 09:30:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717777842; cv=pass; d=google.com; s=arc-20160816; b=Ec0mtNrgkekzdh3wG1buD9r9dH59OFIU5249H9Wht7plEYnIPtBPhXu3Z7S40KLy9p jYjWuHAe/IoRd0F2YjWrqYUNIih5+wHMWSQER63Fp/jDIQkNkhsUy9e+1ldMv1JpHH1D TlTuy3k1VZ5ASPn9/QKFMdAQY9/6s7iylYPNaY57uOx4DU27Two7Al1T9PRvT/9NoZyx ZCj+ID/ROtJ+L5pDC3pnmaODv0WYHfxX5NOsl3AOmRidPoG3N4CEu1i5P0PCZPpYKaeW B2XWod4LKoySiusZZKb3Nt9IyxcRNohHyix7EEHbvnteaNDvV2vEaC9TQuakacDhxRte egTA== 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=j5iV2dg8nzrCJJLdyYys3qP0vGgUbyu9YRqCtbbAz4M=; fh=cVFFpQfLzsgPCJkX4d6tZHONlFPYb1OgIkkcJxf78/o=; b=qEvKrga9Upr8bY2JR89iWn9xZJZ0YVs5EQJv6sq+7THyD6X0pAq8+JqhG331+Si5/j wJ+Q8V25h/CGBn57ZXwH34BgsWO6X5U6smeKYZEBrjMNV9MCzE6eURDSBt4c8/iLKU/D ltfrXI3EzDGPhWEHiTouFphS9Y5q4lf74JjOKeNqGl4znMz8GIeOvf2Ymds9XMfqfFGn aNsOxkBzwKEWFmRsQS0AM559UqpADZ8TV01d2nq83NA4F/P1NPkQUPevLZEevMyZNEBK lb5DkvoanCuntgZl2Dkkw1vavpo56t3qIp9BzBZGn3DjGQTHkQVRwMaj92CuEz4Muk36 2heA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="k/hr2GX+"; 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-206475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206475-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. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2d113c2d2si544165a91.158.2024.06.07.09.30.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 09:30:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="k/hr2GX+"; 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-206475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206475-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 73BF6B245E8 for ; Fri, 7 Jun 2024 16:29:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6834119B59D; Fri, 7 Jun 2024 16:28:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="k/hr2GX+" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 9D4E943AA1; Fri, 7 Jun 2024 16:28:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777736; cv=none; b=bCr96jayjloixkyV9IvUR+bEsisYZ0qlg30rgKVcA6WAr8MhnsmRFKW8Dl+1GQmo2GfM/FwWX282DyYSd2aFCpjqRWdvAeXVC4zN9+414hcZ1lbgJ7SjHHfSHQRYQkOSuxHVO07I24tUbjJNFCMioviWy/Ruw5SN/HfQUv1URDk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777736; c=relaxed/simple; bh=MEasLV+/E7mjn9Yx2J7UaBnX7TW0OsQRjgP21ugEnAY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=N/j6kXclGs/mIko1opy+Kyp6nNA6l70c9twtF4OS/CbIy95aWyGb74/57y/fnpuxEkfACmuf8IsdN4QjOyu9CyPNlB3UDDK/v+gqsKUO3zMCfe2YYUbiuXk70XbyFQ3mzJjoQrDaBoul7d8eJjH4yG01jtTMs9GgXUdiy6IpuGc= 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=k/hr2GX+; arc=none smtp.client-ip=198.47.23.249 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 fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 457GRvBw076008; Fri, 7 Jun 2024 11:27:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717777677; bh=j5iV2dg8nzrCJJLdyYys3qP0vGgUbyu9YRqCtbbAz4M=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=k/hr2GX+FnPYmGucAicSC4r4y9KYqn3IJ0Yp5DFKjAWo8F5ahds0Xkcjf6n59Pjwf b3xPqrtPA0SKkV1qHT4tu6/mdzV76yjNPvvUt90Qv1cZG+nhRC8LjhRpzOCCkw5dlO RP5BLq8MqLJnNnXPwnTHGSlu5B6hcd9aUKWz6YiY= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 457GRvVU058836 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Jun 2024 11:27:57 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) 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.2507.23; Fri, 7 Jun 2024 11:27:56 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) 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.2507.23 via Frontend Transport; Fri, 7 Jun 2024 11:27:56 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 457GRt1n068019; Fri, 7 Jun 2024 11:27:56 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , William Breathitt Gray CC: David Lechner , , , , , Nishanth Menon , Vignesh Raghavendra Subject: [PATCH v3 7/8] arm64: dts: ti: k3-am64x-sk: Enable eQEP Date: Fri, 7 Jun 2024 11:27:54 -0500 Message-ID: <20240607162755.366144-8-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240607162755.366144-1-jm@ti.com> References: <20240607162755.366144-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 v2: - Enable eQEP0 in k3-am64 SK board --- arch/arm64/boot/dts/ti/k3-am642-sk.dts | 18 ++++++++++++++++++ 1 file changed, 18 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..1987da60672a2 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-pins-default { + 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,11 @@ &ecap0 { pinctrl-names = "default"; pinctrl-0 = <&main_ecap0_pins_default>; }; + +&eqep0 { + /* EQEP0_A is available on Pin 18 of header J4 */ + /* EQEP0_B is available on Pin 22 of header J4 */ + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_eqep0_pins_default>; +}; -- 2.45.1