Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1590074rwe; Thu, 1 Sep 2022 23:40:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR78osHgBbgr8ZWGI7TJfXIZV5n76xAMZRWFJZzwaI1BfhxqpaD7i9tDUhyxDK0kEPK47KQs X-Received: by 2002:a17:903:26c1:b0:174:ef08:6c75 with SMTP id jg1-20020a17090326c100b00174ef086c75mr19573026plb.94.1662100813464; Thu, 01 Sep 2022 23:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662100813; cv=none; d=google.com; s=arc-20160816; b=LqqQhwSSTtaUMFcRz7zkCn57O+Ji21kCNdivT+kpgks9rMd4qf5tObdXAz+IrQbdj6 84xMeKeXw0HEJQB6xSILmRPF2bt7exRGr2IRiPMKZ1S8zpMeahswfksxExx9hVIFByHu NDfcrH1FNc4TQHzTnIwTc6k/wmMPNMli0aC0clua+D8/9jotKC04pdYcj/74SMbnmaWr nfvJxNlOKTZON29t9TuNUiEqCSpuDeS1ebOGykRH2cAhD3URPWK7CuBhWytT8IiU1vwM G/be+DVvYJ2UNjg/ti4DjORlHUSAhRim5kSOe2prf3g2yDbWJk8eM3SYkM6N5lqDdOE8 mcVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=xxWoraOScGF6UzUHrHgnXwb5Vde8fM/JtMJ/3Mb92E8=; b=qjq59RF93i6SO73AGLXiaqQeUOhoB/dEyT6EySrSP2jckz4jEP3PtHPnFANP3m+afK AdXvoy80rEiP1Chq571ohnlBGnfNCwtZIBJnkqSdUnxRLUTGZy/sWumwkvnRDymIXViX xxsYCY/NinmY6NKtmaNXnHmfXUevPzpc782Z8mT/n6odCEcykBiXo8w8YTGsr4wNsxhA vHqHqb50jZxiWTRIMVyWdLdFfRU65B7bMaLfq8CXGW8XvZAJAkwO7eZdbId4z8BP3T6r R9UNPpYw6x0+Wf3dsnUCU5vqd2kio3Bve/2X5SLETBUJVdRZgJnC8qdtTQdzTd5nNPvL /IVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=rock-chips.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a14-20020a631a0e000000b0042ff15fca8dsi1152770pga.724.2022.09.01.23.40.00; Thu, 01 Sep 2022 23:40:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=rock-chips.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235371AbiIBGEk (ORCPT + 99 others); Fri, 2 Sep 2022 02:04:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234641AbiIBGEf (ORCPT ); Fri, 2 Sep 2022 02:04:35 -0400 Received: from mail-m11873.qiye.163.com (mail-m11873.qiye.163.com [115.236.118.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04C35ACA39; Thu, 1 Sep 2022 23:04:32 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFJSktLSjdXWS1ZQUlXWQ8JGhUIEh9ZQVlCGRhJVhhPTx1PH0JNSkwaQ1UTARMWGhIXJB QOD1lXWRgSC1lBWU5DVUlJVUxVSkpPWVdZFhoPEhUdFFlBWU9LSFVKSktPSEhVSktLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6ME06FDo4Mz02SkJRFhoVGUoe TlEaFA9VSlVKTU1JS0JDTU1CT0JCVTMWGhIXVREaAlUDDjsJFBgQVhgTEgsIVRgUFkVZV1kSC1lB WU5DVUlJVUxVSkpPWVdZCAFZQUlPS003Bg++ X-HM-Tid: 0a82fcccfdd52eafkusnc37ba90034f X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- .../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 -- 2.25.1