Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2664601pxa; Mon, 17 Aug 2020 15:57:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNDxKjdk/tK7ZrMALgq2RyGz6Du4rKY1LPn3S1O1gvKCiDyGVszB/tEr/ianbJrfdlx8E6 X-Received: by 2002:a05:6402:12c4:: with SMTP id k4mr16782513edx.358.1597705071268; Mon, 17 Aug 2020 15:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597705071; cv=none; d=google.com; s=arc-20160816; b=GUmzlNF6wqSoLj7DKUGjFaSWqFB0glmZNJCksSSHO7fdSd1Cu0J64CT2D45cVHM+Np 7JEcB3G70fMnH8SXr5TYmOStgrh2OvY5kNBULKrtg//OHJ3O0PKALEvOH2j9BwazfTUH yUqjFkKQBq5LE33hebCYkqjHG3s4lP/W5Q+/+7gn++i7qeIBxCVAWxRo73X6vhUCdnRj Dibizp57onEEQQD/Hj/0i0gK5WHL8Qea0I1Yz0qT+dByAa/A5HcO5qaOyNZkgz/DpRep PPYocajqLky32nVp5hd9Iu0Jyai+FrUAYdh8NA4CrD9zTpOr7VE6Xa9N7XpKVKWueXP2 zcuw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zPUD8l5EqjmWiVzZ/1mr+EzqLlGYx7tQ+DbvCYRugks=; b=xHmu7coV3oNyqINBy8FLQQhpyStQ9fe9XG0BCBiWghVOlnop/nGBxzeXRSWhaWNm0k ndQSlJMsrTOqWqc1gNC8KjTGlF8u8OgdCz9RwV6VpmSV0PC1QY+Dmm82814Yu2oK1Yqz WMi9EAmnNwMMYgdTnbnrKYjq6JiCzXs8HROPssYt1AF232xqUSXjtFmbyWjfq2icPZrg 9SG68barGos/RdO2eTftOMOp/nvKR65xMyxcPwHJLBmI4oxQYnEE0W9Dwl9Pdt9l4o0k kr3eOCV4KTyybzcP7aVum9jBP31DjADn3hZxGTX0EYBnbvWiwzD0Meu0LcZ3+SWwelC4 o9MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LUxvVenS; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si12478097ejh.441.2020.08.17.15.57.28; Mon, 17 Aug 2020 15:57:51 -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=LUxvVenS; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732775AbgHQTss (ORCPT + 99 others); Mon, 17 Aug 2020 15:48:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:41406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729252AbgHQPUL (ORCPT ); Mon, 17 Aug 2020 11:20:11 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 7CF3820716; Mon, 17 Aug 2020 15:20:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597677611; bh=r9cARwlmRmQB2cn/JMr7t+CaD0wcuI04mAkfiugb6E4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LUxvVenSSotBWVrmeugukEL/e9dL952yChRQO+g5jTSxc+MGZkQ1W3BZyek3pDVcs PXJqiBppFqX0CUG8+shQqevvzaVsWzHU739cANlv/MUr4f5cqnP3NXVDCMQQx+rcQW DkVBcNSqIPkPF5pb0jfp1JV3PAmXuyAiyWw8L5Go= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chen-Yu Tsai , Maxime Ripard , Sasha Levin Subject: [PATCH 5.8 044/464] ARM: dts: sunxi: bananapi-m2-plus-v1.2: Fix CPU supply voltages Date: Mon, 17 Aug 2020 17:09:57 +0200 Message-Id: <20200817143835.867776292@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143833.737102804@linuxfoundation.org> References: <20200817143833.737102804@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 [ Upstream commit e4dae01bf08b754de79072441c357737220b873f ] 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 Signed-off-by: Maxime Ripard Link: https://lore.kernel.org/r/20200717160053.31191-4-wens@kernel.org Signed-off-by: Sasha Levin --- 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 a628b5ee72b65..235994a4a2ebb 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.25.1