Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5599666rwl; Tue, 4 Apr 2023 00:24:42 -0700 (PDT) X-Google-Smtp-Source: AKy350beNWHQUUSQtHn6WZff7+Z/N2XvQjfX3/Quiqu/RB7BMvbnDHW4MG8K0UxxTgSxgHahuqx5 X-Received: by 2002:a17:90a:e7cf:b0:23d:2415:c9a9 with SMTP id kb15-20020a17090ae7cf00b0023d2415c9a9mr1760317pjb.34.1680593082534; Tue, 04 Apr 2023 00:24:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680593082; cv=none; d=google.com; s=arc-20160816; b=DACpX4dLPXco1yb89wKx8P1wfHRtIHjb5jGPrm+y9ZKypdbnqulMWwtUmtw2yKndbO IcsFIXeh0KNCPwxBgmq57jl0Mlmmg7OoOutJxJP0u7PRaN8PRbgiBTvMz4kflVG9/I9L ZWekJ5OQ0S612ztgVQz/fL1APRg5jgd/rt2cjl1cLQK0vYcIEmpi8f1AhyhMbiGusuXP i8tZXy7KhBiYi3qAO5ABxQbxy+uyYjfYA4PsuBwzhW2R6ANsAwfdG/6I9ZN/rEmEkjnR So19feOTSk54cFyDkskbdGEO3WcXem5JsPxqV49YxVMefl7hA0iDoeJNowu3P4dSR8So niEg== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kkOGx3GMkgo2fuHiMkHQxVBiCwFud00/oKdxH1oDBEc=; b=Sr6iw5tk3/XmDHJIbchFzlhuYkSPZ3NGyclyhqK4qt9qc1MQMhms7wl5h8kBy+JELq ze1tET+Z4JNlCUkD5Dg1XEFfPTn2uGYsaF6xU8182GcbV9hR74TptHTlU3vEjp/xGSOx hcuVB2htZou/mGseLRmQFy4p2uVztJb8LjucNslqEIHW0VGSOVZ+eTdQTsGztC8EGzg9 zInDmLTYnKBP+KD3XYWpC7UxthWrfDREHA8kmh3vk2I9utn7OIecR/jpBmPbrPJYdOGZ oIrd0NbW0qUC+BxxCAJop2xBFh6ErHQ0kDScL4hlaGmhyyQuF/n5CCEQ62oQw8trcGs3 Eb/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O9f6zymk; 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 ip5-20020a17090b314500b00237b958814fsi9508424pjb.74.2023.04.04.00.24.30; Tue, 04 Apr 2023 00:24:42 -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=O9f6zymk; 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 S233848AbjDDHWD (ORCPT + 99 others); Tue, 4 Apr 2023 03:22:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233664AbjDDHWC (ORCPT ); Tue, 4 Apr 2023 03:22:02 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77FFC10E3 for ; Tue, 4 Apr 2023 00:21:59 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id b20so126682991edd.1 for ; Tue, 04 Apr 2023 00:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680592918; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=kkOGx3GMkgo2fuHiMkHQxVBiCwFud00/oKdxH1oDBEc=; b=O9f6zymkXyi78dz6MnZvNgpiLT6OqNN2IcSZBe55KTxR7DY4OBqLPSOdBntZ8GiKCg b29KHZyiQRIgV50y5qkEhVDQ84NXO+qjgdnpaCG8T50xT1bXUsmGW9wu+T95KiP7zmic xoK+fg9nnVCOeBL4/KWUTwALfGyr0voeLteEoQlDVnunpSHSbV1T3cwpYNAxIYP3FJCS 5VbXSrHRMESzEo2/576L8sk7BN4J2HeGgu6MU6xLe+J9Nmb4fu7/dLdnxd2dm/SD/WC5 c53piKeosyWxb3biPPlT+S1+XS2FOZTGHMFcfiO9NZ4t9ZSK6YTW9j17Iw1h4GNSjqgp yHSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680592918; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kkOGx3GMkgo2fuHiMkHQxVBiCwFud00/oKdxH1oDBEc=; b=vDmqd1yJxL7BVCYM5pKV4djnJzSaKw4H5LJSbqTIX2tagP7wyARn36CWffEICcShHV vzTDicfcNhfIrwmGGAs6b44mpOZxmoSA17yzED2jg0TeJnZU1doI7cVgEgd7FQQXDgMT KLNlDwtTDAwNChXe6sdnQ/cGSua+xHAA+cqYE58NarrxAEC6B/svNETOt3KOKSQCOHUS gwH2nALfC8zggJu/fmkHK9vKmGSHtr7hec7Zhmd3UdS6c4PNY7m7VPNuqhRdI/gxdfTz tkeBHT2eZqHAQGqfDHIqu/jWsszWQb9h5Z7lhlzSzEFDO9PuDOkSRm5WihuFq1UpHqwK LGQA== X-Gm-Message-State: AAQBX9f8bTz8lJxrB6QKj47kgtTXt43e/Ja9Ghnfp4CiqhkaizXUZidl FLbSHgg2J/4U4y3hg6WyRcL3sw== X-Received: by 2002:aa7:c78a:0:b0:502:9d16:fcb2 with SMTP id n10-20020aa7c78a000000b005029d16fcb2mr1432594eds.22.1680592918017; Tue, 04 Apr 2023 00:21:58 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:233a:5c18:b527:381e? ([2a02:810d:15c0:828:233a:5c18:b527:381e]) by smtp.gmail.com with ESMTPSA id cw23-20020a056402229700b005028e87068fsm4126624edb.73.2023.04.04.00.21.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Apr 2023 00:21:57 -0700 (PDT) Message-ID: <996b49ab-5e2e-76bc-efb1-38c6384871f6@linaro.org> Date: Tue, 4 Apr 2023 09:21:56 +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 To: Alexandre Belloni Cc: Ibrahim Tilki , a.zummo@towertech.it, jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, 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> <202304040710049c9cc01a@mail.local> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <202304040710049c9cc01a@mail.local> 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 04/04/2023 09:10, Alexandre Belloni wrote: >> >>> + RTC can be used as a clock source through its clock output pin when >>> + supplied. >>> + const: 0 >>> + >>> + clocks: >>> + description: | >> >> Do not need '|'. >> >>> + RTC uses this clock for clock input when supplied. Clock has to provide >>> + one of these four frequencies: 1Hz, 50Hz, 60Hz or 32.768kHz. >>> + maxItems: 1 >>> + >>> + aux-voltage-chargeable: >>> + enum: [0, 1, 2] >>> + description: | >>> + Enables trickle charger. >>> + 0: Charger is disabled (default) >>> + 1: Charger is enabled >>> + 2: Charger is enabled with a diode >> >> 2 is not an allowed value. I asked to drop this property. It is coming >> from rtc.yaml. I also do not understand "with a diode". So otherwise it >> is charging with, I don't know, FET? > > No, what is not explained here (and maybe not unsterstood by the > submitter) is that the RTC has an extra diode so, Value of 2 is still not allowed and if the patch was tested, it would be clearly visible. Unfortunately patch was not tested... > charging will always > enable a diode, select a resistor and then have or not an extra diode. > Figure2 of the MAX31329 datasheet is great. So the diode is in the max313xx? Then why enabling it is a property of DT? Either this should be inferred from compatible or is even a policy, not a DT property. Just because device has a register for something, is not an argument that "something" should be in DT. Best regards, Krzysztof