Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5901037rwl; Tue, 4 Apr 2023 05:27:14 -0700 (PDT) X-Google-Smtp-Source: AKy350bDf84u11KQ+Jm9tONwZM9S2Sqqt31K5Wy1oTGv/62h70QxacW0SXUSR+3KI2//xBJHdCtz X-Received: by 2002:a05:6a20:b71d:b0:dd:d1f2:f1a7 with SMTP id fg29-20020a056a20b71d00b000ddd1f2f1a7mr2025874pzb.27.1680611234162; Tue, 04 Apr 2023 05:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680611234; cv=none; d=google.com; s=arc-20160816; b=jfdLBYHEeHvN9stc4KdRWVJ17f9/AE3u+8beBJRm0F8X53cu6M0kQTa91XdZ8mCu2w 0cFByou80jMPubBaYLJI0dSRbSAL/4LTAWTv76iaSbGGv6TRIglj32Q1CKAvh8IbBGY5 2hKjdLjXRyW0pHP2RohBYkgsyY3uwWueFGI6PxCHvgT2iz4YDUOREPrBSLPBF63blk3j pQWWa3e8HtuPL38gdsErNnY5mtfJJqWpQ7lyMdEE2iKPGTsrrmYrJmGfFaMORLjFl7Wk joPKAe7QElrpkbywrhXw1rrjz/OS4H6xVf3RGLICELHhtsa90IXqIHgNM28Xx8iHeETP WLKA== 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=NlIRywC4pBj6a77Ol7zVTt0l3l1RJQnARY7smlHQSoI=; b=Y0N/mcF/4hx6kYGhDPP4vVZ5uT03MpF0/zFh4PKKQVQtTs7+AWkPTDoGpiXIKhs4Og HekfYLaafoDD+4n/kSfGRr8+L1S4cik6uGt1PeljlXzIhr0jwDQ4stJlMzNEcQxqDyFD fEAAVX6Ag3Dd3iq4dcqS5f5aOdYCMM3ShrsMxElW+3qlLJrEgvauOUEwoZWSkKSD72hq wL/a4andJ76sUkX2IfJ95IgPR/8PkcoSG3JDPNQN1f3klwkvRiYDA2AmKxKUhMB/oC+3 9wlpOTmooW3Ds2rVGPwJnG3SQnX2dr0zO1RANJNF4lzmdjvwAiflxSfcvnfj4KV5iwNf KH8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=b3SYEGCi; 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 b8-20020a63e708000000b0050f6ab2493esi10211949pgi.223.2023.04.04.05.27.02; Tue, 04 Apr 2023 05:27:14 -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=b3SYEGCi; 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 S234805AbjDDM0p (ORCPT + 99 others); Tue, 4 Apr 2023 08:26:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234677AbjDDM0m (ORCPT ); Tue, 4 Apr 2023 08:26:42 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDB9E1BEF; Tue, 4 Apr 2023 05:26:19 -0700 (PDT) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id D541B240003; Tue, 4 Apr 2023 12:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1680611178; 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=NlIRywC4pBj6a77Ol7zVTt0l3l1RJQnARY7smlHQSoI=; b=b3SYEGCikmzsZum+IK+K9om+oODTu3b9DYJuS+Uc8KGZ4imW5U/8DqBYvFOGFDewJiGKsf kQ7CxLM9WoqkOXOm+eL6RzzlIkKw39Xknz9aysx5xuCoA7k7wBS1UZMPzXYrL2ogBtw8vq ZmxB/o3t8el2Wmp17Nx4cI6i4NrqywrjVa7l7gH7pjluXLkoIYUieOsHRvSKtNjeFTz7DO wVuvNFDzgKbK4O4XzCMJ8r7HSa9by7vHD0D8DhkUYodYqDUzsPjd+UwxcehnSLi8GoPFsR JwHoGLgXFlxTnVSLtcg3//Zdmmi8THPgO6x5xosFJeWGuUOF709V3DBz8Yh5pA== Date: Tue, 4 Apr 2023 14:26:16 +0200 From: Alexandre Belloni To: "Tilki, Ibrahim" Cc: Krzysztof Kozlowski , "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" , "Arslanbenzer, Zeynep" Subject: Re: [PATCH v5 2/2] dt-bindings: rtc: add max313xx RTCs Message-ID: <202304041226162e231e78@mail.local> References: <20230403154342.3108-1-Ibrahim.Tilki@analog.com> <20230403154342.3108-3-Ibrahim.Tilki@analog.com> <202304040710049c9cc01a@mail.local> <1efdb870-cac2-f6ed-72b5-d0550dbb5257@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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 10:35:53+0000, Tilki, Ibrahim wrote: > >>>>> + 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, charging will always > >>> enable a diode, select a resistor and then have or not an extra diode. > >>> Figure2 of the MAX31329 datasheet is great. > >>> > >> > >> That is exactly why I had "adi,trickle-diode-enable" property in previous patch. > >> So if I can't have "adi,trickle-diode-enable" and can't add an additional value > >> to "aux-voltage-chargeable", I am not sure how to add support for the extra > >> diode at this point. > > > > Ask the person who asked you to remove adi,trickle-diode-enable... > > That was the purpose. > If the earlier submission was clearer my answer would have been different but note how I had to dig up the datasheet to understand there were two diodes. All the trickle chargers have a schottky diode so "adi,trickle-diode-enable" nor the commit log were explicit about the second diode (which is a regular diode). aux-voltage-chargeable is enabling a diode on all the existing RTC drivers so instead of trying to make me look like the bad guy you should rather thank for taking the time trying to get better DT bindings. -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com