Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp637881rwb; Thu, 11 Aug 2022 07:33:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR6c7R8KuqF1xwHI8Qav8sV8Qv0xzFnXywY27D3er1Mj9eFYZOkfy7tRMUgpC+Yi4bIhDxeN X-Received: by 2002:a17:907:d17:b0:730:a910:d407 with SMTP id gn23-20020a1709070d1700b00730a910d407mr24231013ejc.89.1660228414089; Thu, 11 Aug 2022 07:33:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660228414; cv=none; d=google.com; s=arc-20160816; b=nDAqM26DjRUewc+tyJdgFn5hAajlRvJxjsHsMMTRq4VI664zhgALLlQZerD4cvRZDi Hbs4azzi+Bn/bDqYWW1vWqpIWkaSv/gsNWgBlZiH210TU6hCZKGWxI8rx55/4l6Gn15M TQrGhfiU/omMqQcy8xybb8boVU+IV55Iuq4XW/7Z7KdjJZxeYy8GZ21Br3NxhHgowT8M KgN8RLuVOtSwYenakavoJQhCU6wuT0o3DiGE3Ty/FUgB7dbm5/6fUqpOqQI1R0p9SKgg O/xlRhEMf7oQOPaYulc/NS3y+E3z5TTkT7JGOEGHszVN90iueb35YhP7ELq74fbwHJSD FHVw== 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=Fy9PTke51Zg9523WNK0IhcOTzgepLlEhCDidUwNqgkc=; b=o7leLaTvgB2Zq6Q35Ac/f6uQaAKbvtujptHGYiA9D+W1b6HOoAZ9sV2X/gv/hrsZ0T YzPdpST7zwqojNx5bGTveb5JIsfBGo5ARNN4jTEMJ68hBKvwCmN/+asAuWrJ/ZVnC7DP ZHfYxRl7VCumlza2q5DOcLpzTx2rk1oZBoUnVXzCEHOwQ3eEjy+81HHFpdkpYzY8DfUj Mbz5a6A+jUxF+B7mvfkLxOD2oNNVyZLM+WKmbvWW7tBZvdPebSkVsUxro7aYh8eFg2Hk 18Vd0l4S7mqldWngYmbZnQUe7BBP00a76bpOV0V9PvwFAxaXagPsBWm7TvqwfBU1nXKb SMSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P95w+mFA; 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 nc6-20020a1709071c0600b0072f25c0af5dsi8372525ejc.135.2022.08.11.07.33.06; Thu, 11 Aug 2022 07:33:34 -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=P95w+mFA; 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 S235129AbiHKOMq (ORCPT + 99 others); Thu, 11 Aug 2022 10:12:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235102AbiHKOMn (ORCPT ); Thu, 11 Aug 2022 10:12:43 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 996CE64FD for ; Thu, 11 Aug 2022 07:12:42 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id l21so7961355ljj.2 for ; Thu, 11 Aug 2022 07:12:42 -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; bh=Fy9PTke51Zg9523WNK0IhcOTzgepLlEhCDidUwNqgkc=; b=P95w+mFAwgJ0FxxXxzex66rQi6nyYIcEZJb2oYfGMSDpipqZAT0uLiwWDeD787QhM3 KroYLUjytW1C9lXHIPVrP7YaPGllx695Qb4Trl32HZWcbW6ZbD9dcBBdjGCA+b5+5imc 5Ao4r//YZVPdXrb4nQf1MWnvkTsFCvVBCkueiXtnB1XeC+/nI96TxdVQmaT25CRrCRy3 Min1eLP45HkjmHH0lqRcBgFIhEPpiK60Iah0ya92rmjnXMJhZoIn0Nh+FwpOCAVX75lS QawDS5rhhX1aEOOV4ZzhcGhQwZtJMzK0zCqwTMy0RnHQJLq//f1izcx2AYFp/Qfwvr46 WVhQ== 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; bh=Fy9PTke51Zg9523WNK0IhcOTzgepLlEhCDidUwNqgkc=; b=xItUg9qv1FlQPU7mmIilLi2xi5YCjfAsv6cygExR7e3uxUINmoeFe2qK4gMXZ2XrfL UfMzG5BTteNHuUvjoGD8sJ5DUhRq3XLfBLtsy7m03KumqwnjLJPHlF3orzHuZPMjxg/D m0NMkUgDuQGdY7u8rhp18FSvr9CQI6uRBD/QjNLk5TI5uUN2M6m7zEweezSfexbYU1wm 1xiG03q79McFw2ZXSJXRuwXs7o/7A5/DdWj5TtoHhZM/CgIBrIvk/0Qp1F1/pWsZmiJz 6AhyEooS7m6XLEr1im3KXqqQnFTcwSJ3sCO4AjJdHoudWOZu6mj1dxPBfcmLIaMY+1r6 TrbQ== X-Gm-Message-State: ACgBeo22KVlVYMQ8MWEa9GuzKJhO2b/r49fqFObCVieM4t8hES0lTn7o WhYVv6cjj/pChdL/X8zMGUPDuU6IhqsEA0UJ X-Received: by 2002:a2e:be88:0:b0:25f:e9a8:44b8 with SMTP id a8-20020a2ebe88000000b0025fe9a844b8mr4932199ljr.92.1660227160351; Thu, 11 Aug 2022 07:12:40 -0700 (PDT) Received: from [192.168.1.39] ([83.146.140.105]) by smtp.gmail.com with ESMTPSA id g2-20020a19ac02000000b0048b2cde8c08sm712098lfc.244.2022.08.11.07.12.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Aug 2022 07:12:39 -0700 (PDT) Message-ID: <3cae9d60-4012-1dfd-abd9-4d0b9379e6bb@linaro.org> Date: Thu, 11 Aug 2022 17:12:38 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 1/2] dt-bindings: power: supply: Add Richtek RT9471 battery charger Content-Language: en-US To: cy_huang , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, sre@kernel.org Cc: alina_yu@richtek.com, cy_huang@richtek.com, alinayu829@gmail.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <1660225318-4063-1-git-send-email-u0084500@gmail.com> <1660225318-4063-2-git-send-email-u0084500@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <1660225318-4063-2-git-send-email-u0084500@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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,T_SCC_BODY_TEXT_LINE 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 11/08/2022 16:41, cy_huang wrote: > From: ChiYuan Huang > > Add bindings for the Richtek RT9471 I2C controlled battery charger. > Thank you for your patch. There is something to discuss/improve. > +properties: > + compatible: > + const: richtek,rt9471 > + > + reg: > + maxItems: 1 > + > + ceb-gpios: > + maxItems: 1 This looks not standard, so please provide a description. > + > + wakeup-source: true > + > + interrupts: > + maxItems: 1 > + > + interrupt-controller: true > + > + "#interrupt-cells": > + const: 1 Why a charger driver is a interrupt-controller? > + > + usb-otg-vbus-regulator: > + type: object > + unevaluatedProperties: false > + $ref: /schemas/regulator/regulator.yaml# > + > +required: > + - compatible > + - reg > + - wakeup-source > + - interrupts > + - interrupt-controller > + - "#interrupt-cells" > + > +additionalProperties: false > + > +examples: > + - | > + #include > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + charger@53 { > + compatible = "richtek,rt9471"; > + reg = <0x53>; > + ceb-gpios = <&gpio26 1 0>; Isn't the last value a GPIO flag? If yes, use appropriate define. Best regards, Krzysztof