Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1260762rwr; Thu, 20 Apr 2023 12:13:29 -0700 (PDT) X-Google-Smtp-Source: AKy350a6G4b23DvR7l9xa7PlE75Oesw/B2tQYUK3fQxkIuvaUD/VjPgoHT/J3NhiFXtstlscm2Wq X-Received: by 2002:a05:6a00:348d:b0:594:1f1c:3d3a with SMTP id cp13-20020a056a00348d00b005941f1c3d3amr7572495pfb.15.1682018009534; Thu, 20 Apr 2023 12:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682018009; cv=none; d=google.com; s=arc-20160816; b=V1DuNE/Z0Mh8Y2mVNOzI/m9+oJKouliP0hHFjs1/YDQfsxlRX0/IF5+kwfQH4zEKZf ijRvOuxWihJc9APS66bY8nt/ZZYXfc4g5iMIjuRKXWJHGoFgD4hMiegjcjlnnochHR// dSAr7qCsK+cAX23k8zZpD4broZClS8+ncPEANraxFU5roHaT1RBYymuuJEcsAxm/p3hs KfNuYC4j9L3o2AseBQ5rwOR2AuwzcJDVYBrF0c0Zw3Y+3LJAqe3rWFzAAMPvBuRWW0kh f0//SLtXtfmXuzh1F4dNc3DxCa4lpYl9ne1f/0kp+6vLgXvEmcZQCXn4FowiRLnbSnXw uljA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XcF8YitubdrlVVq61vFiY7n8l4J1XfxeL5mXCzPntYY=; b=lpnOjM/SeamZOjUn5eetnxgYvgX3U/XkbTLtxFUf4feru0JroXRjH7pNitvWmAjaE2 PAgKCvvpHcvoe8b+Rb7Nc/7JvNZgvT3ooEU1+fn81Wj7+spLyn89coUHXgQ09rBHKKqj ZDdIsQUG3VnzLooLhc226DVdNT4AZQTqk6t0/NCBSZja/vpJhnUrJgRZZI/N65vB9hfH xAzsJAGjQ7UXcOBVYr3VjhngCe6p1iz56FmMMzVC4ZoArIXRlBxkUg6HQG4l72LtH1lt M1VgLVkYyH0Eh59Iqqz1f9XCsivUkEeao1ooHkd3zImDYgPvcbAX0b+pbvc76hE0YSu4 7OXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b=EPHwvB3G; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a655a86000000b0051b6c0d78a8si2279018pgt.616.2023.04.20.12.13.15; Thu, 20 Apr 2023 12:13:29 -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=fail header.i=@earth.li header.s=the header.b=EPHwvB3G; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230244AbjDTTGb (ORCPT + 99 others); Thu, 20 Apr 2023 15:06:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbjDTTG3 (ORCPT ); Thu, 20 Apr 2023 15:06:29 -0400 Received: from the.earth.li (the.earth.li [IPv6:2a00:1098:86:4d:c0ff:ee:15:900d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D2672108; Thu, 20 Apr 2023 12:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=earth.li; s=the; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=XcF8YitubdrlVVq61vFiY7n8l4J1XfxeL5mXCzPntYY=; b=EPHwvB3GslDJ+Sn+7RhDg0+EVC F7mwGVAR48099+1uUizWmamElC50qVWut9o9KHoCdkXUYM48f1RxCgfbSJJhHW64smRpPw+KZOL5f edyzb/KW/nxzQYbDhrebvVM79AJBJboMNdr2DTFgR2yvgxrBglAhGVYjRMb1pdVXIOYMRUxLzO/Iu 0wOAOqWEqH5RiiNudJF9MMjFS/3IoF7Ol5nyyx2WG6sZ9Ae61PoZHNuFsDD4PQbt66Gw1yCeRjdqc Ip3Lvf05kHM/J4QstwjK6LPVVucxcoqqyooNVXsBXq4LAm2vOczh1Rs1yjbU81sSHGK1BazdBqQxS teQg4muA==; Received: from noodles by the.earth.li with local (Exim 4.94.2) (envelope-from ) id 1ppZbd-002TL6-RO; Thu, 20 Apr 2023 20:06:09 +0100 Date: Thu, 20 Apr 2023 20:06:09 +0100 From: Jonathan McDowell To: Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] ARM: dts: axp209: Add iio-hwmon node for internal temperature Message-ID: References: <25a8dcf9-fd1b-0eb3-eced-7a1e158ca7fc@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <25a8dcf9-fd1b-0eb3-eced-7a1e158ca7fc@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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, Apr 16, 2023 at 09:27:46AM +0200, Krzysztof Kozlowski wrote: > 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. You think? I didn't choose the axp20x_ prefix for the others, but it made sense to me that all the sensors from the same device would be identifiable as such. From your comment below it sounds like you'd prefer I use the more generic pmic-temp as the node name? Will do for v2. > > 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; J. -- "My house has this new innovation called "windows". Even my bedroom has them. " -- Paul Tomblin