From patchwork Mon Nov 19 04:22:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 10688203 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 475A314BD for ; Mon, 19 Nov 2018 04:23:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 260FD298C1 for ; Mon, 19 Nov 2018 04:23:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1719329967; Mon, 19 Nov 2018 04:23:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AC3B8298C1 for ; Mon, 19 Nov 2018 04:23:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=ZJTH4sR7gf2Mz+BkHwBwwJwIeLkVd5nOdKLFoR/ni2I=; b=tIK PLwdNuiO+ZRiHz50nV7fVRB+oYxLDONKdXJMG0Qsc8hKiO3/7AouHMRSjopW6vQVKnT88tMFpcphX T/fG52hRnbwFFsCCcxvvQn/SRF+81HIVFmIav2/dtCPAY/Lkov2eUr8+3WCMZwi2xgv9osfhfudF7 2cLTZD10aA8Z32+UI0GjwlIYgg78NE3kAi985CtF2knomJIAhKxjokuXmtCXPppIt1632Q13SLvEk RctGnOuYMu4/7ofQWKX6nEnXcoxteTGaIZXQBSr174oOKrSIoFoc0sZLISO4fyMHjfzkvhD+uyn/T u6NJDYVBkgDEL5IWtHobYTnmPvGM5YQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOb5y-00060l-Hy; Mon, 19 Nov 2018 04:23:34 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOb5v-0005zw-JH; Mon, 19 Nov 2018 04:23:32 +0000 Received: by mail-wr1-x442.google.com with SMTP id u5-v6so25177133wrn.9; Sun, 18 Nov 2018 20:23:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=tvZAEJbBrbest8/m8X64nW1BKo0bE1uHGglKvNkfnt8=; b=Ah4xYA2/ZHXRCtRyKb7zCwmUUJyDC3l1lYkToflC+wi4AHglXYBmZI+m5bBPMsKIqT S+tfAu9I9BTiEtC3IpVM1pMArEODymRxWlsGinr7lVqzky5exJCi7OEa6B30uU4sr9Nh pHpeyDG6l+uD577c5bqR3ap9pcmpROOSpRpmddspjN4pqJCeUqhzU4HF7GD2iYmkZieL vPXL9W42WMFDJgvZhbGyJwhcNdqUNP0TG3atSegevM2wwsoo3ZJjYp1LjvRa2mm5bPJy 7NoBrLEizJp4q27+k1+WSFoM9SRh3LdwH/gd8MgGDW5Ntc8K+neVEG7zxDTNSy/KF1lA U+gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tvZAEJbBrbest8/m8X64nW1BKo0bE1uHGglKvNkfnt8=; b=QETOKpmZh7Th6RbA5ZguTG+0EnsoOsYlhnhgn3A7GEnkYkrNWupdOyvFTemfR4efLE 0tRYn5cp6o0eYxKtNtEL4owfIxn9D+J/PBo3+0z+KM4bdbTVEMzTlrDSyizBZECXJYFu mqAIvKe7KhFUNrLCmE7z1sanyqDqbvAq68s0nC+ED3Ed/yD9QmlS6LGyhrLWX+hILjCA quNfU89ieJAUM3AeIfyuFzeS2fpt6Q1u9WrcKmlrgfAIBSzeRwTZbQAq51n6qba1OuCo A4/9IH4qzNWd1w1aovA4EBqOHm+rLzvnykX7vGtIuXBVZ7I0pV83dQPZ2Q6kO1utYRzm 9Qjg== X-Gm-Message-State: AGRZ1gIDKc+D4SiJXSVQDUOoufVJkHjFSfQBs+QXMj5yxkjBqINyFC4y uEEjZIaaY6PfopnZfPfLSDE= X-Google-Smtp-Source: AJdET5dB9dikpWwXQKZFmpa14PHmWDj875YK6lgID/gv0qRcbKqcvG0WcJxE8FKCG5VgLKvvTt0fsQ== X-Received: by 2002:a5d:6988:: with SMTP id g8mr15823885wru.33.1542601399287; Sun, 18 Nov 2018 20:23:19 -0800 (PST) Received: from localhost.localdomain ([94.204.252.234]) by smtp.gmail.com with ESMTPSA id h203-v6sm30536817wma.38.2018.11.18.20.23.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Nov 2018 20:23:18 -0800 (PST) From: Christian Hewitt To: Subject: [PATCH] ARM64: dts: meson-gxbb-wetek: fix hwmon temperature sensor output Date: Mon, 19 Nov 2018 08:22:28 +0400 Message-Id: <1542601348-3469-1-git-send-email-christianshewitt@gmail.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181118_202331_634890_42AADB27 X-CRM114-Status: UNSURE ( 9.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, martin.blumenstingl@googlemail.com, Kevin Hilman , christianshewitt@gmail.com, linux-kernel@vger.kernel.org, Rob Herring , Carlo Caione , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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. 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";