Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5622083rwl; Tue, 4 Apr 2023 00:50:49 -0700 (PDT) X-Google-Smtp-Source: AKy350YBs8/bXPWRNLQe5fbuUzi0Ok71pbZIhE3gEu5tU4A59b02fawvlN3Fw3K+1KFhyVX5bo4B X-Received: by 2002:a05:6a20:6688:b0:db:b960:d319 with SMTP id o8-20020a056a20668800b000dbb960d319mr1499800pzh.12.1680594649403; Tue, 04 Apr 2023 00:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680594649; cv=none; d=google.com; s=arc-20160816; b=qjjiaGO89/nmlHLWpPLcGvDoZD1mekBNmbWFgOVUCASN69U94PDXV7zr/wEQreD8iX bpwSPe8Ukyi2WG86hyfn3YlaxnygLWjLbZ/bf7CM5xEf5ctwuFImArvDmhtG8KXk94Sx d6sNcpNV2jyTSUxXUvLEQ+YKvlWtOW5JHK8Q2ap1MFQY1Frzc8hkCRAOmMxIOWfiLyDO bLlPrCCI7F2AsONEWOcAPaHKcL1sI2SyPynlTpusX8F/C/XZaF9ZJJ0USYXxpinmB1+I 8BpjS2yppqdaiLaLi7KHsFg5VROpgVsR7t/KRU6z2Xa+W2266lEL8VJCQ2RntErCKZXz d8HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BYz2JgYiereU0Wk7c9RqlcSNQDMCeypHl3FQ4vU0Rfg=; b=Yk2mOLYEfkujZJ1sJn380WJC/ieIUXMkm7TlJXa2WyR0ZWUhxU+y4/O5CAQMdtX7Sq 2Kufe2fDv9BX7R/Z+3HSpQzvaHQLWDzqECsQLbClZQcOnAblQB5LaDgQw2SQ+UPwoiqr hwyNhRVHM4yGtHLBDnoeqQGBIDqR+BLxnPE89+M/QG62o6No6njLXUmCddcYxrjaKuIx CNQRG1F8xztqg5vPGvoIhRYbkvb896BhEHE6OBqwA/zHCU+kn8L+p7K2LtVBQ5h4JA1m 68bwX3ZoGMxUTs4Wec81hKZRCnrU9zwsA5f6Mz2lirg62j6KVDPt2fy1FHzqS9WK48GJ /Flg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hnatSd6Z; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y28-20020aa79afc000000b0062d9eed7d25si10145682pfp.57.2023.04.04.00.50.35; Tue, 04 Apr 2023 00:50:49 -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=@bootlin.com header.s=gm1 header.b=hnatSd6Z; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233470AbjDDHoy (ORCPT + 99 others); Tue, 4 Apr 2023 03:44:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230038AbjDDHow (ORCPT ); Tue, 4 Apr 2023 03:44:52 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A727E57; Tue, 4 Apr 2023 00:44:50 -0700 (PDT) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 79E5640002; Tue, 4 Apr 2023 07:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1680594288; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BYz2JgYiereU0Wk7c9RqlcSNQDMCeypHl3FQ4vU0Rfg=; b=hnatSd6ZQXMYxpRjRnCkBRfXnuPuselbfg287WSvQIvIOGA8lvVNsZC2ff2jpyOzs/EYwc L8qqitijje8at2kRpt0+7c8GQbBKTvKlLeJqUE/WCnwfft4JOiUsbTOes6wr6VLOmfLbyz WoJm8L89WP0NPCHtUSK73VavI09TnIcehI5IjQdKS9rNzoVDpyfjLUtPxMGrMD6cRHWnH8 XSaKt4yzFRZtHyPnui/h7pR8zJQ2kM5rdCJqnoN/TLn7C+O/mm2CvL0WKoxcljbAjTVxSb Dsl4ro7UNt/OyrG/QEuw0E/W+FEZWXgSJFy/b6MivaXJGMxiAtUGLS0ekU6AXg== Date: Tue, 4 Apr 2023 09:44:46 +0200 From: Alexandre Belloni To: Krzysztof Kozlowski 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 Subject: Re: [PATCH v5 2/2] dt-bindings: rtc: add max313xx RTCs Message-ID: <2023040407444619bf5596@mail.local> References: <20230403154342.3108-1-Ibrahim.Tilki@analog.com> <20230403154342.3108-3-Ibrahim.Tilki@analog.com> <202304040710049c9cc01a@mail.local> <996b49ab-5e2e-76bc-efb1-38c6384871f6@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <996b49ab-5e2e-76bc-efb1-38c6384871f6@linaro.org> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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:21:56+0200, Krzysztof Kozlowski wrote: > 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. Well, it depends on the battery that is installed on the board so it makes sense to have it in DT. -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com