From patchwork Mon Jun 13 17:18:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 12879775 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 DA622C433EF for ; Mon, 13 Jun 2022 17:19:25 +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: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:In-Reply-To:References: List-Owner; bh=SD1klRFsm+yNHIr3olg8yR4akUHbWvrCpMMT+v6cVM0=; b=oZmmSQsRTMm6oQ nCFlcgHsh1d/86asKg8fDMhC8M463Ycn1nL9NymYB9MdMNDgaCv2+/Zj3YwuHIfnMVDAPL9lqCklE G20U/4JCsunvhWh4sQL3dwRRUBtgCBR6Mzg28WZnTreC6EIpqFPJDo8efMpjTcpD5URQLo8PhDpRn dxnRPXZPQ8PXV7puLa1z+ROdxFWjnyHmbMKFBgJ9Ijah4SUd9wkPuH0NZb5GH7BNoY+QJoKm71VL9 9KPGt3IJa5Q2e2h0NlwIXvJBzDhfVLPbfRgeLJgatTgjw7zN+P6wJq/gxDevWmNzuYjOCqsd954Ix bQwwb7VsiAnrMlZI7nKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0nhl-004uZC-BT; Mon, 13 Jun 2022 17:18:21 +0000 Received: from mail-io1-f51.google.com ([209.85.166.51]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0nhg-004uWS-1H for linux-arm-kernel@lists.infradead.org; Mon, 13 Jun 2022 17:18:17 +0000 Received: by mail-io1-f51.google.com with SMTP id y79so6801388iof.2 for ; Mon, 13 Jun 2022 10:18:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4fD13eHHlp2+lui4IoKUdeairGp7Zb+ZDDW9xWVxKeM=; b=R7jEdQGX1YD0OuwrhTa2Lyk9lPhUFhbLzIDPdggrkVY1P+A8T8G11oxj7nRUF49sFw ytpvv3Ip+D+DcmLqqmCVZdO6hCPjXJwClzFexbXFq+dgCwDWUiMYv5w1j623PprOF/if hGkqdZlzhFbtQ611uxTEREG7Uxe/5sx3eHt6hXuoQnpb8qggs566eADi5hMbbjBv+K+/ OXACcWoaY0KZ5cXMajsEelVPvMVe+lZbHhJP8YVj7ULSeByurqi9ObyTTmmdqVQ+qPfK mn2oK5u2CzYOmufiboogUGaKVlcWwyR77+fzjHe+/guPC+JTn8dEU/JPDdKN5SbUPX7N 1ngw== X-Gm-Message-State: AOAM531rPWmqj9OMy2/kTrwqBLZjC3TkHI0KqFWw5VNun+R96Tfmo9KX uuVIzLIUnEpM6+v44HslzKEvVsGaKA== X-Google-Smtp-Source: ABdhPJzSTeYoSE44evzI9ByeP6HccjEciBVYXimkrxLpA763NQyy/uPTESBXfj9TzQcwZa4Wf5MCKQ== X-Received: by 2002:a6b:b808:0:b0:669:b197:9615 with SMTP id i8-20020a6bb808000000b00669b1979615mr409129iof.122.1655140693052; Mon, 13 Jun 2022 10:18:13 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.251]) by smtp.googlemail.com with ESMTPSA id ck19-20020a0566383f1300b00331a211407fsm3740374jab.93.2022.06.13.10.18.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 10:18:12 -0700 (PDT) From: Rob Herring To: Krzysztof Kozlowski , Andre Przywara Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: vexpress-sysreg: Add deprecated GPIO provider properties Date: Mon, 13 Jun 2022 11:18:07 -0600 Message-Id: <20220613171809.3928949-1-robh@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220613_101816_122859_709F1DA6 X-CRM114-Status: UNSURE ( 9.31 ) X-CRM114-Notice: Please train this message. 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 While the current binding expects a child GPIO node, the old style binding with GPIO provider properties in the parent vexpress-sysreg node is still in use. Add the GPIO provider properties as deprecated. Cc: Andre Przywara Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml b/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml index b5e26e41f88c..2d2afada5ad1 100644 --- a/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml +++ b/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml @@ -29,6 +29,13 @@ properties: ranges: true + gpio-controller: + deprecated: true + + "#gpio-cells": + deprecated: true + const: 2 + additionalProperties: false patternProperties: From patchwork Mon Jun 13 17:18:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 12879776 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 1DEBBC433EF for ; Mon, 13 Jun 2022 17:19: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: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=DgJSFpoMJvE6mAcR2s5bNax6U4GbLUM9HXKdXBbV7RY=; b=E5nlebrWttEQAf LJM0QbX7Ou3nmP3dT80w96SKdx8x9skrlnsJJU4f+2T7QCcfkYc4i5YlpGXmZiILIYKH9hqhyGzYF SvtZWp8xjggneTXZ1ZfqcOCeAlL08yAVqOR39MQ8ZMHlme3vC2x1kyQ5AUKDnjkllOCraw9T3CrdG CtNrRF++TvqT/VruWExlpKBnt3vX+4GbwZW6Ia8CiRAVguk5T6+f/MMSVyI44C+W5NaG477Img8TE GT+Ig1l1GaWAQo3iODJxMARFtiotYPXeBmI7iuegppwaeYMANFKnzqA75EbZ+Homaetzp4myco/EQ 7u6nvK/luSHZsFL6GFqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0nhy-004ueP-Uc; Mon, 13 Jun 2022 17:18:35 +0000 Received: from mail-io1-f50.google.com ([209.85.166.50]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0nhh-004uXl-Tc for linux-arm-kernel@lists.infradead.org; Mon, 13 Jun 2022 17:18:19 +0000 Received: by mail-io1-f50.google.com with SMTP id a10so6776615ioe.9 for ; Mon, 13 Jun 2022 10:18:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2mnX/lv1CoSM2GJgNr/IeYJZ7Y+yiMOfA3Jp6IUIPGQ=; b=YelobBobvzpsy+n+A234ThlDSEC62C4/XBQESElPiMZVuYnAhgvBPZXORelpiPT7xe 0+UJ6GPXiCQZ+KyIsYQfQf0I92VwL1VPphQI9D8HBK2j5UM9noh9+pgjP42d3INzQeNj nOzrE7zicndzzcjoVnLzxANh+wW0FO/Ae5WFy9p+M43Jcp3JYRVKGfD9IRYPscrsrUYK UAgyHzxRWa3pKBjncxCv/rgBwKRozr7IQkRDMIOBzLqyKRnJ3tjON9aUUaz1/4JEvCYs K4eQoJW5don5PklRppdYGRwy/f1OEi0H92SNmw+wpxaWM4kzz6UZwul1PrxWvJR0zJra UEng== X-Gm-Message-State: AOAM530b7jmNnSaMpx5ovfKDQKFFxTdhb479luYApMCys6GO/EMtkpUT gSKpyF8+mlDGVGlYmQeg4FRJLO1Dsw== X-Google-Smtp-Source: ABdhPJyT+r+axI1HGJ7u/QULVEEOiPQMBKwM12KG6nBrTwWFQLTAWYm0Y3TfwVYELfwpCFVfsRf3pw== X-Received: by 2002:a05:6638:22d4:b0:333:f776:e896 with SMTP id j20-20020a05663822d400b00333f776e896mr475569jat.75.1655140694423; Mon, 13 Jun 2022 10:18:14 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.251]) by smtp.googlemail.com with ESMTPSA id ck19-20020a0566383f1300b00331a211407fsm3740374jab.93.2022.06.13.10.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 10:18:14 -0700 (PDT) From: Rob Herring To: Krzysztof Kozlowski , Andre Przywara Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: vexpress-sysreg: Allow for no child nodes Date: Mon, 13 Jun 2022 11:18:08 -0600 Message-Id: <20220613171809.3928949-2-robh@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220613171809.3928949-1-robh@kernel.org> References: <20220613171809.3928949-1-robh@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220613_101817_974760_3624F64E X-CRM114-Status: GOOD ( 12.04 ) 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 It is valid for arm,vexpress-sysreg to have no child nodes when either the deprecated binding without child nodes is used or a platform has no GPIOs. If there are no child nodes, then "#address-cells" and "#size-cells" should not be required. However, "reg" should be present in all cases, so let's add it now. Cc: Andre Przywara Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml b/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml index 2d2afada5ad1..f04db802a732 100644 --- a/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml +++ b/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml @@ -74,8 +74,7 @@ patternProperties: required: - compatible - - "#address-cells" - - "#size-cells" + - reg examples: - |