Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1714708pxy; Thu, 6 May 2021 14:06:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye8RWP6A4SLtYps6DCWZA26Td9v2oanGjXLWcUWhEvcBzwNm3503BOlQ2uRQlFXDqHjz4U X-Received: by 2002:a17:90a:ce8c:: with SMTP id g12mr20505174pju.231.1620335209006; Thu, 06 May 2021 14:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620335209; cv=none; d=google.com; s=arc-20160816; b=zFH3S1ow+5KmJmFBMtcRVUO0GdN+z0AVU+w4JYkWAjUD488H494EsVEcLpgvTXmh1f w4aoeZXwqxeSaFkhAJg/+ljpUxWVF8lMDOEvfqe5z+wAibTNXyIOYeRm76rnJfPc1+w9 YwLyX1l1jwFIgTGofNYoMgpY6gCLKRGSrT7gf+KwTrNcd1EbZCnGXXl06J9IhnKz34Ti 0p8z25+Sn/tWWzmFgiRjyME1rRnVfP5s2Vlavf5M0yALNv1kpKlRzyJzV/GZDLcew9Hu SEl+jhNEWKdqCU1lp1guTjrW9O4yqI9z/PUDngoh35/IIea/bTR8I8aErF+yO1kWOHy6 mwHQ== 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=bKeryIHrEzJrWyO+r99fo0J5qhxhhnLfQ516dxutmXs=; b=P0wZcS0fIXLRPerXT2Q8Et9HCO1pLgdS3LAbgId0M6w0L6ucgQr5rGtK+awOP/KRDu 9F1xlB1r4NldocLWd51JlEeGkWkxX4rHgwUgFTsjNg2FqnbHweCVowupOyktQlA1SNh0 R1SuEYd/PVEKjQ3HfCB1kke3ahLswVLXJfLaeFoMFa8TvkTtPLbT1lSjrtrz3QJSNvLd Wuha8Hz5IXfcmqqPxq1GayokAa/tHR7bLdeW+ph5w09ndx0IdTcjY8huzt10ss1KOOk3 5n24Op050zMY52hBR1azE42axyOT04OuYDgpkgSB54ZB7Svn77c7XMuayW8wynuy0Unb ANzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n126si4400002pfd.211.2021.05.06.14.06.36; Thu, 06 May 2021 14:06:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229849AbhEFVG1 (ORCPT + 99 others); Thu, 6 May 2021 17:06:27 -0400 Received: from mail-ot1-f41.google.com ([209.85.210.41]:33405 "EHLO mail-ot1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229672AbhEFVG1 (ORCPT ); Thu, 6 May 2021 17:06:27 -0400 Received: by mail-ot1-f41.google.com with SMTP id i23-20020a9d68d70000b02902dc19ed4c15so2130384oto.0; Thu, 06 May 2021 14:05:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=bKeryIHrEzJrWyO+r99fo0J5qhxhhnLfQ516dxutmXs=; b=Eedg63MwFxFxLCXYfGLDhQakpS/4c996MerKEH1ikJYdPB4Bue4Y75jvvMkYI7lJ18 OTft7QpZKBbR4UR2gEK8OS9NbMWBdisR4hRHtJHNirdUeAKmOk1GtialVgB65t4gW7B/ DIxFk6R0lZ4Rl3Myh1e+9DxY/QQCDqT7WrDZPOlMq67uPcUCOF+zTGTk9sQQqW0q3mk0 Zc8G4HfP4SHwU9H+QPfpfMWmOMb7L5axyS5tJIn835gL2lywcQ0tf/Tm0bm5OGX3bxSQ YfId5Ehi4UhJdqgAZgmxdoYt5pdVd0Y7eLIW2PqVNxjOGCq8Kb4+gSAErvCQjAshTbY9 ztgg== X-Gm-Message-State: AOAM533/gHjKONtmWE4j2udZhCJN/GJubAeZFybCsvFrbz/NDZ+UB83q nThABLIxhFg3vglk35uSQw== X-Received: by 2002:a9d:2de3:: with SMTP id g90mr5284461otb.274.1620335128276; Thu, 06 May 2021 14:05:28 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id a14sm789863otl.52.2021.05.06.14.05.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 May 2021 14:05:27 -0700 (PDT) Received: (nullmailer pid 799624 invoked by uid 1000); Thu, 06 May 2021 21:05:27 -0000 Date: Thu, 6 May 2021 16:05:27 -0500 From: Rob Herring To: Sean Anderson Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, michal.simek@xilinx.com, Alvaro Gamez Subject: Re: [PATCH v2 1/2] dt-bindings: pwm: Add Xilinx AXI Timer Message-ID: <20210506210527.GA789155@robh.at.kernel.org> References: <20210504184925.3399934-1-sean.anderson@seco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210504184925.3399934-1-sean.anderson@seco.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 04, 2021 at 02:49:24PM -0400, Sean Anderson wrote: > This adds a binding for the Xilinx LogiCORE IP AXI Timer. This device is > a "soft" block, so it has many parameters which would not be > configurable in most hardware. This binding is usually automatically > generated by Xilinx's tools, so the names and values of properties > must be kept as they are. > > Signed-off-by: Sean Anderson > --- > > Changes in v2: > - Use 32-bit addresses for example binding > > .../bindings/pwm/xlnx,axi-timer.yaml | 91 +++++++++++++++++++ > 1 file changed, 91 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/xlnx,axi-timer.yaml > > diff --git a/Documentation/devicetree/bindings/pwm/xlnx,axi-timer.yaml b/Documentation/devicetree/bindings/pwm/xlnx,axi-timer.yaml > new file mode 100644 > index 000000000000..bd014134c322 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/xlnx,axi-timer.yaml > @@ -0,0 +1,91 @@ > +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pwm/xlnx,axi-timer.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Xilinx LogiCORE IP AXI Timer Device Tree Binding > + > +maintainers: > + - Sean Anderson > + > +properties: > + compatible: > + items: > + - const: xlnx,axi-timer-2.0 > + - const: xlnx,xps-timer-1.00.a > + > + clocks: > + maxItems: 1 > + > + clock-names: > + const: s_axi_aclk > + > + reg: > + maxItems: 1 > + > + xlnx,count-width: > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 8 > + maximum: 32 > + description: > + The width of the counters, in bits. > + > + xlnx,gen0-assert: > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [ 0, 1 ] > + description: > + The polarity of the generateout0 signal. 0 for active-low, 1 for active-high. > + > + xlnx,gen1-assert: > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [ 0, 1 ] > + description: > + The polarity of the generateout1 signal. 0 for active-low, 1 for active-high. > + > + xlnx,one-timer-only: > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [ 0, 1 ] > + description: > + Whether only one timer is present in this block. > + > + xlnx,trig0-assert: > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [ 0, 1 ] > + description: > + The polarity of the capturetrig0 signal. 0 for active-low, 1 for active-high. > + > + xlnx,trig1-assert: > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [ 0, 1 ] > + description: > + The polarity of the capturetrig1 signal. 0 for active-low, 1 for active-high. Can't all these be boolean? > + > +required: > + - compatible > + - clocks > + - reg > + - xlnx,count-width > + - xlnx,gen0-assert > + - xlnx,gen1-assert > + - xlnx,one-timer-only > + - xlnx,trig0-assert > + - xlnx,trig1-assert > + > +additionalProperties: true > + > +examples: > + - | > + axi_timer_0: timer@800e0000 { > + clock-frequency = <99999001>; > + clock-names = "s_axi_aclk"; > + clocks = <&zynqmp_clk 71>; > + compatible = "xlnx,axi-timer-2.0", "xlnx,xps-timer-1.00.a"; > + reg = <0x800e0000 0x10000>; > + xlnx,count-width = <0x20>; > + xlnx,gen0-assert = <0x1>; > + xlnx,gen1-assert = <0x1>; > + xlnx,one-timer-only = <0x0>; > + xlnx,trig0-assert = <0x1>; > + xlnx,trig1-assert = <0x1>; > + }; > -- > 2.25.1 >