Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2905814pxj; Mon, 10 May 2021 13:30:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy147Um+r+s1QYuG86iSMBzBVg0muyniLPs12Xuex97RlPfac7kZzcM5w1qtwL73AdeXjn0 X-Received: by 2002:a05:6402:1c07:: with SMTP id ck7mr31958244edb.149.1620678637566; Mon, 10 May 2021 13:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620678637; cv=none; d=google.com; s=arc-20160816; b=rP2Z5RtP0b/O20t+yY6btvRCEF9BJYxVhMFb++lTWcLsMWVMMWyWK+NY6bGLinQHwI P/8/q/v9VMJul4l1IhhxR6NbvjUDG8WSPj4TfePh/aRC/gjsacZKfnNLOiiHUK/cUvCZ WTSfwldqDxyzvbb7/33Qud/5006uz5R6vGwEMgSFNgqIC+sCi17IY54+ELomIMm/IubV egQcRfisdTnWg2/zbSGfgv4AOLDFkkEqpdA7w2NVenM8OTppwDdv8jjLc4kgePq+5ERo J4w0nFNqXaYGjENVbRBXfkvwlTez9uOsMjXz2SIpim2QCelTJoVYOXsRnZFy0DVDnwqw Wq/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LjHfzBtzxjrf6ANvtSTjdzJ2Mz0ZhF/wkhq61KghsA0=; b=GFD2GkikBhJZeiVK3IyZR3PSOTx53Osg0AToY8NvvJlmn7g7cweadDWE6aBcS1PAbk 675BPC+D3coR8JNxtVdlzsL/8290kVbs/XU2B7L8Cj82BKUm4YFR7pO1q/KeQjEfQrsv xsk+BHSleA1AYSK0O4mxn7jyaaRpjBXzS95drTp453ASWhkypj6/Bf14JDVSwq24gcCL ejiMklHKghDrv1F963suCk5yZewORyHg8ZzY905C7brcvtS3+5QfrHBnREHEmJYByckZ aYp8FIF+cnlGOVMMaVPUqOZ/NtAzyeOJr+qbB2478F92qwgh6hzGBVYoZRjS7lc5KXvr zsWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="vNRkzbn/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si17502337ejd.313.2021.05.10.13.30.13; Mon, 10 May 2021 13:30:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="vNRkzbn/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232801AbhEJU3h (ORCPT + 99 others); Mon, 10 May 2021 16:29:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232360AbhEJU3P (ORCPT ); Mon, 10 May 2021 16:29:15 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDFF0C06175F; Mon, 10 May 2021 13:28:09 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id j10so25266507lfb.12; Mon, 10 May 2021 13:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LjHfzBtzxjrf6ANvtSTjdzJ2Mz0ZhF/wkhq61KghsA0=; b=vNRkzbn/LQz89RWeVfxPfLmH4TOXwjFmkRzfstTGH7rgfxz7Ba5G8ZNGzfMRPzSp7d QMBggnSkfwa7Pk2YXow5OG0S+ZZX8X7cW0ytkAOxHTc4y5rdXzOumNWDWjQZdxICJpPi HuZnKmna2jqujs6BAcgHSPowanofqcxmEShEn0JvQTN1vPUPiWCHJ2hxAAZPknXS2FSl yH1USUJekDww08tqBx0WZJPcj9AuRBSQEG0pTJh1FqsymHLUL+Om5ujNDBV6ELABLu6i AAGO/Y3dJ8yF/a8iZO5lO79jq3ZyPFwZxFhMQSblPlnJgR27plCkXmb422Q4rE4RHPYA IMpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LjHfzBtzxjrf6ANvtSTjdzJ2Mz0ZhF/wkhq61KghsA0=; b=G0tpjK7rQPPtryG0Cgm0k3qrjaDKgvHs/37KeyBNNQ7sqbP7dGiC7BFGaVUWYnghQj mFuXk5YJLEmsunVn4hzbYXeQYmu+M6aarjeaG1g8Fmx+cka7AaBfrxFRIw6LYa0e7wk9 /ITx0rllBViGTxivWqLgB9iPd5YqHqgWpJ+OhLIpjFeHuZ0MLCoIFMraimQUorSLxkEz LDJt/r5xWMaSJ9xhFTj9rLV116o9X8C1kcL4J7eI+EGeoxbrNve7PkPvchTGSLnitAKJ WRJugq7ofG5r7sJQsvV9ICQirb7a67qXv3U5DxDiWey2CEYukdoITGlMNITgCpUcI7pu 0mjA== X-Gm-Message-State: AOAM5313nSgNb2hRKsK8EsnmTnQO//KtBhUsdZAuTk8yNPeSy2rDwSuW bwYWSga7lYODQjMjz3eThU0= X-Received: by 2002:a19:c317:: with SMTP id t23mr18654719lff.5.1620678488548; Mon, 10 May 2021 13:28:08 -0700 (PDT) Received: from localhost.localdomain (109-252-193-91.dynamic.spd-mgts.ru. [109.252.193.91]) by smtp.gmail.com with ESMTPSA id z23sm2360662lfq.241.2021.05.10.13.28.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 13:28:08 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Agneli , Paul Fertser , Svyatoslav Ryhel Cc: linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 07/10] ARM: tegra: nexus7: Add i2c-thermtrip node Date: Mon, 10 May 2021 23:25:57 +0300 Message-Id: <20210510202600.12156-8-digetx@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210510202600.12156-1-digetx@gmail.com> References: <20210510202600.12156-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add i2c-thermtrip node which enables emergency shutdown by PMC on SoC die overheat detected by TSENSOR. Signed-off-by: Dmitry Osipenko --- .../boot/dts/tegra30-asus-nexus7-grouper-maxim-pmic.dtsi | 9 +++++++++ .../boot/dts/tegra30-asus-nexus7-grouper-ti-pmic.dtsi | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/tegra30-asus-nexus7-grouper-maxim-pmic.dtsi b/arch/arm/boot/dts/tegra30-asus-nexus7-grouper-maxim-pmic.dtsi index 17b6682ffce8..53966fa4eef2 100644 --- a/arch/arm/boot/dts/tegra30-asus-nexus7-grouper-maxim-pmic.dtsi +++ b/arch/arm/boot/dts/tegra30-asus-nexus7-grouper-maxim-pmic.dtsi @@ -182,4 +182,13 @@ regulator@4 { enable-active-high; vin-supply = <&vdd_3v3_sys>; }; + + pmc@7000e400 { + i2c-thermtrip { + nvidia,i2c-controller-id = <4>; + nvidia,bus-addr = <0x3c>; + nvidia,reg-addr = <0x41>; + nvidia,reg-data = <0xe0>; + }; + }; }; diff --git a/arch/arm/boot/dts/tegra30-asus-nexus7-grouper-ti-pmic.dtsi b/arch/arm/boot/dts/tegra30-asus-nexus7-grouper-ti-pmic.dtsi index b97da45ebdb4..06b5e8a5ce5d 100644 --- a/arch/arm/boot/dts/tegra30-asus-nexus7-grouper-ti-pmic.dtsi +++ b/arch/arm/boot/dts/tegra30-asus-nexus7-grouper-ti-pmic.dtsi @@ -147,4 +147,13 @@ vdd_3v3_sys: regulator@1 { gpio = <&pmic 7 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + pmc@7000e400 { + i2c-thermtrip { + nvidia,i2c-controller-id = <4>; + nvidia,bus-addr = <0x2d>; + nvidia,reg-addr = <0x3f>; + nvidia,reg-data = <0x80>; + }; + }; }; -- 2.30.2