Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2057783rwb; Thu, 29 Sep 2022 05:50:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6lS1M4fCgXUClTXGZoM+YOylvrCaccviAjzj44dsqVxbmqcu6yKq5oBfSgPllUzE7W2QyA X-Received: by 2002:a17:902:9881:b0:178:6506:bbf9 with SMTP id s1-20020a170902988100b001786506bbf9mr3349464plp.80.1664455859467; Thu, 29 Sep 2022 05:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664455859; cv=none; d=google.com; s=arc-20160816; b=na1K3E7mpglANz9/esTGjGxTPiMPxYoPH+taGT3HVNWTFAvPOUwTkXvdjVkugkKYKt nCI5dOC8oKK86eusCz0doE9f1U4NkoG9/IYUaISb8mQiBwHc2GF/SKLtE5ilZ/ejO9YU wSjkJ3Yb9wrsqHO9ZwadYBefpJI/nu6fA1drR0To0SxfKIzT9tdyZRrhPR3kQupAqYaT g5NiOQs9MdNEYlFTehidAL8eJhl8+H6j0QYUCclrsb0XrgWFIrbeIsQvGJlKx8dH+iD1 53qAHsdx6maGkAr+V/qxaVZ11DWZv0N+hWVon1goaKRdND7zAr3u9nIljURm8yYQLXQJ wSIA== 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=cNbvBpJQ8ytsaQU5m5L7uhDa6I7TxFtFcCoKpSC+nFg=; b=ajBds78bYyYYfO8jAnsg46axx6gwLnIerNpxZMeW9l0gl6KaMZ3cp3cnb0/FOTehfa D8GbAozz35ux97+6EAUijDKd3rxzrkabjqsIJlu0x7Txqs0cc1ODcD6pH3Hb8j8InNq3 X7DdLq8nv4CtYjzTFGQ1z1O9PjM9O/OlZHqmlmSPPHx8cewnWzjvTYZuKSEsIwQ5XB7i 7LfuHOpqcA2DMvUCn0GZYhVz1dP41ilLhDCoQAb7pt0dhGg+HXXJLt8Z2nzIeswHf1Ov 8WkiOnmox90f20gVlfKbmP1kltMRsh/m1GVc6xBroVaK+rM25e0TJKbnqybTWSVtbhZ3 y7aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="W1V/Q3GO"; 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 y15-20020a17090a8b0f00b00201d6d4cc79si5053651pjn.113.2022.09.29.05.50.46; Thu, 29 Sep 2022 05:50:59 -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="W1V/Q3GO"; 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 S235100AbiI2Lbc (ORCPT + 99 others); Thu, 29 Sep 2022 07:31:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234997AbiI2Lba (ORCPT ); Thu, 29 Sep 2022 07:31:30 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1538413D1C6 for ; Thu, 29 Sep 2022 04:31:28 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id bu25so1799724lfb.3 for ; Thu, 29 Sep 2022 04:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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; bh=cNbvBpJQ8ytsaQU5m5L7uhDa6I7TxFtFcCoKpSC+nFg=; b=W1V/Q3GOj1L0xzmOMHfldXmwA0xiI87MV8akcr2iy7CI8ojb02e3ycmVFQiQ4pe6Tz HSD/tNHZSJceUOQJ3KZcMLEEXn+wCM5dDMCaAsHY7TSLk+6PRTT+z+Vc1tBfgiegpqiy M9PmBEa5As7rJ1ZwXFkQMcSvRGd48NSimRi6n7yFOTE+oncYUHefUqhShvDIGjxmPUC/ zBBDeUOHSC33O9mzMbTOtTOGLn49o40BE1MmJVdHIHmFxSp18MRYADUPj3tEm2IvjtnC vcYEA0/xhwSVeIR5cONyJyv4jNmIYyGCaO2LnJBvgHTqhJzjSP5yKS1b1G9lIJJ68yTI +z+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=cNbvBpJQ8ytsaQU5m5L7uhDa6I7TxFtFcCoKpSC+nFg=; b=oZ2K20tQRoj19gII7v7mi+r1FwLS/bROMQU+hQiqfaHRYMgSG3xhjRyLYRLmGfQSNv vS0qFihywm9Fkh2tWkNPHjmjSbmf/SAU4cuFOmtDIJokBVQxxKf2YADBO7A3KMA3zy8y lzGltxSj39UpyQiGmq1Dke9B7xEAGpzoirQJ47tZRlfk1QEaq0+exn7CDpFwyKP7rD/y 6dSqH13ofLTZ3ts4SAO/a2DrfE9J5/FGLBzzpKI+AH5yIFEm9KTA+LBw0+rAjgiS/KdW hBMI6BCKQ7S9P2K981YvzIsEXLym2sXmDEY6yh2gXjkPQhaA0qwBD0N4oshbdZRqIaQU U10Q== X-Gm-Message-State: ACrzQf097UF8USJJPUKOD8GBGFknyzSM19L5BHBGJ5iELeU9SVtuag5Q MeyfftY2+tPCSVI0FwNXx/REKg== X-Received: by 2002:a05:6512:511:b0:4a1:d9f3:ea10 with SMTP id o17-20020a056512051100b004a1d9f3ea10mr1255898lfb.555.1664451086461; Thu, 29 Sep 2022 04:31:26 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id v16-20020a056512049000b0048aef1abb08sm756680lfq.297.2022.09.29.04.31.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Sep 2022 04:31:26 -0700 (PDT) Message-ID: <8322b054-27c4-32c5-53a4-abb40845d66c@linaro.org> Date: Thu, 29 Sep 2022 13:31:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH 1/2] dt-bindings: power: supply: Add Richtek RT9467 battery charger Content-Language: en-US To: ChiaEn Wu , sre@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: chiaen_wu@richtek.com, cy_huang@richtek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org References: <2590163cabaef9ece537c5453eeef9f259e56cef.1664475743.git.chiaen_wu@richtek.com> From: Krzysztof Kozlowski In-Reply-To: <2590163cabaef9ece537c5453eeef9f259e56cef.1664475743.git.chiaen_wu@richtek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 29/09/2022 12:37, ChiaEn Wu wrote: > From: ChiaEn Wu > > Add bindings for the Richtek RT9467 battery charger. > > Co-developed-by: ChiYuan Huang > Signed-off-by: ChiYuan Huang > Signed-off-by: ChiaEn Wu > --- Thank you for your patch. There is something to discuss/improve. > + > + reg: > + maxItems: 1 > + > + wakeup-source: true > + > + interrupts: > + maxItems: 1 > + > + charge-enable-gpios: > + description: GPIO is used to turn on and off charging. > + maxItems: 1 > + > + usb-otg-vbus-regulator: > + type: object > + description: OTG boost regulator. > + unevaluatedProperties: false > + $ref: /schemas/regulator/regulator.yaml# > + > + properties: > + enable-gpios: > + maxItems: 1 maxItems are coming from gpio-consumer-common.yaml, so just enable-gpios: true > + > +required: > + - compatible > + - reg > + - wakeup-source > + - interrupts > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + rt9467@5b { Node names should be generic. https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "richtek,rt9467-charger"; > + reg = <0x5b>; > + wakeup-source; > + interrupts-extended = <&gpio_intc 32 IRQ_TYPE_LEVEL_LOW>; > + charge-enable-gpios = <&gpio26 1 0>; Use defines for GPIO flags. > + > + rt9467_otg_vbus: usb-otg-vbus-regulator { > + regulator-name = "rt9467-usb-otg-vbus"; > + regulator-min-microvolt = <4425000>; > + regulator-max-microvolt = <5825000>; > + regulator-min-microamp = <500000>; > + regulator-max-microamp = <3000000>; > + }; > + }; > + }; Best regards, Krzysztof