From patchwork Thu Jul 20 18:49:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 705099 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 E3A56EB64DD for ; Thu, 20 Jul 2023 18:50:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229690AbjGTSuC (ORCPT ); Thu, 20 Jul 2023 14:50:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229685AbjGTSuB (ORCPT ); Thu, 20 Jul 2023 14:50:01 -0400 Received: from mail-vk1-xa33.google.com (mail-vk1-xa33.google.com [IPv6:2607:f8b0:4864:20::a33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFCBA10F3 for ; Thu, 20 Jul 2023 11:49:59 -0700 (PDT) Received: by mail-vk1-xa33.google.com with SMTP id 71dfb90a1353d-48137084a66so518982e0c.3 for ; Thu, 20 Jul 2023 11:49:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689878999; x=1690483799; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=A6XfvdHY9gNi/Uu7IhnorruW0FyEO0Ku4CqZNScjR64=; b=sCSCkSppg3ENYqk0iHc3Cj82UbMlQfniH3E6jeIUP1xhmA3KjIJHhehiAtfqi9Jr1R CwkBmkI5eSYsCoYqMN3DmyAUg67w9DovMExgDHLFIn693HxRbz35DO+g/MbVOSOetVRt As6/FCxqmc9QWKQ9Hlc29xLgHHIwpalk5QLc+ueXNSKCo4pa8rVgppMEzMbAhJrd6V0y IidGHVDuQuF7GLG6VnOFyIUxoOOhYS2dvYboyz9gnKB6TqrH+VBctmtjuQo92qcYumZe IdJ1bQ0ek9tRYkPW67a1iH9c/rNOLXv4iBSFL+gpJbknxZqkRRl0CY/BPOt1/UwXQ3wm lXUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689878999; x=1690483799; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=A6XfvdHY9gNi/Uu7IhnorruW0FyEO0Ku4CqZNScjR64=; b=FZ7HOSq80N/UHGAUTNrgL0KLpkQ9QNkmBBzjRV9glI2jgOCLc7832MoF7HZtVs6yiR TfFqtJOi0GlNKEwXMAm4VTDg2AnM1fHoTBwzBPiULTdWX0ejvDAGs3e9qLp6vzGZtsXZ Q6sJDaB3z/ugfIFe7hEIsyXDpjRZMYOUyhwCd2R9pVrHLyMV+Q9SvBtnY3cZt2T81HgL UDGYbyE00yPc7esT02WaTR+UkQqwlBB+s2LMopg8oaefxnjVLAtk7NnViF1d8/S6ltzL 4znJL4SVS3Z0sUsNAEhBM/Su0UbmN2ssF6MsNVXYYbZQFjN+8Ng1ogqQwAnZs/tQuJih v6oQ== X-Gm-Message-State: ABy/qLZ1fSa7e1xdEx/A5CtCyUZFvijR0kTL1NsBfAGvt3jPN4n7CNoK g07RfWVmAC5kPFG0AbTO9+oq4CB128hWfVXzIvI= X-Google-Smtp-Source: APBJJlFXNrDD+BDKRVp5y3572+pBNtZ7kjydIFkYPkh3VrwiFhXSiKhjb2aWCrnry9e4XSxmh+snwg== X-Received: by 2002:a1f:ed81:0:b0:481:719a:23f6 with SMTP id l123-20020a1fed81000000b00481719a23f6mr3856382vkh.14.1689878998936; Thu, 20 Jul 2023 11:49:58 -0700 (PDT) Received: from localhost.localdomain (072-189-067-006.res.spectrum.com. [72.189.67.6]) by smtp.gmail.com with ESMTPSA id h7-20020a0561220b6700b0047dbd48bc44sm238059vkf.17.2023.07.20.11.49.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jul 2023 11:49:58 -0700 (PDT) From: William Breathitt Gray To: Bartosz Golaszewski , Linus Walleij Cc: Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, William Breathitt Gray Subject: [RESEND PATCH 0/2] Add Intel 8254 Counter support Date: Thu, 20 Jul 2023 14:49:42 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The Intel 8254 PIT first appeared in the early 1980s and was used initially in IBM PC compatibles. The popularity of the original Intel 825x family of chips led to many subsequent variants and clones of the interface in various chips and integrated circuits. Although still popular, interfaces compatible with the Intel 8254 PIT are nowdays typically found embedded in larger VLSI processing chips and FPGA components rather than as discrete ICs. A library providing support for interfaces compatible with the venerable Intel 8254 Programmable Interval Timer (PIT) was merged in commit d428487471ba ("counter: i8254: Introduce the Intel 8254 interface library module"). Now that the necessary dependencies have been merged, this patchset adds support for the i8254 in two respective follow-up patches for the 104-dio-48e driver and stx104 driver whose devices feature i8254 compatible interfaces. The two patches are independent and may be taken each separately in their respective subsystem tree. William Breathitt Gray (2): gpio: 104-dio-48e: Add Counter/Timer support iio: addac: stx104: Add 8254 Counter/Timer support drivers/gpio/Kconfig | 1 + drivers/gpio/gpio-104-dio-48e.c | 127 ++++++++++++++++++++++++++++---- drivers/iio/addac/Kconfig | 1 + drivers/iio/addac/stx104.c | 61 ++++++++++++++- 4 files changed, 172 insertions(+), 18 deletions(-)