Received: by 2002:ac8:156:0:b0:3e0:cd10:60c8 with SMTP id f22csp2673532qtg; Tue, 4 Apr 2023 06:14:34 -0700 (PDT) X-Google-Smtp-Source: AKy350Zh4biCOyflTjL3a8Lhp82rNyqWwu3RCu4yqyukAXkptO9zDOiQMzNACYSSmQoaIaOS4lON X-Received: by 2002:a17:903:1d1:b0:19e:ecaf:c4b4 with SMTP id e17-20020a17090301d100b0019eecafc4b4mr2880778plh.4.1680614073685; Tue, 04 Apr 2023 06:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680614073; cv=none; d=google.com; s=arc-20160816; b=WSgFI9h0M/ku+ZTZ0nyoC7wnLSw5pFaPUsjrubLX8GUlqiUVJGsUxFu1huatMGcF7V JlO1A0Ry533g7tTaTyi7PNpro7Fau2u2eLT7Z9HT9rd5R7nKe9rNJLvn4XrTU5KSAIZU EjIDsmsO5J/j87u7E8X3AI65HASFh1DmmuKTPMrpC0xAvT9Lgj+wbB5P8nFKdnre0+Q6 IUPCN/iGsTCUk/Xb+NbzwodqJUwKvz+jvKHspYnVzsCHKTv63LhxjMrubbT0XsJrnLPa BH3NGFsig7/IJGeg3L8nBpBYyWpWSIBnCHhxdGdVAFfUZ2AJ1VJ20VE5MGuusec+PMFQ oueg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LCbi5B1HqIhC33XdpdRXB89NTH08leNjzltupqeTFa8=; b=LFqPeEJhlwdLMss8ieimRzDmycYAEyhZb3wIztsUUo/W8YsaS59Cru4Y6eBUKSDIfS CIKbgJasn4trYPBWXoJDMe9LHlK/qIZkATDNU1Ppse4jrA3MWwX+PZfDiDZbkX7oeSn9 ZFRUCdZDCucpiZcjhdFapz/raTyjEST5Qxjqxh5ce3KDBQStbI45gcxCF++3yu8g+G3B fIhFlWlIPfM6rFUQoRv5RqJCjPazKiexKpDmQsfUSFvpxhIFNpEog3NAkBx1enDgrxn+ nDFUtsFSaQto1B4CmQ1iJGLnRVvoW1Mv2ShJUluqZ9oYSA+da3N/TNbfPPztGaRNAAKj lCzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NuTPpo7i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a17090322cc00b0019f2506251dsi10830421plg.190.2023.04.04.06.14.21; Tue, 04 Apr 2023 06:14:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NuTPpo7i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235121AbjDDNKm (ORCPT + 99 others); Tue, 4 Apr 2023 09:10:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235056AbjDDNKg (ORCPT ); Tue, 4 Apr 2023 09:10:36 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F0D340F7 for ; Tue, 4 Apr 2023 06:10:22 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id r11so130424764edd.5 for ; Tue, 04 Apr 2023 06:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680613820; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LCbi5B1HqIhC33XdpdRXB89NTH08leNjzltupqeTFa8=; b=NuTPpo7iQJYwklBLaCifkBcTMQwkPtTF4VhbOQKam//FucHsVfohj8ZwhF4n01oY1i /5BHjMgL1Tie1A/hlZKY1rmfgRbuu2HHdaF47RduTpVEllJ1YeTxH2fmVYHJMGfVZwWr 0KtBE4RzQB64Nps9XPo1LW+QLUtNVJTJ8CfAwmB2JwD7+GKtZtL4g3RjUlNfQrsaFs/A fSbiQWeOLnOPlSqP5BTthuD9RICxEClE3G7R0wivHzy6XrDvxU7c+ZjKaI2noPTAAecu SC+m5MjjBiKkK5JsO5IWUr67onNs+d8bKE1dEu/lfrdwL0qVRIZjaYtKSxVRlnnusWrV pBng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680613820; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LCbi5B1HqIhC33XdpdRXB89NTH08leNjzltupqeTFa8=; b=5qxKTJyQXhxmQ36WzzL8u7BYESv4l1xxKFudaEU5MX8bNaiwl/TE69VLTFId9CgzwE pb2NJoNGeyfqe9HqgfQmD3k/Pl6oK+cqK9472u4oQ9Ci9ZaalooTTyofapBJRYh8XvbR Uzv6Vzyz0zAt7qh0ntlgrxE4u+daoiSLBnA1YQB0BdOkt5fjkAUTJApWdBLFgB2+SNPR BYzs5f9+EivNDRL7jnEg7xb9OLtRjgjdVJ869Na6PVitCUndZmxuGp6jAndD+J3dHVO/ uMZSqHxKS51bOSrmRKww29IOeuPLWCXb3gMSlqHANqQBBOJAhWjBoXBKPAJvT1oIyXEO kY5Q== X-Gm-Message-State: AAQBX9caVf5txzed8xaEgjZmT+JMBNQ9A0braKiN+xQAutIIl2IT2+4I GEw/6u/odUNw4kfHiQv3bQr+Ug== X-Received: by 2002:a17:906:3756:b0:8ad:51e9:cd57 with SMTP id e22-20020a170906375600b008ad51e9cd57mr2300286ejc.49.1680613820475; Tue, 04 Apr 2023 06:10:20 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:7467:56f4:40b7:cba8? ([2a02:810d:15c0:828:7467:56f4:40b7:cba8]) by smtp.gmail.com with ESMTPSA id le3-20020a170907170300b0093b8c0952e4sm5932699ejc.219.2023.04.04.06.10.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Apr 2023 06:10:20 -0700 (PDT) Message-ID: <7d5c4407-3198-c39a-2c30-fbaeb5c53b08@linaro.org> Date: Tue, 4 Apr 2023 15:10:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v5 2/2] dt-bindings: rtc: add max313xx RTCs Content-Language: en-US To: Ibrahim Tilki , a.zummo@towertech.it, alexandre.belloni@bootlin.com, jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, Zeynep Arslanbenzer References: <20230403154342.3108-1-Ibrahim.Tilki@analog.com> <20230403154342.3108-3-Ibrahim.Tilki@analog.com> From: Krzysztof Kozlowski In-Reply-To: <20230403154342.3108-3-Ibrahim.Tilki@analog.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/04/2023 17:43, Ibrahim Tilki wrote: > Devicetree binding documentation for Analog Devices MAX313XX RTCs > > Signed-off-by: Ibrahim Tilki > Signed-off-by: Zeynep Arslanbenzer > --- > .../devicetree/bindings/rtc/adi,max313xx.yaml | 144 ++++++++++++++++++ > 1 file changed, 144 insertions(+) > create mode 100644 Documentation/devicetree/bindings/rtc/adi,max313xx.yaml > > diff --git a/Documentation/devicetree/bindings/rtc/adi,max313xx.yaml b/Documentation/devicetree/bindings/rtc/adi,max313xx.yaml > new file mode 100644 > index 000000000..0c17a395e > --- /dev/null > +++ b/Documentation/devicetree/bindings/rtc/adi,max313xx.yaml > @@ -0,0 +1,144 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright 2022 Analog Devices Inc. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/rtc/adi,max313xx.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Analog Devices MAX313XX series I2C RTCs > + > +maintainers: > + - Ibrahim Tilki > + - Zeynep Arslanbenzer > + > +description: Analog Devices MAX313XX series I2C RTCs. > + > +properties: > + compatible: > + enum: > + - adi,max31328 > + - adi,max31329 > + - adi,max31331 > + - adi,max31334 > + - adi,max31341 > + - adi,max31342 > + - adi,max31343 > + > + reg: > + description: I2C address of the RTC > + items: > + - enum: [0x68, 0x69] > + > + interrupts: > + description: | > + Alarm1 interrupt line of the RTC. Some of the RTCs have two interrupt > + lines and alarm1 interrupt muxing depends on the clockin/clockout > + configuration. > + maxItems: 1 > + > + "#clock-cells": > + description: | > + RTC can be used as a clock source through its clock output pin when > + supplied. This part is correct, but your implementation is not. I don't think you can disable or enable interrupts, based on usage of clock. Either this is clock (gated or not) or interrupt, not both. Best regards, Krzysztof