Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2288540imu; Sun, 18 Nov 2018 20:39:32 -0800 (PST) X-Google-Smtp-Source: AJdET5dTvDh70/lYhBz0VaBMlD5P/rWKjIx5qt3BW4T+EqG0qIO1tehEgq3QPuMjGESYMZIFZSEA X-Received: by 2002:a63:6782:: with SMTP id b124mr18934138pgc.151.1542602372158; Sun, 18 Nov 2018 20:39:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542602372; cv=none; d=google.com; s=arc-20160816; b=l/tmZK7ocWtpT0ATA4QQy4F+ktB7M1WEyrK6p6nEYzNJKbDpGeZ3CVifLP156mSGDw 4ZgoeGqU8mQglVu1lyckFifgLTcqyX3c+rvWB6Pg7Wb8lz8lnyYKbrhk/WNgMJBZ0GeY tdcv5xuJIVOKw+rAI8SNsKGOAig0ssD3kP/BO06vu7cTlxwJgW8hH0lyH4dhLAD2lJBG a3aXgdIclp3L9ItlpFOPJpJ2YLjYHCXRHbEgnH1dJfAlnZkONHWE3kA20Jf/muOxdWUm H64byx0xj8N1i4zMQGWF/hfAj6QtORdIcxkPdInJYGhdi/WsDev3nOB71l8zO9bNQC40 QcyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dkim-signature; bh=tvZAEJbBrbest8/m8X64nW1BKo0bE1uHGglKvNkfnt8=; b=E5vdeAPxrMaiT5fYMfhYGKj/M/j/rj11mTSudh6bxPUCNxsjObBOCkw8ytI3eK4FTi IeE4FN9vl1MJg7pg5TMpOyIjJynac8AnDdR4ymhZ7nUex3q0G5mEd8w5MW2vq1lYLArq KDYVatA9nZ0QqQPzbQ+HMSJgBnx+ebfwsf13PJj2d/Y+gDFbMVHqTA4NdSxBkDlSZl1m UyjpL4CP88VXyahT7v5lcTztYrXC0r1wEcejp6XZMuOt5sTxv3i1hI14r3qDilXtPLk5 GDgpXE1yD0MaCWjhzDRkX+HtZ3GNYfiNnum7Mtc6Yb5tBJLCj8WRoizuXbOCp5UT1pk5 8Ohg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="Ah4xYA2/"; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si36653303pga.83.2018.11.18.20.39.04; Sun, 18 Nov 2018 20:39:32 -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=fail header.i=@gmail.com header.s=20161025 header.b="Ah4xYA2/"; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728402AbeKSOpl (ORCPT + 99 others); Mon, 19 Nov 2018 09:45:41 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35699 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727281AbeKSOpl (ORCPT ); Mon, 19 Nov 2018 09:45:41 -0500 Received: by mail-wr1-f68.google.com with SMTP id 96so13574383wrb.2; 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=GtLENLWKv5U9BLP2fMU7HL9wMKWNoijtPdKArgnxjVrHGAmGSwYequtzMPQyMHAwfi 4cU5yjiQsc2mkUqdIxf6AZqxtR/XNv5RG7/iDYbt6fKiDVDndwy7OqHKJEmtWQ5ITnvN FmeLqMtoa5JxW6QNJjG22HCKYROmOxi45x/mj/5AgtSCLvDYvyOrSb1DpTGMZhU4ZgTk ObibAycj2neT+3wpChJ0H68WZGwSDv7ffl4WED46SYlws+UPlQaiLxFEAg/Xe06wJ51f 8OV77EgdcAm7RDH71N2efxZvMtaKIYeMRQsrpXoiKLzuT8RFCZjANE+Ol6ErEEAr5Qsd kmVw== X-Gm-Message-State: AGRZ1gKn6hGIpCIJkinU4pP7NRhAkr0SToqi1Ao36yUw2u+inKPduEbm OIJ44F3BrwuA+6rpV8KM6io= 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 Cc: christianshewitt@gmail.com, martin.blumenstingl@googlemail.com, Rob Herring , Mark Rutland , Carlo Caione , Kevin Hilman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org 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 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"; -- 2.7.4