From patchwork Sun Apr 11 13:10:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12196395 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 5ED2AC433B4 for ; Sun, 11 Apr 2021 13:12: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 01548610CB for ; Sun, 11 Apr 2021 13:12:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 01548610CB 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: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=UjseP8Wr4D7toS3EXL5Zlm7nY2sJV8QWzEBYllW8kME=; b=bOaT+zytnaXp1A1CWDwmUXc+Q1 inaRSjdXjBrYnYObP88G6K/eC/cz/ddbm3RTmZG0kfoiSnTmFqL7BeYvj8YLtlJ2QSumBbsaNp9Cd DO9f2y/qygDbTyxhmgTASUBtlEFPTQp3irTK9H2jXiB5NR3hMLkjS23mdhpqYGeYWULlh+uk+1y3m 28jX/afJQb7CMIzAhGGcMBa9uhljldV6cziUl4QuIpPefXO2C558xJdNQtvseRp5O/on9+vgVHzUS VJMJqMbebtNx4PeT/nb6wvZmFyPV73Tfz/n4YHyASgeNk3UMJOWPOzhyIwKbcUvFrCLMN1QPmLrT+ 3OHzbyiQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lVZrB-004TOm-UV; Sun, 11 Apr 2021 13:10:30 +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 1lVZr1-004TNn-8g; Sun, 11 Apr 2021 13:10:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=HSvdpIMLsn0RnpUE4sX7jib7kDhn37eZZS9bsKWgBwM=; b=GUJX+GyHbeiEe4cLBDbHME03MS 83ApTwpSEJDHNz6QGeKUTqeKAB6gn6DFaEwBKPZLw0HyCnIGGwwY1tFebV0zHpGildguWdUkYinpw UixPB751taXBt2KD/EA3Bu/gmwqe0UFkuLh5q5SQW/IvEJbJfdP7rQG94IPDEuv6JLP2F25/V4+tU pHi2WoQx98WaEn0JXyiuIaeMPK8uo+hXGCg6HV4+Hh3LqjAJdbdiswitHfp9eFbaNvl1Rg3On+/4A LSZ6VTALP3XclygoSzgkNlVeFL7ahXXmPYVHiVlIZwKXSi8ccZT96CpxL+jia/HurnmNomb7o1H9z 9OxULJqw==; Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVZqy-005WMA-68; Sun, 11 Apr 2021 13:10:17 +0000 Received: by mail-ed1-x52c.google.com with SMTP id r22so11769489edq.9; Sun, 11 Apr 2021 06:10:15 -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; bh=HSvdpIMLsn0RnpUE4sX7jib7kDhn37eZZS9bsKWgBwM=; b=FLLf+FINblf0xE6K84r49vHqlJhZXHkUC4gkjPIDXI8MGMaQBpF4cihrV6onpXTaBp vdkLL7dKxgW4JtI7yGkgR9edSUOif91Z7hayO9VyxeOIEYg0oDi5fHxj06ezRw1YS0GE /UEP0zK8DSvyaezvf7/sRSDjSFXp6C7Rqh1LEFCGDDkHE8wBeCd0bqfk2+VXr3e4YqyC CyW9iNuhrVHLL9W3AsMNlMdRbXpDERQxsFLgZzYSmwzosIxKuS3uU2zJHA7tETIwwZpf 471zec6rzuUmtCXU3WJ+/ldE4Cli6MezB/xGtRtWjOMU8LWVLzB/feura8Nk20Y4vHXd gZJQ== 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; bh=HSvdpIMLsn0RnpUE4sX7jib7kDhn37eZZS9bsKWgBwM=; b=GrVOK4aYeFz4bEXgchPqz4vpRON7zKgGKC4EDIFagDRGHEzlSyfjkVHdaaUYwiTXvW wUp8xgWezFMWwTPplxir9OXCcqG1DOb8nVaa/0IeqDZKl7IgvvzZsLEVSnIDKcqNAutz ES/Bfp/q21Zh41pHecG0LrafqK4cii1tPUil4w+yCm58Bhnjs8WuL+kA9gGPvuJdmI8P eQNhNsFHkWwAtc7j+tbadeSnEf+2dZjF1zw1hQUazCxKVeaK4I4biNXs5Eye0d/5b3eh jL7AQZtxaXwP5jFIrkITJtLRx5en4osGk4L3kfdtn6gAttgEms6+PpE+1VsEst5ea3xj 7d3w== X-Gm-Message-State: AOAM531iMKE1CjL7oDeTv3VX3mft2bB2Q2NoRu8IyIkz766/nldXhEM/ vey4buxQXZ/z03PxpgLtKTI= X-Google-Smtp-Source: ABdhPJx19OZpyYTMvsTHKcHcJM+xDYsx1U55kZsBqfMosXJyUMgV0g33n4IP6IFs7QV3sls4PaDo/Q== X-Received: by 2002:a05:6402:5153:: with SMTP id n19mr11353148edd.173.1618146614237; Sun, 11 Apr 2021 06:10:14 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id w2sm3983520eju.71.2021.04.11.06.10.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Apr 2021 06:10:13 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, lee.jones@linaro.org, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/6] dt-bindings: pwm: convert pwm-rockchip.txt to YAML Date: Sun, 11 Apr 2021 15:10:02 +0200 Message-Id: <20210411131007.21757-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210411_061016_274885_AB28D55F X-CRM114-Status: GOOD ( 18.23 ) 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 'pwm' nodes are manually verified. In order to automate this process pwm-rockchip.txt has to be converted to yaml. Signed-off-by: Johan Jonker Reviewed-by: Rob Herring --- Changed V2: changed schema for clocks and clock-names --- .../devicetree/bindings/pwm/pwm-rockchip.txt | 27 ------- .../devicetree/bindings/pwm/pwm-rockchip.yaml | 91 ++++++++++++++++++++++ 2 files changed, 91 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-rockchip.txt create mode 100644 Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml diff --git a/Documentation/devicetree/bindings/pwm/pwm-rockchip.txt b/Documentation/devicetree/bindings/pwm/pwm-rockchip.txt deleted file mode 100644 index f70956dea..000000000 --- a/Documentation/devicetree/bindings/pwm/pwm-rockchip.txt +++ /dev/null @@ -1,27 +0,0 @@ -Rockchip PWM controller - -Required properties: - - compatible: should be "rockchip,-pwm" - "rockchip,rk2928-pwm": found on RK29XX,RK3066 and RK3188 SoCs - "rockchip,rk3288-pwm": found on RK3288 SOC - "rockchip,rv1108-pwm", "rockchip,rk3288-pwm": found on RV1108 SoC - "rockchip,vop-pwm": found integrated in VOP on RK3288 SoC - - reg: physical base address and length of the controller's registers - - clocks: See ../clock/clock-bindings.txt - - For older hardware (rk2928, rk3066, rk3188, rk3228, rk3288, rk3399): - - There is one clock that's used both to derive the functional clock - for the device and as the bus clock. - - For newer hardware (rk3328 and future socs): specified by name - - "pwm": This is used to derive the functional clock. - - "pclk": This is the APB bus clock. - - #pwm-cells: must be 2 (rk2928) or 3 (rk3288). See pwm.yaml in this directory - for a description of the cell format. - -Example: - - pwm0: pwm@20030000 { - compatible = "rockchip,rk2928-pwm"; - reg = <0x20030000 0x10>; - clocks = <&cru PCLK_PWM01>; - #pwm-cells = <2>; - }; diff --git a/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml new file mode 100644 index 000000000..142ce85ce --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml @@ -0,0 +1,91 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/pwm-rockchip.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip PWM controller + +maintainers: + - Heiko Stuebner + +properties: + compatible: + oneOf: + - const: rockchip,rk2928-pwm + - const: rockchip,rk3288-pwm + - const: rockchip,vop-pwm + - items: + - const: rockchip,rk3036-pwm + - const: rockchip,rk2928-pwm + - items: + - enum: + - rockchip,rv1108-pwm + - const: rockchip,rk3288-pwm + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + maxItems: 2 + + "#pwm-cells": + enum: [2, 3] + description: + Must be 2 (rk2928) or 3 (rk3288 and later). + See pwm.yaml for a description of the cell format. + +required: + - compatible + - reg + - "#pwm-cells" + +if: + properties: + compatible: + contains: + enum: + - rockchip,rv1108-pwm + +then: + properties: + clocks: + items: + - description: Used to derive the functional clock for the device. + - description: Used as the APB bus clock. + + clock-names: + items: + - const: pwm + - const: pclk + + required: + - clocks + - clock-names + +else: + properties: + clocks: + maxItems: 1 + description: + Used both to derive the functional clock + for the device and as the bus clock. + + required: + - clocks + +additionalProperties: false + +examples: + - | + #include + pwm0: pwm@20030000 { + compatible = "rockchip,rk2928-pwm"; + reg = <0x20030000 0x10>; + clocks = <&cru PCLK_PWM01>; + #pwm-cells = <2>; + }; From patchwork Sun Apr 11 13:10:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12196393 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 6FB05C433ED for ; Sun, 11 Apr 2021 13:12:03 +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 DD922611AD for ; Sun, 11 Apr 2021 13:12:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DD922611AD 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=p3i8y1DvuaITPIGfZZbazkxPLH7RZnH3zBJjoPljaI8=; b=gDRQMzHUV/M8gz17deHDMlt9Bh OTCM5G7OiA1jD2BIQegUhJG6RBJG1H6vBY0rXOKcX9b+pspE7MgSqZTt+PZIVP0ASxqXmbt6YkY6W j6aCvyt2Qq6C7V/O1vAxw0dwPFqxHQbkDegADYmfi2KFkuwrHsRqgX6dM9bitggj49Y26Qw85ZbB/ n6jeAHLICpTC/zOSqKRhLNnopE9cWM76WzPb7ogrnhqem3qqQR+c6tQqTEsNnJ4PE5DEr0bBhGNJ+ 8ZT1mrpWElAZJ0MBWY3yV3zwpZxzbHAv+wkLlePNEiee+F1EL0fGprg1mFEzXG0lGsp9qsCr/ZM/K z1pThxjg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lVZr3-004TO6-81; Sun, 11 Apr 2021 13:10:21 +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 1lVZr1-004TNm-8g; Sun, 11 Apr 2021 13:10:19 +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=HCYzJwo6K1czJ3Ha8iJ6GUOmqyR2V8U9jZN0dmotAHY=; b=hktl9X1cfEskvUE5+hiRWhxsZO xL96VRO1uE3//mAyomk+Ix8C4y0lWHaQitb6UsqFVFbn9EuNa2dqpv25Mj4LwQEn1bXrGb3+L7j1N I9te5zzBrrqorRwSNW8KTJ1tboLAynjHoPuW2uqRRT6dijYVb9Q358ydEg8ZIH2/il9yy/4cDLaIh 6M7fRdSftIylf9E+Nh4Y6R00aG1jwzGr6cmCvRyGLEtoW9M67xwgoXZcJZfGLkN49/9shbkxj72QU tjnotDCkwm8DFdugFQB6VgT4/kz/yFzVxNYX+2cocm6zyDe58RPXnv31ytagWHGd3uwuyvCWUctsP GMYb0K0g==; 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 1lVZqy-005WMB-HG; Sun, 11 Apr 2021 13:10:17 +0000 Received: by mail-ed1-x534.google.com with SMTP id f8so11792584edd.11; Sun, 11 Apr 2021 06:10:16 -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=HCYzJwo6K1czJ3Ha8iJ6GUOmqyR2V8U9jZN0dmotAHY=; b=ZkeBDZ2ncD0wsYopNcEnE9+zUHPk5WjFI72xM+ZgXw5uYivPtVuSBMhLNSwVDswUoI NbNW8LlwM8lfsRLBk272IuTJaKQ4B0e1ikaYM1b8hlYswP23KudzecNpphb7q08rf8kp XGWukKbNYUJ8Bmp73bzFIyaHX+mr85op4Wmh2K/dwGb84tIl8nie1TnIkKucyD5sJak1 B5DO12scqQ/Nu3al4iwdIxLn2+R3yZdEc/yZPgAkdbbNJJ91sAFV+CUf3+XRZN5fwT2F xTSL/4exjRN7gT6/jV3IHh7ZbLdJKZpElZkzR/bq53M4HTBcgSWerj1X/5TflJWZmYHU mJvg== 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=HCYzJwo6K1czJ3Ha8iJ6GUOmqyR2V8U9jZN0dmotAHY=; b=MB7o3qK/bWy95MakIex9P5TsimihMhfc3VdFpYyuTVo2aN7kpbI/381TmuzXqRWd9U ySsAcRJg1gWjMMtAoCxwbXj5gi/rm/+7zdpTcg8c6FzKsAcr0UMeMf17CqAS1R4FQa6I 8eXc8qodxQx0u/2fc1ZuyzG36pZyBmNlhlkqSEbDfbNALDleg4QOesLEjlAsboGD6wla TQSvbqwm/se4McZx3X+NoOcTDnZauWComI2k4xoZGPWE1zfEK5W6qBnRrC6VQqIHXz0u mdVIsaK+NjDnuKF5sPDjbDlYVDH5fevjtCezH/tsGKAP5nkhXmELhSlq/YPMtCWmj78q py+Q== X-Gm-Message-State: AOAM530nlKRPkwTutYlDd7xHjj5wGNWAsGZj19IQHuSU09rFe6dFx3Jr dmf+tztLtfsobDRdX4XRMEiqIGkRmVOerw== X-Google-Smtp-Source: ABdhPJzpGqrXlZiBJI9Bz3cPk8TE7002GNinO06PQVO5Eh4H0wBgWlY84Q4Bp7s40YrvLiHFHbW5Rw== X-Received: by 2002:a05:6402:26c3:: with SMTP id x3mr26213604edd.126.1618146615122; Sun, 11 Apr 2021 06:10:15 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id w2sm3983520eju.71.2021.04.11.06.10.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Apr 2021 06:10:14 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, lee.jones@linaro.org, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/6] dt-bindings: pwm: add more compatible strings to pwm-rockchip.yaml Date: Sun, 11 Apr 2021 15:10:03 +0200 Message-Id: <20210411131007.21757-2-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210411131007.21757-1-jbx6244@gmail.com> References: <20210411131007.21757-1-jbx6244@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210411_061016_589912_11B42A00 X-CRM114-Status: GOOD ( 10.50 ) 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 The compatible strings below are already in use in the Rockchip dtsi files, but were somehow never added to a document, so add "rockchip,rk3328-pwm" "rockchip,rk3036-pwm", "rockchip,rk2928-pwm" "rockchip,rk3368-pwm", "rockchip,rk3288-pwm" "rockchip,rk3399-pwm", "rockchip,rk3288-pwm" "rockchip,px30-pwm", "rockchip,rk3328-pwm" "rockchip,rk3308-pwm", "rockchip,rk3328-pwm" for pwm nodes to pwm-rockchip.yaml. Signed-off-by: Johan Jonker --- Changed V2: changed schema for clocks and clock-names --- Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml index 142ce85ce..5596bee70 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml +++ b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml @@ -14,14 +14,22 @@ properties: oneOf: - const: rockchip,rk2928-pwm - const: rockchip,rk3288-pwm + - const: rockchip,rk3328-pwm - const: rockchip,vop-pwm - items: - const: rockchip,rk3036-pwm - const: rockchip,rk2928-pwm - items: - enum: + - rockchip,rk3368-pwm + - rockchip,rk3399-pwm - rockchip,rv1108-pwm - const: rockchip,rk3288-pwm + - items: + - enum: + - rockchip,px30-pwm + - rockchip,rk3308-pwm + - const: rockchip,rk3328-pwm reg: maxItems: 1 @@ -49,6 +57,7 @@ if: compatible: contains: enum: + - rockchip,rk3328-pwm - rockchip,rv1108-pwm then: From patchwork Sun Apr 11 13:10:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12196397 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 37573C433ED for ; Sun, 11 Apr 2021 13:12:17 +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 CF3DC610CB for ; Sun, 11 Apr 2021 13:12:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CF3DC610CB 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=V/fHrEuxZZwEXiJXS6BT4UT4XZgYN7Y3RSrniZsXb1A=; b=KTiL3GNWrGnzioQCmjUq20qrHE yJt95UOtPp5LnxYakdE1YOzBWVNsM3wK55DzM5jbofa+BPORdy6IeQPrNWLYw8AlRJHAK84EdO6v+ tgPB6QLGsOQUbCKoVraSWCHqGqJNPMqRlwj7m0DVNF+K3MbB/c0KKOoaJIoIP0RlGC+y3TQWVWK0j +doijL1JgFu7IE5I4mVsIio3ClU9yzlIt9OlhLVYZ2TK4YaEL3ylt1dsu9qYcfFUXcOFBmmXkST8g tQOamrhu8BgLwmnqmir1S+oOHzmZY55FfNt8cQV7lDKes28AmoaBrFQ523ZscwUFb978swOr5OMYA 9nKANKeg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lVZrP-004TQy-Ns; Sun, 11 Apr 2021 13:10:43 +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 1lVZr2-004TNq-6i; Sun, 11 Apr 2021 13:10:20 +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=260yFFsBhy1Ilpe0300ltWfnIm5n5zeKQOx10STsmU8=; b=mZ0V1lWPAMtkOAo8/2/Zd8yl4G QnoSVUsP/r7BmsyaQtZmFRcC8URen2j4/apW4ViDAVufgybO7egT1pad5n852gn44snnjE/Lx99Sl 8aT3bcSRnOsuHjQDXFfnB3xZTyjy4bzRV1+rXN7exn9Lag8rh8BhxstsnM/NsTcc3+9FzS5YNHC4Q cTjLbyfQHxSMgvzFPn8JwzV4XuGQxQtVxzW1aASbLsNcL0kyEbtLnRRQvaW/4lY/HPryKZVwguOmB 2Wo9Adz6QwOJZy6QDOjqTl6HHygPSqX7qjgAdwLDc3hlYr7dqeA9Vkhvl4MqXNZLcgEwFbdpt/LFa VC65S+6A==; Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVZqz-005WMQ-Gz; Sun, 11 Apr 2021 13:10:19 +0000 Received: by mail-ej1-x633.google.com with SMTP id e14so15774599ejz.11; Sun, 11 Apr 2021 06:10:17 -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=260yFFsBhy1Ilpe0300ltWfnIm5n5zeKQOx10STsmU8=; b=MoFzvhZVUkEPuCEA0RmK+MGnNHtcZeWyBRzaY8mE1paReKX2UZJJJuZn7AzsEo/yIs CG1qxuvJn0SHIfE8HbftaKCXX3ArfgKF2d5uKv04Aq1ngczayEz2iP6Yjqgczcm4hv9r zn1/x4pHg3w66ZJuXmPoE70QSGkYShDYr5rctFomtj8YhD4mLGijJCTaVcZ4b4p66tnq hQ5zyX2lCne65evuOOd6YWX2v/EXhm1HWsxA9hrImr5amG2fdivDsoDX0x3DieaUVhHR yXEyzBYKpI2PVpSCE2FZoYdqKaWGB4GqoaNuQk9TMaKRNopTZZtPl8c20iip1gGAiaIg /YTQ== 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=260yFFsBhy1Ilpe0300ltWfnIm5n5zeKQOx10STsmU8=; b=eTOFer5XWFWbvrdUBJ0iFvij6a/5MQ6+8PXnrMNq4hx6vFQtPPPnEyJjbO1oPjUmRD EHlTjI7tLhJaGc4KSGMkyLDPiO/xLLWi2Jl2NZjoBH2ivQpcOyPLrAn/EAiow5IGG+8x u9+JNOaEv+8wnFy7D8ZHLd8GCGynkYf1hXLOoA4mckg+ULRbMpKu+Dopw7MJgrhC4AI4 5oLecv6fyswdEd5WGmayR+gbXbaHAFRTiyoW5sv3Kllyc1gRO7J9Fwx8wkE/OwH86eo+ FQUxcPCxGhNDaxYUIdeUwtXyAvIC7MGwHQLU3sImgm8zWabeDGmu+FJJBU93yNO4I2gJ x4zA== X-Gm-Message-State: AOAM532yCEPEltIsYZLYTkCHgHZYfX+EFqodH6nfg1zpZQeK7BeNufaD RAIFysJbNriLDlUTkAer1Lg= X-Google-Smtp-Source: ABdhPJxnzLORRtr14fNC0okpdSRW1K8t7cG9PtsMq8H+5ronSRoXAchufD5QnPG23kZvaaeuN5ldUQ== X-Received: by 2002:a17:906:d9ca:: with SMTP id qk10mr22621742ejb.436.1618146616156; Sun, 11 Apr 2021 06:10:16 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id w2sm3983520eju.71.2021.04.11.06.10.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Apr 2021 06:10:15 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, lee.jones@linaro.org, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/6] ARM: dts: rockchip: remove interrupts properties from pwm nodes rv1108.dtsi Date: Sun, 11 Apr 2021 15:10:04 +0200 Message-Id: <20210411131007.21757-3-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210411131007.21757-1-jbx6244@gmail.com> References: <20210411131007.21757-1-jbx6244@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210411_061017_581104_4CCAC487 X-CRM114-Status: GOOD ( 10.66 ) 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/arm/boot/dts/rv1108-evb.dt.yaml: pwm@10280000: 'interrupts' does not match any of the regexes: 'pinctrl-[0-9]+' "interrupts" is an undocumented property, so remove them from pwm nodes in rv1108.dtsi. make ARCH=arm dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml Signed-off-by: Johan Jonker --- arch/arm/boot/dts/rv1108.dtsi | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm/boot/dts/rv1108.dtsi b/arch/arm/boot/dts/rv1108.dtsi index 68e2282f7..af033d4c9 100644 --- a/arch/arm/boot/dts/rv1108.dtsi +++ b/arch/arm/boot/dts/rv1108.dtsi @@ -217,7 +217,6 @@ pwm4: pwm@10280000 { compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; reg = <0x10280000 0x10>; - interrupts = ; clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; clock-names = "pwm", "pclk"; pinctrl-names = "default"; @@ -229,7 +228,6 @@ pwm5: pwm@10280010 { compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; reg = <0x10280010 0x10>; - interrupts = ; clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; clock-names = "pwm", "pclk"; pinctrl-names = "default"; @@ -241,7 +239,6 @@ pwm6: pwm@10280020 { compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; reg = <0x10280020 0x10>; - interrupts = ; clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; clock-names = "pwm", "pclk"; pinctrl-names = "default"; @@ -253,7 +250,6 @@ pwm7: pwm@10280030 { compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; reg = <0x10280030 0x10>; - interrupts = ; clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; clock-names = "pwm", "pclk"; pinctrl-names = "default"; @@ -391,7 +387,6 @@ pwm0: pwm@20040000 { compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; reg = <0x20040000 0x10>; - interrupts = ; clocks = <&cru SCLK_PWM0_PMU>, <&cru PCLK_PWM0_PMU>; clock-names = "pwm", "pclk"; pinctrl-names = "default"; @@ -403,7 +398,6 @@ pwm1: pwm@20040010 { compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; reg = <0x20040010 0x10>; - interrupts = ; clocks = <&cru SCLK_PWM0_PMU>, <&cru PCLK_PWM0_PMU>; clock-names = "pwm", "pclk"; pinctrl-names = "default"; @@ -415,7 +409,6 @@ pwm2: pwm@20040020 { compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; reg = <0x20040020 0x10>; - interrupts = ; clocks = <&cru SCLK_PWM0_PMU>, <&cru PCLK_PWM0_PMU>; clock-names = "pwm", "pclk"; pinctrl-names = "default"; @@ -427,7 +420,6 @@ pwm3: pwm@20040030 { compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; reg = <0x20040030 0x10>; - interrupts = ; clocks = <&cru SCLK_PWM0_PMU>, <&cru PCLK_PWM0_PMU>; clock-names = "pwm", "pclk"; pinctrl-names = "default"; From patchwork Sun Apr 11 13:10:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12196399 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 0EF51C433B4 for ; Sun, 11 Apr 2021 13:12: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 A635F610CB for ; Sun, 11 Apr 2021 13:12:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A635F610CB 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=guM5NxEF5w4WMDM/FVWFjwpa3EMpLlsJd0cOEwTbr9A=; b=D8zSSZ5THzBx2a8D8SIKt4TpnF HoqwfAL7Nh0/8SWX0JZ9woReStwXdHnkzw5jKy2JKFjPm4ZXXsQ+9AAi8je5gEs+Fbyf9rE5fbV6O uIU9eyLviVQ1O4Bw9oXhOVY497lwRo7Tjfp14rATEwGRkasikm81WGvEKRIaTgfPnTlQgqPxEXR1K cOcVCq030aOHnFw9RlWvEzqGrkOE6aYygR5yI/27SeuCMFw/dW4NtiJiN0DZossen+he9j/qV6DVE zcD34BxMB8kvwEPTwEugYAQBAshclWrLSAc5YGlN0qSLtsbM+7bxnsIuFagnFi/+N18WCoZSzQARc Iu8h3BQw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lVZrZ-004TTP-OF; Sun, 11 Apr 2021 13:10:53 +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 1lVZr2-004TO5-TD; Sun, 11 Apr 2021 13:10:21 +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=+xTKglaTtBBnIwb4sWoIFa19QpsHo2j4/zd4VoY1yJc=; b=WJsqz40T0D4BiTasYDvGrv49iD vz84KBghg/zwlE4QSPWaEirn/2IYWkjs2MS3sWBzjQKrhOGX5PZQCZAh6u+PYXDGbIk7gNpgDVTV+ I6bIqUli0CgRsee8ijUPIIuYTZ/wu76lnLwUMsXg1+mzIcck7tI1gQa8A7WkJ68Us/E7xqAlw++ud K2iU25kWrsuhpYOK6nQglVF8qWI14PuaDnLU1r2qOYgP/NQSEiDJB6tV1wjcH25m3vg6oB4PqxjxN 3/LolizX7dkOhCRF6bY0ZBpFpNYtl3JdL+qM+yZdUbroNGOzjaWH+kF3mcIfW7shYAVcdWHECMsNE FLtMcRkw==; Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVZr0-005WMe-E0; Sun, 11 Apr 2021 13:10:19 +0000 Received: by mail-ed1-x535.google.com with SMTP id m3so11805019edv.5; Sun, 11 Apr 2021 06:10:18 -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=+xTKglaTtBBnIwb4sWoIFa19QpsHo2j4/zd4VoY1yJc=; b=TujKURGt1FeHGz4K0iqBb/VqGehpedpe2hXzNLdrqyv+CTmBYZOGuVQ/MHjTiJtx2L WQ+Xr8qJxwXBLj6c/w5RqBSSzlLx5/nkwv4pzbojJ92hpa40mTx/tkvPidXov5qzIK3t OoO7XRM33sQG4v6KfCdWk9fB3jge7TFjMYhIt17lW2mOYpH4Z+EqSlCca+4pUU+2OF6u A24QMmTzndsdUyHnDrv9XV/1czyIf/V786efC3Ta1/wQmce8qof+54nPbkuV8a0z9Tre jdREJcvJFZ5hMJ+adrSbdL4rP67v5Up9y5U476RrRaw5yXMVmULtufZCHrNKX2JH6T36 nhFw== 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=+xTKglaTtBBnIwb4sWoIFa19QpsHo2j4/zd4VoY1yJc=; b=iZQetk+PY/gvKECK1AUEQypHx8qvRYTR1ymOOkoNCl+zQb+wFqYcjmcBdzkZkNEDnI 6aUc8TKEeB/nVu7vxoHKfwAhSW5PRsEzpPpNkkUK7gFCDCunlLiB3oL5950nPvGcAcbi PndGpdLlnY4xhiyp4Q6Uch0oNQvD635VSAMwZaT161nmUjrJSQTcWH8qqhVoLY2uUTGr A4X7VbrFYWaHUEgKr0+yRC5JpQwda6pio433j/8/eDA1PZHFk2/EScWUAXM3mDjSCca2 6oWupQMwxOP8hEYg2R/peBAks2w9+KoR/ytogTQziMH0xmR01gpxH3lAZVtQq5T2jXei zlPg== X-Gm-Message-State: AOAM53150D3JyZeKyfN+DBOuBa3v4kkRnZfJNUjoNbLsytraJMcNBePs l4AH2NMBl86oddvv2JP7Cg4= X-Google-Smtp-Source: ABdhPJxpWbRylv8hRSWy+Dl3+JQE8MDXnNeIdWg+QZ0c0yqg5G6HGyew3HpL9IuIVzF4jA1UVB+ddA== X-Received: by 2002:aa7:da46:: with SMTP id w6mr26215661eds.30.1618146617114; Sun, 11 Apr 2021 06:10:17 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id w2sm3983520eju.71.2021.04.11.06.10.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Apr 2021 06:10:16 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, lee.jones@linaro.org, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/6] ARM: dts: rockchip: remove clock-names from pwm nodes Date: Sun, 11 Apr 2021 15:10:05 +0200 Message-Id: <20210411131007.21757-4-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210411131007.21757-1-jbx6244@gmail.com> References: <20210411131007.21757-1-jbx6244@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210411_061018_489056_CA993757 X-CRM114-Status: GOOD ( 11.89 ) 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/arm/boot/dts/rk3036-evb.dt.yaml: pwm@20050030: clock-names: ['pwm'] is too short Devices with only one pwm clock use it to both to derive the functional clock for the device and as the bus clock. The driver does not need "clock-names" to get a handle, so remove them all. make ARCH=arm dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml Signed-off-by: Johan Jonker --- arch/arm/boot/dts/rk3036.dtsi | 4 ---- arch/arm/boot/dts/rk3288.dtsi | 4 ---- 2 files changed, 8 deletions(-) diff --git a/arch/arm/boot/dts/rk3036.dtsi b/arch/arm/boot/dts/rk3036.dtsi index 47a787a12..e24230d50 100644 --- a/arch/arm/boot/dts/rk3036.dtsi +++ b/arch/arm/boot/dts/rk3036.dtsi @@ -355,7 +355,6 @@ reg = <0x20050000 0x10>; #pwm-cells = <3>; clocks = <&cru PCLK_PWM>; - clock-names = "pwm"; pinctrl-names = "default"; pinctrl-0 = <&pwm0_pin>; status = "disabled"; @@ -366,7 +365,6 @@ reg = <0x20050010 0x10>; #pwm-cells = <3>; clocks = <&cru PCLK_PWM>; - clock-names = "pwm"; pinctrl-names = "default"; pinctrl-0 = <&pwm1_pin>; status = "disabled"; @@ -377,7 +375,6 @@ reg = <0x20050020 0x10>; #pwm-cells = <3>; clocks = <&cru PCLK_PWM>; - clock-names = "pwm"; pinctrl-names = "default"; pinctrl-0 = <&pwm2_pin>; status = "disabled"; @@ -388,7 +385,6 @@ reg = <0x20050030 0x10>; #pwm-cells = <2>; clocks = <&cru PCLK_PWM>; - clock-names = "pwm"; pinctrl-names = "default"; pinctrl-0 = <&pwm3_pin>; status = "disabled"; diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index ea7416c31..05557ad02 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -679,7 +679,6 @@ pinctrl-names = "default"; pinctrl-0 = <&pwm0_pin>; clocks = <&cru PCLK_RKPWM>; - clock-names = "pwm"; status = "disabled"; }; @@ -690,7 +689,6 @@ pinctrl-names = "default"; pinctrl-0 = <&pwm1_pin>; clocks = <&cru PCLK_RKPWM>; - clock-names = "pwm"; status = "disabled"; }; @@ -701,7 +699,6 @@ pinctrl-names = "default"; pinctrl-0 = <&pwm2_pin>; clocks = <&cru PCLK_RKPWM>; - clock-names = "pwm"; status = "disabled"; }; @@ -712,7 +709,6 @@ pinctrl-names = "default"; pinctrl-0 = <&pwm3_pin>; clocks = <&cru PCLK_RKPWM>; - clock-names = "pwm"; status = "disabled"; }; From patchwork Sun Apr 11 13:10:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12196401 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 1DFD3C433B4 for ; Sun, 11 Apr 2021 13:12:33 +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 A47A4610CB for ; Sun, 11 Apr 2021 13:12:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A47A4610CB 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=tYxCv5m3d7XUGEfUVyyebaY3vjysM+5ctOWsBzgUYOI=; b=mjgyl+QfsVfTyWw3RD3wUcabJm DXCqD74sm41EezPXyZAykePpF7LO5wtYqe1mBcQr7lBGdBgKTv98V3tvLc6eFpo90Lk+brVntIWv5 RFfFAEN/Fx0hcF7fxnFAeobvHXBUqxRwXycc+S3RBoqWRoK4+Xvo8uSM6Ih36jBEZi38KzTnIaWi7 ONZP/3cc/26AmElXzGRvLoBTJ988KL5XApTB+Jqa96ue6YE1l9tSA36dKp8OiV7tnQuTprXc6Nwk0 8qi9xDzBnHRXXAxJAebnISeOmlmN0kp55mN+pTTsNxKOQBmD6J0lZ91/5ApYjt2NUh/zELHUvINJe CE/y8j6w==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lVZrk-004TWS-2J; Sun, 11 Apr 2021 13:11:04 +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 1lVZr3-004TOB-Iu; Sun, 11 Apr 2021 13:10:21 +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=2ujtYj1V+AzSvPoFMu6+U6S2xLSiGrGvBvjS2h7YGhQ=; b=MvFpGMhEGiAgeR7jsUZwwfashB whJKwJ1p7MUHBd7IzwEfRLcNLpdTrItTRNXrpobxe15or18150GclTK61b6b3sEHRI5uJyKwMPagu KpNWmv8Km6zC9s8uHO/GElPU4rP91PTOnx21TYPem5jThTsFBvSr+K2C7CdAJVLulYzzEGMRI30Gt kBS2Z0Cq7oxH9clvspoG4bKul4NNHTK1ytSfsG41ZeCnpmqEGL8C4lB1vDzLeMhSgg5UAAMCoEwas bHjQnIdEhalSKILtsZMaXMQ8x7bcQoA8aZooHj+BRFiYb8Rmt5WKJwkMckJ/+TMlLX/gfG7kiIGnS M52V+4dA==; Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVZr1-005WMx-80; Sun, 11 Apr 2021 13:10:20 +0000 Received: by mail-ed1-x532.google.com with SMTP id r22so11769612edq.9; Sun, 11 Apr 2021 06:10:18 -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=2ujtYj1V+AzSvPoFMu6+U6S2xLSiGrGvBvjS2h7YGhQ=; b=nImbimFUrsZmgsKFZjLsGwM6DbETh5PDM8dpv9N1/pjZ5jribSOb5m3H+tIrqkcZzG XLj2bDC3+FO4WjEzer1MS7z8jj+Z06o7Us00Cel+KKrMmcwZiHPtC/I/cnivEWz/ihJ+ Y4n0W5HzatImaABA7JyqlP0I4tnKTldLiTzYBbiyah6N4wOg74N6LE7q56Gt+gEnZ9ZF 2PTgbWWas+8CkuAwkCEbHCF1CuxpM4C09zqvMqmgpbGzMAaCG/zbG7mzK+nxxBptpGhV hq9M8in+ERChD9JuqPdproppFenwxK8sk9LTGQNTpCVOPNQZQCjvoj9Z2xJyji1/5x/C E9hg== 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=2ujtYj1V+AzSvPoFMu6+U6S2xLSiGrGvBvjS2h7YGhQ=; b=Q81V3ef9bZWA1ZjFd5Bu+5LKAiNGzDQgXwPPiXJdH/ia59iL45U7DhyQu1kX78EdfY h4R+QzWYTmKbiqDi4xUvM68cEyIxsltlmRVXWbamvtCQTRAXyiiMZ7w5jqkyddb1ttiA 5Wgqg4as0YyraJoUpvbfxhUiTitu4iC6ZXEj7qRiJDLkbzOHUXdt7uARsH+d9PYRx8L1 0ogGPBAg3oOgeGOPhJni+/XTlM6iItlon5fsypyWJbUuKtVcnMP/aLwKzzuZ7bB46diB oFx8Nn5I8wwZsKKrnEpkgRYZVNmDBylVuzeWpUbM3aWR2E9o2NXtutGdl3Pxog2cByRg p12g== X-Gm-Message-State: AOAM533/mx9v+gNGK9DdDSEWPPc9JxraG/Rk8dYZF02xizFYNlddYq2T ltbE90kI6QGeJppS2FdmGE8= X-Google-Smtp-Source: ABdhPJybujYIcdFXWYyDboQF1+JnkfO3gG/0WV5MpwmcEsYfCSs1sYZQbZ9gaxClONr4PJm+vFQUcg== X-Received: by 2002:aa7:cc98:: with SMTP id p24mr25331641edt.187.1618146617918; Sun, 11 Apr 2021 06:10:17 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id w2sm3983520eju.71.2021.04.11.06.10.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Apr 2021 06:10:17 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, lee.jones@linaro.org, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/6] arm64: dts: rockchip: remove interrupts properties from pwm nodes rk3328.dtsi Date: Sun, 11 Apr 2021 15:10:06 +0200 Message-Id: <20210411131007.21757-5-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210411131007.21757-1-jbx6244@gmail.com> References: <20210411131007.21757-1-jbx6244@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210411_061019_301153_0E889486 X-CRM114-Status: GOOD ( 10.96 ) 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: pwm@ff1b0030: 'interrupts' does not match any of the regexes: 'pinctrl-[0-9]+' "interrupts" is an undocumented property, so remove them from pwm nodes in rk3328.dtsi. make ARCH=arm64 dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index c2ca358c7..5c968b3cd 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -480,7 +480,6 @@ pwm3: pwm@ff1b0030 { compatible = "rockchip,rk3328-pwm"; reg = <0x0 0xff1b0030 0x0 0x10>; - interrupts = ; clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; clock-names = "pwm", "pclk"; pinctrl-names = "default"; From patchwork Sun Apr 11 13:10:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12196403 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 8FC12C433ED for ; Sun, 11 Apr 2021 13:12:49 +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 3911A60FD8 for ; Sun, 11 Apr 2021 13:12:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3911A60FD8 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=qzf/J0U22jXqhIRUw6JlCa4IFMscmzlFC7O+cKZoDM0=; b=rUKqep3YoZzjlDKvUvLrGzfE7b XIfovDdI8Q1XQJjtXx45rkBIq+npzi5LImptOZ5FFQDPEwtgx5VtoafgVkW0xp43krN4Wvijq76xC HhoW89StQWPEbYAvGHwSldrQM/jJz54xoM7ep8qRkXqCdhQ9JjGAmCEVUUEaaN3Cfrs/hkCtPbeY6 WhHUXr7Inbwq4v1CsN/1qWy9/bUKnv+ycDtztxHP7sRByrWC3e8o4GADe0oTlELyAyhA2YpH2++KC su2rlGWohxFx46NxcFoXN//vtiHkVjMiKEPvZSHlMTMhpcbx89WJr46mkeM4liLe+TQHw6ELLNotS za4qCLHg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lVZrz-004Tck-AQ; Sun, 11 Apr 2021 13:11:19 +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 1lVZr4-004TOV-RM; Sun, 11 Apr 2021 13:10:23 +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=dP6M+sgZMuzTEGYj0l4EYUpeVr19klo1MRRCTxVz25w=; b=KER9e2wPCzGmVSCQ5PdUhjKRLS 1lI8hUHdnetkpsZg4zynZ5SUMOdH/+PJLFf6y7tkWT+8/OyW8BG44XsUGDT3FX7CUeK0wtzDPN/S/ awP+KrNwIJYGLjBuoAtcMQ4f6EXW7f8KM1RTvHL1TpBtG9y+0k6xaAGQJpROG38JRJHsF7Rh1RB1C +ZfYim//NU1CQ9iVhfXalIhogRoV0u8nH2fjxiq+VfnwKGpSVq5IhD8d7r5KjXdVj4kncqMi9quZz UtBhhfK5qgLKTWi6eUBGp7UybuzY38DwA5/o0VjuPoHG09at9RgDh1w+goC4Zv22Keny+hdcMBZ4D P8GaQJ1g==; Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVZr2-005WNG-AR; Sun, 11 Apr 2021 13:10:21 +0000 Received: by mail-ej1-x62b.google.com with SMTP id r12so15817884ejr.5; Sun, 11 Apr 2021 06:10:19 -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=dP6M+sgZMuzTEGYj0l4EYUpeVr19klo1MRRCTxVz25w=; b=Rg+cSuaVmSjmTDibRXA8sdjDBMrmUwzphxaFPKrw1KrQju6roHl6S0t7yrl1ggfoim pk9SaOEmOJFDha66VLsFbuSLCehvUNxNnL9K1c5zu58KcNDHwLwpkkm7V2b4MUc0punt ME5rm32kVABTRbJ9wP/07zWYQhbe/G/ctzn+E8ZdDJhXnly5j1dvxgY2aVaAP6ZM2yq7 so/h8ZGUhOEPL5Ov8NznDUVaWa7EV7qeR+wYrVPazpvpEBBWEWoCXaZNK84zoJ6QM3Gs GlBwoP5grqECVRTUTygT3Dq3OBIwYBaFDCztrJZocFQNygNDCuQMaRsuDOsZkFA8/zTQ +cbw== 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=dP6M+sgZMuzTEGYj0l4EYUpeVr19klo1MRRCTxVz25w=; b=odpd+rl0r93GETm7f5MPcg4YnCSryPD9rAppcJLiTLa3dp1Ie55X7W+yx/ar9JLFl5 0i6PSl6RWg3NJs3rGcMJZxaaPTgfwx4NCwAWXQxeub9bcAvFy0tsyqa35N1mqhLDSPQv DaI3rdhX3bnOjxWlrBJb5nuJSWZVnzr/UlI/FvnEglQWe4CiXxT4RHniCwbEwAqDEagZ cgR+phk/VtlAxa98HtTD2ww4SLOP45wrxTieeuUajGXnqf+hddpJkqwjsce3SIinvGXl U36UNYJbZZS1v/F7RzNn3WBZbTiEgrHyZdX5H7pK3ag/yapCX0SXRgvXJhc1gtBfsoyD 0SJA== X-Gm-Message-State: AOAM532+eSNq5TB7LdaM2MkNBQo2kWTJmFxp+nYyItW/bFPq+kHxQgu1 AC42Y2VUq72r1N2tk5kYA/M= X-Google-Smtp-Source: ABdhPJzMrep/dqtmFqleBVmWlFLT358vORL48eeH9EjXxNOm5BPPYolk9ikhMRMe573T7MhPljHSFw== X-Received: by 2002:a17:906:b7ce:: with SMTP id fy14mr4002248ejb.261.1618146618908; Sun, 11 Apr 2021 06:10:18 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id w2sm3983520eju.71.2021.04.11.06.10.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Apr 2021 06:10:18 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, lee.jones@linaro.org, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/6] arm64: dts: rockchip: remove clock-names from pwm nodes Date: Sun, 11 Apr 2021 15:10:07 +0200 Message-Id: <20210411131007.21757-6-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210411131007.21757-1-jbx6244@gmail.com> References: <20210411131007.21757-1-jbx6244@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210411_061020_378375_8EAA23C0 X-CRM114-Status: GOOD ( 11.38 ) 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/rk3368-evb-act8846.dt.yaml: pwm@ff680030: clock-names: ['pwm'] is too short Devices with only one pwm clock use it to both to derive the functional clock for the device and as the bus clock. The driver does not need "clock-names" to get a handle, so remove them all. make ARCH=arm64 dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/rk3368.dtsi | 4 ---- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 4 ---- 2 files changed, 8 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/dts/rockchip/rk3368.dtsi index 61b0a2a90..7832e26a3 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3368.dtsi @@ -561,7 +561,6 @@ pinctrl-names = "default"; pinctrl-0 = <&pwm0_pin>; clocks = <&cru PCLK_PWM1>; - clock-names = "pwm"; status = "disabled"; }; @@ -572,7 +571,6 @@ pinctrl-names = "default"; pinctrl-0 = <&pwm1_pin>; clocks = <&cru PCLK_PWM1>; - clock-names = "pwm"; status = "disabled"; }; @@ -581,7 +579,6 @@ reg = <0x0 0xff680020 0x0 0x10>; #pwm-cells = <3>; clocks = <&cru PCLK_PWM1>; - clock-names = "pwm"; status = "disabled"; }; @@ -592,7 +589,6 @@ pinctrl-names = "default"; pinctrl-0 = <&pwm3_pin>; clocks = <&cru PCLK_PWM1>; - clock-names = "pwm"; status = "disabled"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index e93a5f320..6221b027e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1185,7 +1185,6 @@ pinctrl-names = "default"; pinctrl-0 = <&pwm0_pin>; clocks = <&pmucru PCLK_RKPWM_PMU>; - clock-names = "pwm"; status = "disabled"; }; @@ -1196,7 +1195,6 @@ pinctrl-names = "default"; pinctrl-0 = <&pwm1_pin>; clocks = <&pmucru PCLK_RKPWM_PMU>; - clock-names = "pwm"; status = "disabled"; }; @@ -1207,7 +1205,6 @@ pinctrl-names = "default"; pinctrl-0 = <&pwm2_pin>; clocks = <&pmucru PCLK_RKPWM_PMU>; - clock-names = "pwm"; status = "disabled"; }; @@ -1218,7 +1215,6 @@ pinctrl-names = "default"; pinctrl-0 = <&pwm3a_pin>; clocks = <&pmucru PCLK_RKPWM_PMU>; - clock-names = "pwm"; status = "disabled"; };