From patchwork Mon Jan 21 07:38:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 156159 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6079233jaa; Sun, 20 Jan 2019 23:39:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN5J2CC6XBhJ/pHl2y06dtHizOFQAspmy3RAB4e2+Ck3bA6I6daxUXx45tzVfgvhETdjO3Cc X-Received: by 2002:a17:902:32c3:: with SMTP id z61mr29066147plb.114.1548056378490; Sun, 20 Jan 2019 23:39:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548056378; cv=none; d=google.com; s=arc-20160816; b=i38d6SF4GoCF5Pta0qLW+JTLza8SUIHH/BuirO+2htCcZe7Lt5mxbxObEbvUklBP26 TSkMr0J8vTkbMMHukmgYCJmqVlRDI+ocor3U/XLkhjsmDC24m6l7qg/SlZR7ppIsj/pt 7LcMqEgrpTK9qKa3/4vE5ewO9eZSaIqlG8vDYKHtOHeULoCUEQ7hSbcIMjZY4R7iNupS df8kNxhhCDvlkg672cZIlgn7lvyBuUu8w6qi8AFHER1g2N9icg3d/8VQ/2DF/vfP+2XO B5+zfFo8+26fhxyB0A/P32mWwDzmibBVQokSi0FIudp0YsW6pQ/drT4OaMvvufJ76fyi sZ0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=TsYSQ/G0YznTAgTKSekGveHgCX9PxIa5Y7B9m7W0j9A=; b=DGenWVGeXKK52xtU4BUtujgeo+ms9WpVS4geeZGhrim2Qq7QumDtuq5KI0HNKSkgbT EE3mB9zjh6TxHXx88K9AO1wjBUZ61kPVJd21VhnzsrU+T5vaAQzGQDQz1A6uyJ4w4heh v+JRg4wkzfaSq3EeATLUPPLpvdzUl1pePe0OHrycZKZCFcIU3nDQa/fLrpDfcgCxHAl7 mH8vlOBD/UlgqPl5LPAAggqGSrv2364X9FajrIDo8LdSOKoaWW1XSKZ7Wh6MkabzMUWg QsUark9+o/QDhLakBbHb6Wb0UpHVtpCLtVl06c9ZNiY0EDeWAV/vKHDZUy4XyMNR4FUF FEMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lqbj5P2A; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g59si12168597plb.302.2019.01.20.23.39.38; Sun, 20 Jan 2019 23:39:38 -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=@linaro.org header.s=google header.b=Lqbj5P2A; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728928AbfAUHjh (ORCPT + 24 others); Mon, 21 Jan 2019 02:39:37 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36297 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728573AbfAUHjf (ORCPT ); Mon, 21 Jan 2019 02:39:35 -0500 Received: by mail-pf1-f196.google.com with SMTP id b85so9731247pfc.3 for ; Sun, 20 Jan 2019 23:39:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=TsYSQ/G0YznTAgTKSekGveHgCX9PxIa5Y7B9m7W0j9A=; b=Lqbj5P2AYTc1vqNowMzk+9mAq0t5KGdEZRfC24xoBJvA4nPl/uMfeBrkhVSN2uHSGj d+2gB+I+nHU8IWodcM6bxv9M+VjA1cd5vRciX1aP1ZAuAgjtDzMcZwNQL6KBS7llorsb ZfC4/Q79ujUzyOUUPeHPMGd0IqhACkiFM0MHw= 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:in-reply-to :references:in-reply-to:references; bh=TsYSQ/G0YznTAgTKSekGveHgCX9PxIa5Y7B9m7W0j9A=; b=KSeTovPAzvzDnTucdMyqL2nD7gdEKFM+JmeWyrwE7rBgFdMRDk565NndnN6IUFGjTD qpR8pNNfdxg2vfX5Xl503vBLKN0rprTgUxeqsF1X+ckBBxdXacIHQOGRZcNLEIx0wzme N+xDl8KDsMRE63BEWSEmL6ojKf8rJZAB4+pIR//1aI2Ii+l8UZyxIgfqu4Tp6bkj0bun jCVwW3pbnxpedDU1Kl30axjDgXM92Pgn/sYmji7zgXSjkVq4XKo3oMF8r50vfisNHPXz pHf7xPhx3Lx7+j5MNYpf9N33oC2vI+TN2SaOHr7CL4sgdlx6nTpVFp/WtPM6X02d1SuW ZBJg== X-Gm-Message-State: AJcUukcMAcl/y7ut+8EKbNithd7Nw/gOeRlvkQE8efOD0McuRQYhYng9 Z2p57/4hs1nkv41bSGAGA8ijGQ== X-Received: by 2002:a63:61c8:: with SMTP id v191mr27385499pgb.242.1548056374353; Sun, 20 Jan 2019 23:39:34 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id h19sm15583083pfn.114.2019.01.20.23.39.29 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 20 Jan 2019 23:39:33 -0800 (PST) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, arnd@arndb.de, olof@lixom.net, orsonzhai@gmail.com, zhang.lyra@gmail.com Cc: devicetree@vger.kernel.org, arm@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, broonie@kernel.org, baolin.wang@linaro.org Subject: [PATCH 2/4] arm64: dts: sprd: Add ADC calibration support Date: Mon, 21 Jan 2019 15:38:29 +0800 Message-Id: <0213394a8e432e0ee0809f9032427d971ea9cde2.1548052878.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds phandles to the calibration cells provided by the Efuse device, which is used to calibrate the ADC channel scales. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/sc2731.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 1.7.9.5 diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi index f2f2aa5..a2edc25 100644 --- a/arch/arm64/boot/dts/sprd/sc2731.dtsi +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi @@ -63,6 +63,14 @@ #address-cells = <1>; #size-cells = <1>; hwlocks = <&hwlock 12>; + + adc_big_scale: calib@24 { + reg = <0x24 0x2>; + }; + + adc_small_scale: calib@26 { + reg = <0x26 0x2>; + }; }; pmic_adc: adc@480 { @@ -72,6 +80,8 @@ interrupts = <0>; #io-channel-cells = <1>; hwlocks = <&hwlock 4>; + nvmem-cell-names = "big_scale_calib", "small_scale_calib"; + nvmem-cells = <&adc_big_scale>, <&adc_small_scale>; }; vibrator@ec8 {