Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2090693ybh; Fri, 17 Jul 2020 09:05:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycJy1pdm/c04V49u3jbWlRvKi3PCc4P/EolirMM+DQBA3jY+z7Tqn/q/o1wDiJ9qcg422D X-Received: by 2002:a05:6402:b57:: with SMTP id bx23mr9532142edb.304.1595001906047; Fri, 17 Jul 2020 09:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595001906; cv=none; d=google.com; s=arc-20160816; b=0tZX4tQvwVzz/x7sVjsj1hn2TVxiKAG52k1R3JRLWVmrlLB9w7hX2fk3+9JHWdpYug Ugu86cFkX/FHAmqr6yT6JOpVtyAG8brg4aCeNp6jxKGgZ/4zDfQTrVcBAcgrh4HFNSTh XcePHaP2w0IKB15MLZw/g2BkllHTSNKZVxePjzz2m5y+ae1BFyzjYG+2Z9BDi+W5gVCt F8u0I2wgt6by+dznaR1D7WKnPcwY+F7s50RXrvaRbSVW9mYUHAiyUj7WM1vp0QVuRvZz pnKPKugOAcxlFelo1oQYrwIs5fwgLaUUJv7TnF9MmXC/LzvR9zgxemcgnl0JIPkCnSQF v0jg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=klxvVwmRadyMX7w53M5Fz6ONx3lVPahukow+txVYM+s=; b=LT/qsIsEV/mE+lYH0r+7GZAERY6Zu4hD2Xj8VZKRoDsjoh8epHdCKj0LFyebt4hG6O 1gOvPca+oXSpnVluk+d4OHh3zk+jeJ2yvC+dnWJw8y03huCpgsi1vws2GcA7VDRlM1sg gsIE0TkKqlQ2UZ+RencR0mKVEoYf21WCFeSvITIJTyXvFuEdqIggpgVDBrAa98VtQmWH NFsZJb1tod+Swv1Y4+/h/DjE1BjESezctfmZss0TGAaLhku1GNj47BoPl2+jaLV5NKVH FW4AifCukVoVWpO04obNVcwYG2RL9+dkWv8kgrU4sd6CTg7aTV+kMpzrybtf19QdmYyi IJ1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yY+WDOnJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g22si6011677edr.336.2020.07.17.09.04.36; Fri, 17 Jul 2020 09:05:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yY+WDOnJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727788AbgGQQBV (ORCPT + 99 others); Fri, 17 Jul 2020 12:01:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:40658 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726351AbgGQQA7 (ORCPT ); Fri, 17 Jul 2020 12:00:59 -0400 Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.194.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2D068206BE; Fri, 17 Jul 2020 16:00:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595001658; bh=2ZbkrZccM4GRyeKL6L2cvwgpAuoXXOK43VqdE71mHdI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yY+WDOnJn57BkxkmLI/zXIHgVNyIueEkL1qmzCzjz6EXM9kj/vLVBnOmeI9+WhhwC 2AQAJOOnqG+Twne9wJOK4duq90eNzhI9yFHicouK22DDAXAD0fgu+hWAIRMGunipXw ZQg+t/RfgdUGD5TVuS3hYRC/RMtr9nryBUSbknjg= Received: by wens.tw (Postfix, from userid 1000) id 29FD45FD44; Sat, 18 Jul 2020 00:00:55 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard Cc: Chen-Yu Tsai , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/8] ARM: dts: sunxi: bananapi-m2-plus-v1.2: Fix CPU supply voltages Date: Sat, 18 Jul 2020 00:00:48 +0800 Message-Id: <20200717160053.31191-4-wens@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200717160053.31191-1-wens@kernel.org> References: <20200717160053.31191-1-wens@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen-Yu Tsai The Bananapi M2+ uses a GPIO line to change the effective resistance of the CPU supply regulator's feedback resistor network. The voltages described in the device tree were given directly by the vendor. This turns out to be slightly off compared to the real values. The updated voltages are based on calculations of the feedback resistor network, and verified down to three decimal places with a multi-meter. Fixes: 6eeb4180d4b9 ("ARM: dts: sunxi: h3-h5: Add Bananapi M2+ v1.2 device trees") Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sunxi-bananapi-m2-plus-v1.2.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/sunxi-bananapi-m2-plus-v1.2.dtsi b/arch/arm/boot/dts/sunxi-bananapi-m2-plus-v1.2.dtsi index a628b5ee72b6..235994a4a2eb 100644 --- a/arch/arm/boot/dts/sunxi-bananapi-m2-plus-v1.2.dtsi +++ b/arch/arm/boot/dts/sunxi-bananapi-m2-plus-v1.2.dtsi @@ -16,12 +16,12 @@ reg_vdd_cpux: vdd-cpux { regulator-type = "voltage"; regulator-boot-on; regulator-always-on; - regulator-min-microvolt = <1100000>; - regulator-max-microvolt = <1300000>; + regulator-min-microvolt = <1108475>; + regulator-max-microvolt = <1308475>; regulator-ramp-delay = <50>; /* 4ms */ gpios = <&r_pio 0 1 GPIO_ACTIVE_HIGH>; /* PL1 */ gpios-states = <0x1>; - states = <1100000 0>, <1300000 1>; + states = <1108475 0>, <1308475 1>; }; }; -- 2.27.0