From patchwork Fri Sep 2 06:04:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianqun Xu X-Patchwork-Id: 12963632 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 C32CDC54EE9 for ; Fri, 2 Sep 2022 06:04:56 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nD1ybURziLMz5k2KA65lshijwJ6yj+Chkpr+qT7CmUY=; b=NOCnZgnQklskLa jERsIQ6BdyzBdX1XIxoXLD85Kquy9CMCCIE9m/zZqHU+zEj0Io5pYRoDyJoGmKNFEOWA9Y7G9SoId qIlU/R5JjFbHXn1MMBiZ0F3HLPqx9WUqPX7MlI6LfxIKnp9hxW2q/rr54yiVvkeU5oJmcSF0p5YOA epxTfvinMSLK7Gnq5BjKN3kFn0Gs0K59OgMPX3/n6exFpR/31ogIfhh+8exMCAhq5c4TjXAum+3jE srKlAAiOyWuuaT4TRQFPSoYySux6Zk2oH5k1VXRC6jmyDModpyCOL0ynJE/Hh/hOfoinEbRy0xE7J hNSe5nMsR9LEFnMyt+vg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTznD-000kAm-1f; Fri, 02 Sep 2022 06:04:39 +0000 Received: from mail-m11873.qiye.163.com ([115.236.118.73]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTzn9-000k5w-Ta for linux-rockchip@lists.infradead.org; Fri, 02 Sep 2022 06:04:37 +0000 Received: from localhost.localdomain (unknown [58.22.7.114]) by mail-m11873.qiye.163.com (Hmail) with ESMTPA id C37BA90034F; Fri, 2 Sep 2022 14:04:28 +0800 (CST) From: Jianqun Xu To: linus.walleij@linaro.org, heiko@sntech.de Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, Jianqun Xu Subject: [PATCH 1/2] dt-bindings: gpio: rockchip: add clock-names Date: Fri, 2 Sep 2022 14:04:25 +0800 Message-Id: <20220902060426.2980951-2-jay.xu@rock-chips.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220902060426.2980951-1-jay.xu@rock-chips.com> References: <20220902060426.2980951-1-jay.xu@rock-chips.com> MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFJSktLSjdXWS1ZQUlXWQ8JGhUIEh9ZQVlCGRhJVhhPTx1PH0JNSkwaQ1UTARMWGhIXJB QOD1lXWRgSC1lBWU5DVUlJVUxVSkpPWVdZFhoPEhUdFFlBWU9LSFVKSktPSEhVSktLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6ME06FDo4Mz02SkJRFhoVGUoe TlEaFA9VSlVKTU1JS0JDTU1CT0JCVTMWGhIXVREaAlUDDjsJFBgQVhgTEgsIVRgUFkVZV1kSC1lB WU5DVUlJVUxVSkpPWVdZCAFZQUlPS003Bg++ X-HM-Tid: 0a82fcccfdd52eafkusnc37ba90034f X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220901_230436_115102_F4D77841 X-CRM114-Status: UNSURE ( 7.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add 'clock-names' to the gpio dt node. so the driver could get clocks by a const char id, this patch names the clock-names as - 'bus': the apb clock for cpu to access the gpio controller - 'db': the debounce clock for cpu to set debounce clock rate Since the old dt nodes may have no clock-names, this patch not make them as part of 'required properties'. Signed-off-by: Jianqun Xu Reviewed-by: Krzysztof Kozlowski Acked-by: Heiko Stuebner --- .../devicetree/bindings/gpio/rockchip,gpio-bank.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml index affd823c881d..d43d4c71bebf 100644 --- a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml +++ b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml @@ -27,6 +27,12 @@ properties: - description: APB interface clock source - description: GPIO debounce reference clock source + clock-names: + minItems: 1 + items: + - const: bus + - const: db + gpio-ranges: true gpio-controller: true