From patchwork Wed Oct 26 22:58:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 618921 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB443C433FE for ; Wed, 26 Oct 2022 22:58:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233892AbiJZW61 (ORCPT ); Wed, 26 Oct 2022 18:58:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbiJZW60 (ORCPT ); Wed, 26 Oct 2022 18:58:26 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E434B6FA22; Wed, 26 Oct 2022 15:58:25 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id kt23so20085446ejc.7; Wed, 26 Oct 2022 15:58:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:content-language:cc:to:subject:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=tKXO41Y/SWSFFaAWCsB9RGz7D8TegGmZORhd3TxzdEs=; b=YezYmqKzkTpedLipitniPXjPQD7/CZzP7/gotJ69PCCHoOoAD13kadMq0mnOJ+xEco ZU//Bo5Lo6aSvY1FAi0czPITrw36AOUxYu9oUk13o/yoihxDLqMt7AOfj/Zklbx8AoDt AE4yQeqonK+bQy3wh2K28NULJ6FWGc5YRhJ1mcFVql3UWCB6P/7Srb2MUqaxI4LXOhbB 2DYZCsGNeiIhp7rUKatVcRiS0fyGOo5lRYm5NVmoEaR7YM/9riMVLSCTXftOLAAalUKb cA5+jF9s+TvMMTFrXwlzx3qTr0Q4oehyjRHjhr8SQbzkEONyn92fzqURHh0jXvVTPQ+9 ki6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:content-language:cc:to:subject:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=tKXO41Y/SWSFFaAWCsB9RGz7D8TegGmZORhd3TxzdEs=; b=eOvQgXwn243S6Tfrj0dHTmm53FcK5bgfR89Bav20k2WqtX7oFoZK91mCL3KKBjWCWb OH0C3eoG24kDpDpV9pMpv2FoGruhCRfRxQFahEkZyjMqAM355gfxpzNwxvUb0FlToIzq Q5/lwgHT3F56eVpv/T3aWLXjkaQlZI+PKlfV1cUOfh9fTULPWzBj8Uwd8cF2m8oYLihD QQPZ++VOyzW86vHn7Ephlm6jVFx3B/wf+77rX+nyjV3TUPAnd6rNsd4pIgrQijjDYiyK x2Bpg3XYugqqvb2ACNblKx7iQi4JHU0dNxyLOeQAw7TVfPDYfs+UJrX8WDUX0AxshAaX txwA== X-Gm-Message-State: ACrzQf0iirBn63fukXWxPjcUz+L/0RrKqI1psYWAAhZFruQCSEU2oDHd RQZGK9iEePQM+6hOQfhALF0= X-Google-Smtp-Source: AMsMyM6mQ/QRK3Y9ZsO5bVp1hlFiabnBy4SeH8oU4i4Vf7HLzAV3HiZy991kqc6SMFO9ebEhHJ9j2w== X-Received: by 2002:a17:906:5a5f:b0:79f:9f1f:2fef with SMTP id my31-20020a1709065a5f00b0079f9f1f2fefmr24085589ejc.396.1666825104358; Wed, 26 Oct 2022 15:58:24 -0700 (PDT) Received: from [192.168.2.2] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id o19-20020a170906769300b0078250005a79sm3554252ejm.163.2022.10.26.15.58.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Oct 2022 15:58:23 -0700 (PDT) Message-ID: Date: Thu, 27 Oct 2022 00:58:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 From: Johan Jonker Subject: [PATCH v1 1/3] dt-bindings: rtc: convert haoyu,hym8563.txt to yaml To: heiko@sntech.de Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, a.zummo@towertech.it, alexandre.belloni@bootlin.com, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert haoyu,hym8563.txt to yaml. Changed: Add clock-frequency property Signed-off-by: Johan Jonker --- .../devicetree/bindings/rtc/haoyu,hym8563.txt | 30 ---------- .../bindings/rtc/haoyu,hym8563.yaml | 60 +++++++++++++++++++ 2 files changed, 60 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt create mode 100644 Documentation/devicetree/bindings/rtc/haoyu,hym8563.yaml -- 2.20.1 diff --git a/Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt b/Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt deleted file mode 100644 index a8934fe2a..000000000 --- a/Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt +++ /dev/null @@ -1,30 +0,0 @@ -Haoyu Microelectronics HYM8563 Real Time Clock - -The HYM8563 provides basic rtc and alarm functionality -as well as a clock output of up to 32kHz. - -Required properties: -- compatible: should be: "haoyu,hym8563" -- reg: i2c address -- #clock-cells: the value should be 0 - -Optional properties: -- clock-output-names: From common clock binding -- interrupts: rtc alarm/event interrupt - -Example: - -hym8563: hym8563@51 { - compatible = "haoyu,hym8563"; - reg = <0x51>; - - interrupts = <13 IRQ_TYPE_EDGE_FALLING>; - - #clock-cells = <0>; -}; - -device { -... - clocks = <&hym8563>; -... -}; diff --git a/Documentation/devicetree/bindings/rtc/haoyu,hym8563.yaml b/Documentation/devicetree/bindings/rtc/haoyu,hym8563.yaml new file mode 100644 index 000000000..57729443f --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/haoyu,hym8563.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/haoyu,hym8563.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Haoyu Microelectronics HYM8563 Real Time Clock (RTC) + +description: + The HYM8563 provides basic RTC and alarm functionality + as well as a clock output of up to 32kHz. + +maintainers: + - Heiko Stuebner + +allOf: + - $ref: "rtc.yaml#" + +properties: + compatible: + const: haoyu,hym8563 + + reg: + const: 0x51 + + interrupts: + maxItems: 1 + + clock-frequency: + enum: [1, 32, 1024, 32768] + + clock-output-names: + maxItems: 1 + + "#clock-cells": + const: 0 + +required: + - compatible + - reg + - "#clock-cells" + +unevaluatedProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + hym8563: rtc@51 { + compatible = "haoyu,hym8563"; + reg = <0x51>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + clock-frequency = <32768>; + clock-output-names = "xin32k"; + #clock-cells = <0>; + }; + }; From patchwork Wed Oct 26 23:00:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 618920 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64BB2C38A2D for ; Wed, 26 Oct 2022 23:01:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234023AbiJZXBz (ORCPT ); Wed, 26 Oct 2022 19:01:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234068AbiJZXB3 (ORCPT ); Wed, 26 Oct 2022 19:01:29 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A8B069BF7; Wed, 26 Oct 2022 16:00:40 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id k2so25703679ejr.2; Wed, 26 Oct 2022 16:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=QDnwRNSvILxD4k9pcL4E1+s2WIr1eI7KS5V5B2hV+gw=; b=OZri08sC3H4NhbuF2t777h2w0nJU42EHf88jSJxwBiXid44X+DoiRTD2iuTX84q8Ne 5u5OZBnJF4wbYBYSCT0DosCyZnfODHZ21wjDv4YxESxguroiXZ6gSNjND/fNxT1NisTc OkGgbuV0ExZw5EOG1PCWrAEifdEDEOuwv4zfMvuADsGQeaLFFkskS8DV/tvJytN3L1Tu 6TROGFhgqadljW9oKaNcrnzmpR3s3pdfWzgsXiAFSURTce6J4F0HAk5q4tbkWjj/AC2p yFPc5UrbEtCxBuqQIelOnUtVkiOXrEqwSS+ag9tTB7zQZ1XOqPeqb+4kDC2BmuIdhvcL Sy+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QDnwRNSvILxD4k9pcL4E1+s2WIr1eI7KS5V5B2hV+gw=; b=0ZY/H2KnJC1dU52yvd3CQN2t0JrbN5kMMsFK6tkd+zKgKV17yutr+DM+MrkgqqtRxj faat1mdCYHWwIGd/L79EUxyZRngkXb03zVmbaqJpDorc2ZFjHK9JjEbMqmd1zxEB48Em +g3+SCZLu2utDamqOSyL+9h+iym4uH/CPMP7aqF/0ow/lQ/d5PVy6QqtpCkBCryrHtPR Kgs0dTInvfCmXLxNHS0Q6Pm+OqTQrZ2L/FdY7QGYjXNFGe6j1GtdSEYsjrJnw0P42Uva fJpT04isyCgegtPhKacdFD7m/Co4ZuCA5JcXGI3Ms5x6ARqls70w+lleHVe23lcNVrBE D5zg== X-Gm-Message-State: ACrzQf3lays5GCIslK5JTUiNLCALgE5kxtVGyMIFqyyEGQ+PUChfF8uM T8uqZKGFPn77eCC9g90ZGTo= X-Google-Smtp-Source: AMsMyM6WkfKw92SRZVxTuuDFP0qLNx9+SU/w1+k6OaO/N5MWqBFb40Iwy8t6K0T2FMIlRjvdFepiIg== X-Received: by 2002:a17:907:2e01:b0:78d:f24b:7330 with SMTP id ig1-20020a1709072e0100b0078df24b7330mr39087661ejc.604.1666825239392; Wed, 26 Oct 2022 16:00:39 -0700 (PDT) Received: from [192.168.2.2] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id 13-20020a170906318d00b007317f017e64sm3546886ejy.134.2022.10.26.16.00.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Oct 2022 16:00:39 -0700 (PDT) Message-ID: <8facb161-44cd-4cd1-93ec-468fa3164ed4@gmail.com> Date: Thu, 27 Oct 2022 01:00:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 From: Johan Jonker Subject: [PATCH v1 3/3] arm64: dts: rockchip: rename "haoyu, hym8563" rtc nodes To: heiko@sntech.de Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, a.zummo@towertech.it, alexandre.belloni@bootlin.com, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org References: Content-Language: en-US In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The "haoyu,hym8563" RTC node names should be generic, so change them. Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3368-r88.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3399-roc-pc-plus.dts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) -- 2.20.1 diff --git a/arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dts b/arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dts index 7f5bba0c6..0e88e9592 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dts +++ b/arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dts @@ -208,7 +208,7 @@ vin-supply = <&vcc_sys>; }; - hym8563: hym8563@51 { + hym8563: rtc@51 { compatible = "haoyu,hym8563"; reg = <0x51>; #clock-cells = <0>; diff --git a/arch/arm64/boot/dts/rockchip/rk3368-r88.dts b/arch/arm64/boot/dts/rockchip/rk3368-r88.dts index 38d757c00..e147d6f8b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368-r88.dts +++ b/arch/arm64/boot/dts/rockchip/rk3368-r88.dts @@ -192,7 +192,7 @@ vin-supply = <&vcc_sys>; }; - hym8563: hym8563@51 { + hym8563: rtc@51 { compatible = "haoyu,hym8563"; reg = <0x51>; #clock-cells = <0>; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc-plus.dts b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc-plus.dts index 5a2661ae0..18b5050c6 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc-plus.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc-plus.dts @@ -98,7 +98,7 @@ }; &i2c0 { - hym8563: hym8563@51 { + hym8563: rtc@51 { compatible = "haoyu,hym8563"; reg = <0x51>; interrupt-parent = <&gpio0>;