From patchwork Mon Jul 25 21:21:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Dooks X-Patchwork-Id: 593331 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 3D344CCA48A for ; Mon, 25 Jul 2022 21:22:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236974AbiGYVWK (ORCPT ); Mon, 25 Jul 2022 17:22:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235455AbiGYVWJ (ORCPT ); Mon, 25 Jul 2022 17:22:09 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 387431DA60 for ; Mon, 25 Jul 2022 14:22:08 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id k11so17247852wrx.5 for ; Mon, 25 Jul 2022 14:22:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SUeq44FpieZZf39MOcw6sGKQagUVcJcqFQ1h6qbHWHc=; b=QoaObyUa7vRdqP162PPe5wTqXmtOq9hn6hflF9KX4K1t0E1Ga6OSjrxeGdVsqm6Ejd 3/Qlz2Ly9qpmLngY7LQuImeQdgJNhmKRi6L4phaSbaf/0+nrx0CsJvGWuRVbjpoiCc0E r6xn/YVNgDBwPZRApNILnnN3MwKpe2sg32YepDiaFWBYjfZV6O7yhCaR2aTrVJQ4q/1P U+w+02akDiacKh4CM+IA6DUPlUbH9A0GveJuUFRQvcjTn2Nr5O4jeLBGgRDiOVKF+leP NnHP8qTiLeNzCEwnFum4MtJI2eEDMoQgmgrxeE0hRKp+zjaANcQIC4MsRtRyr4CAxrZx vlqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SUeq44FpieZZf39MOcw6sGKQagUVcJcqFQ1h6qbHWHc=; b=nqMQO0gyR19bqAiqlPym3jT5o3r5tl8yBBSCcIEQjdtbopAbTf/9Leo0ccPbzJyBFT DW1BBM++Kdjk4zq52l3iT2qp6yIZKEasOk/t19MyiUIG+kGMF2JUDRc8wZpxOlA1E67X /8tsJyMrlLoMpdm24LEHr0B0bqCMGVXEqwTtyeguBH4ndxQxXwP3ezJLe3qL2bSPQMbD IRljWxbznbBCNpuDkYX4M8TFfpKv1IWcRl/+DW0uhSq8Io87I7oAe1AwxME1tFJK+3KN EvKC8yUN30loIXaWR9AZjGqgPqkS9dSWoiveDJA2VNsB52gEvLOdBirlVJHC+Q57IBTd YA6Q== X-Gm-Message-State: AJIora+n1SPbQ1anT6eLQ94ZVLFJYuR536eWhl9utf6/CkzSooVymWzj n+bTGu7tlkXz2t42KG0dpy0fpw== X-Google-Smtp-Source: AGRyM1u+jEYf7OjdadzD6OQaGE/LY1uO7V4UgXV1VqkgSHsKp0YdSy+fphLFKub6vhTkDajBV/jmVA== X-Received: by 2002:a5d:6c6b:0:b0:1ea:77ea:dde8 with SMTP id r11-20020a5d6c6b000000b001ea77eadde8mr8742953wrz.690.1658784126607; Mon, 25 Jul 2022 14:22:06 -0700 (PDT) Received: from localhost.localdomain (cpc152649-stkp13-2-0-cust121.10-2.cable.virginm.net. [86.15.83.122]) by smtp.gmail.com with ESMTPSA id i13-20020a05600011cd00b0021d6924b777sm12656348wrx.115.2022.07.25.14.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jul 2022 14:22:06 -0700 (PDT) From: Ben Dooks To: 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 , Ben Dooks Subject: [[PATCH v2] 2/9] dt-bindings: pwm: snps,pwm add pwm number Date: Mon, 25 Jul 2022 22:21:33 +0100 Message-Id: <20220725212140.741644-2-ben.dooks@sifive.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220725212140.741644-1-ben.dooks@sifive.com> References: <20220725212140.741644-1-ben.dooks@sifive.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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' + description: u32 value representing the number of PWM devices + required: - "#pwm-cells" - compatible - reg - clocks - clock-names + - snps,pwm-number additionalProperties: false