Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6819992imm; Tue, 24 Jul 2018 03:46:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeWLV14PeLbhdvrPtO5BpWoLow5N+6pV7JdVxZrFCE6VdU10w4nLnx5gZ8Rt2XBlcywppzv X-Received: by 2002:a17:902:1665:: with SMTP id g92-v6mr2104856plg.293.1532429181654; Tue, 24 Jul 2018 03:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532429181; cv=none; d=google.com; s=arc-20160816; b=XihkUW9g1PzKIF2K9pYXK3Z/HGg+osLRcpXG8/hz2py22y0Vr/YGvZ6YJ3RiXbU3if ugtSLLJeWgboYubv3zevLlG4oDyFdgfsAy5uyFpY0SLTP491VX09LSGb9Lr4JCCOfNQf Vy+je0arovwiIsHa7wcLnCkSj//TubUx1Cz7JL3rbpAQLZcxBErJdzuO0MRTboO9FSqZ nghHZexweDhWLJ6sXxbN0ESi1WVnnDPWE3kmelOWD1yAv7EM67ItA0RI9gxlg5cMVX0Z lH16lxi1VA/qpv7Nuiso2ZmH4ElhegF3MLKllss/jIVvcmCNIsa/QjirrqYexqVq+6t9 9DkQ== 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=UMt1RLyjP6PZDLv+6JpAosDhpLZaeT3RsUp1yRNweRU=; b=PenPjYQdxkBUkvPdfOSah6c4cSsSmEewcO/iRQgBRwkHj6YZXulIGhe1G6f0/sXleZ 3MoBzhs/dajQ3j70Zmj+lam50KGikr9POVkXx1qaoKdzXygtunEoVxA+yGi3Bgjfal4N LrIFC+NgX1qCGgxPHvbQDj/oKXEE+OArBxKF2wK5XqrJscubBqC36xVp9a11yyrhwn0c zxy0UippNJz63ADs2WHsAiuomKKsTQn7S9ghaxNwlq7hnvOkG1HT6lV2JERwZbN0e9jw jj6YaN/ounqupswTchsMdhOGe1mgaaYgrNe/VVx4ALe33lN7MAXb3EDX8mIRrch1c6wu aNdw== 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 q8-v6si5974071pgh.675.2018.07.24.03.46.07; Tue, 24 Jul 2018 03:46:21 -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 S2388595AbeGXLtY (ORCPT + 99 others); Tue, 24 Jul 2018 07:49:24 -0400 Received: from mout.perfora.net ([74.208.4.196]:59219 "EHLO mout.perfora.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388413AbeGXLtY (ORCPT ); Tue, 24 Jul 2018 07:49:24 -0400 Received: from localhost.localdomain.toradex.int ([46.140.72.82]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPA (Nemesis) id 0MZmmm-1fQwfB09Xi-00LZIm; Tue, 24 Jul 2018 12:43:27 +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 06/15] ARM: tegra: apalis-tk1: add missing regulators Date: Tue, 24 Jul 2018 12:43:00 +0200 Message-Id: <20180724104309.21741-7-marcel@ziswiler.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180724104309.21741-1-marcel@ziswiler.com> References: <20180724104309.21741-1-marcel@ziswiler.com> X-Provags-ID: V03:K1:ITrmAPoTHwZut9yFXDIIGfIMmCuEhbhDAQr/8mrv2wScl4Q0IQW BleDpXBtbU1jreQUxhEDAhgtfz+q/lEK0VkVSdLGugsDR9hP1CFw4gHC5zefibzusufoyBa FxTdwyLnhgruZCSKCzlxzUVtQ94MSOtbACK6tIC9j95knTdimupIwUn7hNRBJtYNsWFQZnt KZFvsvbXQXiML8l7dTdhA== X-UI-Out-Filterresults: notjunk:1;V01:K0:zCdCre6Lbzc=:H0MWIPjJ5tChdzMjN9b2Eq emjY8XQkL0Woq/WHxugcLQbWwLH1hN525siHTZhqttdM06vEshsy0eo7Wn8TTW+5eFISFtqdy O7w0awLoOUO1gHJgSDJ6d3yDoWFesw9BHpyCODKnFgfTx3x9V/qQ8t73tBVmAOlB4xX5qwXXF CkFVnV/j4AvbKnvVDrQhwMw3bK0y/CDI8Lk/zL5HDSMciNksnr1nhX3fReu3TG4+mcBoa8IlL 4TFK2lNm3eAojOu+I+GqJcLbO8LVMDdq/zaiyt/RXY4lqxA3K3WSSra2o8NxEWSR5x4A/8iFD NY/zpz8LoIDc1WJJhIQ8scOG77l2PMO3lMt01odu/ntI6YZJCNGpS0gkF1rFlBnvCkUhYsi5N mJ1kNMEzr3Cf0phnpCcGQtR7oiFWyZWnnjlsaQSnYJMVo1rSdXt0PPJC3ufTekBsa5zc/TUtz qEg/wm3j44/EFurEvPpTmRyrWSqvmTE+ERoTjBkNl78HMQHvlGIC6vNO0ZcByvPvRjR/GSeao 6FUDulsQpvt5LPHAtzJEmzSDyUPYDOKOJ3tN8/vkchENBrtgIe8mIHrm+/N0+s9pYHPImOYaU mjt35A6Ohfe0sZCTXS8ocTGrUP/3ZUyylmlqAf2L7ci1am9lzDu3ERWxeO6G9MVwpTgcJgemC vSqwVEpTQsGYa4T3pN6DB5BYGbnj7sdfF9IHMJ6fRP9rGhXd97RZDTAz1dLOnbj5rOgo= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marcel Ziswiler Add missing regulators: - reg_module_3v3_audio being VDDA supply of SGTL5000 - VDDD supply of SGTL5000 actually being reg_1v8_vio - TMP451 temperature sensor vcc supply being reg_module_3v3 - usb3-0 vbus supply being reg_usbh_vbus - usb3-1 vbus supply being reg_usbo1_vbus - carrier board HDMI supply being reg_5v0 - carrier board sata target 5v supply being reg_5v0 - carrier board sata target 12v supply being reg_12v0 - carrier board reg_3v3 actually being backlight power supply Signed-off-by: Marcel Ziswiler --- arch/arm/boot/dts/tegra124-apalis-eval.dts | 18 ++++++++++++++++++ arch/arm/boot/dts/tegra124-apalis-v1.2-eval.dts | 18 ++++++++++++++++++ arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi | 14 +++++++++++++- arch/arm/boot/dts/tegra124-apalis.dtsi | 14 +++++++++++++- 4 files changed, 62 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/tegra124-apalis-eval.dts b/arch/arm/boot/dts/tegra124-apalis-eval.dts index a6ad759dddb4..c2e918d345de 100644 --- a/arch/arm/boot/dts/tegra124-apalis-eval.dts +++ b/arch/arm/boot/dts/tegra124-apalis-eval.dts @@ -72,6 +72,7 @@ host1x@50000000 { hdmi@54280000 { status = "okay"; + hdmi-supply = <®_5v0>; }; }; @@ -164,6 +165,8 @@ /* Apalis Serial ATA */ sata@70020000 { status = "okay"; + target-5v-supply = <®_5v0>; + target-12v-supply = <®_12v0>; }; hda@70030000 { @@ -230,6 +233,7 @@ default-brightness-level = <6>; /* BKL1_ON */ enable-gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_HIGH>; + power-supply = <®_3v3>; }; gpio-keys { @@ -244,6 +248,13 @@ }; }; + reg_3v3: regulator-3v3 { + compatible = "regulator-fixed"; + regulator-name = "3.3V_SW"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + reg_5v0: regulator-5v0 { compatible = "regulator-fixed"; regulator-name = "5V_SW"; @@ -251,6 +262,13 @@ regulator-max-microvolt = <5000000>; }; + reg_12v0: regulator-12v0 { + compatible = "regulator-fixed"; + regulator-name = "12V_SW"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + }; + /* USBO1_EN */ reg_usbo1_vbus: regulator-usbo1-vbus { compatible = "regulator-fixed"; diff --git a/arch/arm/boot/dts/tegra124-apalis-v1.2-eval.dts b/arch/arm/boot/dts/tegra124-apalis-v1.2-eval.dts index 8a8d5fa0ecd1..eebcc013771e 100644 --- a/arch/arm/boot/dts/tegra124-apalis-v1.2-eval.dts +++ b/arch/arm/boot/dts/tegra124-apalis-v1.2-eval.dts @@ -36,6 +36,7 @@ host1x@50000000 { hdmi@54280000 { status = "okay"; + hdmi-supply = <®_5v0>; }; }; @@ -129,6 +130,8 @@ /* Apalis Serial ATA */ sata@70020000 { status = "okay"; + target-5v-supply = <®_5v0>; + target-12v-supply = <®_12v0>; }; hda@70030000 { @@ -195,6 +198,7 @@ default-brightness-level = <6>; /* BKL1_ON */ enable-gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_HIGH>; + power-supply = <®_3v3>; }; gpio-keys { @@ -209,6 +213,13 @@ }; }; + reg_3v3: regulator-3v3 { + compatible = "regulator-fixed"; + regulator-name = "3.3V_SW"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + reg_5v0: regulator-5v0 { compatible = "regulator-fixed"; regulator-name = "5V_SW"; @@ -216,6 +227,13 @@ regulator-max-microvolt = <5000000>; }; + reg_12v0: regulator-12v0 { + compatible = "regulator-fixed"; + regulator-name = "12V_SW"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + }; + /* USBO1_EN */ reg_usbo1_vbus: regulator-usbo1-vbus { compatible = "regulator-fixed"; diff --git a/arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi b/arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi index 8323fddceed8..a8dcf960e44f 100644 --- a/arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi +++ b/arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi @@ -1565,7 +1565,8 @@ sgtl5000: codec@a { compatible = "fsl,sgtl5000"; reg = <0x0a>; - VDDA-supply = <®_module_3v3>; + VDDA-supply = <®_module_3v3_audio>; + VDDD-supply = <®_1v8_vddio>; VDDIO-supply = <®_1v8_vddio>; clocks = <&tegra_car TEGRA124_CLK_EXTERN1>; }; @@ -1754,6 +1755,7 @@ interrupt-parent = <&gpio>; interrupts = ; #thermal-sensor-cells = <1>; + vcc-supply = <®_module_3v3>; }; }; @@ -1902,11 +1904,13 @@ usb3-0 { status = "okay"; nvidia,usb2-companion = <2>; + vbus-supply = <®_usbh_vbus>; }; usb3-1 { status = "okay"; nvidia,usb2-companion = <0>; + vbus-supply = <®_usbo1_vbus>; }; }; }; @@ -1989,6 +1993,14 @@ vin-supply = <®_3v3_mxm>; }; + reg_module_3v3_audio: regulator-module-3v3-audio { + compatible = "regulator-fixed"; + regulator-name = "+V3.3_AUDIO_AVDD_S"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + sound { compatible = "toradex,tegra-audio-sgtl5000-apalis_tk1", "nvidia,tegra-audio-sgtl5000"; diff --git a/arch/arm/boot/dts/tegra124-apalis.dtsi b/arch/arm/boot/dts/tegra124-apalis.dtsi index 4ad14c7a64db..b2aca71f96e7 100644 --- a/arch/arm/boot/dts/tegra124-apalis.dtsi +++ b/arch/arm/boot/dts/tegra124-apalis.dtsi @@ -1594,7 +1594,8 @@ sgtl5000: codec@a { compatible = "fsl,sgtl5000"; reg = <0x0a>; - VDDA-supply = <®_module_3v3>; + VDDA-supply = <®_module_3v3_audio>; + VDDD-supply = <®_1v8_vddio>; VDDIO-supply = <®_1v8_vddio>; clocks = <&tegra_car TEGRA124_CLK_EXTERN1>; }; @@ -1783,6 +1784,7 @@ interrupt-parent = <&gpio>; interrupts = ; #thermal-sensor-cells = <1>; + vcc-supply = <®_module_3v3>; }; }; @@ -1931,11 +1933,13 @@ usb3-0 { status = "okay"; nvidia,usb2-companion = <2>; + vbus-supply = <®_usbh_vbus>; }; usb3-1 { status = "okay"; nvidia,usb2-companion = <0>; + vbus-supply = <®_usbo1_vbus>; }; }; }; @@ -2018,6 +2022,14 @@ vin-supply = <®_3v3_mxm>; }; + reg_module_3v3_audio: regulator-module-3v3-audio { + compatible = "regulator-fixed"; + regulator-name = "+V3.3_AUDIO_AVDD_S"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + sound { compatible = "toradex,tegra-audio-sgtl5000-apalis_tk1", "nvidia,tegra-audio-sgtl5000"; -- 2.14.4