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 91D3DC433F5 for ; Fri, 17 Dec 2021 14:58:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237665AbhLQO6j (ORCPT ); Fri, 17 Dec 2021 09:58:39 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:36494 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234609AbhLQO6i (ORCPT ); Fri, 17 Dec 2021 09:58:38 -0500 Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id B1ACB3FFD5 for ; Fri, 17 Dec 2021 14:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1639753117; bh=Hw35a9zAAra+Bh4MYIJdw1ech8klD8or9kfvHyKDECw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WegxFsqUBGeoXuABS+K9lxouj0CSXrSm3bD14ZFSap/OcUVMSq4Ne5C/H8NqJCLdz OVRJZCjObJJpjIopPu/zwWkN9UB2iRVnU1S9qCQde+H8hnHFnU11mu46xrlHImwCOS p5GZVbMqnqYiPZnKE5JLC60JLEv1KZR9fAZ8cxKPQnosbZ2jemUTtGMHgD/zcu14A7 /t8CYdfN4tnoz9rSjBORmJHheMMwRwpesjfdye9WqHGcJUPI20yd12JbYAIcEQ4wd6 whNvf7VAaL0XerdCJ9oGNKSQNEeQ39Tm0GNiK5lT8uT45OHCz7jVAH2tq6TnwDRZO9 wiG131rPOmiOg== Received: by mail-lj1-f197.google.com with SMTP id q19-20020a05651c055300b0021a259ae8bbso771442ljp.4 for ; Fri, 17 Dec 2021 06:58:37 -0800 (PST) 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=Hw35a9zAAra+Bh4MYIJdw1ech8klD8or9kfvHyKDECw=; b=cQbdQ6hOhkzNuq8lzVgkgZXaK2UWXVd5cepooUqmA12+Tlg3n3AJHjDZCTAdxNNRfK Ta1u0uqGrqfCzyA911wqzidr5j/rv+eOwoihOZ3DSafDtDSzzfuK0IJv1GKApjTBUQVw HwcVGaiiBy98MPO4pX6Gibi4tQAM1QOT3veFdDvVMmiyBNr4o+OeFTAyKspa+jcBOv/0 Pc3xZLtUsDTdd0q/+rvDS2sYKIvmVOcrcfOzp130EA2MhaekPCkSnRZSatPnH21QA5yf NpYO1txsePrhd7NzQCmPEigcwb5OTY0zB/SNpBW3+ai/lTFP5aMrVBMHx7USmJ0E2hrF 9oXQ== X-Gm-Message-State: AOAM533rBnsR8SDPkwgVzq6wEqtJnD69SB2qYsvwcmWn0HQXal/koRVw xqi920EaNECIBGZYMC9qVjGmw2aZZh8s0I4pPfTl7j96W1LNX803z/n8bPzLIyVM0HUxiDhm+Ap pyluqFj/5LZDbWk8f1Ub/GXLccyWQhxLsIgppdJB1Jg== X-Received: by 2002:a2e:3c16:: with SMTP id j22mr3118001lja.158.1639753117160; Fri, 17 Dec 2021 06:58:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOFUy3T2cRGl82xVn02j230+oyfIezcftFw9B0y5rU/9OtzeUGE1r8DX0H/qzUI3hn4MMlTA== X-Received: by 2002:a2e:3c16:: with SMTP id j22mr3117988lja.158.1639753116969; Fri, 17 Dec 2021 06:58:36 -0800 (PST) Received: from [192.168.3.67] (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id b10sm1424506lfj.230.2021.12.17.06.58.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Dec 2021 06:58:36 -0800 (PST) Message-ID: Date: Fri, 17 Dec 2021 15:58:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Subject: Re: [PATCH v2 12/17] dt-bindings: pwm: add microchip corePWM binding Content-Language: en-US To: conor.dooley@microchip.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, robh+dt@kernel.org, jassisinghbrar@gmail.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, a.zummo@towertech.it, alexandre.belloni@bootlin.com, broonie@kernel.org, gregkh@linuxfoundation.org, thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, lee.jones@linaro.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pwm@vger.kernel.org, linux-riscv@lists.infradead.org, linux-crypto@vger.kernel.org, linux-rtc@vger.kernel.org, linux-spi@vger.kernel.org, linux-usb@vger.kernel.org Cc: geert@linux-m68k.org, bin.meng@windriver.com, heiko@sntech.de, lewis.hanly@microchip.com, daire.mcnamara@microchip.com, ivan.griffin@microchip.com, atish.patra@wdc.com References: <20211217093325.30612-1-conor.dooley@microchip.com> <20211217093325.30612-13-conor.dooley@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <20211217093325.30612-13-conor.dooley@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 17/12/2021 10:33, conor.dooley@microchip.com wrote: > From: Conor Dooley > > Add device tree bindings for the Microchip fpga fabric based "core" PWM controller. > > Signed-off-by: Conor Dooley > --- > .../bindings/pwm/microchip,corepwm.yaml | 61 +++++++++++++++++++ > 1 file changed, 61 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml > > diff --git a/Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml b/Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml > new file mode 100644 > index 000000000000..ed7d0351adc9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml > @@ -0,0 +1,61 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > + > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pwm/microchip,corepwm.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Microchip ip core PWM controller bindings > + > +maintainers: > + - Conor Dooley > + > +description: | > + corePWM is an 16 channel pulse width modulator FPGA IP > + > + https://www.microsemi.com/existing-parts/parts/152118 > + > +properties: > + compatible: > + items: > + - const: microchip,corepwm > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + "#pwm-cells": > + const: 2 > + > + microchip,sync-update: > + description: | > + In synchronous mode, all channels are updated at the beginning of the PWM period. > + Asynchronous mode is relevant to applications such as LED control, where > + synchronous updates are not required. Asynchronous mode lowers the area size, > + reducing shadow register requirements. This can be set at run time, provided > + SHADOW_REG_EN is asserted. SHADOW_REG_EN is set by the FPGA bitstream programmed > + to the device. Please also describe what is the meaning of the values used here. What does a value "2" mean? > + > + $ref: /schemas/types.yaml#/definitions/uint8 > + default: 0 > + > +required: > + - compatible > + - reg > + - clocks > + - "#pwm-cells" > + > +additionalProperties: false > + > +examples: > + - | > + #include "dt-bindings/clock/microchip,mpfs-clock.h" > + corePWN1: corePWM@41000000 { Here and in all patches, please skip the label. It's not helping. Node name: pwm > + compatible = "microchip,corepwm"; > + microchip,sync-update = /bits/ 8 <1>; > + clocks = <&clkcfg CLK_FIC3>; > + reg = <0x41000000 0xF0>; > + #pwm-cells = <2>; > + }; > Best regards, Krzysztof