From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61944C433B4 for ; Thu, 6 May 2021 17:47:55 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C7CAE610CE for ; Thu, 6 May 2021 17:47:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C7CAE610CE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=tx77GkI/jlzjq+KH0rBaLNCRr1gwAP9o30jXlNUiu9M=; b=HijuhO/fbegwbFekF+GC4OaAE VTxvhJaNRfBX/4Mv3g7MSS11WAmRKAZ4epy/Xb1476QuYDZQQDrYtjHXxinudhXoHQpOpNYzqXIvJ 6E2ZK1Z4jlYakSNnCBFDzHBaPDUgZ82j6w6MuMycVfTWUIbgvl9jhOPSicEe4MLfYc3ueXk8Xyoq7 zz+S8e6yzqie99O0Pqk0IM7ZXhzCXez4DioeZ7KXnNsJLq5KE7BcWOzavLuvynIr2vG3SLnl1EIhY b5l7gCo2O/MbzuxqHTWPP41KHwKuA3Fuu/ZeqpkgMYzpVsKTLi7k6G4uO6FUDTYB0ScF2CVa8q9fK 077mUm3uA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lei4K-004xjI-1V; Thu, 06 May 2021 17:45:48 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lei4H-004xic-9M for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 17:45:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=8JstkJRMoUa2rOTYrsovoiLvT3L+r/P+UlSPFpzuQx0=; b=KU1PJQrlt9Mz9gMo8bdnV+eSu0 pBbuumlCHnTb/d73oRgVnuHE9iVG3g3qRL20HUeYeDpdDJb/3HV5q5S3HASU4DInLnw5DdjGKkjhk DhCHCLyqzi50Y4eIsYl13Pgo136iSRfFLQK0O9RVYmK40R9mjwRS+502L/NOrxfHPjrgNSovOay0r aVajtnWsoaMGKmHkSxj4niXjBRPySqcZqptCRSHUpmO9i37o76JmOyvoPUHjjK9eeXfa2eObDK0cA BLi9TJ9YphNs7QfGhs2Z/oYFJLUbIB23yIdTthXIAjfAwvC2qGEPMlhsf4uxWyPscr5YPx1oDMOrk qlbC0tbg==; Received: from mail-oi1-f170.google.com ([209.85.167.170]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lei4E-006GMM-Ja for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 17:45:44 +0000 Received: by mail-oi1-f170.google.com with SMTP id i81so6251466oif.6 for ; Thu, 06 May 2021 10:45:42 -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=8JstkJRMoUa2rOTYrsovoiLvT3L+r/P+UlSPFpzuQx0=; b=Fl7RE7fY8+GKyDjprKRIFIbU22T1F8zYETt2m50ZZt0TXWbB8flQyg1XT5nwlpLSOV lsSUzkI+qj25Uncww2EF1GR4HB814hV3SjyN+79l6qtSEgwbFEF7+plojAlwVk9ltTez xi6nqQKiQJpAzrnj9lyX7lbjQln9Nu6dYAee639pIZsJ+KI+CnxESNf0K8bDYGmEWrwj YhXaVHGQ8TDN0fwYsf2XRjDtTiiXPT2RI8ahwVC5yIANOBXUMFH1dK63Jsxl39KEBRRY M/LnnkAZg7Py/XdexerlKjhXvvOPh21bUvh1ThhlDpKpPsZJ8ujZGydUI3QniZSsfMON pifg== X-Gm-Message-State: AOAM533C41IhrcN5Mw7rQKgFLHqHtDSc9G0DDJx83IsuMX6WDhCYyMQF IRK9JEfYfPd3Kg/6Tm9GQw== X-Google-Smtp-Source: ABdhPJy0kRine7Bu4k6/BpEtz+3Jkytl50ii+fI5jYKHWg1wSyH0QbWPT8lU41qW8mbrGuNq9WeL2Q== X-Received: by 2002:aca:ebc1:: with SMTP id j184mr4047236oih.125.1620323141537; Thu, 06 May 2021 10:45:41 -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 t74sm531884oie.51.2021.05.06.10.45.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 May 2021 10:45:40 -0700 (PDT) Received: (nullmailer pid 539169 invoked by uid 1000); Thu, 06 May 2021 17:45:39 -0000 Date: Thu, 6 May 2021 12:45:39 -0500 From: Rob Herring To: Corentin Labbe Cc: alexandre.belloni@bootlin.com, a.zummo@towertech.it, linus.walleij@linaro.org, ulli.kroll@googlemail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: convert rtc/faraday,ftrtc01 to yaml Message-ID: <20210506174539.GA536770@robh.at.kernel.org> References: <20210503195048.1575007-1-clabbe@baylibre.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210503195048.1575007-1-clabbe@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210506_104542_671544_A3A34033 X-CRM114-Status: GOOD ( 18.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, May 03, 2021 at 07:50:47PM +0000, Corentin Labbe wrote: > Converts rtc/faraday,ftrtc01.txt to yaml. > This permits to detect some missing properties: reg, resets, interrupts > > Signed-off-by: Corentin Labbe > --- > .../bindings/rtc/faraday,ftrtc010.txt | 28 --------- > .../bindings/rtc/faraday,ftrtc010.yaml | 59 +++++++++++++++++++ > 2 files changed, 59 insertions(+), 28 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt > create mode 100644 Documentation/devicetree/bindings/rtc/faraday,ftrtc010.yaml > diff --git a/Documentation/devicetree/bindings/rtc/faraday,ftrtc010.yaml b/Documentation/devicetree/bindings/rtc/faraday,ftrtc010.yaml > new file mode 100644 > index 000000000000..6b318650e79f > --- /dev/null > +++ b/Documentation/devicetree/bindings/rtc/faraday,ftrtc010.yaml > @@ -0,0 +1,59 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/rtc/faraday,ftrtc010.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Faraday Technology FTRTC010 Real Time Clock > + > +maintainers: > + - Linus Walleij > + > +description: | > + This RTC appears in for example the Storlink Gemini family of SoCs. > + > +properties: > + compatible: > + oneOf: > + - const: "faraday,ftrtc010" > + - items: > + - const: "cortina,gemini-rtc" > + - const: "faraday,ftrtc010" Drop quotes. > + > + resets: > + maxItems: 1 > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + minItems: 2 > + description: when present should contain clock references to the > + PCLK and EXTCLK clocks. Faraday calls the later CLK1HZ and > + says the clock should be 1 Hz, but implementers actually seem > + to choose different clocks here, like Cortina who chose > + 32768 Hz (a typical low-power clock). Normal formatting is 2 space indent. Split to use 'items' like PCI. > + > + clock-names: > + items: > + - const: "PCLK" > + - const: "EXTCLK" > + > +required: > + - compatible > + > +additionalProperties: false > + > +examples: > + - | > + #include > + rtc@45000000 { > + compatible = "cortina,gemini-rtc", "faraday,ftrtc010"; > + reg = <0x45000000 0x100>; > + interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&foo 0>, <&foo 1>; > + clock-names = "PCLK", "EXTCLK"; > + }; > -- > 2.26.3 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel