From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 846DEC43334 for ; Tue, 26 Jul 2022 10:13:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232548AbiGZKND (ORCPT ); Tue, 26 Jul 2022 06:13:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238374AbiGZKM6 (ORCPT ); Tue, 26 Jul 2022 06:12:58 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 432EA3204F for ; Tue, 26 Jul 2022 03:12:57 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id v17so527191wrr.10 for ; Tue, 26 Jul 2022 03:12:57 -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=KpDJt7diBYhXqf86qTu6u3v0YKOMKpaah1tcpZNZNoI=; b=SQGWobCQ3gRFNB/U2WIAeeUF7tzqGOWJw+UhDq6jvws1FE9aaJ1cxmPWRujP/xSf9G eYYa9WJ+XPCIXYGi3RJI6mnYY9gLvLO5iHrSmMipte72d4E73h0UoNZfusBlbtYoABC3 yRxOnnm1hdW9O6cDPaDADUDANJvdoo1LFAahSUrj5ixfoyE/HfehvalZET1SJihdGLpR yR7sjcQVP8jaUBvate/rRZCmylGwAs1NWH6rR4QUGvshyzFrFePTvgrynpOmmgEHHHQk 7FG0OoTXd+VwYlLDJlLzdQIDuGDCOuhGjB9DSNgKsBRTeGtIbOtNkPZfDD1+ZJBckZ2l KUrQ== 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=KpDJt7diBYhXqf86qTu6u3v0YKOMKpaah1tcpZNZNoI=; b=6MZg96YtZ7ZquncfZSJLVgCCMWSyVM7TnPxrf2BnHRO6G1OurwV5fKeMI5B+EGKcbj V7ugQH2nuOn0A6WziENti2ev8BexBAwMjDBIsJ1hWecxNXW1XXLqFtP49cwh3GgoNnYC iUbWJr/+t0HbMGCQKkjP8JNdOfKEeb5MTDBnw/VE7yfJPrqhJafGW3u/XGx18scuV87K 9d2k3DGPQD1aFafuKPxKMUlmzXbqlLLziY9kpPv/Ifh7uTNekYNibn3oF7Ejhe/9HK0l XxOnA5BrClVLNE1Ao7l9P3istpBfzCWS9sH7xAJDfVzYLj/s1FcGpjGUe2I+pNtPNkga dUrQ== X-Gm-Message-State: AJIora9Ao7myTikyu2cYMFTn8LARVzbrQ9rFbZFU1Hltd0K1mN2AcmHT MSRsLQYkRovcAm2n/XbRu9iVJQ== X-Google-Smtp-Source: AGRyM1vy3qHffmr/ouCqUar69ahBui8gUY36JEptYA422eaHh/p2xV9rAKrICAXxxVmpkaPrVS3AHA== X-Received: by 2002:a05:6000:18a2:b0:21d:c50a:7c9b with SMTP id b2-20020a05600018a200b0021dc50a7c9bmr10441543wri.511.1658830375374; Tue, 26 Jul 2022 03:12:55 -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 u16-20020a05600c00d000b003a31c4f6f74sm24686809wmm.32.2022.07.26.03.12.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Jul 2022 03:12:54 -0700 (PDT) Message-ID: <10df6c1c-7e99-a036-6c84-8db36b727ce1@sifive.com> Date: Tue, 26 Jul 2022 11:12:53 +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] 2/9] dt-bindings: pwm: snps,pwm add pwm number 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> <20220725212140.741644-2-ben.dooks@sifive.com> <308d6189-c100-e9fc-e4b2-0639d993e436@linaro.org> From: Ben Dooks In-Reply-To: <308d6189-c100-e9fc-e4b2-0639d993e436@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/07/2022 11:08, Krzysztof Kozlowski wrote: > On 25/07/2022 23:21, Ben Dooks wrote: >> Add snps,pwm-number property to indicate if the block does not have >> all 8 of the PWM blocks. >> >> Not sure if this should be a general PWM property consider optional >> for all PWM types, so have added a specific one here (there is only >> one other controller with a property for PWM count at the moment) >> >> Signed-off-by: Ben Dooks >> --- >> Documentation/devicetree/bindings/pwm/snps,pwm.yaml | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/pwm/snps,pwm.yaml b/Documentation/devicetree/bindings/pwm/snps,pwm.yaml >> index 594085e5e26f..e95f518b3974 100644 >> --- a/Documentation/devicetree/bindings/pwm/snps,pwm.yaml >> +++ b/Documentation/devicetree/bindings/pwm/snps,pwm.yaml >> @@ -30,11 +30,16 @@ properties: >> - const: bus >> - const: timer >> >> + snps,pwm-number: >> + $ref: '/schemas/types.yaml#/definitions/uint32' > > 1. No quotes > 2. Add minimum and maximum (it looks like there are such). > >> + description: u32 value representing the number of PWM devices > ok, thanks.