From nobody Wed Apr 15 05:45:07 2026 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 03CD5C43334 for ; Mon, 25 Jul 2022 21:22:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236923AbiGYVWJ (ORCPT ); Mon, 25 Jul 2022 17:22:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234791AbiGYVWI (ORCPT ); Mon, 25 Jul 2022 17:22:08 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45E0F1D0F8 for ; Mon, 25 Jul 2022 14:22:07 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id i205-20020a1c3bd6000000b003a2fa488efdso4423698wma.4 for ; Mon, 25 Jul 2022 14:22:07 -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:mime-version :content-transfer-encoding; bh=lHmQZHpGxawao/KUr1/i4POaZ94konia4hXkNONDx+E=; b=F9QqMeFjwu9yp0G6OthtTiaWgsDTaInPT1jusgqebeA1i42DdZBHHbgnP/bmbU21UI c1q/8HfdyO3tvMeYxa35NtjAU3a+ob49vBVNqrXXKNa8CYt/aM3ZvYxDhFvYLRTYOQ7S 6+uouSSvnWt4BfBUWO30jtKEouRDkDqmAEKv6ZRB1PzJwd+6S1Y+y/dKt0HjjyD6YxWw +VWJ6fJ2PSInuY1J8uW0sz9hJLl8IwLoDdTqFrucLbjjUWBzFnLLgrPpfc1ts8UK/o09 rub3yUepDoN3n/+U7R9WO1s8DjEMubKtZbOiE7FD2L/vElsNpJGa4GEJgI6YpHqmHRbC fUrA== 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:mime-version :content-transfer-encoding; bh=lHmQZHpGxawao/KUr1/i4POaZ94konia4hXkNONDx+E=; b=YqRAl2XSFj+fdpWqjk6yct9u0zPkDAaxibtjYKXE+n5jBcQvoVoIlkCNNDeBoBU9ki PYq0TABTVakpuZtIBMVfGB4ffFfl/2kIUCV7eS4NbUg8GgCN6GZu6LT1HxZY1BFmxXlR H98hkEwG4WS7aC6B2cgkUMd/r7o5zCZZl1Qe39nRWdDlGA5zvljTXNa1ku0XCR51eUOg 2BIE+mStF6+Hg5UrKo6wy7hgWsmLdLGUgrT9MqOhGCzaFPME7ZCzVXhex5gpYL1NKfn9 IyFSokYx0OkZKIWX/QWbJmQPfpsZDBNEeLxp0ml+bmTbkgJ/j9uu4Aeb4lKfOiZgf0MY fhWw== X-Gm-Message-State: AJIora8ZPdtSATiZGIylYearx1j7u60Vmc2qQpWsbueIy+lUPa+KrTjA gWVNNOB4OxZBDW8Air2ifFjmeQ== X-Google-Smtp-Source: AGRyM1tPzYAZV+4e7woXtPhacFgFJ+VXWN2jfK/7TOtlfqroKnrLVBR3acothJfB5hGOvWG9er+Hrg== X-Received: by 2002:a05:600c:1d92:b0:3a3:2167:b8e5 with SMTP id p18-20020a05600c1d9200b003a32167b8e5mr22220881wms.24.1658784125739; Mon, 25 Jul 2022 14:22:05 -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:05 -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] 1/9] dt-bindings: pwm: Document Synopsys DesignWare snps,pwm Date: Mon, 25 Jul 2022 22:21:32 +0100 Message-Id: <20220725212140.741644-1-ben.dooks@sifive.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 -- 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/Document= ation/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 + + "#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 --=20 2.35.1