Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5755729imm; Mon, 23 Jul 2018 05:39:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdAhSfZOhWZTFV22k0bYI2rMf6eLYg0Iwo1cOSt48kWDiJOf77VpPWNPQ2sk8YFSIkQc2W/ X-Received: by 2002:a63:2644:: with SMTP id m65-v6mr11948994pgm.371.1532349540535; Mon, 23 Jul 2018 05:39:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532349540; cv=none; d=google.com; s=arc-20160816; b=likIJIIz/LEsAoBBwL/rWzzIi7v7MTWPNDREkGfN9WowxWVLWrCGaBbGHutaiyYoTM 44J2oKihZ+DZ35jtwFhYrCeAcKKlFD0ht8TyLjgoVYLqmmhmd1GnqCjhX116djBvZOyI DXQSvJM2Wy7yXFf9fKYprk7hi28femVColvX711C8y7KZrk4Ra0x+CAhlIOvRdKefDgB Pv6xAsA8Nelw7f5FSEA6Yt7gOKIxYGyw1fhl3am10OAi8xOEYqRyg82gNUazIIcbLdXi t0zhh968aKQfxmTPkoQ1QhzlHfmBBTKx24OD+FEeejTDbcZiNO978ZYE+pX0aMTU5dnM A4lA== 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:message-id:date :subject:cc:to:from:arc-authentication-results; bh=65bZwETrwbATg9J5FrYrgGhwD/j4isW+VrFF6Ebt2Q4=; b=Sp22eXJfwIjskUn9SfiQXbRZnxPg/CVMbTBkz45o5ErJyRkxcUsy1FkZhkiWvHhCaJ SN+YM8v9s/IhtRN0ed9FLbuqIx9Qy5tgX/7rMCYirX4lQ2SLUqRP4ymwARrSJCXraj7Y eLzCLx8nhqYHs3raVkosv3DvwLFMdvXeL7mAokzXS6vDb8sJmbUsiKxI4Vrs7iimP6Cb Zk7AAn+TTPbUD8xW328bD9Y/rxK63Q9a6URjTR4stXWDOyGN903rXX1wtpAE+5bV9+LL BHKHeToSYUKmCxVekLwWd0ctmLDVlDKqnsb5xB7BWr4PGTBALoMkMf7BEL5g3QnrK5IF iVkQ== 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 73-v6si8214755pgh.343.2018.07.23.05.38.45; Mon, 23 Jul 2018 05:39:00 -0700 (PDT) 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 S2389022AbeGWNiW (ORCPT + 99 others); Mon, 23 Jul 2018 09:38:22 -0400 Received: from mout.perfora.net ([74.208.4.197]:55315 "EHLO mout.perfora.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388832AbeGWNiU (ORCPT ); Mon, 23 Jul 2018 09:38:20 -0400 Received: from localhost.localdomain.toradex.int ([46.140.72.82]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPA (Nemesis) id 0LpMSh-1gAt1O2GtJ-00f6wS; Mon, 23 Jul 2018 14:37:12 +0200 From: Marcel Ziswiler To: devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marcel Ziswiler , Thierry Reding , Jonathan Hunter , Rob Herring , Mark Rutland Subject: [PATCH 04/26] ARM: tegra: colibri_t30: regulator clean-up Date: Mon, 23 Jul 2018 14:36:35 +0200 Message-Id: <20180723123658.980-5-marcel@ziswiler.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180723123658.980-1-marcel@ziswiler.com> References: <20180723123658.980-1-marcel@ziswiler.com> X-Provags-ID: V03:K1:Ba/KQ4dOBzIORAoTu2sOQAh1fg+mvJqv2aqLy4YKpsLd+1Dbgt5 sWNuR1mnvWDpdxRmsa3bueoKBYjIoQhCL6D6LSJ1WNF1ntlB9mmVMWB5mT7Xxwzcn16GQSp 4GNql51B7QOQgcwsRfvkglURhEspwbOMEk8fYCbqs6HuS0op5vs0MKmeDBTKQV50Uvy3hQk cdv0CiHQbVhUQSgvsUPMw== X-UI-Out-Filterresults: notjunk:1;V01:K0:R4435kt4utQ=:yyW7iJQ60DAqZOf+1FyqFM Bk4ZLy+TaP4oNgufGNNE549rIwUX8svQSlkuXiGLeG2fFdTaBZ/c2oRumrqCoraKt5ue1LcRa 32kL4tEzEB/YZ9+/78x0z/llPCBO9I1qoplXZV3IYQ5hx7jSX/nE0e2EFPqAHNjasOo3oR3uX kyH/NpDG0Mmsa03odt3DNKCVHT21ZmdlTPvDFH3M6GWtACrJr8R9BvyNNz2AWmSewinCxEG80 Kvf7cZ6f9VgufzXHLbprGuU+V98aE9zvUcQGvd8hA733be5v/czqEt8O65zP95sHEolRpV033 /PTh6pRcC7l7bORKZfWirXRO8Dv0BuOIZLoRe28zYVdAlq/0Rqu7+VG8h/xfXH5e5SNETlGTL /FglK0leO25EpKxaBT+pHADwXsQk+DODMupPWMKTbc0HD4mIgtPdYcWljSRGQdzCF7OatlIoH n4NV/EDlymqCLGjj/QyXti/H23nYQTfAzv5vDpTrQSEQZ4IRkhb+0xlLEk1Nyg6jIhiFhq+VJ DPNUgD1YAJc+DnvAsn8/TrkOkQXS+NpZfDfpSGUpoVJq+1jSYeTO5b0tAgIJzFPG6TbMbhvot lynJVbQ8R1V0Xw2fJagJLTsIlXVaACIwPcjK/FJWpJnoFzCLoTcvJQTTtgN4FZ/JhCuTx45Dk IPc7dgjniPDuOFT1WCAUAKH2RSy2co/aCffwYve4D+wwFqXTY4a6E4HSxwvtS9lZVumw= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marcel Ziswiler Just cosmetic regulator clean-up. Signed-off-by: Marcel Ziswiler --- arch/arm/boot/dts/tegra30-colibri-eval-v3.dts | 52 +++++------ arch/arm/boot/dts/tegra30-colibri.dtsi | 126 +++++++++++--------------- 2 files changed, 78 insertions(+), 100 deletions(-) diff --git a/arch/arm/boot/dts/tegra30-colibri-eval-v3.dts b/arch/arm/boot/dts/tegra30-colibri-eval-v3.dts index 16e1f387aa6d..5eb665d89435 100644 --- a/arch/arm/boot/dts/tegra30-colibri-eval-v3.dts +++ b/arch/arm/boot/dts/tegra30-colibri-eval-v3.dts @@ -105,7 +105,7 @@ usb-phy@7d000000 { status = "okay"; dr_mode = "otg"; - vbus-supply = <&usbc_vbus_reg>; + vbus-supply = <®_usbc_vbus>; }; /* EHCI instance 2: USB3_DP/N -> USBH_P/N */ @@ -115,7 +115,7 @@ usb-phy@7d008000 { status = "okay"; - vbus-supply = <&usbh_vbus_reg>; + vbus-supply = <®_usbh_vbus>; }; backlight: backlight { @@ -181,34 +181,28 @@ }; }; - regulators { - sys_5v0_reg: regulator@1 { - compatible = "regulator-fixed"; - reg = <1>; - regulator-name = "5v0"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - regulator-always-on; - }; + reg_5v0: regulator-5v0 { + compatible = "regulator-fixed"; + regulator-name = "5V_SW"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; - usbc_vbus_reg: regulator@2 { - compatible = "regulator-fixed"; - reg = <2>; - regulator-name = "usbc_vbus"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - vin-supply = <&sys_5v0_reg>; - }; + reg_usbc_vbus: regulator-usbc-vbus { + compatible = "regulator-fixed"; + regulator-name = "VCC_USB5"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <®_5v0>; + }; - /* USBH_PEN */ - usbh_vbus_reg: regulator@3 { - compatible = "regulator-fixed"; - reg = <3>; - regulator-name = "usbh_vbus"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>; - vin-supply = <&sys_5v0_reg>; - }; + /* USBH_PEN resp. USB_P_EN */ + reg_usbh_vbus: regulator-usbh-vbus { + compatible = "regulator-fixed"; + regulator-name = "VCC_USB[1-4]"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>; + vin-supply = <®_5v0>; }; }; diff --git a/arch/arm/boot/dts/tegra30-colibri.dtsi b/arch/arm/boot/dts/tegra30-colibri.dtsi index a4c2fbf270ff..c58bd41a68ae 100644 --- a/arch/arm/boot/dts/tegra30-colibri.dtsi +++ b/arch/arm/boot/dts/tegra30-colibri.dtsi @@ -19,8 +19,8 @@ nvidia,ddc-i2c-bus = <&hdmiddc>; nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>; - pll-supply = <&avdd_hdmi_pll_1v8_reg>; - vdd-supply = <&avdd_hdmi_3v3_reg>; + pll-supply = <®_1v8_avdd_hdmi_pll>; + vdd-supply = <®_3v3_avdd_hdmi>; }; }; @@ -229,8 +229,8 @@ sgtl5000: codec@a { compatible = "fsl,sgtl5000"; reg = <0x0a>; - VDDA-supply = <&sys_3v3_reg>; - VDDIO-supply = <&sys_3v3_reg>; + VDDA-supply = <®_module_3v3>; + VDDIO-supply = <®_module_3v3>; clocks = <&tegra_car TEGRA30_CLK_EXTERN1>; }; @@ -247,19 +247,18 @@ #gpio-cells = <2>; gpio-controller; - vcc1-supply = <&sys_3v3_reg>; - vcc2-supply = <&sys_3v3_reg>; - vcc3-supply = <&vio_reg>; - vcc4-supply = <&sys_3v3_reg>; - vcc5-supply = <&sys_3v3_reg>; - vcc6-supply = <&vio_reg>; - vcc7-supply = <&charge_pump_5v0_reg>; - vccio-supply = <&sys_3v3_reg>; + vcc1-supply = <®_module_3v3>; + vcc2-supply = <®_module_3v3>; + vcc3-supply = <®_1v8_vio>; + vcc4-supply = <®_module_3v3>; + vcc5-supply = <®_module_3v3>; + vcc6-supply = <®_1v8_vio>; + vcc7-supply = <®_5v0_charge_pump>; + vccio-supply = <®_module_3v3>; regulators { - /* SW1: +V1.35_VDDIO_DDR */ vdd1_reg: vdd1 { - regulator-name = "vddio_ddr_1v35"; + regulator-name = "+V1.35_VDDIO_DDR"; regulator-min-microvolt = <1350000>; regulator-max-microvolt = <1350000>; regulator-always-on; @@ -267,17 +266,15 @@ /* SW2: unused */ - /* SW CTRL: +V1.0_VDD_CPU */ vddctrl_reg: vddctrl { - regulator-name = "vdd_cpu,vdd_sys"; + regulator-name = "+V1.0_VDD_CPU"; regulator-min-microvolt = <1150000>; regulator-max-microvolt = <1150000>; regulator-always-on; }; - /* SWIO: +V1.8 */ - vio_reg: vio { - regulator-name = "vdd_1v8_gen"; + reg_1v8_vio: vio { + regulator-name = "+V1.8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; @@ -288,10 +285,10 @@ /* * EN_+V3.3 switching via FET: * +V3.3_AUDIO_AVDD_S, +V3.3 and +V1.8_VDD_LAN - * see also 3v3 fixed supply + * see also +V3.3 fixed supply */ ldo2_reg: ldo2 { - regulator-name = "en_3v3"; + regulator-name = "EN_+V3.3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; @@ -299,9 +296,8 @@ /* LDO3: unused */ - /* +V1.2_VDD_RTC */ ldo4_reg: ldo4 { - regulator-name = "vdd_rtc"; + regulator-name = "+V1.2_VDD_RTC"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-always-on; @@ -309,10 +305,10 @@ /* * +V2.8_AVDD_VDAC: - * only required for analog RGB + * only required for (unsupported) analog RGB */ ldo5_reg: ldo5 { - regulator-name = "avdd_vdac"; + regulator-name = "+V2.8_AVDD_VDAC"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; regulator-always-on; @@ -324,22 +320,20 @@ * granularity */ ldo6_reg: ldo6 { - regulator-name = "avdd_plle"; + regulator-name = "+V1.05_AVDD_PLLE"; regulator-min-microvolt = <1100000>; regulator-max-microvolt = <1100000>; }; - /* +V1.2_AVDD_PLL */ ldo7_reg: ldo7 { - regulator-name = "avdd_pll"; + regulator-name = "+V1.2_AVDD_PLL"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-always-on; }; - /* +V1.0_VDD_DDR_HS */ ldo8_reg: ldo8 { - regulator-name = "vdd_ddr_hs"; + regulator-name = "+V1.0_VDD_DDR_HS"; regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-always-on; @@ -471,50 +465,40 @@ }; }; - regulators { - compatible = "simple-bus"; - #address-cells = <1>; - #size-cells = <0>; - - avdd_hdmi_pll_1v8_reg: regulator@100 { - compatible = "regulator-fixed"; - reg = <100>; - regulator-name = "+V1.8_AVDD_HDMI_PLL"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - enable-active-high; - gpio = <&pmic 6 GPIO_ACTIVE_HIGH>; - vin-supply = <&vio_reg>; - }; + reg_1v8_avdd_hdmi_pll: regulator-1v8-avdd-hdmi-pll { + compatible = "regulator-fixed"; + regulator-name = "+V1.8_AVDD_HDMI_PLL"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + enable-active-high; + gpio = <&pmic 6 GPIO_ACTIVE_HIGH>; + vin-supply = <®_1v8_vio>; + }; - sys_3v3_reg: regulator@101 { - compatible = "regulator-fixed"; - reg = <101>; - regulator-name = "3v3"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; + reg_3v3_avdd_hdmi: regulator-3v3-avdd-hdmi { + compatible = "regulator-fixed"; + regulator-name = "+V3.3_AVDD_HDMI"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-high; + gpio = <&pmic 6 GPIO_ACTIVE_HIGH>; + vin-supply = <®_module_3v3>; + }; - avdd_hdmi_3v3_reg: regulator@102 { - compatible = "regulator-fixed"; - reg = <102>; - regulator-name = "+V3.3_AVDD_HDMI"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - enable-active-high; - gpio = <&pmic 6 GPIO_ACTIVE_HIGH>; - vin-supply = <&sys_3v3_reg>; - }; + reg_5v0_charge_pump: regulator-5v0-charge-pump { + compatible = "regulator-fixed"; + regulator-name = "+V5.0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; - charge_pump_5v0_reg: regulator@103 { - compatible = "regulator-fixed"; - reg = <103>; - regulator-name = "5v0"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - regulator-always-on; - }; + reg_module_3v3: regulator-module-3v3 { + compatible = "regulator-fixed"; + regulator-name = "+V3.3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; }; sound { -- 2.14.4