Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5333964ybv; Tue, 11 Feb 2020 13:43:37 -0800 (PST) X-Google-Smtp-Source: APXvYqzvH7fnwM4css2IFPjKI1TAm9LyQ0Tl3eLeafTZopPdnZTxbWiwEKhkKKWTNd2OAQ0Xhq2N X-Received: by 2002:a9d:3b3:: with SMTP id f48mr29138otf.148.1581457417042; Tue, 11 Feb 2020 13:43:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581457417; cv=none; d=google.com; s=arc-20160816; b=vmL8FR6ZWPOmyebNtwnrNEt4E/KTK4yVmDr2AAnEMPmMAqgVsT5Rr+218A2kfaiz+z xACJUEU7llaMQvqnHpl9YTYytPyMzRueZzeQpX3tNmFX/Ha0/avcgOaHT+7Ka089oxTe uqwS+VBInPQo4+KqPnUasSOct8iSRgvvZot3chXJOdgYDGoPxTKC5vWf44zmt4ArIQ8B aXHwEzrc3OH1NjX58wPIuMlsLmmrMggZYOCp8vgwecU2Xgx+O02FKIoDWFJhD9uZuoKJ cEXpPcfWaEEVyQTcgqPeFCCxA4uPykLh5j9rhtsvvjbxaMyAjbfFT+BU42nLRPtMBfZK o7lA== 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=BRx4A/2BZ9iAXxHIzvSIgcM006QIyV49GXyT24CvguM=; b=TeAI4igLar4jlIf65yVsEFEvZ2GmeFgonXu8CIErfqdmu2aAryShVG6iDHGPRzh4HT wyqqj4CLzgSILzzK/4O6UHymZi34IF+7HGXxiNX/caUKqkhdTYEP+FwHcwi3x2DlZOSZ Cbto85xUC+7fXQYSmKw5G3lzgudL16hylnGL/3X7DvGKIBqMxhMmUO62u2Z6b8Wt8Lw1 RWEqS+UhEs0JNIvQEoCvZGYJ7umR7EMDVL32XHtR8cgICli19kvoySKrpMrpLFT86qGK GXXdkkAWvto3LEzFSlBf9MIRHoNDGQRDcZDHpnmb+Hg3sCJtZmTFrGcFzSR0Laq56kZn 4Xnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=PdjXEc3a; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h21si2471587otk.196.2020.02.11.13.43.24; Tue, 11 Feb 2020 13:43:37 -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=@goldelico.com header.s=strato-dkim-0002 header.b=PdjXEc3a; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728296AbgBKVm7 (ORCPT + 99 others); Tue, 11 Feb 2020 16:42:59 -0500 Received: from mo4-p04-ob.smtp.rzone.de ([85.215.255.123]:8857 "EHLO mo4-p04-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727964AbgBKVly (ORCPT ); Tue, 11 Feb 2020 16:41:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1581457309; s=strato-dkim-0002; d=goldelico.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=BRx4A/2BZ9iAXxHIzvSIgcM006QIyV49GXyT24CvguM=; b=PdjXEc3aqPO9weOKkLX3nka0CwucPiTFbSngYI/e+WhI25Xp3wVRNu9f8BOUC+cazP CuSEoKN2yixRCF3U0yUO9mi6MOrQgHQDRA1wiUjIDMG0B2veOvglXqjSEcG8Vw47KeKD jaw9cFKBHsZEugqeqPaBCSq3Ja+2/pWTh0zSF+sYXSL6Qa2uXR4OP3J+U1AJJ49VpsjX JtQjqoEUnob98Q9MGcyOf/tRv62dMZ+XyutA+BVFss1A6WN6L6ovIhVUFt6pv6TKGoWo Sormdooo/llT6ICoITn2eJBzLmostFqp7MHAgcVW9IYWBpOTF37Jr5CwlfijZsEuzU4R y3GQ== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMhflhwDubTJ9o1OAA2UNf2M0P2mp10IM" X-RZG-CLASS-ID: mo00 Received: from iMac.fritz.box by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id U06217w1BLfc0EN (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 11 Feb 2020 22:41:38 +0100 (CET) From: "H. Nikolaus Schaller" To: Paul Cercueil , Paul Boddie , Alex Smith , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , James Hogan , David Airlie , Daniel Vetter , "David S. Miller" , Linus Walleij , "H. Nikolaus Schaller" , Andi Kleen , Krzysztof Kozlowski , Geert Uytterhoeven , Miquel Raynal , =?UTF-8?q?Petr=20=C5=A0tetiar?= , Richard Fontana , Allison Randal , Stephen Boyd Cc: devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-i2c@vger.kernel.org, netdev@vger.kernel.org, linux-gpio@vger.kernel.org, letux-kernel@openphoenux.org, kernel@pyra-handheld.com Subject: [PATCH 07/14] MIPS: DTS: CI20: fix PMU definitions for ACT8600 Date: Tue, 11 Feb 2020 22:41:24 +0100 Message-Id: X-Mailer: git-send-email 2.23.0 In-Reply-To: References: 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 There is a ACT8600 on the CI20 board and the bindings of the ACT8865 driver have changed without updating the CI20 device tree. Therefore the PMU can not be probed successfully and is running in power-on reset state. Fix DT to match the latest act8865-regulator bindings. Signed-off-by: H. Nikolaus Schaller --- arch/mips/boot/dts/ingenic/ci20.dts | 48 ++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 15 deletions(-) diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts index 37b93166bf22..e02a19db7ef1 100644 --- a/arch/mips/boot/dts/ingenic/ci20.dts +++ b/arch/mips/boot/dts/ingenic/ci20.dts @@ -148,6 +148,8 @@ pinctrl-0 = <&pins_uart4>; }; +#include + &i2c0 { status = "okay"; @@ -161,65 +163,81 @@ reg = <0x5a>; status = "okay"; +/* +Optional input supply properties: +- for act8600: + - vp1-supply: The input supply for DCDC_REG1 + - vp2-supply: The input supply for DCDC_REG2 + - vp3-supply: The input supply for DCDC_REG3 + - inl-supply: The input supply for LDO_REG5, LDO_REG6, LDO_REG7 and LDO_REG8 + SUDCDC_REG4, LDO_REG9 and LDO_REG10 do not have separate supplies. +*/ + regulators { vddcore: SUDCDC1 { - regulator-name = "VDDCORE"; + regulator-name = "DCDC_REG1"; regulator-min-microvolt = <1100000>; regulator-max-microvolt = <1100000>; regulator-always-on; }; vddmem: SUDCDC2 { - regulator-name = "VDDMEM"; + regulator-name = "DCDC_REG2"; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <1500000>; regulator-always-on; }; vcc_33: SUDCDC3 { - regulator-name = "VCC33"; + regulator-name = "DCDC_REG3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; }; vcc_50: SUDCDC4 { - regulator-name = "VCC50"; + regulator-name = "SUDCDC_REG4"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; regulator-always-on; }; vcc_25: LDO_REG5 { - regulator-name = "VCC25"; + regulator-name = "LDO_REG5"; regulator-min-microvolt = <2500000>; regulator-max-microvolt = <2500000>; regulator-always-on; }; wifi_io: LDO_REG6 { - regulator-name = "WIFIIO"; + regulator-name = "LDO_REG6"; regulator-min-microvolt = <2500000>; regulator-max-microvolt = <2500000>; regulator-always-on; }; vcc_28: LDO_REG7 { - regulator-name = "VCC28"; + regulator-name = "LDO_REG7"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; regulator-always-on; }; vcc_15: LDO_REG8 { - regulator-name = "VCC15"; + regulator-name = "LDO_REG8"; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <1500000>; regulator-always-on; }; - vcc_18: LDO_REG9 { - regulator-name = "VCC18"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; + vrtc_18: LDO_REG9 { + regulator-name = "LDO_REG9"; + /* Despite the datasheet stating 3.3V for REG9 and + driver expecting that, REG9 outputs 1.8V. + Likely the CI20 uses a chip variant. + Since it is a simple on/off LDO the exact values + do not matter. + */ + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vcc_11: LDO_REG10 { - regulator-name = "VCC11"; - regulator-min-microvolt = <1100000>; - regulator-max-microvolt = <1100000>; + regulator-name = "LDO_REG10"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; regulator-always-on; }; }; -- 2.23.0