Messages in this thread | | | From | "Neeli, Srinivas" <> | Subject | RE: [PATCH] dt-bindings: Convert Xilinx watchdog bindings to json-schema | Date | Thu, 18 Aug 2022 14:52:29 +0000 |
| |
Hi,
> -----Original Message----- > From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > Sent: Thursday, August 18, 2022 7:09 PM > To: Srinivas Neeli <srinivas.neeli@xilinx.com>; linux@roeck-us.net; > krzysztof.kozlowski+dt@linaro.org; wim@linux-watchdog.org; > michal.simek@xilinx.com; shubhrajyoti.datta@xilinx.com > Cc: linux-kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org; > devicetree@vger.kernel.org; linux-watchdog@vger.kernel.org; > git@xilinx.com; git (AMD-Xilinx) <git@amd.com>; sgoud@xilinx.com; Radhey > Shyam Pandey <radhey.shyam.pandey@xilinx.com> > Subject: Re: [PATCH] dt-bindings: Convert Xilinx watchdog bindings to json- > schema > > On 18/08/2022 15:42, Srinivas Neeli wrote: > > Convert Xilinx watchdog bindings to DT schema format using json-schema > > > > Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> > > Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com> > > Use subject perfixes matching the subsystem (git log --oneline -- ...). Will update in v2.
> > > > diff --git > > a/Documentation/devicetree/bindings/watchdog/xlnx,xps-timebase.yaml > > b/Documentation/devicetree/bindings/watchdog/xlnx,xps-timebase.yaml > > new file mode 100644 > > index 000000000000..fd2e3f2df54c > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/watchdog/xlnx,xps- > timebase.yam > > +++ l > > xlnx,xps-timebase-wdt.yaml > (name should be matching compatibles) Ok, Will update in V2.
> > > @@ -0,0 +1,71 @@ > > +# SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause %YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/watchdog/xlnx,xps-timebase.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Xilinx AXI/PLB softcore and window Watchdog Timer > > + > > +allOf: > > + - $ref: "watchdog.yaml#" > > No need for quotes. Put the allOf just above "properties". Ok, will update in V2.
> > > + > > +maintainers: > > + - Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> > > + - Srinivas Neeli <srinivas.neeli@xilinx.com> > > + > > +description: > > + The Timebase watchdog timer(WDT) is a free-running 32 bit counter. > > + WDT uses a dual-expiration architecture. After one expiration of > > + the timeout interval, an interrupt is generated and the WDT state > > + bit is set to one in the status register. If the state bit is not > > + cleared (by writing a one to the state bit) before the next > > + expiration of the timeout interval, a WDT reset is generated. > > + > > +properties: > > + compatible: > > + oneOf: > > There is no other option, so no need for oneOf. > > > + - items: > > You do not have items, just one item. Drop items as well. Ok, will update in V2.
> > > + - enum: > > + - xlnx,xps-timebase-wdt-1.01.a > > + - xlnx,xps-timebase-wdt-1.00.a > > + > > + reg: > > + maxItems: 1 > > + > > + clocks: > > + minItems: 1 > > instead maxItems Ok, will update in V2.
> > > + > > + clock-frequency: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > No need for ref. This is a standard property. Ok, will update in V2. > > > + description: Frequency of clock in Hz > > Would be useful to add constraints (minimum/maximum and default), but > that's not a big deal.
There is no limit to minimum and maximum values. So not adding constraints. > > > + > > + xlnx,wdt-interval: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + description: Watchdog timeout interval > > + minimum: 8 > > + maximum: 32 > > + > > + xlnx,wdt-enable-once: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + enum: [0, 1] > > + description: If watchdog is configured as enable once, > > + then the watchdog cannot be disabled after > > + it has been enabled. > > + > > +required: > > + - compatible > > + - reg > > + > > +unevaluatedProperties: false > > + > > +examples: > > + - | > > + watchdog@40100000 { > > + compatible = "xlnx,xps-timebase-wdt-1.00.a"; > > + reg = <0x40100000 0x1000>; > > + clock-frequency = <50000000>; > > + clocks = <&clkc 15>; > > + xlnx,wdt-enable-once = <0x0>; > > + xlnx,wdt-interval = <0x1b>; > > + } ; > > No need for space after ';' Ok, will update in V2.
Thanks Neeli Srinivas > > > > Best regards, > Krzysztof
| |