From patchwork Wed Feb 13 12:32:46 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: 158206 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp15731jaa; Wed, 13 Feb 2019 04:34:21 -0800 (PST) X-Google-Smtp-Source: AHgI3IZv3Eu2g0cO/COXIdhh4N05FpEL3KTVDRCgdO6wLuYe6FUm/PccL25m2rCqpbp9VwExkPgb X-Received: by 2002:a17:902:129:: with SMTP id 38mr331251plb.140.1550061261581; Wed, 13 Feb 2019 04:34:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550061261; cv=none; d=google.com; s=arc-20160816; b=QhbxL0j9HgfUHpuYY2yk6MCVdanySvyCx0GzYKvU9XLEihu3BeIJRZ0u7Oc4UBthWj /iXptPzrXBqICuwCydE2DFQ9oS9vonh++NwYtXO9/AJxf+hIb9gfhm7F2oKegRjoLCx/ ob1pCo5SwMsaPPm7sQXRsnL+f0TCeUa1bFUeNTLWmhkAd2cK/jaVvCo8s9OqBQtcL9h9 UzPFhORtJ1jHGnlnlBlk107bzIeDJzZmr7HfZ18muuP5nQBlFdo5Tzz8yn1IvQ6nN2GX cPeYBLLlGKk/H0qA73jfrQ+vBAT3uJ9mYJLOVAFnsOWdNtLGBYEkQ6pyzdpGd10L81xa 98EQ== 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=MJm0G77hFFCgoyOjAHfFoYp+v9z02+PX1r4o48lnfoqt5N4W8pzOWE8oi/geVYaQUJ D7v5hr6msyXWNUXJxdWiqhvF+g0OVS5UfbenX627ffAhyLBOq6szpw64tkvzhvgviyWb 6Rvqdz9Dr/u+3Qyv38UvN6SCD/55JERkcy2eSqSrHBxx62wAD0hV5xJ51cIobEc1c8rd jakadSzu6Wu97XdQTf2FV5DA5NpmiIPgEX10929dg/UVOpPmazSwZyNNb8VWSEKfRKVA EKlCpnRGVRn3VUWUhvRWPOX4xnNM4IJpwKwKg2WfG43JQM7yJrfWBzJtzSrqExTsMbYH roZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K+u2BXE8; 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 ay3si6019010plb.58.2019.02.13.04.34.21; Wed, 13 Feb 2019 04:34:21 -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=K+u2BXE8; 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 S2392158AbfBMMeT (ORCPT + 31 others); Wed, 13 Feb 2019 07:34:19 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:45669 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388400AbfBMMeQ (ORCPT ); Wed, 13 Feb 2019 07:34:16 -0500 Received: by mail-pg1-f194.google.com with SMTP id y4so1056822pgc.12 for ; Wed, 13 Feb 2019 04:34:16 -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=K+u2BXE8igH9mZ5PXj92nX6kf00B7E4SIonYnZdN76QA5DDQe+PbEmkmz8iP2a49Mc uE5vBYjcHExxmpQT2+jeCXEbGfxlZLpDUD0NFNA+H3nDVZvPV/Wa6fEup4fZUomy0hbC 69/VDJuxrS+cNBBlVnAZuptQnAIzO+bZMe7BN6E1ZIYliug9BFIXqB1qerjLskzPOmlW wNGZEYi128Ls+AATJPire+8gcSzsxxBAOi+Jfh2MRTWJ1A9lbIhYOGJROro6VeBKb8xc Lv+zNRmnYMKofHCyLEZxM8+TlUvChbvJc40bSJpvJoc18NkN3OzpRyRnXyK3Sn2GZ2Q9 nkcg== 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=Oi3y4CdeqgeYApNdtl/Lft6jUuWNG7tJ0rLgiuRjx3AMjJhjmAJeo6B67uPCzsRhaC OeuEXMAqUMNiE2919jKjfe7qMQjcOLagf4pIDMucshVOQSWKVNywWBMui8e9zYQ4PzFq nFcjOIPg1IfwShWdw4B/rNZdh1Wze9MMSPhKmWftB0aKPIp9ekkb8goP3kHYdFj7D4az T8SCMRLQWUUj6GDmdKUZM6NPuSvqWDmFkPtNBBXsfWIaxoiHChDkx5BkuHiHwpLDxodT KTkzwJVZSuPlygyH91piOwULjL0Iiba52lpAPuweWEnnhK4kc5v9NMmlWsdGesGt7Wo3 bu7g== X-Gm-Message-State: AHQUAuYIaq3fHbmbCm+Pk2XgoqMPbr6GRJGEGPz3LIb9jU8OvOOSFyH5 7RHQFHmA0Ke0rD1iVSBJlvjUhg== X-Received: by 2002:a63:6bc1:: with SMTP id g184mr275245pgc.25.1550061255741; Wed, 13 Feb 2019 04:34:15 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id l5sm21223640pgl.51.2019.02.13.04.34.11 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Feb 2019 04:34:15 -0800 (PST) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, arnd@arndb.de Cc: olof@lixom.net, orsonzhai@gmail.com, zhang.lyra@gmail.com, 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 v2 2/5] arm64: dts: sprd: Add ADC calibration support Date: Wed, 13 Feb 2019 20:32:46 +0800 Message-Id: <0213394a8e432e0ee0809f9032427d971ea9cde2.1550060544.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 { From patchwork Wed Feb 13 12:32:49 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: 158209 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp16129jaa; Wed, 13 Feb 2019 04:34:35 -0800 (PST) X-Google-Smtp-Source: AHgI3IbXpniiH03s4t6KPf4LtQC42V2KDWQcRt+xnQA9czGRNaMFPMtomZ1LGaw2JqsVLuxGQvJo X-Received: by 2002:a62:fb07:: with SMTP id x7mr280078pfm.71.1550061275821; Wed, 13 Feb 2019 04:34:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550061275; cv=none; d=google.com; s=arc-20160816; b=pSD1LE5ecc+upBeu4ssxCItWAI8MK4ssChCGHW1M8ryVVc3d0vi9+cCBPkQtQEnnP4 HPyXKS/QLFtlDgwuIpp8Df9bCCsFmccGumw0drLZhQ3sRxn4TBuEaU17BtGMXtgef3EG iA32qRiG1U4aFb6fKAiwENxFdyRyl+MkiVBs8Tj0KjQdpHIiAujq7i95uTfJGlUxPdzh 59hGFGBiMa0LU/k725rDRQSx1nMxcRIeZbFqTdSfmideMw0rc0P9Qr3afgdATg/mTNWG uU97eumNEZsE88gYLnq1AWNsn/n1ygclecbTRj/K8DcOFIMgcmow4VgvdM1yUzeYpxlN 0kOw== 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=AM3cPOYZnTTguViecu0E1+Ba1m1zZ0u7N8ID6CDTa4A=; b=Ocn27PwQ+vLFHZnSzlDMhDxl0QNJ/Hf1Wt2JuCH1CPgOk8M9zBYEHjUFqPgINLYzUM MIdLTYVTV4vPP8n2C/tE+9WBSZIu0gJZJybNLRYwVK3vsp1fwkRS1mAo53tmc7JH4U4Y pUsEmmTYTLQ0aj82iBbfmKv8VCFAFjO7qu070pGQJtgqPde3Moqg6QQ8swwRZVNYNOwm 2WESR/gce05ai4U0UrCfTdBONHu/4SkTz9hMlYcVhZnLr6m6Ljah5YSwusDeKJy2kiWL SZqWn+CQsPN4wKceXdgcA7EemDsaexX/9EwIt2fwR3P7XmPLbO3jiYE43v8fxtHP9ov7 y36w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mjbD1SBB; 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 t23si15815528plr.128.2019.02.13.04.34.35; Wed, 13 Feb 2019 04:34: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=@linaro.org header.s=google header.b=mjbD1SBB; 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 S2392191AbfBMMee (ORCPT + 31 others); Wed, 13 Feb 2019 07:34:34 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:42584 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388068AbfBMMe3 (ORCPT ); Wed, 13 Feb 2019 07:34:29 -0500 Received: by mail-pg1-f195.google.com with SMTP id d72so1066159pga.9 for ; Wed, 13 Feb 2019 04:34:28 -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=AM3cPOYZnTTguViecu0E1+Ba1m1zZ0u7N8ID6CDTa4A=; b=mjbD1SBBY26BMfhUfCRIgG32/jSSvduWH75bBY9R+Gq8IKSJAyNuD1XTxDS6WD7nbg A8PgPX0v4hbV6BjeRZHIXdNS0Y3pMDuED7wGRjCDjV39Z+CRqbO+hwi2rgOu14TcLBI6 0b0qB0f9CPF7He27o4CY7rZnLpyAD2OiyK84OBw1z8t6IR0QGMkC1xDpPGWAQwJIewfP ZTiHb5tFQ+twVP4YTz8DzbSsu0Yy+777EIlqOSWOdkvfleOwhb/mHwC1NrlnJIEKJbnq BaPUSQ2mf9yRtuUSZrhJ8gyd/1TcckbIjffnOLeWY+Mv5/aN3+BrtjTqJ0OrADw/VAWb iF4g== 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=AM3cPOYZnTTguViecu0E1+Ba1m1zZ0u7N8ID6CDTa4A=; b=b+ZU6WMgaUKKx43823kibEjmRw4OJRAKw6VY7ZcOgYGOHneHoJ24X0rZMXtTgJAIiY NbOharVCjINNWiywaE0TqXCbSs7PtowH5ttuEQBRhEgyV7LCl2j1maTt29ONs/FDE4a+ p7PQ76Pvde44EDucP2YE6bJxuWIxy4wwwN7DUNldUbMHKJpVqFXWshCZ5gYmiNA0CMQu 7V1QGtwSicRUZlcS6yAQ+ROXlzI8/4N+AESLFaSFleTufnmhFNLAHUQKLF/wr2D6OrfC cyoj7NyYGkjhVx2xKVLxZcK7NXcr8hh0t3oz8BIIsm3+KqlcaeLkTrlf+TnNN31jW+6M /q1A== X-Gm-Message-State: AHQUAuYSwnIKRFEfqhOoKAYAqgaZdtiiO7/VwtOzMiYGQEL2lCmKCsPF W3DDrlV9rjnfHG2i1mIBhsusFA== X-Received: by 2002:a65:62ce:: with SMTP id m14mr262963pgv.101.1550061268236; Wed, 13 Feb 2019 04:34:28 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id l5sm21223640pgl.51.2019.02.13.04.34.24 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Feb 2019 04:34:27 -0800 (PST) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, arnd@arndb.de Cc: olof@lixom.net, orsonzhai@gmail.com, zhang.lyra@gmail.com, 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 v2 5/5] arm64: dts: sprd: Remove wildcard compatible string Date: Wed, 13 Feb 2019 20:32:49 +0800 Message-Id: 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 Remove wildcard compatible string. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/sc2731.dtsi | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) -- 1.7.9.5 diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi index 4a79ddf..e15409f 100644 --- a/arch/arm64/boot/dts/sprd/sc2731.dtsi +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi @@ -24,7 +24,7 @@ }; led-controller@200 { - compatible = "sprd,sc27xx-bltc", "sprd,sc2731-bltc"; + compatible = "sprd,sc2731-bltc"; reg = <0x200>; #address-cells = <1>; #size-cells = <0>; @@ -46,14 +46,14 @@ }; rtc@280 { - compatible = "sprd,sc27xx-rtc", "sprd,sc2731-rtc"; + compatible = "sprd,sc2731-rtc"; reg = <0x280>; interrupt-parent = <&sc2731_pmic>; interrupts = <2>; }; pmic_eic: gpio@300 { - compatible = "sprd,sc27xx-eic"; + compatible = "sprd,sc2731-eic"; reg = <0x300>; interrupt-parent = <&sc2731_pmic>; interrupts = <5>; @@ -64,7 +64,7 @@ }; efuse@380 { - compatible = "sprd,sc27xx-efuse", "sprd,sc2731-efuse"; + compatible = "sprd,sc2731-efuse"; reg = <0x380>; #address-cells = <1>; #size-cells = <1>; @@ -85,7 +85,7 @@ }; pmic_adc: adc@480 { - compatible = "sprd,sc27xx-adc", "sprd,sc2731-adc"; + compatible = "sprd,sc2731-adc"; reg = <0x480>; interrupt-parent = <&sc2731_pmic>; interrupts = <0>; @@ -109,12 +109,12 @@ }; vibrator@ec8 { - compatible = "sprd,sc27xx-vibrator", "sprd,sc2731-vibrator"; + compatible = "sprd,sc2731-vibrator"; reg = <0xec8>; }; regulators { - compatible = "sprd,sc27xx-regulator"; + compatible = "sprd,sc2731-regulator"; vddarm0: BUCK_CPU0 { regulator-name = "vddarm0";