Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2482384imu; Mon, 19 Nov 2018 01:01:35 -0800 (PST) X-Google-Smtp-Source: AJdET5c6+6XmR9ASgau+PZPXU9LJ9dv1HoUHUc2jHdh4mPO+P13rC6oO1MefUohb5o9qlU4R+sqL X-Received: by 2002:a17:902:a516:: with SMTP id s22-v6mr21467279plq.255.1542618095622; Mon, 19 Nov 2018 01:01:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542618095; cv=none; d=google.com; s=arc-20160816; b=Ejl2JHlo7XLjKUT2kJawUaB5RonArQFNSkZeR9BqMfxr/jXDEBoOYgXF+kqcX9ZAIj 2SB8ugE4t1YFt4AOoXa0ycQyyOQpkqOITs4dKRO0Ix7WN8+VyYQ6Iproy6XsvmgRpCCq uMmlcNJ8hmERFBABQUrthQE5AiKRcXF+XWBeb4cr+YyOEaf9JShuvvLW5+lB/4gewIEW QUBT7w17xIpvjtJC/UyeeDpE1tOmXzs5+oWfLAtt8DHjhPRZuap2I9vcd3TJesanUPXW M6U43mnQ6fkXrB7zB/3dWFw9zwGKpJCsDMcLFWL6tQI6sfH+DbYGtKUL4T9V7SF6yL3e hF1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:openpgp:from:references:cc:to :subject:dkim-signature; bh=wR6JyfdzIywpHxZOsSr/27mOXAcYWeE8wyd6CS3sorU=; b=l7q58LB0fSe9w9KTEuGG67vMp3WYMg5Udta03ddRBq3LEFJ+inECf3c8RpsaJnnKoe JDOR6ggRZjTWyjqHo9SQK6NG5Ai1bCVnSQZcl7fCmPb4Oy45gMunYCzikt/6jI2VterZ OHFYurf/5b8sX6qLYIckGRugds2nNhcTl1AcISS+f3CvIYQ/qb1vRYBm3c/GzkjhQSy7 SWRP+nmzue3sGG9QZWkxNpBgFPR4AxQ9WMGLIbxLNPdVkHBlfQKXeB4N5nglnE8t64Qz xA77AjPt3T5XJ738B+TQqmim4uqmZll03MOcrkAuRSRu8czdXboP3jbsP8cQi7QqU/Hl TjlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=jVUOodgo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15si6962063plk.357.2018.11.19.01.01.20; Mon, 19 Nov 2018 01:01:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=jVUOodgo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727286AbeKSTWN (ORCPT + 99 others); Mon, 19 Nov 2018 14:22:13 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:34880 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727254AbeKSTWN (ORCPT ); Mon, 19 Nov 2018 14:22:13 -0500 Received: by mail-wr1-f65.google.com with SMTP id 96so14192231wrb.2 for ; Mon, 19 Nov 2018 00:59:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:openpgp:autocrypt:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=wR6JyfdzIywpHxZOsSr/27mOXAcYWeE8wyd6CS3sorU=; b=jVUOodgoxSKFPEvKZVWdLALynximcgU0uD6gGZ5Mqe3AbmyzHDjW+nT3HYmJ7YpKHT 5EZ/hHLsOUMAgU5hNQ251rVuQrpOnhvq9nQkWJbKnsdwFgWOFESwrP9ZA8PFgf0eAxp0 ufIoeXfk7KVSDFcHfTUybuq40hyXhACEpPlKvzw/CNaMKBOP1iE1zkEvif/t4u/dpo7U 9wSSzRC1E9Ut0dqNbaqeIqVnkAB28em/ru/iMj03MTlkEQN9SYGJJI48ZWXZP0RrmuxQ ELeg2jJ/G86+gXs9iYKimS7VykU3KhrkmThMTdv5rtgec7UDTdgq3FD5Wy27HU+yMW9g Qq2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=wR6JyfdzIywpHxZOsSr/27mOXAcYWeE8wyd6CS3sorU=; b=jJjWlfGRdzP2mo7p0N2NamwqA7/1D1Lr0BqEGxmGABgI/lCeZcljdBZcnkLH9B2hM2 0/C6Rr65QOxtTOXQnM1su4IbxC+jU3BcAS8DNFrxEgvb3YkX8skVaat93/M0dvvjkWDD Gf2a+P7lvG0KmvBAYmCneFzIcNG6UQlPNouC0pIukd/xSi+ZILTZJuAZ1Fg/TmtxsYlS IqZDjLOg0Zt/GRyGo54z+ouqB4Aw/ZQiYGU8oyw6iIVEYepKrE/QYjUC7zAt3H45BJfQ WPW00ZT/pjvNCq/W+FcGUuGVd/6/KUrawViVupqEHpdBlPu4W919avNvJ5w4dg2DlWN3 3uDQ== X-Gm-Message-State: AA+aEWYaxctLU1Ks22qW704GzJRgNX6guqMQokwiGJHC9uqUv0oX/x6r am6ZyelKxp+LWIOojklE+FMETg== X-Received: by 2002:adf:8544:: with SMTP id 62mr7213060wrh.1.1542617951713; Mon, 19 Nov 2018 00:59:11 -0800 (PST) Received: from ?IPv6:2a01:e34:eeb6:4690:e5a0:b59f:f315:89e8? ([2a01:e34:eeb6:4690:e5a0:b59f:f315:89e8]) by smtp.gmail.com with ESMTPSA id k124sm9360559wmd.33.2018.11.19.00.59.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 00:59:11 -0800 (PST) Subject: Re: [PATCH] ARM64: dts: meson-gxbb-wetek: fix hwmon temperature sensor output To: Christian Hewitt Cc: Mark Rutland , devicetree@vger.kernel.org, martin.blumenstingl@googlemail.com, Kevin Hilman , linux-kernel@vger.kernel.org, Rob Herring , Carlo Caione , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org References: <1542601348-3469-1-git-send-email-christianshewitt@gmail.com> From: Neil Armstrong Openpgp: preference=signencrypt Autocrypt: addr=narmstrong@baylibre.com; prefer-encrypt=mutual; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKE5laWwgQXJtc3Ryb25nIDxuYXJtc3Ryb25nQGJheWxpYnJlLmNvbT7CwHsEEwEKACUC GyMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJXDO2CAhkBAAoJEBaat7Gkz/iubGIH/iyk RqvgB62oKOFlgOTYCMkYpm2aAOZZLf6VKHKc7DoVwuUkjHfIRXdslbrxi4pk5VKU6ZP9AKsN NtMZntB8WrBTtkAZfZbTF7850uwd3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:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1542601348-3469-1-git-send-email-christianshewitt@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 19/11/2018 05:22, Christian Hewitt wrote: > Add &saradc and supporting vddio_ao18 nodes to fix hwmon temperature > readings on the WeTek Hub and Play2 devices. Without these nodes the > temp is reported as 4294967295 degrees C. > > Thanks to Martin Blumenstingl for assisting debug and the winning > guess at what was missing. It's a good workaround, but the real solution is that we should instead add the CLKID_SAR_ADC* clock in the scpi_sensors node and update the driver to keep these clocks enabled. We hit the same issue as the clk_div2/3 which should be kept enabled by the SCPI scpi_dvfs driver. Neil > > Signed-off-by: Christian Hewitt > --- > arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi > index 70325b2..dd12e02 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi > +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi > @@ -59,6 +59,13 @@ > regulator-max-microvolt = <3300000>; > }; > > + vddio_ao18: regulator-vddio_ao18 { > + compatible = "regulator-fixed"; > + regulator-name = "VDDIO_AO18"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + }; > + > vcc_3v3: regulator-vcc_3v3 { > compatible = "regulator-fixed"; > regulator-name = "VCC_3V3"; > @@ -173,6 +180,11 @@ > clock-names = "clkin0"; > }; > > +&saradc { > + status = "okay"; > + vref-supply = <&vddio_ao18>; > +}; > + > /* Wireless SDIO Module */ > &sd_emmc_a { > status = "okay"; >