From patchwork Wed Feb 15 21:01:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 57728 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp420778wrn; Wed, 15 Feb 2023 13:12:18 -0800 (PST) X-Google-Smtp-Source: AK7set+QCpgTMryfpE5Zpor6kl1muIx+ByefdVgEgaVTbvCmxcuY6ckwJTb5Q50edTe5hcHggXkY X-Received: by 2002:a17:907:8991:b0:8b1:2bde:5c70 with SMTP id rr17-20020a170907899100b008b12bde5c70mr3836245ejc.2.1676495538535; Wed, 15 Feb 2023 13:12:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676495538; cv=none; d=google.com; s=arc-20160816; b=u0dXB59F8F0TvF0DMcrZMpupdtPNjveh8+M7hO7c/FG5WAiBHc6YVWA4a8JFW764jd y4i1bgeqw/6dnnRmuY6D4sVya4oJZnYJFHUHMuPpfNPruqt6GPP8I5/OX+JDtOijxLfl bGBIX9IKletmpg6/DwWtU1UStDBkJCoYdcybOJKi+NsoQ9Wjw7zs018OHue+/zldxTgn 1hc3bzSOstE2zDLurKYzysS7zOFOhLj67by9QC+9YRSwwMabCCdIrxizQ54sWnm2LK8j qqmgG3s5i8CsPmhXPxFMVTJr64eisVzYbL2aMyptrZLW5RGlNoTsB1sR/n35DDQwIwg1 Ou9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=VUp+NjHQlk7QRhkHY/eVWdSJwlizf3fbd3NyJl4mf5Y=; b=Ku4mi48dfnXG+HpFTaC4v95wNljP1V4KJ6uNTNBakJNqgwKv/dxuvMAwLvra9NcJLX OrC33o0rYbbP2xJkvoWSSzABWrPOl3YYgs4rKZ0JfSDP1GCDxwuvMXxC1OFEso9U36CM 2zjy1GXSkjN5t6b4N65b8iCzQfXh/9qQGGhP93rgLwrwHv31IH+p5pCwbSB8MnDcNKpm yXYISkwKbKmXQvV1jJ6YhQ1vRq2rVXZRxPbk37c9taQuhiilaQs3213/nSt61v+B9BSq YrbKUSneK+cjXcqn4GcPErj329B51W+GT3ZmRpmOLgnEIQOXhnHzQKHzIcxntD7DeFy2 KVgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kSU8hnfk; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 17-20020a170906209100b008b14bb34aa1si1812212ejq.121.2023.02.15.13.11.55; Wed, 15 Feb 2023 13:12:18 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kSU8hnfk; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230232AbjBOVDV (ORCPT + 99 others); Wed, 15 Feb 2023 16:03:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230120AbjBOVC5 (ORCPT ); Wed, 15 Feb 2023 16:02:57 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5995C46D75; Wed, 15 Feb 2023 13:01:11 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id qw12so216114ejc.2; Wed, 15 Feb 2023 13:01:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=VUp+NjHQlk7QRhkHY/eVWdSJwlizf3fbd3NyJl4mf5Y=; b=kSU8hnfkTXFQSgIXcWAp6Q5sP/zmCOW0IILiw57c5yp6fHJZy2+0DVRf9mfN3kh+0N 7HfK1SkmG0M79Rbl1w0r2f38Sl8x2b4Am5NnHPunHqoQ41TDOanhTMWkwOoj5yxEngmr tPMPed3dwEdXiUCYs8LKt7tBZ/aQlDhrXAlruI0gkGRZnxq3ulxoKUTRlQXprTEd2FD9 LXtlW2UbCbUTP4gn/0egYl7Pfo5NBxxA63ibgwPj1plCYtL7iZ+BmxjzYhrvETrt8OMo 5oquFOz0+iBhnbfwZ+j2Amlo+2UxnbEoyCTBSSrIdYkYCdBVR4T08/2JLznuHxlauu0E R+BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VUp+NjHQlk7QRhkHY/eVWdSJwlizf3fbd3NyJl4mf5Y=; b=UGW+OAPq8eYPUXUDldIgtiMEhJlOn9jrMO5L03qEWZ5aDaXNRWFfVh3miXkLHnW5Of uRJDrYntfQyoFY1vsXQ/kQsoguPRDsLqASCdJb5bvgmsj6/AaUflKE8FCR6LAtsCd+uT 3DFkfBuLYS3+xYfX+1cy8iEMbvF8VdsXlvhdYYQYJBFnsHZzuXlKRW7Qml/52NLlaMHx 8bdGhLWNW8gLYFuV5BLS+KFIU5B57WS7f+rjk8zq0sw55wC1B1/RTg/Djb6ucWCKsvLz kTZnlpCdMeDklduiqH4aGg9yGloYvYP+m/V+PZzV6jdlLPE9W6r2sFUF41GR0AabTcAE S3kQ== X-Gm-Message-State: AO0yUKX/lU4uFzw7O1HFi90M138ZGgC5zWq3khTNWieHjaqf5t64/fVv 7Ggg+q4Niy3H99YimOrCIdBPdi5E/LM= X-Received: by 2002:a17:906:a409:b0:887:981:5f7c with SMTP id l9-20020a170906a40900b0088709815f7cmr3725847ejz.11.1676494869798; Wed, 15 Feb 2023 13:01:09 -0800 (PST) Received: from [192.168.2.1] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id ov38-20020a170906fc2600b008af574e95d7sm8202046ejb.27.2023.02.15.13.01.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Feb 2023 13:01:09 -0800 (PST) Message-ID: <038585bd-7226-b28b-93a5-e1676a57298e@gmail.com> Date: Wed, 15 Feb 2023 22:01:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 From: Johan Jonker Subject: [PATCH v3] dt-bindings: gpio: rockchip,gpio-bank: add compatible string per SoC To: brgl@bgdev.pl Cc: linus.walleij@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, heiko@sntech.de, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org References: <03627216-54b5-5d9b-f91d-adcd637819e3@gmail.com> Content-Language: en-US In-Reply-To: <03627216-54b5-5d9b-f91d-adcd637819e3@gmail.com> X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755630130086208995?= X-GMAIL-MSGID: =?utf-8?q?1757932985860298103?= Currently all Rockchip gpio nodes have the same compatible. Compatible strings should be SoC related. Signed-off-by: Johan Jonker Reviewed-by: Linus Walleij Reviewed-by: Krzysztof Kozlowski --- Changed V3: Keep enum --- .../bindings/gpio/rockchip,gpio-bank.yaml | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) -- 2.20.1 diff --git a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml index affd823c8..2e9a5179c 100644 --- a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml +++ b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml @@ -11,9 +11,28 @@ maintainers: properties: compatible: - enum: - - rockchip,gpio-bank - - rockchip,rk3188-gpio-bank0 + oneOf: + - enum: + - rockchip,gpio-bank + - rockchip,rk3188-gpio-bank0 + - items: + - enum: + - rockchip,px30-gpio-bank + - rockchip,rk3036-gpio-bank + - rockchip,rk3066a-gpio-bank + - rockchip,rk3128-gpio-bank + - rockchip,rk3188-gpio-bank + - rockchip,rk3228-gpio-bank + - rockchip,rk3288-gpio-bank + - rockchip,rk3328-gpio-bank + - rockchip,rk3308-gpio-bank + - rockchip,rk3368-gpio-bank + - rockchip,rk3399-gpio-bank + - rockchip,rk3568-gpio-bank + - rockchip,rk3588-gpio-bank + - rockchip,rv1108-gpio-bank + - rockchip,rv1126-gpio-bank + - const: rockchip,gpio-bank reg: maxItems: 1 @@ -75,7 +94,7 @@ examples: }; gpio1: gpio@2003c000 { - compatible = "rockchip,gpio-bank"; + compatible = "rockchip,rk3188-gpio-bank", "rockchip,gpio-bank"; reg = <0x2003c000 0x100>; interrupts = ; clocks = <&clk_gates8 10>;