From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D2EFC77B75 for ; Mon, 22 May 2023 16:44:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231712AbjEVQoo (ORCPT ); Mon, 22 May 2023 12:44:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233191AbjEVQon (ORCPT ); Mon, 22 May 2023 12:44:43 -0400 Received: from mail-vk1-xa31.google.com (mail-vk1-xa31.google.com [IPv6:2607:f8b0:4864:20::a31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E927F109 for ; Mon, 22 May 2023 09:44:36 -0700 (PDT) Received: by mail-vk1-xa31.google.com with SMTP id 71dfb90a1353d-45702d3d92cso2492462e0c.1 for ; Mon, 22 May 2023 09:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684773876; x=1687365876; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Qf40rv8DBLq+v06OlsPRtE2dsuAUv6hxQKxmbaIviKQ=; b=e7Lw+thSe5d1e6sITwdpnIdOdUGvIxVmEe0BxIhp63kB5BnA31eHqpKgglctBgKKVN 7fvb2Zyxc/lxgxT2vG5V9rnnoCvNUPUuB2PRU2TQ5X68oY9HwLq6Vra6FqguuC14+kXn QNoD6rMywiw/EdacPC7yJeW+xXRwV5TjWocAOtbeCafNZpAvikJIok28T2aaqle0WWcV OLTftqPlJz/HtreogAAWIsoD+yI9ysS5WOHcMjuQURz59EQEFlZjz9nM26+BvMAqevDV t3o/tVYOE6Gk5h0GQBE5RBl9oj5Vh8T+iEbJbOB4GeuIZdVRbveX39aElDnNfM1OiSyQ Iy0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684773876; x=1687365876; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Qf40rv8DBLq+v06OlsPRtE2dsuAUv6hxQKxmbaIviKQ=; b=dU20JggZIeAguJbYnZ/DESWqyMxljoYFDpRIHCqXDOmWqT5avvDWkaP4iHVz+Oi98b cxZXOeRlXHF216veb8bON/Lnl/68sfcBBtt1bj6uz/TBHcqGW8XHoMKZW5J6wCFEi7Mw rlwm35OPzxRpXNq1p/0PqMLeSVjXkk4XXHp+61OuAsauawlFl0h+Mk47rFLuyjQfAtU4 3IbrQlvO6jGOBV+NE2qqsd5pDjrCS2VRcVf1cO30qi8j8LHj57cNIN89lbxiHQLMO3HX 0ZwaQFihPyF2wvuMrcjPnhbTDcv0wJYpKf12cfryxME83VQek69kRrkexrkJwDxvFQbx tPPQ== X-Gm-Message-State: AC+VfDyDdJMDVDnT1XAFusVBl23thTQMEbE6yxMKtJLsZQUZdWMs3wll WPgJearWZyezB/3gWKvy9lCHpw== X-Google-Smtp-Source: ACHHUZ6DYaJdwqgap33MUTKTqBjgi25tq8wBKTHfrsMuN4GY7bGQLQIEt24m6QyflO3bjIxsEJRf/w== X-Received: by 2002:a1f:5c10:0:b0:44f:eae4:da84 with SMTP id q16-20020a1f5c10000000b0044feae4da84mr4325461vkb.5.1684773875933; Mon, 22 May 2023 09:44:35 -0700 (PDT) Received: from fedora (072-189-067-006.res.spectrum.com. [72.189.67.6]) by smtp.gmail.com with ESMTPSA id 205-20020a1f14d6000000b0044ad1d3834bsm1143752vku.29.2023.05.22.09.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 09:44:35 -0700 (PDT) Date: Mon, 22 May 2023 12:44:32 -0400 From: William Breathitt Gray To: Linus Walleij Cc: Bartosz Golaszewski , Jonathan Cameron , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH 2/3] gpio: 104-dio-48e: Add Counter/Timer support Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nY+9GuX2jNswXxCO" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org --nY+9GuX2jNswXxCO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 20, 2023 at 09:28:15PM +0200, Linus Walleij wrote: > On Sun, Apr 16, 2023 at 7:37=E2=80=AFPM William Breathitt Gray > wrote: >=20 > > The 104-DIO-48E features an 8254 Counter/Timer chip providing three > > counter/timers which can be used for frequency measurement, frequency > > output, pulse width modulation, pulse width measurement, event count, > > etc. The counter/timers use the same addresses as PPI 0 (addresses 0x0 > > to 0x3), so a raw_spinlock_t is used to synchronize operations between > > the two regmap mappings to prevent clobbering. > > > > Signed-off-by: William Breathitt Gray >=20 > Very interesting development here. > Reviewed-by: Linus Walleij >=20 > Yours, > Linus Walleij With this patch, we should now have complete support for every feature available on this device. A nice milestone as well after first introducing basic GPIO support for the ACCES 104-DIO-48E in 2016. Given that there is also Intel 8255 support, it would be fun to route back one of the device's GPIO outputs into the Intel 8254 timer gate and hook up a simple speaker; we could get some nice beep generation going and party like it's 1989! B-) William Breathitt Gray --nY+9GuX2jNswXxCO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCZGub8AAKCRC1SFbKvhIj K2kGAQDQ4etWXlSzJn2uKfMuRCmiO+y67grNnTuy7sjzMZTZNwD/S8BOaRUrfrWL iRvXchrNN0b5qCcKvm9eJHnirLZ9lwI= =enuv -----END PGP SIGNATURE----- --nY+9GuX2jNswXxCO--