Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp589387imn; Tue, 26 Jul 2022 04:25:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uiAv8+xcYpcM/vK9WqE/4fAthlSd3BYyhk8jLPd59q+26A7WUK9/PUKjJ8dA1Zz1ESu43e X-Received: by 2002:a05:6402:278d:b0:43b:fc0d:9ec1 with SMTP id b13-20020a056402278d00b0043bfc0d9ec1mr10301914ede.319.1658834701190; Tue, 26 Jul 2022 04:25:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658834701; cv=none; d=google.com; s=arc-20160816; b=EHq0osUxZxP2pR2QhsoVROG/wVgNClu+ToDVyPwqa9BttMz0UA/bNUbQWNp1cOwQbJ uQE2i9EluYT9FfkS0RKIKtPFz1kGDNqmmCaxz9SxSQVkRFP2HlfSeMY8NM8A4zZ0W4oJ Ss5kf1vp5HflpWqXUhOx8ZHmSZbNsYO1Blj9c5FAqQIUrvMbL14SwXMQsSVD3Wc/glTP CUxgGrqr4H5rqozilfWJDCj7NkdqcJYuc/IOEs4y0/IpdobdkAt9OxRYiFEt3uWE2L7F Hy6cq2p6i/hSycEU8DFZ/meSlkIJGeZe6Yih/l3WMHyabybdD+aBwI1OVcTH9jx2hQh6 TO+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=PiP62aeakYuyq8L6kGatq+E4dCzbXVdVsNF3PpzDUvE=; b=ikAVtklc1QYQdP/wasn345f5KE/itu8aWQuq1Me8rmOk8CRoD+fKU48D9ATMfx1fR7 sA/3Er9xU/t0fK00Y3r/l0gRg8GNLzVxKvxNvfrdOWFh65PCCNXdkUtQymF8HIAf3Bwd IdEbU4r5u+4iVa6YRgvoGL5OU+z6xPZFOwgbEi7Kd3PGpD2YlizJ5xe8X9x0bQO4Uhpw 59+z+awS2SX3KcY+pvREvi5YdGJGcvr4RNYS8PR/6itosvKtKi8ZlBAMgQJ4gSjke/5d Sg3EUMR0XO01fI/rYP6RQpeO3SoPBHIK0b/dfirmc3YkDCJ4qMfq6Nv3WvhkuaOm3cLS wrSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=HDFJP03r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7-20020aa7ce87000000b0043bdbd07d0csi8151979edv.341.2022.07.26.04.24.36; Tue, 26 Jul 2022 04:25:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=HDFJP03r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238591AbiGZKMn (ORCPT + 99 others); Tue, 26 Jul 2022 06:12:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238535AbiGZKMl (ORCPT ); Tue, 26 Jul 2022 06:12:41 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4220132068 for ; Tue, 26 Jul 2022 03:12:36 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id h9so19509231wrm.0 for ; Tue, 26 Jul 2022 03:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=PiP62aeakYuyq8L6kGatq+E4dCzbXVdVsNF3PpzDUvE=; b=HDFJP03ruCOOZf9lRSteG1d1k6+y7EjZpTDRHNdeijeX3ni7Ha4mWlVjxOs7LahNwV x9sSvgtMElp+Mlb2X2Xbap7LtY62O+iuZ3fdyOJ59GqM5lN17asr4aoEIaoQoHqU2G91 +7hUWyZ5Sya2IjS3wTp4eyfsCdVJYAhIK6UbW4N9xIXftWeT9wgLbTUAj6TyXL1Ejf+u VT6oaEHKwujUoCw9wXaGLJb9X4WNcSrf5Q6bBPEI6KE24InHrKQDG6eXowWpkggA0Bqf IEiqrxpDdO7FHfRzorxkEeVGl/W44Bu9hDxRdmcZx8PWf1W7PMytly0B5J9oDxlN+hzN Msig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=PiP62aeakYuyq8L6kGatq+E4dCzbXVdVsNF3PpzDUvE=; b=b8ZCBCxfUXPzi7shIZCxqzmtu6ItqCFnFHuwtXbMF5eZyL9kViANcynhsH8V5foN2I 3KV1CMNj7LY/CeXj2ui8lf5RhSA8pRZ1cXK5Du8HExwdJbvNRkrxQhwQgvqMKFuKkMtq JBcp92Jm/6TzZ3UyDAZGaaOp3ngoa2QeSG3CTv7fDlODD0rTbNOKCNonzPcbE4r5Vy9Q L/t59pgnusziD7O9IcZUnIxCUXPssyTnB4AEPTZyFIqUXw75uesArEthKvQcWiXASh+a FLCkXoKONarHM1fc5l9axu8g1/Q+Qc3TpzNVuTZbfxKmfAplfE9+7xdnZfhKPRsF8YPz tv1g== X-Gm-Message-State: AJIora8tq1gsFbDksdo26/elo2/EW2vhM0klDzg4qGXU5aK+1XBOK/Wv eEKVB1XvQzfKuwfGOqoMEYX9YQ== X-Received: by 2002:adf:f94b:0:b0:21e:46fe:bcdb with SMTP id q11-20020adff94b000000b0021e46febcdbmr9751255wrr.143.1658830354497; Tue, 26 Jul 2022 03:12:34 -0700 (PDT) Received: from [192.168.0.17] (cpc152649-stkp13-2-0-cust121.10-2.cable.virginm.net. [86.15.83.122]) by smtp.gmail.com with ESMTPSA id a21-20020a05600c349500b003a317ee3036sm18056759wmq.2.2022.07.26.03.12.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Jul 2022 03:12:34 -0700 (PDT) Message-ID: <8bb5103d-803e-90d2-fd93-132bb2aac2d6@sifive.com> Date: Tue, 26 Jul 2022 11:12:33 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [[PATCH v2] 1/9] dt-bindings: pwm: Document Synopsys DesignWare snps,pwm Content-Language: en-GB To: Krzysztof Kozlowski , linux-pwm@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lee Jones , u.kleine-koenig@pengutronix.de, Thierry Reding , Krzysztof Kozlowski , Greentime Hu References: <20220725212140.741644-1-ben.dooks@sifive.com> <922628f6-cbb1-b563-6464-e57959bafbcd@linaro.org> From: Ben Dooks In-Reply-To: <922628f6-cbb1-b563-6464-e57959bafbcd@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/07/2022 11:05, Krzysztof Kozlowski wrote: > On 25/07/2022 23:21, Ben Dooks wrote: >> Add documentation for the bindings for Synopsys' DesignWare PWM block >> as we will be adding DT/platform support to the Linux driver soon. >> >> Signed-off-by: Ben Dooks >> -- > > This is not proper delimiter and causes the changelog to end up in commit. > > Correct also wrong formatting of subject PATCH. I realised that once sent and forgot the cover letter. Maybe I'll try some more post covid recovery. >> v2: >> - fix #pwm-cells to be 3 >> - fix indentation and ordering issues >> --- >> .../devicetree/bindings/pwm/snps,pwm.yaml | 40 +++++++++++++++++++ >> 1 file changed, 40 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/pwm/snps,pwm.yaml >> >> diff --git a/Documentation/devicetree/bindings/pwm/snps,pwm.yaml b/Documentation/devicetree/bindings/pwm/snps,pwm.yaml >> new file mode 100644 >> index 000000000000..594085e5e26f >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/pwm/snps,pwm.yaml >> @@ -0,0 +1,40 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +# Copyright (C) 2022 SiFive, Inc. >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/pwm/snps,pwm.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Synopsys PWM controller >> + >> +maintainers: >> + - Ben Dooks >> + >> +allOf: >> + - $ref: pwm.yaml# >> + >> +properties: >> + compatible: >> + const: snps,pwm > > This is very generic compatible. I doubt that you cover here all > Synopsys PWM designs, past and future. You need a specific compatible. From what I can get from the documentation (2.13a) there hasn't been a huge external interface change and what has been added is all part of synthesis time options. >> + >> + "#pwm-cells": >> + const: 3 >> + >> + clocks: >> + items: >> + - description: Interface bus clock >> + - description: PWM reference clock >> + >> + clock-names: >> + items: >> + - const: bus >> + - const: timer >> + >> +required: >> + - "#pwm-cells" >> + - compatible >> + - reg >> + - clocks >> + - clock-names >> + >> +additionalProperties: false > > Missing example. ok, thanks.