From patchwork Tue May 18 23:28:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 441252 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp712764jac; Tue, 18 May 2021 16:29:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza8yicxLnC615cM8PqfDBJAxAwl4bKfLPiTGAANac7cEu2sH3YiSqwKlcJb4xY3jveL0JQ X-Received: by 2002:a05:6402:2547:: with SMTP id l7mr6310924edb.73.1621380550186; Tue, 18 May 2021 16:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621380550; cv=none; d=google.com; s=arc-20160816; b=jBZdLF+exzYfnbF6uy9+MzpCk3Dl5MEWk7hh8DMxk2KBAaDbGTpsmlv+aaVSdRq6ar 30VXbGjGEbhe/LBRMAxMJRK2CVKgJEahdKwMPGciYLUCWO1AP12ITOjU7RVjX3d1on/x M5o8wN+KkCa0gvxlnjm42LMBTSgmVinlb4b7c85HU06ATmhwF1eZzmEU+KpcFeRuPT8k y9Iuu+U/h8KScfPiZGeGcmb7UnUdym63xq5loLHJqHQLq/grOywZ+Eiy6Z92xsgHkXrv 1EkXyPhW5Lx2NqCpmX0GsZ10REXhEy0lHUO1jVDT9XnlovFFW4Cv6sPiTFucxpNVUoqh T9Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ONKu0r6UrA/+nSoLHHrR2PJ8kD1WQsRPTA58wxevovQ=; b=Om8J5ae7NgEhnv2MLw6GppsnoqgcJ6GQazCXsDTudNQ4aFmOQr5XCpKgGQWAaB6nzo l5JFDKKp7kTAcQGQ0qJHt+fa8S/q2Lt5olwX9eQ4VOHtGYacPOv2aVXQcCaIT3kxzyc8 0FqBb7aGRe0uF7XYa+5mNk3iQmCVyWQc6vviAxa1YCtR5RWY9xo5IXsYztAZHSO3e5dI Oy7CbpA3mBbjTLOvRTWvavYCLoftslrHGaHNl1voxdwf6xhc3LcysMopogg7eIl1qqyS EgQkEEG94m55o0oCNyytlQwgFGs9qP/JVdTlcPwPBblHd4Tqbg44blYplYjdabhp435M KcNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 q8si9820446edr.112.2021.05.18.16.29.10; Tue, 18 May 2021 16:29:10 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S238747AbhERXaX (ORCPT + 7 others); Tue, 18 May 2021 19:30:23 -0400 Received: from mail-ot1-f45.google.com ([209.85.210.45]:39757 "EHLO mail-ot1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238722AbhERXaW (ORCPT ); Tue, 18 May 2021 19:30:22 -0400 Received: by mail-ot1-f45.google.com with SMTP id d25-20020a0568300459b02902f886f7dd43so10172597otc.6; Tue, 18 May 2021 16:29:03 -0700 (PDT) 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ONKu0r6UrA/+nSoLHHrR2PJ8kD1WQsRPTA58wxevovQ=; b=iHMzB4eK5ZPJkBtedJyflkAwnbesNGEQ2xMV1v3wbz2sGM4zG46aa4tNfdSYFRnmrs 9bpQqjoRCkk6uq1pK2+QqsIubaSTrMVRkJkot0akaANNennaGXyL22odxaJnjywCFgg4 s/MK9eFjuCI5R/7EgH9OZUufwiluCgMwFo1PAXd/oCgpnBcCN+9U6UkfCsGrn1t0FmZ3 3jvYD93alVzo4f2XN+AfdnN+H7HwyKrVw4h+xidvKA6b17/nFEYhXIyHfa5Q5b6NfbFv SvNgUoOseb237owTiw7tXfEoD6x7wclwfbQSi67baiwImjuYIyK7KECZ4yG/THk/DnEc a5WQ== X-Gm-Message-State: AOAM5302Mz8yMBTarJYXdOQy/Fol16FkZfh7ddSMwqH3B4yom2lwdf3T XcMngpc/3LUXx+g3pd/lddVG8NRjLg== X-Received: by 2002:a05:6830:1512:: with SMTP id k18mr6076380otp.357.1621380542650; Tue, 18 May 2021 16:29:02 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id d19sm3985608oop.26.2021.05.18.16.29.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 16:29:02 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, Peter Rosin , Wolfram Sang Cc: linux-kernel@vger.kernel.org, Alexandre Belloni , Jacopo Mondi , Kieran Bingham , Kishon Vijay Abraham I , Laurent Pinchart , Lee Jones , =?utf-8?q?Niklas_S=C3=B6derlund?= , Roger Quadros , Jonathan Cameron Subject: [PATCH 2/6] dt-bindings: rtc: nxp,pcf8563: Convert to DT schema Date: Tue, 18 May 2021 18:28:54 -0500 Message-Id: <20210518232858.1535403-3-robh@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210518232858.1535403-1-robh@kernel.org> References: <20210518232858.1535403-1-robh@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the Philips PCF8563/Epson RTC8564 binding to DT schema format. Add 'interrupts' as this device has an interrupt which was not documented, but in use. Cc: Alexandre Belloni Signed-off-by: Rob Herring --- .../devicetree/bindings/rtc/nxp,pcf8563.yaml | 50 +++++++++++++++++++ .../devicetree/bindings/rtc/pcf8563.txt | 29 ----------- 2 files changed, 50 insertions(+), 29 deletions(-) create mode 100644 Documentation/devicetree/bindings/rtc/nxp,pcf8563.yaml delete mode 100644 Documentation/devicetree/bindings/rtc/pcf8563.txt -- 2.27.0 Reviewed-by: Laurent Pinchart diff --git a/Documentation/devicetree/bindings/rtc/nxp,pcf8563.yaml b/Documentation/devicetree/bindings/rtc/nxp,pcf8563.yaml new file mode 100644 index 000000000000..15e67be0ef95 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/nxp,pcf8563.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/nxp,pcf8563.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Philips PCF8563/Epson RTC8564 Real Time Clock + +maintainers: + - Alexandre Belloni + +properties: + compatible: + enum: + - epson,rtc8564 + - microcrystal,rv8564 + - nxp,pcf8563 + - nxp,pca8565 + + reg: + maxItems: 1 + + "#clock-cells": + const: 0 + + clock-output-names: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + rtc@51 { + compatible = "nxp,pcf8563"; + reg = <0x51>; + #clock-cells = <0>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/rtc/pcf8563.txt b/Documentation/devicetree/bindings/rtc/pcf8563.txt deleted file mode 100644 index 0a900f7c8977..000000000000 --- a/Documentation/devicetree/bindings/rtc/pcf8563.txt +++ /dev/null @@ -1,29 +0,0 @@ -* Philips PCF8563/Epson RTC8564 Real Time Clock - -Philips PCF8563/Epson RTC8564 Real Time Clock - -Required properties: -- compatible: Should contain "nxp,pcf8563", - "epson,rtc8564" or - "microcrystal,rv8564" or - "nxp,pca8565" -- reg: I2C address for chip. - -Optional property: -- #clock-cells: Should be 0. -- clock-output-names: - overwrite the default clock name "pcf8563-clkout" - -Example: - -pcf8563: pcf8563@51 { - compatible = "nxp,pcf8563"; - reg = <0x51>; - #clock-cells = <0>; -}; - -device { -... - clocks = <&pcf8563>; -... -};