Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp657284imm; Fri, 31 Aug 2018 09:43:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbX4VY4GPe0FZJ/OzIg6+4PH8JNsgTIXxxyMRrd1c7X/9a6xyUHvGf/QnF6vlch/uc4yQYh X-Received: by 2002:a17:902:6115:: with SMTP id t21-v6mr16450122plj.92.1535733830349; Fri, 31 Aug 2018 09:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535733830; cv=none; d=google.com; s=arc-20160816; b=qxb804/iV9zqH+bWEMWHJnT9o37P1mEmKIwIEvyOpwupaato73xCVkIvpeOamJAPO8 25SawQAXJoQ2d4oQEeuvSU7Rieh6TC15kKX+8CRfPdqqWi+wJIh83nJaMmvbp/zC7bXf 3YSzwKtH++E26haMijjwUlYVR4i1gpFCQNvoeAcee2lFEOfZYJjZEFPC3gcwE8wA/+GJ HsputZGtEmeO+4kHXyMgKADHc4RyChWPlnyvYcvm3Rt7/UPfhheQOzdnn5qLX/TDyFFy rZ63kGIJIIxlxbcPuwy2Gx3phfefAJ71V/5MUZY4AmnING4KCj/g586EoRE7BweYkON9 qKVw== 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=XbNkprZChO05Xb/VvyohCsra+6eUO7CcMhHgP6GzIWI=; b=OqInWmDP1OKOmqKwK34f+qxteWur5cJaoOGOsiuyAHtJkDpKznZp+VUMkHvPiowEJA wsQX+zivrfgI3gcGRoOBtcvnmI0HnbBBgmNCBxbpOFDaeJrF7Qh6yFrG06c1/v+tGeO1 kRLZiq081Q1TdmV+yGDHfFgNNjQDVV5BUVjzkw+VRrdZiugyigOmgRNvsTwrVED1YPE6 BM6gLVSKHk9dmZS+AvGixQU+pfpMO5yD61GlIiyvsfi+4/IMsRzSEI+fUO7a3Ax5uayg NZkyuD4FI0s/gGDTlJTiTt67sHf4ziwb6mtUh762HchwGXVEyUJ+femTgn6EG8WTA1+M VEng== 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 15-v6si11084806pfj.329.2018.08.31.09.43.35; Fri, 31 Aug 2018 09:43:50 -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 S1729052AbeHaUtH (ORCPT + 99 others); Fri, 31 Aug 2018 16:49:07 -0400 Received: from mout.perfora.net ([74.208.4.197]:52971 "EHLO mout.perfora.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727838AbeHaUrd (ORCPT ); Fri, 31 Aug 2018 16:47:33 -0400 Received: from localhost.localdomain.ziswiler.net ([89.217.215.226]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPA (Nemesis) id 0LfQa7-1fXPz10hOz-00p0xw; Fri, 31 Aug 2018 18:39:06 +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 21/34] ARM: tegra: apalis_t30: add i2c-thermtrip Date: Fri, 31 Aug 2018 18:38:03 +0200 Message-Id: <20180831163817.23970-22-marcel@ziswiler.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180831163817.23970-1-marcel@ziswiler.com> References: <20180831163817.23970-1-marcel@ziswiler.com> X-Provags-ID: V03:K1:GcpZCdrSZ8aPk4ZlMc7zq0B7130ob6mGNWiiVP5oyxyZ8VCTV7/ D3xdpREwz3m9ozRm23siJXpHbXA2Yl6Oo5S3B7hbQLaT+faW9CK20nISUYIIv8rpiuK4uBd 3DoAoT4/GBElrQXonJLXTq/417lD2WTaNCzuyt2QDKQ1mpvm2OQTp540tJPZybaokb0/nJZ RoiIksji3tRFhYLRUQj/A== X-UI-Out-Filterresults: notjunk:1;V01:K0:4QpHSYdHJrM=:+vCLkzC+adjLrN2rjSL0kb zVZW/aoAzqyRHYWR3xe+uSaOUDQTf/vBTYQI5z7DGPwexBGm7Ydde30QtofJJlkNP5VIwM8DX tnQ9gh1pS2w9PgkT7PSuJR6kArCfoRqpsVGnTXk7Fd7ki9wIyVGsG/M8UqLt7eoUn3hMpWYqm wsHN/k1sUWZ6dPMSlR+SJf6E+oymmKhZxtbafD0d03KMlLWnZ8oE5EzrCFW7PpfiTo6sJKzDY dZJ6mItuKgZ7RCjiYgLjnnQT+N960R0x6jN260unLCimRkIKJBBVRktjW8zgPPL4XlbYF9F6v GPuSR8UeSfV67rJL9EJIo8wRLDKMygsrWyLyy6AE8L/ehh37zIF7aewWNQbpZdTMykAfm071D BBYM0NhS5/nG2UjqCmTBWLeLfCiYZ55/YjXB0fu7U3tadfW13bCjXuT91WenU39sG5+zoNXbY rRs4R4Qh5Ynjnn9EffJUmL99DmeA3NK9hb//0rjisL6EUI1xZ84JEAZnMbmdAxyEK7wgaLA5x wQH+KWJJDDW1DA1sZ/tDM8s2KhJRFY0KDHs1V4yI9Rgs2KgSnCXSaSPWdGrvd/yeWlyciyaoq Re0q2EMhtdKu5pqfV1lUqLhWzsvDRARozc0i2R7Jt2xqkeyJoFkPFVyOeuw+RL71XVwxBSiq5 io3sXcRJM/N9p8CfkcrUvBKsj2RsyTj+irKglFD2TmhzFJH9pN3Tu5XFtBicjskmqHwQ= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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-apalis.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/tegra30-apalis.dtsi b/arch/arm/boot/dts/tegra30-apalis.dtsi index c3e37d944c62..02d0117e9398 100644 --- a/arch/arm/boot/dts/tegra30-apalis.dtsi +++ b/arch/arm/boot/dts/tegra30-apalis.dtsi @@ -1071,6 +1071,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 { -- 2.14.4