Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp203016lqr; Wed, 5 Jun 2024 03:38:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUaG/Lh6P5qZg8l6nSa7ftKQcwSAAtTAAG83dsmhtxnQQNz7FHxlafD0l+0ToVuDGORQsuuQXRmBUBgbWrJJKMnAA/Dr1k/KTQzhGBXIQ== X-Google-Smtp-Source: AGHT+IHWnjEafNgqepuuRf1I1RQn8SNWmBr4veB5TGR5hhvvngaANL3a+wuqighhplorjTJ2x4ct X-Received: by 2002:a17:90a:8a15:b0:2c2:1fc6:c333 with SMTP id 98e67ed59e1d1-2c27db225c6mr2238332a91.23.1717583927142; Wed, 05 Jun 2024 03:38:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717583927; cv=pass; d=google.com; s=arc-20160816; b=NIN/loA34aCMrEaVhNiR7XJ5+vSKcmzyJZrVXBjtcO08Yh6kiMwzT3gkdacXtd7aN5 /+iG7kF3vrzMW1ib+W/WVIfUpUroiNhHDH01sWPTiE5m6PGbCwlZFESKs3lHPmQRU9Jv FEmiatI4zKy4iQAPf+IH0UM3wSsrZ1+S481FBRF5p1+RSu4FnVkxPaHnS/cRES3hSTUk SbeBb7ocKeHQgeyH78E1e+YMc+7Jnks/2/1f44yHzRjLbe14axF1XvKeSjxGeRhTiifb 58sDZ057PQCKJs3d5sKb4lfsGzEwxombNlqhyh/Q3g5Vea1S5PYQc+DVAt+vlFD2HBPr RtBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=n9eCjkVKsmv+jKGjLdJI7FdB54b1osEf2iyYKTeMgJg=; fh=6hXvWYloAK2nVzHc2+DBz1tihW1EGu+Jbkg962HwmcM=; b=sI0gzBQ5CzuF5AM74PBOB61p8W/yWuqwDat4RlVVwQfn1a0TrQmdOtcJ5sxh/cenYK TScRxunB9K/colErRz4ee6Hdy5/FgZl1dn0LbkOPR9U0+Vig6S5+FGvDMbLUWycXw8NF +JDjT2mrbbLS9cwyhR3a3S8N1t2hiSAwoSsNdyR6rDamv/TMbzMJEJhbG9PjUxLkAgsN /7KYciWwvdyL/ba/s/Ui3IE2GbQ+k2DdNUY93xL8+kKlxDKlO+X2iksgRIVnkZgE71J7 SSOaC8GRjFcw29LDryR94NGY9O9tBupaAhLq2XI/9/nbaIunK11im/5Kl2ym4w3KzaTZ w88A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dSOLuGWL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202185-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c28063a7e5si1004006a91.17.2024.06.05.03.38.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 03:38:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202185-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dSOLuGWL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202185-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id EE502B26281 for ; Wed, 5 Jun 2024 10:20:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8023B190493; Wed, 5 Jun 2024 10:20:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dSOLuGWL" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 666241946D5; Wed, 5 Jun 2024 10:20:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717582836; cv=none; b=LOre75C4EIwhQFhrAT6zK+IJeKlPjufKa7qDhkqebg9s0xnePUQHfGF+QcUeSzuvayueQsLkkpwxf9NVLN4qbSybmilMPEIWli0PjldiOvZdiIwBq2xjFSO/6sxWPchEIQdm0O6OKz0ztW9HWrt/c0/3+jNvbVU1zCLORkyjo14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717582836; c=relaxed/simple; bh=K/NNlu7lMhUcMk9rYOthlm/0NsBQrYRQmAec9h6uSdg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rUpyN/PwyiMWmOTF+amlLx/AWPKc0MLcUaCxNMgX6Z4oVPQ0JujiimaA6GaosRZ0+qDyeYEHAggt6ANwLd589R98iuwakmqGGFD/wiDSM+dl1DMgjlaDv0Ug9iuDMUSb1mo09M3IJLz8116DFQrecvEPQ2fgwqxEjVH0KSZndEM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dSOLuGWL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33A8CC3277B; Wed, 5 Jun 2024 10:20:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717582835; bh=K/NNlu7lMhUcMk9rYOthlm/0NsBQrYRQmAec9h6uSdg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=dSOLuGWLxQfe63XXTAVpn9dxYda1Slkq0IuX5oTLEQ7PWAuZGOD8DX4E5pAu+RdZw sEDojp2vYlvFgGvnUN3L1Wp+8LQsdMbSxhF8t1JEHlFWY2OfcYc0DPmcE+/N6ttMkC ZJbbPjcN+t/qc6LNGk2EEc/oNnENfcJp9NIU8vGvqmUjWcQ5kqZeQHcuKmdVMxYXGI O1I0ZNP90UarlBd+5XNkUHz9gOx1i2xl2rJXcPWvvLYmx56CXsDUlWjzmytMPlYDyy gr706mgo+fvIB9/LNPbrkC5Ah9EN9RpBvVMJu1AW3/tY/We/De8QjOMfAE66fsasfA p4ozRqWdmpWDw== Message-ID: <1c61d5b5-d9c0-4fa3-8267-8aaf6c441b75@kernel.org> Date: Wed, 5 Jun 2024 12:20:31 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V2 1/5] dt-bindings: input: Add YAML to Awinic sar sensor. To: wangshuaijie@awinic.com, dmitry.torokhov@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, jeff@labundy.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: liweilei@awinic.com, kangjiajun@awinic.com References: <20240605091143.163789-1-wangshuaijie@awinic.com> <20240605091143.163789-2-wangshuaijie@awinic.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5TYeTVXGSyDsuZjHvj+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> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 05/06/2024 11:11, wangshuaijie@awinic.com wrote: > From: shuaijie wang > > Add the awinic,aw_sar.yaml file to adapt to the awinic sar sensor driver. Subject: drop final stops. From all your patches. > > Signed-off-by: shuaijie wang > --- No changelog, so nothing improved? > .../bindings/input/awinic,aw_sar.yaml | 125 ++++++++++++++++++ No underscores, but rather awinic,aw96103.yaml > 1 file changed, 125 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/awinic,aw_sar.yaml > > diff --git a/Documentation/devicetree/bindings/input/awinic,aw_sar.yaml b/Documentation/devicetree/bindings/input/awinic,aw_sar.yaml > new file mode 100644 > index 000000000000..2560ef09d3d0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/awinic,aw_sar.yaml > @@ -0,0 +1,125 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/input/awinic,aw_sar.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Awinic sar sensor driver family driver as Linux driver or some other hardware meaning? If first, then drop and describe hardware. > + > +maintainers: > + - Shuaijie Wang Missing description. You already got question about meaning of sar and indeed nothing improved. > + > +properties: > + compatible: > + enum: > + - awinic,aw96103 > + - awinic,aw96105 > + - awinic,aw96303 > + - awinic,aw96305 > + - awinic,aw96308 > + > + reg: > + maxItems: 1 > + > + irq-gpio: > + maxItems: 1 > + > + awinic,sar-label: label is a string, not number. > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Set the label of the SAR(Specific Absorption Rate) sensor. > + It is set to 0 if one awinic sar chip is used. > + If two awinic sar chips are used, awinic,sar-label in the first > + awinic-sar should be set to 0 and awinic,sar-label in the second > + awinic-sar should be set to 1. Sorry, no instance indexing. Drop. > + > + No need for two line breaks. > + awinic,regulator-power-supply: > + description: > + Choose if you want to use a regulator to power the chip. Then the > + vccX-supply has to be set. > + > + vcc0-supply: > + description: > + Optional regulator for chip, 1.7V-3.6V. > + If two awinic sar chips are used, the first regulator > + should set the ID to vcc0-supply and the second regulator > + should set the ID to vcc1-supply. > + > + awinic,channel-use-mask: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + The mask of channels used. > + Configure according to the specific chip channel used. > + Bit[31:0] Each bit represents a channel. > + If the customer uses ch0 and ch2, then channel_use_mask=<0x05> > + For a 3-channel chip, the maximum value is 0x07; > + For a 5-channel chip, the maximum value is 0x1F; > + For a 8-channel chip, the maximum value is 0xFF; > + > + awinic,update-fw: > + type: boolean > + description: > + Choose if you want to update the firmware. Not much improve in explanation or rationale. Why do you want to update FW every time? Explain this in property description. I mostly skipped the rest, because it does not look like you addresses previous feedback. ... > + > +required: > + - compatible > + - reg > + - irq-gpio > + - awinic,sar-label > + - awinic,channel-use-mask > + > +unevaluatedProperties: false Missing some ref, like dai-common or component... or this is supposed to be additionalProperties: false instead. > + > +examples: > + - | > + #include > + #include > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + awinic-sar@12 { Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation I still have no clue what is sar and there is no description in this binding. > + compatible = "awinic,aw96308"; > + reg = <0x12>; > + irq-gpio = <&tlmm 72 0>; Use proper defines. > + awinic,sar-label = < 0 >; Do not introduce different coding style. Drop spaces. See DTS coding style. Best regards, Krzysztof