Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp2583914rwe; Sun, 16 Apr 2023 00:42:33 -0700 (PDT) X-Google-Smtp-Source: AKy350YlgmaZ18OnehvV2XJZPAN0y9QNGt/G/MBAhp9+7Z9v0j2r8HqWxaw0eGjv2/CvrI1PdA6O X-Received: by 2002:a05:6a00:21cf:b0:63b:1e7f:cf15 with SMTP id t15-20020a056a0021cf00b0063b1e7fcf15mr15656777pfj.3.1681630953583; Sun, 16 Apr 2023 00:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681630953; cv=none; d=google.com; s=arc-20160816; b=r2eN2+MJPhJDWv9FDLVHiCDuEVUaQV0vTD03dkLXPzCTSgh+lYlj5OTmYp1jxKiNw+ ANkT8ZG9CxMmo0nJja9CX89oLelLoxDksPggkez856sFHCaDN1/yIA4mR2uBtnJEsy81 cFvMYzn+jnYqN72wVaDaT1qTvNsGp/29dweDItva8y9J39E/Yyr0n4gapHo9klWzu10Y aE3+UM0351+RUeFNoAGYrx8BnE/Tn/HaMU7ci5XrVY/euBZMSvzEsXM1vjruhkkrs+tz 8R/gBS7+db/GgR1WVxaDcGGZ0qPEE/9gMrEuojZ1KKhryprmCvYxLXQjHe0Ebeq+EdzH ilHQ== 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=73bMhyNa0aa8++7vraJhEFeVzDGBZJo8oH+HWy7K7yA=; b=hFQQwUqjSJ78fgFFCY+M41bTRE37l4LSBvZaOU1/UyRfqkJOaJE/XbmhkCGeQjfOfu +xm0SUXXYzbSyP8GOeNLl/d8M7MKGiFowCnOLnkcf8iIXAqUaaSh+ctss43fy/tan3EP 3ysFqXMAjYm/7ksJdJUdir9tMg9GwOpeoLbm2DhXho1AJBih+aqB0MuGy/vFc1AHjUiw 9ndT4iOzpvRwx5Vq5tQdmR1Cm2bdOH8AQEw3+pDLiht8yBxpke0fM2NWX/X+xDn8Hjv8 w1qQZMWT4NM7+4SajCrch28iPsVk9wRkHm0M7IdZVErtNQOe403ZfRwUnm+K/0T2CDVe lCug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vIONb8S4; 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 f189-20020a6251c6000000b0063b893272a8si1594532pfb.246.2023.04.16.00.42.20; Sun, 16 Apr 2023 00:42:33 -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=vIONb8S4; 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 S230311AbjDPH1w (ORCPT + 99 others); Sun, 16 Apr 2023 03:27:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230261AbjDPH1v (ORCPT ); Sun, 16 Apr 2023 03:27:51 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3559B19A5 for ; Sun, 16 Apr 2023 00:27:49 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id xi5so56308081ejb.13 for ; Sun, 16 Apr 2023 00:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681630067; x=1684222067; 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:message-id:reply-to; bh=73bMhyNa0aa8++7vraJhEFeVzDGBZJo8oH+HWy7K7yA=; b=vIONb8S4Fov/w6lEJwtIY2XDOhURweSdmf2eYGoohCqBWvMR469wTlBOPxUOHrNLfq U7d3RheCV2V3RChebAvRCwecv0QtbwsTQOMJtcFBcqti8d9mtRIODisx1+6/pYcWOsPq vvEoIL4v2Zs5kdyRignjh8Pij88mZKU9Ro6UDknWcj3l6VJUvWAy5m1zoVHDDxMMYQA6 Urz1QYkyvIFOCE5MpYNT55ozc2rXofUXHfkgeSYRunxt6qs0qRjBR/IBSQND7I9UCuh5 FQUEYZ9Wsnc3sKwAVFlPNQ8AB7eH9VePhcTelqt3BqTt/o0rRwNx1VhMnc5qPvlJ36Nm wMvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681630067; x=1684222067; 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:message-id:reply-to; bh=73bMhyNa0aa8++7vraJhEFeVzDGBZJo8oH+HWy7K7yA=; b=RcjA6cSmYXIGYob/K4tkTPhS9rBlKaCsnBRb6+SiNyl9bgiJyEInRi3lKj3UL0P30P Otp1Oy5c/uyoh6IPv8+JiieIWeoQWLkx40HggWZAclQiGYOS6ODrkLrAzO094gK+UjDX zPVGf7e4KdMh7qVlX5R6wTkGSN9/591htctDzZoFPHyAGTTySHaCgI+0zeq8w75PiyYK AmciTsirgd8vWqnUevojhMC2cmuNetRTGJC+6PHTAE+PLEPCDdoN0thyG0uOfHDOdhsp ntn92no7Ai6yGdRt4pPfH950OdXqdv8gGUf4ik8r6g2j8chIOJPBve3jI5p0DOzKgivJ SVHQ== X-Gm-Message-State: AAQBX9dQ+jos3Xs6oGnWJzm3Ol/zqGH1+zSkBQcSdZPJR83mQj95BkNb WVkJEtDG62MTgEmoAq4ti0rwsg== X-Received: by 2002:a17:906:82c5:b0:94a:8e19:6aba with SMTP id a5-20020a17090682c500b0094a8e196abamr3986530ejy.21.1681630067634; Sun, 16 Apr 2023 00:27:47 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:29dd:ded4:3ccc:83db? ([2a02:810d:15c0:828:29dd:ded4:3ccc:83db]) by smtp.gmail.com with ESMTPSA id s4-20020a170906500400b0094776b4ef04sm4821709ejj.10.2023.04.16.00.27.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 Apr 2023 00:27:47 -0700 (PDT) Message-ID: <25a8dcf9-fd1b-0eb3-eced-7a1e158ca7fc@linaro.org> Date: Sun, 16 Apr 2023 09:27:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 3/3] ARM: dts: axp209: Add iio-hwmon node for internal temperature Content-Language: en-US To: Jonathan McDowell , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org References: From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.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,URIBL_BLOCKED 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 15/04/2023 19:47, Jonathan McDowell wrote: > This adds a DT node to hook up the internal temperature ADC to the Do not use "This commit/patch", but imperative mood. See: https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 > iio-hwmon driver. The various voltage + current ADCs are consumed and > exposed by their respective drivers, but this is not and is always > available. Naming chosen to match the axp20x_ prefix the power sensors > use. Weird choice. > > Signed-off-by: Jonathan McDowell > --- > arch/arm/boot/dts/axp209.dtsi | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/arch/arm/boot/dts/axp209.dtsi b/arch/arm/boot/dts/axp209.dtsi > index ca240cd6f6c3..f00b5a7ec106 100644 > --- a/arch/arm/boot/dts/axp209.dtsi > +++ b/arch/arm/boot/dts/axp209.dtsi > @@ -48,6 +48,13 @@ > * http://dl.linux-sunxi.org/AXP/AXP209%20Datasheet%20v1.0_cn.pdf > */ > > +/ { > + axp20x_temp { No underscores in node names. Node names should be generic. https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "iio-hwmon"; > + io-channels = <&axp_adc 4>; /* Internal temperature */ > + }; > +}; > + > &axp209 { > compatible = "x-powers,axp209"; > interrupt-controller; Best regards, Krzysztof