Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10381081rwp; Thu, 20 Jul 2023 20:49:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlE8VR+dnpCpJ8o3RfNPZzCbh+W/BwSsvk+5DDwhJm1i1nB32ez6Z0bMyhm2AIbyjCLvDnpN X-Received: by 2002:a17:907:7850:b0:96f:d780:5734 with SMTP id lb16-20020a170907785000b0096fd7805734mr608189ejc.65.1689911354240; Thu, 20 Jul 2023 20:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689911354; cv=none; d=google.com; s=arc-20160816; b=N0quVwNAAjZLPKRuf4LaZ7LOD5m92BvimsiLnlloBve/j3NiVPoZ7KhhocDyoxzOxR /e7S1fb/LwipWxq+6whKA3ttpzjaX5mvk2xorDR+whWjlOMS7zrI87a5pdHeIGO6hheQ bNAC+6nAlWBfOflOlXp9bmDYGkIvGs1HGqgoaXIoJN293mVlStPMvVVTHOkr8V5rNPlZ yvC4qJX6FCllYAw+d9C3+LAc1Di+89tTk4TgPbF708zEXhZBKWaMvWvNMO/OE9cjwXdF W06zzeaesZpbwYWH0mDNBMRF52TQwtvDFj61kqLqGSXtA0otsxJ8SimevmSGlV23rLt3 Go7A== 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=6ncmgsCGXWN2h5jurCHYvdbyIoLK75ANn08yn2dph6g=; fh=WkUHy7Y0/+vKhGQIKS2kuGUZLVAopcgeaNcpOqx/cgM=; b=EleliTi9vbfndFKS3GYRyA8cPUQTt+u5PWPNgA2Ve2RTkxlkS93La4J0sQKKACpIQ4 siCBJU7sBgCmmgS6Rq6/ieXSZtMhe0tBahcYz0tvC8IGVfGh92eLM2B4jRXZ515xzME/ URrUR+gt7KSOP56nYAzLLiZsZPdYiLND5Q9z77hcOfb/KxE5nRWqoDOh3iMmZ89ElB9X J5FBcghXsprTq6h7b1RHWb3VGr4GtzFvQuiOO7h161Q/hoxUMWXZEittdJw5DwmmEg1F RsE7ku+7bFQp+vkxTkTynW2jm5uuuYSsaBmvDBasLGiNpDaoZ7kAni4eAso7Wm9QMkAE z+RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=DjctBhQ9; 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 pg14-20020a170907204e00b00997c7157a03si1556499ejb.642.2023.07.20.20.48.50; Thu, 20 Jul 2023 20:49:14 -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=DjctBhQ9; 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 S229981AbjGUDjX (ORCPT + 99 others); Thu, 20 Jul 2023 23:39:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjGUDjV (ORCPT ); Thu, 20 Jul 2023 23:39:21 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 718041BFC; Thu, 20 Jul 2023 20:39:19 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36L3d7Kc073061; Thu, 20 Jul 2023 22:39:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1689910747; bh=6ncmgsCGXWN2h5jurCHYvdbyIoLK75ANn08yn2dph6g=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=DjctBhQ9gEifJT4KqmZjpjALnpx5Jfc3tqdyIpnM8iL5qptd2qNrFeUqyVUJt/por aNGSeHV+vQHzMyhBDfYNZJVoyiNtJB15lS41F/r/sH4rhShLnwICLOKBkgg3Aba9+P 9VeI9ao+x7g5CfnHTprJuq6S5AWWvz2/9nT933bA= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36L3d7j7095425 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 20 Jul 2023 22:39:07 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) 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; Thu, 20 Jul 2023 22:39:07 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE108.ent.ti.com (157.170.170.38) 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; Thu, 20 Jul 2023 22:39:07 -0500 Received: from [172.24.227.94] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36L3d4kH002829; Thu, 20 Jul 2023 22:39:05 -0500 Message-ID: Date: Fri, 21 Jul 2023 09:09:03 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH V2] arm64: dts: ti: k3-pinctrl: Introduce debounce select mux macros Content-Language: en-US To: Nishanth Menon , Conor Dooley , Krzysztof Kozlowski , Rob Herring CC: , , , Tero Kristo References: <20230619131620.3286650-1-nm@ti.com> From: Vignesh Raghavendra In-Reply-To: <20230619131620.3286650-1-nm@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.2 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_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 19/06/23 18:46, Nishanth Menon wrote: > Introduce the debounce select mux macros to allow folks to setup > debounce configuration for pins. Each configuration selected maps > to a specific timing register as documented in appropriate Technical > Reference Manual (example:[1]). > > [1] AM625x TRM (section 6.1.2.2): https://www.ti.com/lit/pdf/spruiv7 > > Signed-off-by: Nishanth Menon > --- > Changes since V1: > - I have'nt picked up Krystoff's ack since the file modified is now different. > - Changes now applied to k3-pinctrl.h instead of the ABI header that is > now set up to be deleted in v6.5-rc1. > > V1: https://lore.kernel.org/linux-devicetree/20230308084309.396192-1-nm@ti.com/ > > arch/arm64/boot/dts/ti/k3-pinctrl.h | 9 +++++++++ > 1 file changed, 9 insertions(+) > Reviewed-by: Vignesh Raghavendra > diff --git a/arch/arm64/boot/dts/ti/k3-pinctrl.h b/arch/arm64/boot/dts/ti/k3-pinctrl.h > index c97548a3f42d..6004e0967ec5 100644 > --- a/arch/arm64/boot/dts/ti/k3-pinctrl.h > +++ b/arch/arm64/boot/dts/ti/k3-pinctrl.h > @@ -11,6 +11,7 @@ > #define PULLUDEN_SHIFT (16) > #define PULLTYPESEL_SHIFT (17) > #define RXACTIVE_SHIFT (18) > +#define DEBOUNCE_SHIFT (11) > > #define PULL_DISABLE (1 << PULLUDEN_SHIFT) > #define PULL_ENABLE (0 << PULLUDEN_SHIFT) > @@ -29,6 +30,14 @@ > #define PIN_INPUT_PULLUP (INPUT_EN | PULL_UP) > #define PIN_INPUT_PULLDOWN (INPUT_EN | PULL_DOWN) > > +#define PIN_DEBOUNCE_DISABLE (0 << DEBOUNCE_SHIFT) > +#define PIN_DEBOUNCE_CONF1 (1 << DEBOUNCE_SHIFT) > +#define PIN_DEBOUNCE_CONF2 (2 << DEBOUNCE_SHIFT) > +#define PIN_DEBOUNCE_CONF3 (3 << DEBOUNCE_SHIFT) > +#define PIN_DEBOUNCE_CONF4 (4 << DEBOUNCE_SHIFT) > +#define PIN_DEBOUNCE_CONF5 (5 << DEBOUNCE_SHIFT) > +#define PIN_DEBOUNCE_CONF6 (6 << DEBOUNCE_SHIFT) > + > #define AM62AX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) > #define AM62AX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) > -- Regards Vignesh