Message ID | 20230923-ixp4xx-gpio-clocks-v3-0-66f8fe4e7f15@linaro.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 BB8D6CE7A88 for <linux-arm-kernel@archiver.kernel.org>; Sat, 23 Sep 2023 16:03:03 +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=tKdv3itoGarADsR0XpwX9Qg04Ikol0wNNU0CxgHQCwQ=; b=YUDS1bLwIZFY1P CaEsuGzkURBUamKW+MbD5/PBQOO3Z8fTtxSsKO2WQvBkxDSkhburI+NYy2VAB7t0oqE89Tbh9r6XR 2WlLawaDc3l28SMwqrgIg8B1cuIoR88ucEtSrmSYMi7zv0WnJVSm/H5m9kPScshjYgLxUc3WWGHgV 83Yt2LCfMZnb6lNK9O8IFOzHwdGdG9MCFw77cTrGfd13Lgc1hF4DiaMaXWDE8ugzliI04yvoJeP6+ 5TQxW+ts7ZG7kuZfmpoahYG8aez33wEtb/a8wFnLYZWk1ILGarwVbBb/tJpJ4ks7HPsRYIK19GQgC mJcg3SUV/zmq9FuH2RkQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qk55b-00BAaM-0T; Sat, 23 Sep 2023 16:02:39 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qk55X-00BAZL-2v for linux-arm-kernel@lists.infradead.org; Sat, 23 Sep 2023 16:02:38 +0000 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-50437f39c9dso3829735e87.3 for <linux-arm-kernel@lists.infradead.org>; Sat, 23 Sep 2023 09:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695484951; x=1696089751; 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=WV53zmIgHmL/yFU/dQEcGYpvwnBSr4yD4SRIekzGo4A=; b=XDFZAvJVhr5/Fgw0nl12yptu66UABMg/ecnOr5lz4RY07D7lYTeZefUgZrreuM4peF wkC9XVVvocjrWxrbBFuMeXGhvS/G5aYQr/kjOSf/R+OwvEq+C9P48MeLvPGFGhTnVmp8 ZPKPHS/G9MyE64yCL88Oh4sNMQei4p1c4fo+LswgcD8nNYocsn9sAaTNLaouj+dF93Wg e5psVWOksszoOhU1jlPmJpbPxz9N4VM8p97pGIzeEY9O57LVmCtgDR/efZ20kyyGvbn3 aPY2q/Dtp6ZaGvV9XGKUT6k5UCzXq+MmKxs+hQfNWMtU+xWyXJ8awNp/gkajKVppsvM9 c20w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695484951; x=1696089751; 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=WV53zmIgHmL/yFU/dQEcGYpvwnBSr4yD4SRIekzGo4A=; b=w87VQ9d7Q8Zx37DkDcDoLG6THHEx9mfS+IPDVpkWUqyxDtTNxIxOOwtR3X4FTU/jh3 O1hTSLs8aeEjaXfatwREVjuaN2MKhm3qcQL8SAvuBcxDlbzHpZqUhIfHOYsjMwjBQaDj Edpy+oVJv/GipBzy6n3eFwA0XwohUlyueQ4oji1hVjxREwgoT25Fua0tfAlc8d6LLqT9 q4OcQxlWP3qTX0oQS6A/5W3bW+jABbwap/pFMiKTQWJSCxx6gMACF/CZjSHc6acK4Hfq O/xkgew1RxlGxhBd9Q2iQTuaFvYRsKgojSXuiDh401eQx5dRbw1dMiFWQlbnze9+Q28S xEDQ== X-Gm-Message-State: AOJu0YyvXynco5/wZllgzjJKeaLcVfvB/lhKqpNcxql8oKEGur2MTDU6 QohueYN+4Dnzk1/vonqQuq8F+A== X-Google-Smtp-Source: AGHT+IHpnXQL98R6AQ2JP2iGTBnSBc+FmieHCabkb3dnh43+mZ+mmqmQIr6CD9ITKQsufpcqvfCZnQ== X-Received: by 2002:a05:6512:39d6:b0:503:3808:389a with SMTP id k22-20020a05651239d600b005033808389amr2418411lfu.11.1695484951524; Sat, 23 Sep 2023 09:02:31 -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 v30-20020a056512049e00b004fdde1db756sm1132835lfq.26.2023.09.23.09.02.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 09:02:30 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> Subject: [PATCH v3 0/2] gpio: ixp4xx: Handle external clock output Date: Sat, 23 Sep 2023 18:02:27 +0200 Message-Id: <20230923-ixp4xx-gpio-clocks-v3-0-66f8fe4e7f15@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIABMMD2UC/33NTQ6CMBCG4auYrh3TDkWoK+9hXPAzwERCSWuaG sLdLaw0MS7fL5lnFuHJMXlxOSzCUWDPdkqRHQ+iGaqpJ+A2tUCJmTSogOOsY4R+ZgvNaJuHh4J KxNJ0uq4zkQ5nRx3HHb3dUw/sn9a99h9BbetfLiiQkBfaaKw7o3V1HXmqnD1Z14vNC/hp4E8Dk yFR5URKmuLcfhnrur4BQl2lX/kAAAA= To: Linus Walleij <linusw@kernel.org>, Imre Kaloz <kaloz@openwrt.org>, Krzysztof Halasa <khalasa@piap.pl>, Bartosz Golaszewski <brgl@bgdev.pl>, Andy Shevchenko <andy@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org>, Rob Herring <robh@kernel.org> X-Mailer: b4 0.12.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230923_090235_987733_AD188CC1 X-CRM114-Status: GOOD ( 11.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
gpio: ixp4xx: Handle external clock output
|
expand
|
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 <linus.walleij@linaro.org> --- Changes in v3: - Make sure to only manipulate the clock bits if one of the clock DT properties is set. Devices we can't test may rely on HW defaults being preserved in the clock bits. - Link to v2: https://lore.kernel.org/r/20230922-ixp4xx-gpio-clocks-v2-0-0215ee10976d@linaro.org 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 | 49 ++++++++++++++- 4 files changed, 122 insertions(+), 40 deletions(-) --- base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d change-id: 20230921-ixp4xx-gpio-clocks-7e82289f4bb3 Best regards,