Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3468763rwe; Mon, 29 Aug 2022 12:23:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR7L2KF9aUcLbFwOa2jTDrbIGZsFPeInhy0nJ+LBiZ/Je7+j3Jdu1rUCnh5mwT/KNs4F8r0Z X-Received: by 2002:a17:902:ea0e:b0:16f:11bf:efe5 with SMTP id s14-20020a170902ea0e00b0016f11bfefe5mr18251060plg.57.1661800982549; Mon, 29 Aug 2022 12:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661800982; cv=none; d=google.com; s=arc-20160816; b=PoenVHtTpVuDiSCKKNFR2uPwWHV5XidkQa+fA5CaYSaLyMsx+u8WmBaLABBtKHVuO5 037ty7oLBpMCYWwzvxvNMAJUDhLG9EthMa9f+z8fXkR+mGVTnhLidc0n7DJbM4heYFgc eGuYJnMKPovSj/S9h69fG95N5UzS00YhiRWh34OxBvdP+YCnbcuzQErRQW+344XBaz6O J0+oXQjy8ao5PqTEsRCqaZBqQ5secC2JV4qB4UxBMnob596SIcZMQvva/hRVyWGNi9FB MI3yR522V5KAkebEGFABpvjPFz0mgFvl/bxXyEkgZc72u1b1MY015CJl00iXgFENuXgR lkPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cvkaneUuS9p1umkooqw6O8Kcu8ZeN+C0KXE6gnMdVGk=; b=JTsacsmgfgU9RhjcpDpehm1fZ1Cp5TrCV+q/Gikd/Qj3NNd/iHq09OBLHZA43zCJCs E2rR018a/55hJa3s3SQ3ZDFUt+qm4GSK8EBTgbKFS5bm++kxkArCC7wR2pWmKxdiBWzz EVcInx1a2MpqJ1DYOAKkG7GewiCJp85084XYj2+zs8ETwWVZrZj9SNfFWTxfctqswpNg 2M1skbmueF/Q01P5YmbxO9MacsdlXpIpBfbnY9cpLjFyMkDtxl8BXy3YtVd610JptJW0 QWX79gnMecUmjjhu+O7X9TV7UpsomsgyVRWQVPIidgg2gSGOILW3CQRnF87WinGniSwX k2eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KQSQvxsb; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d4-20020a170902f14400b00174c5fdc8d2si2886371plb.307.2022.08.29.12.22.51; Mon, 29 Aug 2022 12:23:02 -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=@kernel.org header.s=k20201202 header.b=KQSQvxsb; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229636AbiH2S4K (ORCPT + 99 others); Mon, 29 Aug 2022 14:56:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiH2S4I (ORCPT ); Mon, 29 Aug 2022 14:56:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 650F87CB76; Mon, 29 Aug 2022 11:56:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7F9F461345; Mon, 29 Aug 2022 18:56:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E27BFC433C1; Mon, 29 Aug 2022 18:56:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661799363; bh=TamrP8iZ3a/vwgNl6jeDj9HDRxUSmknwoJjwZBLDgZY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KQSQvxsbeIzLLxiwlVjxFLR3ADrZcGpYgb0rnA2Gj7j9j3KfTgZgKN4g+/UhIvJMO SOLXQwI7NIbj+ZS3tgc0smVXv1AX9v5oZzhjASP/JoZRo+vJmIms3LQhRczoIzZDGg 8uAtSEpbdBeKpaXA2DKuVdckUbKt5q9r7YAkguWMBM1D8I7V/sHkis490ERcpUYMfN 8FudKRGCp3jqO4TLZ4XywvXiKpWcae3MAYoJ4ULv210JBOxg3D5RPNtgETYiq8lW+7 1he/aZaCwwmgF5VySnbOYmFP/5FUowYnvS2YMvq/O8pC7Kahhi8Yafg3O+OWcAw1Cm 3ZL8Vw8VmBGgw== Received: by mail-vs1-f48.google.com with SMTP id n125so9263960vsc.5; Mon, 29 Aug 2022 11:56:03 -0700 (PDT) X-Gm-Message-State: ACgBeo3bFoEieJgvVV/IUFUY+z4d9DsyzzEOYKjsa85EUgpARwM9sgng d51AJ2KxSgZksPhOuYBrX4g5J2g2E6g9lcUIJQ== X-Received: by 2002:a05:6102:3353:b0:38c:9170:a96b with SMTP id j19-20020a056102335300b0038c9170a96bmr4295635vse.26.1661799362886; Mon, 29 Aug 2022 11:56:02 -0700 (PDT) MIME-Version: 1.0 References: <20220828154904.20477-1-farbere@amazon.com> <20220828154904.20477-2-farbere@amazon.com> In-Reply-To: <20220828154904.20477-2-farbere@amazon.com> From: Rob Herring Date: Mon, 29 Aug 2022 13:55:51 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/2] dt-bindings: at24: add new optional power-supply property To: Eliav Farber Cc: Bartosz Golaszewski , Mark Rutland , Arnd Bergmann , Greg Kroah-Hartman , Linux I2C , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Talel Shenhar , "Hawa, Hanna" , Jonathan Chocron , "Hanoch, Uri" , "Krupnik, Ronen" , itamark@amazon.com, shellykz@amazon.com, shorer@amazon.com, amitlavi@amazon.com, almogbs@amazon.com, dkl@amazon.com, "Woodhouse, David" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Sun, Aug 28, 2022 at 10:49 AM Eliav Farber wrote: > > Boards using the AT24 EEPROMs might have a GPIO that controls the power > supply of the chip, and it must be set to enable the usage of it. > > Add a new optional property to the device tree binding document, which > allows to specify a GPIO regulator for the pin that controls the power. > > On Linux this means that we need to enable the GPIO at the beginning of > probe function, before trying to access the chip. > > Signed-off-by: Eliav Farber > --- > V2 -> V3: > Apply on top of v6.0-rc1 > > Documentation/devicetree/bindings/eeprom/at24.yaml | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml > index d14e0accbda8..82f0046f67a9 100644 > --- a/Documentation/devicetree/bindings/eeprom/at24.yaml > +++ b/Documentation/devicetree/bindings/eeprom/at24.yaml > @@ -179,6 +179,10 @@ properties: > description: > phandle of the regulator that provides the supply voltage. > > + power-supply: The datasheets I looked at say the supply name is 'VCC', so vcc-supply. > + description: > + phandle of the gpio regulator that provides the supply voltage. What the connection is is outside the scope of the binding. IOW, it might not be a GPIO controlled regulator. So drop the description. > + > required: > - compatible > - reg > -- > 2.37.1 >