From patchwork Sat Sep 1 08:12:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 964835 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ziswiler.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 422TYs0hP2z9s4V for ; Sat, 1 Sep 2018 18:15:29 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727774AbeIAMYt (ORCPT ); Sat, 1 Sep 2018 08:24:49 -0400 Received: from mout.perfora.net ([74.208.4.196]:44621 "EHLO mout.perfora.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727753AbeIAMYt (ORCPT ); Sat, 1 Sep 2018 08:24:49 -0400 Received: from localhost.localdomain.ziswiler.net ([89.217.215.226]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPA (Nemesis) id 0M9peg-1g2dnM0XuK-00B1Ee; Sat, 01 Sep 2018 10:13:28 +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 v2 14/34] ARM: tegra: colibri_t30: add i2c-thermtrip Date: Sat, 1 Sep 2018 10:12:28 +0200 Message-Id: <20180901081248.22639-15-marcel@ziswiler.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180901081248.22639-1-marcel@ziswiler.com> References: <20180901081248.22639-1-marcel@ziswiler.com> X-Provags-ID: V03:K1:pJ+Wec6iJlA0nruioYaKUvQ9v5daRMdkKILIXRrcGrzFEgph7LT 0UEZoi8/dK+FbmqlqZpM2mtWabWqu7E0OfKOk7WERx5SD996lMvPdD1h+AULpkRnGjkqkA2 L5jRkxdOCq1sVTARatlRNFI72I09E6XpAnxCistQAQZT7Qj2CNP1X7MNzok7oy92N5T8saT Sn8O88MYzNSa3N4P6hXzg== X-UI-Out-Filterresults: notjunk:1; V01:K0:cAdeIaX8Nls=:FJi04n79OkrSJ+5vWyhpec 89TnqqndiZrF9Zx2KkAPJ441C0ewNhgLS2Yf3S01UH1rsKl3K03hhxWFMagp7mMo/a0Iyu8KL +J52xK8qGZQ79Jrgc2yZl75xaUNNmRLh2n3CsvT8Xuqt1XGr4XOAnt3n8MCsWWxV/d/is4TlW pi2HhsyW0hU/M53XYSybSf2Yzkdbur9KtPDWm+ws0/y2Crq0/XZOaB/o0yTvS+1tnX8Vnz3XI wV60GHe4AchUKz48yus2IeXrotX9gPLjxXvEvjoOH5AjJmjXbZj0GtV6m9DRWbDIqt3iI+lhn DIECfEEpCqndEchdy8IdQIymdeoFUy89eZI6l2WkHRwqPDdEVzD7o9bVoUKMmm1JQ+EzdmoH1 ONjunIME9X4QmOTRC1xDIvYqgN1zygxycWDL3rJe8YIx6FvAWIZ4/4NJu42UrfBtqk+69hpoH 7BlM0AYe/fjJvgQsnOO1MLUSoazsxFaNQTkzDNtabVgSzlhXcXUJ9/gX4Qe0osStLKxrtbDEG WM6JaCMKV763rQxflANshk0E/VxhpE9einCsPmSvQMFlVgFNf0opDeiK7ZIP0vkM3T5dqfqEQ mBxDTq3h/kHZrKOADWIkzWWizCvT57ucVuW/AvSIZQC+XzyZ3rskZ56NQu5JvxdsZZbtRDtlh W1XLvGLdkyUU2dDIN7rKFvWmZRSqapgZffoW5zjHA/Yo14/UaTgLRU4E0RCbyg97D3NE= Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Marcel Ziswiler Add i2c-thermtrip which would set the DEV_OFF bit in the DCDC control register of the TPS65911 PMIC. Signed-off-by: Marcel Ziswiler --- Changes in v2: - When running some more tests I realized that the reg-addr should really be 0x3f. Fix this. arch/arm/boot/dts/tegra30-colibri.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/tegra30-colibri.dtsi b/arch/arm/boot/dts/tegra30-colibri.dtsi index 73ff098612a2..670edd5e4754 100644 --- a/arch/arm/boot/dts/tegra30-colibri.dtsi +++ b/arch/arm/boot/dts/tegra30-colibri.dtsi @@ -910,6 +910,14 @@ nvidia,core-pwr-off-time = <0>; nvidia,core-power-req-active-high; nvidia,sys-clock-req-active-high; + + /* Set DEV_OFF bit in DCDC control register of TPS65911 PMIC */ + i2c-thermtrip { + nvidia,i2c-controller-id = <4>; + nvidia,bus-addr = <0x2d>; + nvidia,reg-addr = <0x3f>; + nvidia,reg-data = <0x1>; + }; }; ahub@70080000 {