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=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 9F2C9C433B4 for ; Mon, 3 May 2021 19:53:02 +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 1777961104 for ; Mon, 3 May 2021 19:53:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1777961104 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com 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:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=tTKiKs6X+QJ7c8FbpfpoM8vlfTHiugcQ62nITnd+9yw=; b=dJ2xUmbt1k/DJcjnI9oBtfLS3k vFHzR7M38B/The0AeJamrkYeBIdTBuJNnqpyXSA91wvrgspBbmCbQc67vW4qNPMjn4rT1RFubyUYX UN4j0XEABUXqaMCHLgu/t2Ryh+0nljRSd+Ab407WtXHxz4E4D6+DIwt6rajAAMfXA4Xw3CQZEslJo sxt/wvdC0Uchd1z9wieo+KPHEdeLFlzhsHYIvc8j65IG0ajHZfO7UTXU6bYv99cisOR5xkXYJg0Nm E/KdkbINEr+U0ykOF5AQbJmC3cpskFl905q6uFipmg2nX1xRpgoagc1htbFE8Z8iWunI/O53Qfy7A IUdBsfmg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ldeb3-00ElUP-3O; Mon, 03 May 2021 19:51:13 +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 1ldeaq-00ElTm-Kw for linux-arm-kernel@desiato.infradead.org; Mon, 03 May 2021 19:51:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=5dY6juJTnKVCyeyHxi0na9C0HvTuTeBoPvat+PSnF30=; b=ziz5xjH1asLHrWNditK+QDkZnr Bg7njl16E6qD++K+l8mW0VKUKmX3dWnASsuAMuzD9XJoeCqOXwhh1nixEI+jdG+0+qvlmFz80ZVbR OzvgCMq9a+RdMClDctH+h6nwyf9qZliAs2sDZF9Drje1dRZB2tOVLkeJzw6nDGGc71FG2iHBUJK65 gAez8IaKEW3Y64tjQadvvSWxWwry/SznayFbLX9fn0iRu17kFW3iEStY4mR0Jfx5aBHlUEh36bGo4 BJMEWmE8+yoZbCgtFVRT3LT4nHvgQccoumIRN2eqHY59mp3BnIgR9bU7oN8Upvsgq8jI8HXOG8eon htFOGstA==; Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldeam-003RfC-UH for linux-arm-kernel@lists.infradead.org; Mon, 03 May 2021 19:50:59 +0000 Received: by mail-wm1-x335.google.com with SMTP id n84so4040137wma.0 for ; Mon, 03 May 2021 12:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5dY6juJTnKVCyeyHxi0na9C0HvTuTeBoPvat+PSnF30=; b=ZUUPFdWpDU32ff4kT+qpZwNlp9hR4B7EWVkdKHbzR3fV82NwMvMn/7gNu/kU2rr6qJ rP9F8NLgEWBcYhixWZS1Nk5KqUANqvZ8Krz+UKI3pPndQhevCu8dEnzsogQ+QJPYmOR3 lh+Ap7uMLPDpz9HSkPvuhjcN3QGlUVef3zrz5dVbMZXfgAlh9CPCN3TvavSaNzdtjRwQ nj7moLV0q9vBO4TgdY+8hrQXHhM0WS57g9hviFJAfYXDbYOKCQ/s2KPvYz3+Kqtx4L9V dWY5ZGjTGnVNaNCyF26umTbMPhXWDCZpYIRjmgIOwfWS4zrl8agwtZ9k+gu3ekeWhsIZ KboA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5dY6juJTnKVCyeyHxi0na9C0HvTuTeBoPvat+PSnF30=; b=nJqgPrYJfumjjs/VHJ4RlRGkoMO/p3a30elDngkDnU8swwdIJD+Ca06k3EnaczxshU BYLDHFWMKk73IIJtTZqTW4NgeyzTN1icpf20lfewG/hamGqOMmN+oYcGdgM51jOaDyc/ Ta5kn0MhmcceJlmVNW1x37Wn727V37vYt8IeNJKy7X0wTj+3aBut/Thqb39+pQojx7Ge FIeAI6CZwMA/iY0jPyvqy795N+vkEoMe8SdpmOA+H6gO33p93XRLXkOXi6VSXWcnTHI3 9Oz83m8Q2hnvBR42UJ2SBxx2K0bWnl7wAqEYRPGeHv3GBkFFyrMNk3A2+hmp4vgJ2Sxw SIOg== X-Gm-Message-State: AOAM530eVgx7o52IB2IwgLVv/YEoG7R1Ut1aLXGg3x4/fW1MznYB/o34 jmYdJ1zgRvcSFbQeqbWvY9SyFA== X-Google-Smtp-Source: ABdhPJyR/unPQayjrK1V5SC5zPOlNLglGsNCdBalOC4Fg4HGqcGotO9Ayc91ix08jipZN+oqNT6sNw== X-Received: by 2002:a05:600c:2483:: with SMTP id 3mr23429256wms.106.1620071455023; Mon, 03 May 2021 12:50:55 -0700 (PDT) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id d5sm13989429wrv.43.2021.05.03.12.50.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 May 2021 12:50:54 -0700 (PDT) From: Corentin Labbe To: alexandre.belloni@bootlin.com, a.zummo@towertech.it, linus.walleij@linaro.org, robh+dt@kernel.org, ulli.kroll@googlemail.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, Corentin Labbe Subject: [PATCH 1/2] dt-bindings: convert rtc/faraday,ftrtc01 to yaml Date: Mon, 3 May 2021 19:50:47 +0000 Message-Id: <20210503195048.1575007-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210503_125057_073597_0C6A0761 X-CRM114-Status: GOOD ( 16.13 ) 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 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.txt b/Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt deleted file mode 100644 index e3938f5e0b6c..000000000000 --- a/Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt +++ /dev/null @@ -1,28 +0,0 @@ -* Faraday Technology FTRTC010 Real Time Clock - -This RTC appears in for example the Storlink Gemini family of -SoCs. - -Required properties: -- compatible : Should be one of: - "faraday,ftrtc010" - "cortina,gemini-rtc", "faraday,ftrtc010" - -Optional properties: -- clocks: 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). -- clock-names: should name the clocks "PCLK" and "EXTCLK" - respectively. - -Examples: - -rtc@45000000 { - compatible = "cortina,gemini-rtc"; - reg = <0x45000000 0x100>; - interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&foo 0>, <&foo 1>; - clock-names = "PCLK", "EXTCLK"; -}; 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" + + 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). + + 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