Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp640551imj; Wed, 13 Feb 2019 14:47:30 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ/dPhehUAqqF0E6V3LRHpwLE+l3uNfJ6bweMrWDqWOuTEZc6ls9G969PzI4mDdJQIqPvy9 X-Received: by 2002:a65:6542:: with SMTP id a2mr499094pgw.389.1550098050508; Wed, 13 Feb 2019 14:47:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550098050; cv=none; d=google.com; s=arc-20160816; b=d8YS8/BjPAqh4ggCJVUMq69F6mfCGXIm9wkBr7R3Ou3RnQUxtI4k+ABjIeQ1XMRes4 YH5bhmVrrwEfLQw6jVZyjJrdHPVjGtlEvxk712GaOHCju0MsseZZMC/HvT7gsFD85fq3 42juomwYEcJiPLgv7F+MwyJPcNTn1dIUkMnUacbaP18ydHmyQZgYCKeIsuSxCh67+0tm uOUEQiGvjMuGb+3ItVCESKlYdcd7phs8heEIgUlrRlA54BrcQ3VQP84QOvHznDG31DXw 5Eal12H27NhqzW0c7JhgXZLqhyh52siJy3FVMlcx3YstksyGLpSt0/qgzcbaTVPsFjuO taGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=PEVzxkdc44Hh2bjwqSGbs8JyQ+FVXuoEJ/Y8bfDy9Qc=; b=FLRd6pHeGrgI3iO76lESN2Jku8DY3MZym2113z9tlbmdj/cQWfwEpsHdSyeEyoSf07 ThyYsIKt3ue95LGDWaNgnnSOs7WyU3Ax43C/N/xOOMnQMJ/9i4IVF6b/pqp0ZcrVU2zh F9E2JVkqJS5jShTeOKkFXH/ptfTWZCOdhxKdW/rfTCuzbDYrEP+JCRgGcWTF0Z02yFZ9 CtUAKmQy3XV8ql6f6kOMu5ZKgWZRn1QBq/R3BjV8DbL5wvEF0Wvi9sNWqxVylArZ7Kzy LnAx/iulj9rx6koiIwwBCgDrbb0gh0hprFS0JU/VBxIh04LGNV+u801cuqoXR4+0bH13 RtZg== ARC-Authentication-Results: i=1; mx.google.com; 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 ci9si608535plb.252.2019.02.13.14.47.14; Wed, 13 Feb 2019 14:47:30 -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; 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 S1731143AbfBMRI6 (ORCPT + 99 others); Wed, 13 Feb 2019 12:08:58 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:59451 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726174AbfBMRI5 (ORCPT ); Wed, 13 Feb 2019 12:08:57 -0500 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1gty1m-000478-I0 from Akash_Gajjar@mentor.com ; Wed, 13 Feb 2019 09:08:54 -0800 Received: from eyas.local (137.202.0.90) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Wed, 13 Feb 2019 17:08:48 +0000 From: Akash Gajjar To: CC: Rob Herring , Mark Rutland , Oskari Lemmela , Shohei Maruyama , Levin Du , , , , Subject: [PATCH 1/4] arm64: dts: rockchip: rockpro64 dts make regulator more readable Date: Wed, 13 Feb 2019 22:36:37 +0530 Message-ID: <20190213170651.3210-2-Akash_Gajjar@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190213170651.3210-1-Akash_Gajjar@mentor.com> References: <20190213170651.3210-1-Akash_Gajjar@mentor.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org rename dc12, vcc_sys, vcc1v8_pmu regulators and make it more redable as per the schematic of rk3399-rockpro64. Signed-off-by: Akash Gajjar --- .../boot/dts/rockchip/rk3399-rockpro64.dts | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts index be78172abc09..49e83ba64045 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts @@ -25,15 +25,6 @@ #clock-cells = <0>; }; - dc_12v: dc-12v { - compatible = "regulator-fixed"; - regulator-name = "dc_12v"; - regulator-always-on; - regulator-boot-on; - regulator-min-microvolt = <12000000>; - regulator-max-microvolt = <12000000>; - }; - gpio-keys { compatible = "gpio-keys"; autorepeat; @@ -83,6 +74,15 @@ reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; }; + vcc12v_dcin: vcc12v-dcin { + compatible = "regulator-fixed"; + regulator-name = "vcc12v_dcin"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + }; + /* switched by pmic_sleep */ vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 { compatible = "regulator-fixed"; @@ -103,7 +103,7 @@ regulator-name = "vcc3v3_pcie"; regulator-always-on; regulator-boot-on; - vin-supply = <&dc_12v>; + vin-supply = <&vcc12v_dcin>; }; vcc3v3_sys: vcc3v3-sys { @@ -113,7 +113,7 @@ regulator-boot-on; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - vin-supply = <&vcc_sys>; + vin-supply = <&vcc5v0_sys>; }; /* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */ @@ -125,7 +125,7 @@ pinctrl-0 = <&vcc5v0_host_en>; regulator-name = "vcc5v0_host"; regulator-always-on; - vin-supply = <&vcc_sys>; + vin-supply = <&vcc5v0_sys>; }; vcc5v0_typec: vcc5v0-typec-regulator { @@ -136,17 +136,17 @@ pinctrl-0 = <&vcc5v0_typec_en>; regulator-name = "vcc5v0_typec"; regulator-always-on; - vin-supply = <&vcc_sys>; + vin-supply = <&vcc5v0_sys>; }; - vcc_sys: vcc-sys { + vcc5v0_sys: vcc5v0-sys { compatible = "regulator-fixed"; - regulator-name = "vcc_sys"; + regulator-name = "vcc5v0_sys"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; - vin-supply = <&dc_12v>; + vin-supply = <&vcc12v_dcin>; }; vdd_log: vdd-log { @@ -157,7 +157,7 @@ regulator-boot-on; regulator-min-microvolt = <800000>; regulator-max-microvolt = <1400000>; - vin-supply = <&vcc_sys>; + vin-supply = <&vcc5v0_sys>; }; }; @@ -230,18 +230,18 @@ rockchip,system-power-controller; wakeup-source; - vcc1-supply = <&vcc_sys>; - vcc2-supply = <&vcc_sys>; - vcc3-supply = <&vcc_sys>; - vcc4-supply = <&vcc_sys>; - vcc6-supply = <&vcc_sys>; - vcc7-supply = <&vcc_sys>; + vcc1-supply = <&vcc5v0_sys>; + vcc2-supply = <&vcc5v0_sys>; + vcc3-supply = <&vcc5v0_sys>; + vcc4-supply = <&vcc5v0_sys>; + vcc6-supply = <&vcc5v0_sys>; + vcc7-supply = <&vcc5v0_sys>; vcc8-supply = <&vcc3v3_sys>; - vcc9-supply = <&vcc_sys>; - vcc10-supply = <&vcc_sys>; - vcc11-supply = <&vcc_sys>; + vcc9-supply = <&vcc5v0_sys>; + vcc10-supply = <&vcc5v0_sys>; + vcc11-supply = <&vcc5v0_sys>; vcc12-supply = <&vcc3v3_sys>; - vddio-supply = <&vcc1v8_pmu>; + vddio-supply = <&vcca_1v8>; regulators { vdd_center: DCDC_REG1 { @@ -311,8 +311,8 @@ }; }; - vcc1v8_pmu: LDO_REG3 { - regulator-name = "vcc1v8_pmu"; + vcca_1v8: LDO_REG3 { + regulator-name = "vcca_1v8"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1800000>; @@ -413,7 +413,7 @@ regulator-ramp-delay = <1000>; regulator-always-on; regulator-boot-on; - vin-supply = <&vcc_sys>; + vin-supply = <&vcc5v0_sys>; regulator-state-mem { regulator-off-in-suspend; @@ -432,7 +432,7 @@ regulator-ramp-delay = <1000>; regulator-always-on; regulator-boot-on; - vin-supply = <&vcc_sys>; + vin-supply = <&vcc5v0_sys>; regulator-state-mem { regulator-off-in-suspend; -- 2.17.1