Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3740539imw; Mon, 18 Jul 2022 13:40:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vsTLUaBqJKYnTPucE8ZcDVJCi02IeoAk3Z2tpYANCz1sHXhyciA9nkgrkXRgPvIu5lr5bG X-Received: by 2002:a17:902:b78c:b0:16b:f943:ae98 with SMTP id e12-20020a170902b78c00b0016bf943ae98mr30223736pls.102.1658176838619; Mon, 18 Jul 2022 13:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658176838; cv=none; d=google.com; s=arc-20160816; b=H34L3pDGReh4J3vlFy0uwb/TaLEFE6f19ZncyPhLuxnMiXsmMKgWNhmbi/t76u+Wd1 adF/xszig4qI1pAlNwWG09Ao3GPmxC4cG7CMF9OhSn6flmjtimtttpU3YT4ofL9x3KPU Oh9hrYfbMXmpHlcucEJgk0K0rQu2vxItoq6Fj9ULZcLJqG6aBI01OYxlNYaGgs0qTZ/4 ydV30pFHandkTnzJ/u/9fTdaK0nor5f1aK+x0NP5aUGsxpWm2FGS+CVrI9neZ62H2UHp xNbIfGPuKCKq2GkJ56F5ITfTxOp2hCB31ckej/wBxhVDS/ipxvQXpGKM3r1fZZQ4LvgW hwpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=+I5ZRgBbDf3RPxUCbZaLy/tEPOdK4YJDVpzXOSbpprc=; b=EQDaQzYF1ZCcbQ0mcBXBekD3kNj7wRg6o1i2bPty7GCBmdQuQPnseI9L+Jp0PZlQ2K 43CPDDz27coyOfQzu8zFm5VxxsM+IJjGz38Ffy5rgRfxFStvRtIr3gKBRkcYqkpUscK7 rIWFqfP6fyfrR8L8Nz5z+o3Ius5wFdIf6e1TESfANwUfXKeY2oTvLCLnEWIXNQkJHgjr kc46WWK3Uj01bB/tDyPXXd9TrqOdwGx75iQD8srPJzKL6s3SCX7G+dW0ZeDYIGL8sF0S 8wPi3J+XIy2SemhoUiO9rbOJnbTzlv7tzF3DwvSyKTgh6j+PnbaX4JV7DMgO99y/JgZU HZYA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ft7-20020a17090b0f8700b001f1e90a365fsi883746pjb.95.2022.07.18.13.40.23; Mon, 18 Jul 2022 13:40:38 -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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230263AbiGRUId (ORCPT + 99 others); Mon, 18 Jul 2022 16:08:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231786AbiGRUIc (ORCPT ); Mon, 18 Jul 2022 16:08:32 -0400 Received: from mail-il1-f176.google.com (mail-il1-f176.google.com [209.85.166.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B15028E19; Mon, 18 Jul 2022 13:08:31 -0700 (PDT) Received: by mail-il1-f176.google.com with SMTP id r4so2444847ilb.10; Mon, 18 Jul 2022 13:08:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=+I5ZRgBbDf3RPxUCbZaLy/tEPOdK4YJDVpzXOSbpprc=; b=urkqgoBJs/8re8VIbw7XbwWeqD3M3btujHkj0zmSyOHtSnEqtPClbnqOo0X5c/XcRE Obrn702yU+aTE7otsZFuafcJOBLtb7+2TvguhGy569/nXsm9o6f0iEJJYJbq3R197Ch7 chJZN3uESrptKVs2pdr3SCliB8oiuJFpMPUoex6JRsHucfiOT755nM3on9S3+nPmXy5+ TG4fFWoHLxAQMC1gIjvlXOzakHUeCB4W1ZyTu/KTdK2GgQUNAwondqWuD0xhNRWYmrBd i1FsJBcGxDpoftmzMkBzn5P/yzQUmAS5WFP2ax4HsHKRHYgHawuaTc0/ASWqqIb3WfQh XcQg== X-Gm-Message-State: AJIora9S+qbPmDSPMS5a2EpCy6Jmkw/spcJZwqxlSb1OMq0Y9cLycNZl Kh6BuMbkIT6yInaKWOXf/g== X-Received: by 2002:a05:6e02:1405:b0:2da:c72f:e3a7 with SMTP id n5-20020a056e02140500b002dac72fe3a7mr14370733ilo.113.1658174910682; Mon, 18 Jul 2022 13:08:30 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id c7-20020a056638028700b00331b9a3c5adsm5759039jaq.170.2022.07.18.13.08.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 13:08:30 -0700 (PDT) Received: (nullmailer pid 3461504 invoked by uid 1000); Mon, 18 Jul 2022 20:08:28 -0000 Date: Mon, 18 Jul 2022 14:08:28 -0600 From: Rob Herring To: Ben Dooks Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lee Jones , u.kleine-koenig@pengutronix.de, Thierry Reding , Krzysztof Kozlowski , Greentime Hu , Jude Onyenegecha , Sudip Mukherjee , William Salmon , Adnan Chowdhury Subject: Re: [PATCH 7/7] pwm: dwc: add snps,pwm-number to limit pwm count Message-ID: <20220718200828.GA3453680-robh@kernel.org> References: <20220712100113.569042-1-ben.dooks@sifive.com> <20220712100113.569042-8-ben.dooks@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220712100113.569042-8-ben.dooks@sifive.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no 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 Tue, Jul 12, 2022 at 11:01:13AM +0100, 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/pwm-synposys.yaml | 5 +++++ > drivers/pwm/pwm-dwc.c | 8 ++++++++ > 2 files changed, 13 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pwm/pwm-synposys.yaml b/Documentation/devicetree/bindings/pwm/pwm-synposys.yaml > index 38ac0da75272..15bdf764b46a 100644 > --- a/Documentation/devicetree/bindings/pwm/pwm-synposys.yaml > +++ b/Documentation/devicetree/bindings/pwm/pwm-synposys.yaml > @@ -30,11 +30,16 @@ properties: > - items: > - const: snps,pwm > > + snps,pwm-number: > + $ref: '/schemas/types.yaml#/definitions/uint32' > + description: u32 value representing the number of PWM devices Why do we need to know this? Are you going to have a consumer to a non-existent PWM? If you do need to know how many, it should be implied by the compatible string. Rob