From patchwork Fri Sep 22 06:07:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13394971 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 02332E7D0CE for ; Fri, 22 Sep 2023 06:08:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=nuo1xlvNasNxQKN/S3iQAxn1RxQ09tJoxbH3VomjfQU=; b=NDhmpj/yCGWK0H nT8gYz+oRBOQfIcg7V7teoUnlJnqayKTMYepxE4VhjISN2W9zUzQwbFPBlT1n7zZpwH74g//8O2J9 R6D0ZYmwxBZSxNJaUjNaKB+VCDx2J+zgk9H/YHgfIKvP5hyTIH3O1NT530DgDLUC3Mu+rlJ6rSGaB b+YG7+gebub9MaFyDsGA8onZczvZmGde5sln/uMZZ5Yse/7Pjf6kiwSy+WCDRmkAoq8uuuJT4xG9Q 6bnACvYo5txfPgi71h3B8XS+GIBlLIJWFGlFvKSQzstxKe+tzpOYjIP4HgaimG7XL1hm+UOf5aIbP OSZsaJ8Um4dXD8/CvOjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjZKh-0080q7-1A; Fri, 22 Sep 2023 06:08:07 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjZKe-0080o3-0b for linux-arm-kernel@lists.infradead.org; Fri, 22 Sep 2023 06:08:06 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2c12ae20a5cso27883691fa.2 for ; Thu, 21 Sep 2023 23:08:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695362880; x=1695967680; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=ATQufBNbcXFkZmil1MnT/r/hXYDjTU/4NuEdLcc8JTo=; b=fF/OHBgAR1aLAG53Kxo1YopefMdwZR57ompOoZYqJDVZzGYMVHgOpYFxCiErZ1dRGt RYFnmPUfImz6xkMwasWNK9PT0fKl8t3w83unBhAjNTYr97BmnP9kGT31A+2aW9pg6KCl 0g/t7RdiQfeStzKn3vwIQBtl/N4nbwu4KxIDZnNkObs4lS6xy7XCMeubZmlgqScRDCvK WywbotS1Ew3SgmDqK7CrcfvIfo+PGAQoB/Y3sPSbqgdRvYNcEEpYzv/aWz5rPdIZy/oy NBvestRdKl1SM58mSbMZPyzCVOuuc64MfPPo0JSnSGVbtDtkD6AyzVjyzCAMSVgulPQS 2JTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695362880; x=1695967680; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ATQufBNbcXFkZmil1MnT/r/hXYDjTU/4NuEdLcc8JTo=; b=UxUQoH6b+qmilMsNGvMWzU0kB/eJRW10XBwEpeBqUeb8NRjjH2xtOfg70IEH0srxBr VG6WUbluSG56H0gZmcMaKVNmhNID96a1ujNuBYP3vRiVTaSRrKHTkUpyd6CCxH4kwZKY JAZ0buF+kF9fw7cNr89dYUyJyGKrPRDDqGNUABeLqo0VKUwdZN3fs68ewD9RoKVJF98m NXiCO66DIsZwlOXazGVHc/oHyu/UrhC2/RUvMpnOnB2+mfJ7XhrKRhZV7Kcjjtqa9ZmM M0FU++P3r0Mnzaa6vNGPF8yHJ25Hi9YogUS+RpbG1SQtGPm7uPLxbMPxIZChFON0SW8u le5w== X-Gm-Message-State: AOJu0YwSOQaFS0F3hiL3+Wq5vmcm181KPcy+FcHLsECUomb/iLEDSRUK cFPWc8aVWsHWY1gFyjSQW/4lVA== X-Google-Smtp-Source: AGHT+IHeYRzOOUP72mWc4KIVtAc59HTLZGpwZ0ffTWvHbWpzrXNk2EqAvpcwHRxm3odwxvYxq99V7Q== X-Received: by 2002:a2e:8683:0:b0:2ba:6519:c50f with SMTP id l3-20020a2e8683000000b002ba6519c50fmr6372127lji.52.1695362880343; Thu, 21 Sep 2023 23:08:00 -0700 (PDT) Received: from [192.168.1.2] (c-05d8225c.014-348-6c756e10.bbcust.telenor.se. [92.34.216.5]) by smtp.gmail.com with ESMTPSA id w22-20020a05651c103600b002b9f4841913sm754329ljm.1.2023.09.21.23.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 23:07:59 -0700 (PDT) From: Linus Walleij Subject: [PATCH v2 0/2] gpio: ixp4xx: Handle external clock output Date: Fri, 22 Sep 2023 08:07:55 +0200 Message-Id: <20230922-ixp4xx-gpio-clocks-v2-0-0215ee10976d@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIADsvDWUC/32NQQqDMBBFryKz7hQdUzRdeY/iwqRJHComJEVSx Ls39QBdvgf//R2SiWwS3Ksdotk4sV8L0KUCPU+rM8jPwkA1tbWkBjkHkTO6wB714vUrYWd6ol5 aoVQLZRiisZzP6GMsPHN6+/g5P7bmZ//mtgZrvHVCClJWCjENC69T9FcfHYzHcXwBVz0M7LUAA AA= To: Linus Walleij , Imre Kaloz , Krzysztof Halasa , Bartosz Golaszewski , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, Linus Walleij , Rob Herring X-Mailer: b4 0.12.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230921_230804_272132_5F8B5218 X-CRM114-Status: GOOD ( 10.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The GPIO block on the very legacy IXP4xx GPIO can provide a generated clock output on GPIO 14 and GPIO 15. This provides a straight-forward solution with a flag for each clock output. More complicated solutions are thinkable, but I deemed them overdesigned for this legacy SoC. Signed-off-by: Linus Walleij --- Changes in v2: - Fixed formatting pipe | in bindings - Fixed som blank lines in bindings - When we will just blank out the clock register settings, don't spend time reading the initial value. - Link to v1: https://lore.kernel.org/r/20230921-ixp4xx-gpio-clocks-v1-0-574942bf944a@linaro.org --- Linus Walleij (2): gpio: Rewrite IXP4xx GPIO bindings in schema gpio: ixp4xx: Handle clock output on pin 14 and 15 .../devicetree/bindings/gpio/intel,ixp4xx-gpio.txt | 38 ----------- .../bindings/gpio/intel,ixp4xx-gpio.yaml | 73 ++++++++++++++++++++++ MAINTAINERS | 2 +- drivers/gpio/gpio-ixp4xx.c | 40 +++++++++++- 4 files changed, 112 insertions(+), 41 deletions(-) --- base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d change-id: 20230921-ixp4xx-gpio-clocks-7e82289f4bb3 Best regards,