From patchwork Wed May 5 13:40:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12239989 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74BB6C433B4 for ; Wed, 5 May 2021 13:43:09 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C6C58611EE for ; Wed, 5 May 2021 13:43:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C6C58611EE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=zE6nGUcLHqp6QeEzsgIjLVuRqd9ugAK4H3AdpDQOLgk=; b=WQOmDl3842jyoJOIUatfeVRkpt Cr2y/xRpfJV/SdJzBCo30hHsdtwQ7Ds/Zcetm7IORjUjAUVb7vpB3xxOGpw9+te1Lc5Bky8LZJ2yw Ip+y0LBLS7+59nxCpmKtPsmyjqhN10jv7kvqxo5lFu1VYY4ObH+jKXWDf9jqRTJUWCuGeC18oHPy6 8XKb29w/h4P/r9vQM/uh9i87TBHXFyhm6IRhhUQttQC/kVC9GKYgFx+fy9Jzf2CJtQPyi5CblIYJu fEqW5wDnRtl2zQInaRqwf+lXJZN7+3Dhb1bcgiKX96IgSvw0z0eYYBnoRqqHGn84tiPiyUIOhDSkX ezYTeEcg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leHlv-001K0c-8i; Wed, 05 May 2021 13:41:03 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leHla-001JxA-BI; Wed, 05 May 2021 13:40:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=PdmQEr+jM7/Ixg4wXjBUQfBuoGiLAB+KdKUuiW4PeIk=; b=1No6B2drs4HIXDwgPg6xtugIsz gncYvjTp5PTs4fvHA8BDYFSzFiswY6WVF9HMmqnNFi9HJxQYMfxbsbjS5wGJpqsDLqSE07HybKtTR 0/sfXaA0E3AxrYXsIh8sxsVrcCgN0AaDyWZ909AXSc+kyAydYyyI4Wwccm1kJmOPibPdQWpCxnTii I/kZrqAOPxr8R+XKxWbOAPr50eAUy89orO4ylsJOW4ARry5kddG7oRu2b6xYOvyd9IKAjcc60Gwqp K00vPRtveTvv8tiTnpqxnDIF2TaNDp8wkhyU+fEslh194rNSo79E1ojIlg+pu3GvMx2+Q/51CMChq o36dNuyw==; Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leHlX-004mkL-KK; Wed, 05 May 2021 13:40:41 +0000 Received: by mail-ej1-x62c.google.com with SMTP id r9so2932778ejj.3; Wed, 05 May 2021 06:40:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PdmQEr+jM7/Ixg4wXjBUQfBuoGiLAB+KdKUuiW4PeIk=; b=mnLZdkFgT98zViCZlPp7l5kc+wB8qDy24EqbcLSXm/bCcZlxIP80m9BBcWNCVg/TFp Yd6rUYpRcjghWPVcDSmETyPOLulYdoHZOC15hrMzNu7qQixTSPCSPHzkWQx1NiB1E4KT SV/CYk3Y5UvKMLkhc4BxMhNh6oRK7dlFsRNmCEFz/sQBClgCq4Lo+jwAm0jhR3rIKBjQ W/hVMf2SyLNud/oWV7k7VBkNLgwjt00/dacddg5S2lwqv3tB2jYEfSRaVJdnsGtJMGIk DqadC0laLPkwlkHygdcY2EOur9Qf+5mPBnDuVYVnPJuq6PSQywMF3RAkt9I7+uScQtJq KDnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PdmQEr+jM7/Ixg4wXjBUQfBuoGiLAB+KdKUuiW4PeIk=; b=NEY3cBLRJ/0QM9GJJBXVjIe/NyBFhjAjnfpUlpFRkRqv2gnu36OJU4m99E7zIB+3Kz rpGRCVCtVfbTLEJgzbODrLE4F99wWUDG6sgnn2bNzXR8gd86YkdQ5ZZsCp4iCUoh0wF5 SeJsYpbuDlNnjmgeS0yQ2rgP+0aTrN6OLKw8V4yiW+XovnZjOoT3IGi8JkTdhBApg7En qxBBSlPJ1NzaR2IHcGynrKmI6SYT9PbgpUqRoAQP5epTg4uMRMwxDDwjQQ7dL/7e5IOp 381exK4A/ksDyrccG7JyG8olBdVEzQcfaW50NSdG6Z+LZ6dmDn0Trix+wzFzR+v4gYki eNwA== X-Gm-Message-State: AOAM530NKLDS3sbSd9GIcx5kotoY7q/fRQ276kdZk90BFRd8lZsEF9MC 5ufy7ZgnqMq/4k7R+R6xdMc= X-Google-Smtp-Source: ABdhPJwclRvCpcB2FvazL9f+m/Tpgiz3NMYp08CJJ5kYVVNaeD21m76aqh5XZswlcXagt3xwh+FvTg== X-Received: by 2002:a17:906:b251:: with SMTP id ce17mr26865912ejb.149.1620222038452; Wed, 05 May 2021 06:40:38 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id t7sm15397264eds.26.2021.05.05.06.40.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 May 2021 06:40:38 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, jay.xu@rock-chips.com, shawn.lin@rock-chips.com, david.wu@rock-chips.com, zhangqing@rock-chips.com, huangtao@rock-chips.com, cl@rock-chips.com, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/4] dt-bindings: gpio: convert rk3328-grf-gpio.txt to YAML Date: Wed, 5 May 2021 15:40:25 +0200 Message-Id: <20210505134028.13431-2-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210505134028.13431-1-jbx6244@gmail.com> References: <20210505134028.13431-1-jbx6244@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210505_064039_691605_EC604770 X-CRM114-Status: GOOD ( 20.68 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Current dts files with RK3328 GRF 'gpio' nodes are manually verified. In order to automate this process rk3328-grf-gpio.txt has to be converted to YAML. Rename 'grf-gpio' nodename to 'gpio'. Signed-off-by: Johan Jonker Reviewed-by: Rob Herring Reviewed-by: Linus Walleij --- .../bindings/gpio/rockchip,rk3328-grf-gpio.txt | 32 -------------- .../bindings/gpio/rockchip,rk3328-grf-gpio.yaml | 51 ++++++++++++++++++++++ 2 files changed, 51 insertions(+), 32 deletions(-) delete mode 100644 Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.txt create mode 100644 Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.yaml diff --git a/Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.txt b/Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.txt deleted file mode 100644 index f9231df17..000000000 --- a/Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.txt +++ /dev/null @@ -1,32 +0,0 @@ -Rockchip RK3328 GRF (General Register Files) GPIO controller. - -In Rockchip RK3328, the output only GPIO_MUTE pin, originally for codec mute -control, can also be used for general purpose. It is manipulated by the -GRF_SOC_CON10 register in GRF. Aside from the GPIO_MUTE pin, the HDMI pins can -also be set in the same way. - -Currently this GPIO controller only supports the mute pin. If needed in the -future, the HDMI pins support can also be added. - -Required properties: -- compatible: Should contain "rockchip,rk3328-grf-gpio". -- gpio-controller: Marks the device node as a gpio controller. -- #gpio-cells: Should be 2. The first cell is the pin number and - the second cell is used to specify the gpio polarity: - 0 = Active high, - 1 = Active low. - -Example: - - grf: syscon@ff100000 { - compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd"; - - grf_gpio: grf-gpio { - compatible = "rockchip,rk3328-grf-gpio"; - gpio-controller; - #gpio-cells = <2>; - }; - }; - -Note: The grf_gpio node should be declared as the child of the GRF (General -Register File) node. The GPIO_MUTE pin is referred to as <&grf_gpio 0>. diff --git a/Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.yaml b/Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.yaml new file mode 100644 index 000000000..ea169f6fb --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/rockchip,rk3328-grf-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip RK3328 General Register Files GPIO controller + +description: + The Rockchip RK3328 General Register File (GRF) outputs only the + GPIO_MUTE pin, originally for codec mute control, but it can also be used + for general purpose. It is manipulated by the GRF_SOC_CON10 register. + If needed in the future support for the HDMI pins can also be added. + The GPIO node should be declared as the child of the GRF node. + + The GPIO_MUTE pin is referred to in the format + + <&grf_gpio 0 GPIO_ACTIVE_LOW> + + The first cell is the pin number and + the second cell is used to specify the GPIO polarity + 0 = Active high + 1 = Active low + +maintainers: + - Heiko Stuebner + +properties: + compatible: + const: rockchip,rk3328-grf-gpio + + gpio-controller: true + + "#gpio-cells": + const: 2 + +required: + - compatible + - gpio-controller + - "#gpio-cells" + +additionalProperties: false + +examples: + - | + grf_gpio: gpio { + compatible = "rockchip,rk3328-grf-gpio"; + gpio-controller; + #gpio-cells = <2>; + }; + From patchwork Wed May 5 13:40:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12239991 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0E9CC433ED for ; Wed, 5 May 2021 13:43:26 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5F8FB613BE for ; Wed, 5 May 2021 13:43:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5F8FB613BE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=mb9yrURCE0LfuH9cY6ZiEWMgiIADqrnqekCq+EDIsGk=; b=jifQbK7ss2N5NGNtaEggAV6JHs oS9KIuMlBY6qgo7jirTHBOA750tXksYUz/FrGCCj5Q7ttjLSPYPbhygIPfebt5eQ5RVjriwz+t/5E FNVUA54O0/xGlo9h4cbrXcwXpN858XjFXkprsDUur5Yv9BaOHjpqo0KAZi8hGKK8/9I5sW3k1y/DY YDFNf8ALLw8ARu3XXxNgaY7pO5S087PFEEmmY91A8+bFIJN6Ox1E9U0NnssPEqcHTJVDJ7lN0FfP6 DAZS9TU2lBl6cjLrYzOp7ON8n6Rkwysaj2AMsFz8oKA5cxsNXWz1eSEGwCHIBTVyJcQnTTTQZiRrF rScJLDAQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leHmC-001K3M-7m; Wed, 05 May 2021 13:41:20 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leHle-001Jxb-7M; Wed, 05 May 2021 13:40:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=tRnlF/yUDsMjkRkkI/ddiVcMxp7HdXpxWaO02FRwNHw=; b=zHJc8dEZA4EXeYAwYP1ZOhl3kw lZr05eo8U4JL5NoQJdInm2s+YfAPAOAgW7qBXEeDXjT++5MZR21aCLBiMLNFiiwmTjs3N1c7bUOov BXlsOGph09ugGYTDk/tA0DEgPAkXRzGjziNaJOIRWRX92epRdmeg+Qw35bkRJLACrzBISt17uXBvP Gl9nipphL4lDU3ClnXBNaTcSdhiLEhECiGRr0cFHHQLCNJC4JF6B0PMBnwUIz8TMGF/NhVxGs//7P 1JTLv8c4wccVe1C1qEgwUdun5XCWGc3w6Mb5vnc0vbvwOpXKP/CepMRMtzXM0XsRo/Gxn1m08D6uf BzCTvg1Q==; Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leHla-004mkt-QN; Wed, 05 May 2021 13:40:45 +0000 Received: by mail-ed1-x534.google.com with SMTP id c22so2072406edn.7; Wed, 05 May 2021 06:40:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tRnlF/yUDsMjkRkkI/ddiVcMxp7HdXpxWaO02FRwNHw=; b=mcDKOCpmOck3qAHRPXaurXhMCS9F33hxt9uUF4uzV8KZnKKCKj+VKCZiyE/TbAqVWW c7QDF30RdIMjpGrKBvUe7+ArZa15ScSZrU0CmR1cqerHEDdJE45RbKMzlwWv9eDQhhx/ rb6tIBAL5RKq5XdOgUW5IACcPsdonQ/18sQI0AWYhYUQ4K9auPeAiQnnKcPYntkk0/HD UQFLfDoR3WGmccpE+bp3zEBqcLE9zvxLy749p/Hv+bJ+1ccgasFcSMd+x57RKnahRGhy jgJRo3qCnHfKZC1rxC67tLrldMQ40Ze/oTVxU2oA2TQyrr7n3jFgrIT+FF/Dz5LiIdDp GxCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tRnlF/yUDsMjkRkkI/ddiVcMxp7HdXpxWaO02FRwNHw=; b=DCDdFUBiH1Ri7TCMvICF0f1gU8iysUM57NSagwkdIFaJnAYSU6Uxr1loVftkHFW2Xg 7zfzjMNLWebhT52xuci4dOvz4sCuwu06lu3UcM9rE+EJCEZgfMzWRH4JvTPu9FP1e/S8 IOTJ0BVmoeJT8p+/Wrps8P01B/2VIrCScUXG4OXdDIzA/AwGNZN33P/Zd9qOlUg4L2TQ qcO8ALLcVADrJopK+UbUqeB4jj8eu+VdgJoIO6NU47Qf60zUQ5LoYZ06yu6nBBNKv2rH 2voklVec6NhQ/yLSfCHcECVPvMDnZjEi0rjYfxoF/bP55JQ3/RDOtn1MwY0bouT7Nlu9 TSUw== X-Gm-Message-State: AOAM531yNXwDut+czVYIWpIxlS+aJmsVYQvSGDC3/y8Ct626KfB/RqQp Tfh9+PkuV6e8DaR5In6MExs= X-Google-Smtp-Source: ABdhPJw1NuERaFlu+orbX17quFoujjaFspC77n8HakLY5oc923LLFNHNZaAaPz2ItCp1phO2aKMRVg== X-Received: by 2002:a05:6402:48f:: with SMTP id k15mr15241638edv.262.1620222041350; Wed, 05 May 2021 06:40:41 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id t7sm15397264eds.26.2021.05.05.06.40.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 May 2021 06:40:41 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, jay.xu@rock-chips.com, shawn.lin@rock-chips.com, david.wu@rock-chips.com, zhangqing@rock-chips.com, huangtao@rock-chips.com, cl@rock-chips.com, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/4] dt-bindings: soc: rockchip: convert grf.txt to YAML Date: Wed, 5 May 2021 15:40:26 +0200 Message-Id: <20210505134028.13431-3-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210505134028.13431-1-jbx6244@gmail.com> References: <20210505134028.13431-1-jbx6244@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210505_064042_885441_077C9A4C X-CRM114-Status: GOOD ( 19.82 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Current dts files with 'grf' nodes are manually verified. In order to automate this process grf.txt has to be converted to YAML. Most compatibility strings are in use with "simple-mfd" added. Add description already in use: "rockchip,rv1108-pmugrf", "syscon" Add new descriptions for: "rockchip,rk3568-grf", "syscon", "simple-mfd" "rockchip,rk3568-pmugrf", "syscon", "simple-mfd" Signed-off-by: Johan Jonker --- Changed V2: add rockchip,rk3328-grf-gpio.yaml rename grf-gpio nodename --- .../devicetree/bindings/soc/rockchip/grf.txt | 61 ----- .../devicetree/bindings/soc/rockchip/grf.yaml | 280 +++++++++++++++++++++ 2 files changed, 280 insertions(+), 61 deletions(-) delete mode 100644 Documentation/devicetree/bindings/soc/rockchip/grf.txt create mode 100644 Documentation/devicetree/bindings/soc/rockchip/grf.yaml diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.txt b/Documentation/devicetree/bindings/soc/rockchip/grf.txt deleted file mode 100644 index f96511aa3..000000000 --- a/Documentation/devicetree/bindings/soc/rockchip/grf.txt +++ /dev/null @@ -1,61 +0,0 @@ -* Rockchip General Register Files (GRF) - -The general register file will be used to do static set by software, which -is composed of many registers for system control. - -From RK3368 SoCs, the GRF is divided into two sections, -- GRF, used for general non-secure system, -- SGRF, used for general secure system, -- PMUGRF, used for always on system - -On RK3328 SoCs, the GRF adds a section for USB2PHYGRF, - -ON RK3308 SoC, the GRF is divided into four sections: -- GRF, used for general non-secure system, -- SGRF, used for general secure system, -- DETECTGRF, used for audio codec system, -- COREGRF, used for pvtm, - -Required Properties: - -- compatible: GRF should be one of the following: - - "rockchip,px30-grf", "syscon": for px30 - - "rockchip,rk3036-grf", "syscon": for rk3036 - - "rockchip,rk3066-grf", "syscon": for rk3066 - - "rockchip,rk3188-grf", "syscon": for rk3188 - - "rockchip,rk3228-grf", "syscon": for rk3228 - - "rockchip,rk3288-grf", "syscon": for rk3288 - - "rockchip,rk3308-grf", "syscon": for rk3308 - - "rockchip,rk3328-grf", "syscon": for rk3328 - - "rockchip,rk3368-grf", "syscon": for rk3368 - - "rockchip,rk3399-grf", "syscon": for rk3399 - - "rockchip,rv1108-grf", "syscon": for rv1108 -- compatible: DETECTGRF should be one of the following: - - "rockchip,rk3308-detect-grf", "syscon": for rk3308 -- compatilbe: COREGRF should be one of the following: - - "rockchip,rk3308-core-grf", "syscon": for rk3308 -- compatible: PMUGRF should be one of the following: - - "rockchip,px30-pmugrf", "syscon": for px30 - - "rockchip,rk3368-pmugrf", "syscon": for rk3368 - - "rockchip,rk3399-pmugrf", "syscon": for rk3399 -- compatible: SGRF should be one of the following: - - "rockchip,rk3288-sgrf", "syscon": for rk3288 -- compatible: USB2PHYGRF should be one of the following: - - "rockchip,px30-usb2phy-grf", "syscon": for px30 - - "rockchip,rk3328-usb2phy-grf", "syscon": for rk3328 -- compatible: USBGRF should be one of the following: - - "rockchip,rv1108-usbgrf", "syscon": for rv1108 -- reg: physical base address of the controller and length of memory mapped - region. - -Example: GRF and PMUGRF of RK3399 SoCs - - pmugrf: syscon@ff320000 { - compatible = "rockchip,rk3399-pmugrf", "syscon"; - reg = <0x0 0xff320000 0x0 0x1000>; - }; - - grf: syscon@ff770000 { - compatible = "rockchip,rk3399-grf", "syscon"; - reg = <0x0 0xff770000 0x0 0x10000>; - }; diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml new file mode 100644 index 000000000..c7916beb4 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml @@ -0,0 +1,280 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/rockchip/grf.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip General Register Files (GRF) + +maintainers: + - Heiko Stuebner + +select: + properties: + compatible: + contains: + enum: + - rockchip,px30-grf + - rockchip,px30-pmugrf + - rockchip,px30-usb2phy-grf + - rockchip,rk3036-grf + - rockchip,rk3066-grf + - rockchip,rk3188-grf + - rockchip,rk3228-grf + - rockchip,rk3288-grf + - rockchip,rk3288-sgrf + - rockchip,rk3308-core-grf + - rockchip,rk3308-detect-grf + - rockchip,rk3308-grf + - rockchip,rk3328-grf + - rockchip,rk3328-usb2phy-grf + - rockchip,rk3368-grf + - rockchip,rk3368-pmugrf + - rockchip,rk3399-grf + - rockchip,rk3399-pmugrf + - rockchip,rk3568-grf + - rockchip,rk3568-pmugrf + - rockchip,rv1108-grf + - rockchip,rv1108-pmugrf + - rockchip,rv1108-usbgrf + + required: + - compatible + +properties: + compatible: + oneOf: + - items: + - enum: + - rockchip,rk3066-grf + - rockchip,rk3188-grf + - rockchip,rk3288-sgrf + - rockchip,rv1108-pmugrf + - rockchip,rv1108-usbgrf + - const: syscon + - items: + - enum: + - rockchip,px30-grf + - rockchip,px30-pmugrf + - rockchip,px30-usb2phy-grf + - rockchip,rk3036-grf + - rockchip,rk3228-grf + - rockchip,rk3288-grf + - rockchip,rk3308-core-grf + - rockchip,rk3308-detect-grf + - rockchip,rk3308-grf + - rockchip,rk3328-grf + - rockchip,rk3328-usb2phy-grf + - rockchip,rk3368-grf + - rockchip,rk3368-pmugrf + - rockchip,rk3399-grf + - rockchip,rk3399-pmugrf + - rockchip,rk3568-grf + - rockchip,rk3568-pmugrf + - rockchip,rv1108-grf + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: true + +allOf: + - if: + properties: + compatible: + contains: + const: rockchip,px30-grf + + then: + properties: + lvds: + description: + Documentation/devicetree/bindings/display/rockchip/rockchip-lvds.txt + + - if: + properties: + compatible: + contains: + const: rockchip,rk3288-grf + + then: + properties: + edp-phy: + description: + Documentation/devicetree/bindings/phy/rockchip-dp-phy.txt + + usbphy: + description: + Documentation/devicetree/bindings/phy/rockchip-usb-phy.txt + + - if: + properties: + compatible: + contains: + const: rockchip,rk3328-grf + + then: + properties: + gpio: + type: object + + $ref: "/schemas/gpio/rockchip,rk3328-grf-gpio.yaml#" + + unevaluatedProperties: false + + power-controller: + type: object + + $ref: "/schemas/power/rockchip,power-controller.yaml#" + + unevaluatedProperties: false + + - if: + properties: + compatible: + contains: + const: rockchip,rk3399-grf + + then: + properties: + mipi-dphy-rx0: + type: object + + $ref: "/schemas/phy/rockchip-mipi-dphy-rx0.yaml#" + + unevaluatedProperties: false + + pcie-phy: + description: + Documentation/devicetree/bindings/phy/rockchip-pcie-phy.txt + + patternProperties: + "phy@[0-9a-f]+$": + description: + Documentation/devicetree/bindings/phy/rockchip-emmc-phy.txt + + - if: + properties: + compatible: + contains: + enum: + - rockchip,px30-pmugrf + - rockchip,rk3036-grf + - rockchip,rk3308-grf + - rockchip,rk3368-pmugrf + + then: + properties: + reboot-mode: + type: object + + $ref: "/schemas/power/reset/syscon-reboot-mode.yaml#" + + unevaluatedProperties: false + + - if: + properties: + compatible: + contains: + enum: + - rockchip,px30-usb2phy-grf + - rockchip,rk3228-grf + - rockchip,rk3328-usb2phy-grf + - rockchip,rk3399-grf + - rockchip,rv1108-grf + + then: + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + required: + - "#address-cells" + - "#size-cells" + + patternProperties: + "usb2-phy@[0-9a-f]+$": + type: object + + $ref: "/schemas/phy/phy-rockchip-inno-usb2.yaml#" + + unevaluatedProperties: false + + - if: + properties: + compatible: + contains: + enum: + - rockchip,px30-pmugrf + - rockchip,px30-grf + - rockchip,rk3228-grf + - rockchip,rk3288-grf + - rockchip,rk3328-grf + - rockchip,rk3368-pmugrf + - rockchip,rk3368-grf + - rockchip,rk3399-pmugrf + - rockchip,rk3399-grf + + then: + properties: + io-domains: + description: + Documentation/devicetree/bindings/power/rockchip-io-domain.txt + + unevaluatedProperties: false + +examples: + - | + #include + #include + #include + grf: syscon@ff770000 { + compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd"; + reg = <0xff770000 0x10000>; + #address-cells = <1>; + #size-cells = <1>; + + mipi_dphy_rx0: mipi-dphy-rx0 { + compatible = "rockchip,rk3399-mipi-dphy-rx0"; + clocks = <&cru SCLK_MIPIDPHY_REF>, + <&cru SCLK_DPHY_RX0_CFG>, + <&cru PCLK_VIO_GRF>; + clock-names = "dphy-ref", "dphy-cfg", "grf"; + power-domains = <&power RK3399_PD_VIO>; + #phy-cells = <0>; + }; + + u2phy0: usb2-phy@e450 { + compatible = "rockchip,rk3399-usb2phy"; + reg = <0xe450 0x10>; + clocks = <&cru SCLK_USB2PHY0_REF>; + clock-names = "phyclk"; + #clock-cells = <0>; + clock-output-names = "clk_usbphy0_480m"; + #phy-cells = <0>; + + u2phy0_host: host-port { + #phy-cells = <0>; + interrupts = ; + interrupt-names = "linestate"; + }; + + u2phy0_otg: otg-port { + #phy-cells = <0>; + interrupts = , + , + ; + interrupt-names = "otg-bvalid", "otg-id", + "linestate"; + }; + }; + }; From patchwork Wed May 5 13:40:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12239993 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29CD3C433B4 for ; Wed, 5 May 2021 13:43:40 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 802CC611EE for ; Wed, 5 May 2021 13:43:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 802CC611EE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=Anpt+81S8wMM5bj8QvX7hc2WW23UBJ4l5aCaLTAaUuQ=; b=YkH/ofWtPN4i6ghZRl9/wljmTY 00Fqs/pBWnqmhbmtQYo/1OXuWLwkAlMakv4LpgW3yT8POXJ1franlSdEjGExyjSR9VonyHUUdoZAK NrsnlOSC1LqGUtjEHPsFZBzPVyonn/Sq+Z7uW4zVA0CbwCQTw3yRKML1FKRZcYTkja6dFioHU+g3P 4WZJXyFQujetF9YwwUltLY/J03l2We6JtxqfqxJsi26d85PsWrwJ4nw1M2l/gDCU4iYdE2ieJ2QEg qHYjfljRNaPBzqugq9dKZn7VQ8CdNewQJvRD01bci1gyZEMxyXVQdZvaGAEx35bg5AgagyPq6UfEi YU/yhrHA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leHmN-001K6t-V8; Wed, 05 May 2021 13:41:32 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leHle-001Jxc-Kj; Wed, 05 May 2021 13:40:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=lihGSNM/MK5Li+Q6R5o1M4YyP4+yQiLVtLIt/qjFJZU=; b=n1FG7+OZ5rgkKxM1qa+rLtae/z +zTQFZcILP7Xiu7YC1D8YG9dbvgZ5aiBjR0tPm45LmxdhuvW8zexWxSZAQDOQw4I1FXKBZSfdOVkZ z3RJDm3ni8XjmAxdF377x2m60qZe+W+pUizD8GDtQAgUzc7S7Rddw1UUfw3+blBLF01TN8ShsyH75 SdExBl9Pd71W6UklgILVsq/aoA0D5iyeWjjcY3nEOgOuRBvaPcmhoVtVOsMYYXiCOOGwbFPFbI4Jb kxI6SDOGzP1uJQp4f5cMQRrw/Dz23/sKVcbTovv5FzLpVEgPQCbSIjtNQucOXrq7ycqMEInnxrWDg /J6NQjkQ==; Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leHlc-004mlI-2g; Wed, 05 May 2021 13:40:45 +0000 Received: by mail-ej1-x62e.google.com with SMTP id y7so2896062ejj.9; Wed, 05 May 2021 06:40:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lihGSNM/MK5Li+Q6R5o1M4YyP4+yQiLVtLIt/qjFJZU=; b=mEyY35O2TgaSv5n1e1AO9BB17dK4YsG5Oc5NeCy+V1bEp0HejaBNF74DuCIr3JPXHh 60zWeXixB6jZWofZEeLame1XKoFyz8g5XuBYNtaM8yMAwVsJ+AysdGf/KQJQeOFzYNVR 6zuLsjjI4832ZF1vyewTnVTpq+BcvKQavTzu2fWdLsIBK94GEuyjiUnfCrrP7EqXTYzN f1GGrOBlP9654jNhN/M8WLxcbAjG/UYH8TDsQPXG+CSaEK83PJw3S/Lj0y8yo7V5qIfl YF1v5Tc3XTVLhIVfmbgYErumsJqqqsH52yBQXzosJ66/a6KSOyCB4syzDTfzGDevuTYY cUSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lihGSNM/MK5Li+Q6R5o1M4YyP4+yQiLVtLIt/qjFJZU=; b=AD8U3b+PJCUgzNlSAjb3ODI3m3WBuxSKkv9/pwZPKvpO8gJ490U0ZTyYpq6hwcfz0+ ZNb/5TwlC80ng5y9ChY0j7rGP+mp6Vor4RP6ckbC9YFitfmffdgH6vaxTlnVE9OMVmEr 9d6F5vBHhXfx6mL/J/aVKEzWcCBQZ2lPlLOzrIotrEgAFRCn/K5zhTTWbUyivZi5/Rdr R3X6BcwV3ximvK+upzUqsilcPWNMRkSnV+JFlstwphOTAPqnlY+qf725zwUIReP2yem/ C9Oyuv/FLw5TXApZgpA8UIMWzSg/iOg7JvvPjokRk7+/eDi9HI7LpI+zqhGxuvS1Jokq pQ/w== X-Gm-Message-State: AOAM5306Bqoq1BlvvgOf7tTkRNypx0pw2gwVzSQmxE2CLUeJFvkzuiAK me/tUoeFyWteDz1T0/xBFvk= X-Google-Smtp-Source: ABdhPJyKXXDNvfO8leOsdVrYe5pL1L3f3tbyunePMfkdlUVautJzeCi1/Jm2OVCaPk7OPAdpiUSu6A== X-Received: by 2002:a17:906:5811:: with SMTP id m17mr27420695ejq.221.1620222042560; Wed, 05 May 2021 06:40:42 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id t7sm15397264eds.26.2021.05.05.06.40.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 May 2021 06:40:42 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, jay.xu@rock-chips.com, shawn.lin@rock-chips.com, david.wu@rock-chips.com, zhangqing@rock-chips.com, huangtao@rock-chips.com, cl@rock-chips.com, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/4] ARM: dts: rockchip: add grf register compatible for rk3066/rk3188 Date: Wed, 5 May 2021 15:40:27 +0200 Message-Id: <20210505134028.13431-4-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210505134028.13431-1-jbx6244@gmail.com> References: <20210505134028.13431-1-jbx6244@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210505_064044_138208_04DF701F X-CRM114-Status: GOOD ( 14.02 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org With the conversion of syscon.yaml minItems for compatibles was set to 2. Current Rockchip rk3xxx.dtsi file only uses "syscon" for the grf registers. Add "rockchip,rk3066-grf", "syscon" compatible for rk3066/rk3188 to reduce notifications produced with: make ARCH=arm dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/mfd/syscon.yaml Signed-off-by: Johan Jonker --- arch/arm/boot/dts/rk3xxx.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rk3xxx.dtsi b/arch/arm/boot/dts/rk3xxx.dtsi index 755c946f1..c34bc59c9 100644 --- a/arch/arm/boot/dts/rk3xxx.dtsi +++ b/arch/arm/boot/dts/rk3xxx.dtsi @@ -256,7 +256,7 @@ }; grf: grf@20008000 { - compatible = "syscon"; + compatible = "rockchip,rk3066-grf", "syscon"; reg = <0x20008000 0x200>; }; From patchwork Wed May 5 13:40:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12239995 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 772AFC433ED for ; Wed, 5 May 2021 13:43:57 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C0419613BA for ; Wed, 5 May 2021 13:43:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C0419613BA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=eSIFVB7a2xUC2MXwijBk+1DS3RGeXBCHu4+QhUwv/jg=; b=Xf2q///ylNmYZ0+myFWNQYshgI uLnvvNa8hM9kKuvVOuGEvuu0qa8XW/78GitzOPSG5pgLbjhf9776CBk1xAGraLOeetkH1cRl9WnYx h3Zy8wcvAJgblthslp/wUy/m5EVY3S7hVcdWWPigvn+Crqu/YLZKM5BCeXN1rSwkwW5MOZ5KFwuWk uGOAjntSDzwidhyGk42ZTPLVn5lwDWA3a+A3BhcIlw2sR65Fzvrp91kZ2OhFblhUjrcO0FKTNfrmX rPlJ8u12HmM5Gg2s36YOd2nCl/kJJw+0DiX1TEl8sdviQIPMwydpcBaIgpeGQgsMuciOehYcpjE1f k1Uy7Krw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leHmh-001KAt-BY; Wed, 05 May 2021 13:41:51 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leHlo-001Jz6-GQ; Wed, 05 May 2021 13:40:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=kKYG8ob0N102i49XdsyoJlNpypHz4XdicUmmY8YrBm8=; b=zenSGtuKV3YQXTOBsUdJZ7rWG8 4oPfw2ZKKlpvv8fP6u41xAa302GUHh3fhL4CtE/NNlqFgn6qqqth7BA9wUlpmEiEoEuNuWGuRiKOb YBVjRAruDsTW5fVNPwNQdI9Z83d74d6E4wyF9uTIibH2pssYC3kuwOGS/zgLY2eayZd3HV8+LD1cS kODhDk9VlNxmPoX8z/m3m2zpBj/SoKr3FpMsI/ocMMALLGhlk2pAM2qWxOwByrxtXpUnk8a942gGG JRUgJ8yRwtrXVSkjySxeYt7JtmqLgRtoyGhAc7RNTTkg/YzxzEvlmEvhAnICFc113A+06WfsmdVLS 2zZoRnZg==; Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leHll-004mlb-2P; Wed, 05 May 2021 13:40:54 +0000 Received: by mail-ed1-x52f.google.com with SMTP id di13so2093167edb.2; Wed, 05 May 2021 06:40:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kKYG8ob0N102i49XdsyoJlNpypHz4XdicUmmY8YrBm8=; b=DHIVCAKkWeUunCskq1+3bVm1E0v7w2jTyRKFbXrYkBi+0XAwbkfLQrw7lnzuhXpu7A RSOUJLDo1/IS/Q+ic0Joc2DYtRIV1wr4xNdl0x0SBy1bZ995+/kxWnes0vxFJ0+/yeMq qDoEmwEs1LveHtvkafOP/u+pTxMDmJhD5jvfdFFp09p3EiKOI+5bOBsoS7JptF3YrTbW V4zlNHKXkW899vlrjWFjonXd6otvYsIELb7RcjocT/II12ZfrXmM8nzKFdIsHkdHidE8 iq6QS4oetJufQR6UWBdGrrEknOZsitahKa2QlLeGlr8iAumpCOScRu9mqMGoPrYpgDLk B01Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kKYG8ob0N102i49XdsyoJlNpypHz4XdicUmmY8YrBm8=; b=FMawcyWKv540acOT49E2fVVcmMdNaS+5YNi0/MnQ4NScf9R7plIMPogOMmW18UPZDP C+1LqoFIO6Xpy2NvsPBRiXQO1iolVTdC5OnM3HGrTeoGv+2dS0OnlZiII2sme1R+U/Ah eTq56rBZu0Xr9caY4COzAsZzoMvAaVG+wdKjmLbKw2KM5nFQ011TvzdUr1Utrx4twGL1 uX23TWwmguvSoDY9Mkdkco00pF0AQaHSt68KC8nf5+DoHfxl25PY8KzJ04vic2VhOM1L osyBv1zrtr6cqCscojSpsoDY+1JW/yHduyBUnSFpmXQzJd9/osy6VK27PLyt6LxK50TT A9NA== X-Gm-Message-State: AOAM5321P6r7nUqEsvz6K+m2nrUsXGovB8OThGxtqAPtsb4syTrI7/EN YqTWRnnAmSp7Gcokzjl9zn4= X-Google-Smtp-Source: ABdhPJx6LAIVhCq2oyLmgHpmAt93AxOxoW0vY9p9q6RtH0sJ5O/IMoWmwQibLVVq3x1ptjSXHXITqQ== X-Received: by 2002:aa7:cdd8:: with SMTP id h24mr31096338edw.276.1620222043964; Wed, 05 May 2021 06:40:43 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id t7sm15397264eds.26.2021.05.05.06.40.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 May 2021 06:40:43 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, jay.xu@rock-chips.com, shawn.lin@rock-chips.com, david.wu@rock-chips.com, zhangqing@rock-chips.com, huangtao@rock-chips.com, cl@rock-chips.com, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/4] arm64: dts: rename grf-gpio nodename in rk3328.dtsi Date: Wed, 5 May 2021 15:40:28 +0200 Message-Id: <20210505134028.13431-5-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210505134028.13431-1-jbx6244@gmail.com> References: <20210505134028.13431-1-jbx6244@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210505_064053_133789_97BD76C2 X-CRM114-Status: GOOD ( 12.74 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org A test with the command below gives this error: /arch/arm64/boot/dts/rockchip/rk3328-a1.dt.yaml: syscon@ff100000: grf-gpio: {'compatible': ['rockchip,rk3328-grf-gpio'], 'gpio-controller': True, '#gpio-cells': [[2]], 'phandle': [[68]]} is not of type 'array' From schema: ~/.local/lib/python3.5/site-packages/dtschema/schemas/gpio/gpio-consumer.yaml Due to the regex "(? --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index 4ce49aae7..2e458fb87 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -291,7 +291,7 @@ status = "disabled"; }; - grf_gpio: grf-gpio { + grf_gpio: gpio { compatible = "rockchip,rk3328-grf-gpio"; gpio-controller; #gpio-cells = <2>;