Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3571795pxb; Mon, 4 Oct 2021 05:19:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuruH69TcAxTTp8DMKamF0MFfwE6iBcLKmLBnKGutfNbXmeKzWe0eNenPCrLVyImP3yoYY X-Received: by 2002:a63:e756:: with SMTP id j22mr10445593pgk.362.1633349987483; Mon, 04 Oct 2021 05:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633349987; cv=none; d=google.com; s=arc-20160816; b=SCv9LhJZhdgdqQmGaPlhGVyrwxduRp7qJTEcY3Bo3DVZEe7MOZ1OFZE2DKPoX82tvP JWsTV5HTn+5ijLzwxgf2ricFsvoY/93NPDsy0eC0D42Dt78JndWxcV5V5fSHOhMOvtju 1IjCFZY5uRruqcOYuBiptNvZXl7VwiXsXV9z/qcZrGPZpbsui2u/KhWgP8zKVbRFwnIU zgSMkamyh/BZSQuI0a3OkABtxY+jqT+bh+SU6QeskRhmPdxin7wkNYI89ZOQ3Zc8x3iN 2mGyMKALuKWr5oRklI6rMLH7Jrd2DDxCdnpXvx6PyKm38hPgdzZ4r8RgP1hWh5xBhlPA FRwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=Wd9Ef6hbv//1DAExpQPDwa8YX4HBhGeCroYIsXnSeq8=; b=zwaCw4cdxpqlnAeZ9FFd9yjVGuQ+BQ5a+bI6Gfcnj83EV2Q3AJF1XW307kEUFv42+L QboliWfN39UC60JBz4U9S/d3Icx7HXIKRi1jL/6w1mKk1X3CAsISD+fdWneLvuKoXbs+ Htk2IzFg4XWpTjbcqtjCsSFCv7dKLVUDxx8871DUToNYpSXp/z+1vJsk1/BDYoqUFvQ+ Rcp/Q0wMYsNn3GeNGPitsufLkL8W5ltkOv06/7Yt+W99FOosYv/+4RDM5vfoSKhrSh7z +q8tx9AE3q7Tf9Vk7uNU+oXd6YOwOVnKp7WzOzUkQhJvcaYbNnp2q8WEUVyq2sDi2bL8 G+xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cgdfQ3vg; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si20208429plk.427.2021.10.04.05.19.31; Mon, 04 Oct 2021 05:19:47 -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=@ti.com header.s=ti-com-17Q1 header.b=cgdfQ3vg; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232929AbhJDL2B (ORCPT + 99 others); Mon, 4 Oct 2021 07:28:01 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:47906 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbhJDL16 (ORCPT ); Mon, 4 Oct 2021 07:27:58 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 194BQ7vX088314; Mon, 4 Oct 2021 06:26:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1633346767; bh=Wd9Ef6hbv//1DAExpQPDwa8YX4HBhGeCroYIsXnSeq8=; h=From:To:CC:Subject:Date; b=cgdfQ3vgnR+kPhNdWcag/graVtQWKuiC3t4GcIlUibYkjaySi9Ac8eEXHqesGaEhe 9baMmS7I6LDDG+XDfrRvTsumbIAjNkGyzQ3n8Ou0IXXL94JAkbkN5czjCrPmnG8EK9 3ilp9QrgJqaUiNvjxwZKFo8eol5W8X46h4/WrC/s= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 194BQ6sp034295 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 4 Oct 2021 06:26:06 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 4 Oct 2021 06:26:06 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Mon, 4 Oct 2021 06:26:06 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 194BQ381065426; Mon, 4 Oct 2021 06:26:03 -0500 From: Keerthy To: , , , , CC: , , , Subject: [PATCH 0/4] thermal: k3_j72xx_bandgap: Add the bandgap driver support Date: Mon, 4 Oct 2021 16:55:46 +0530 Message-ID: <20211004112550.27546-1-j-keerthy@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add VTM thermal support. In the Voltage Thermal Management Module(VTM), K3 J72XX supplies a voltage reference and a temperature sensor feature that are gathered in the band gap voltage and temperature sensor (VBGAPTS) module. The band gap provides current and voltage reference for its internal circuits and other analog IP blocks. The analog-to-digital converter (ADC) produces an output value that is proportional to the silicon temperature. Currently reading temperatures only is supported. There are no active/passive cooling agent supported. J721e SoCs have errata i2128: https://www.ti.com/lit/pdf/sprz455 The series also incorporates workaround for Errata i2128. Keerthy (4): dt-bindings: thermal: k3-j72xx: Add VTM bindings documentation arm64: dts: ti: j721e: Add VTM node arm64: dts: ti: j7200: Add VTM node thermal: k3_j72xx_bandgap: Add the bandgap driver support .../bindings/thermal/ti,j72xx-thermal.yaml | 58 ++ .../boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 9 + arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi | 45 + arch/arm64/boot/dts/ti/k3-j7200.dtsi | 4 + .../boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 9 + arch/arm64/boot/dts/ti/k3-j721e-thermal.dtsi | 73 ++ arch/arm64/boot/dts/ti/k3-j721e.dtsi | 4 + drivers/thermal/Makefile | 2 +- drivers/thermal/k3_j72xx_bandgap.c | 773 ++++++++++++++++++ 9 files changed, 976 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml create mode 100644 arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi create mode 100644 arch/arm64/boot/dts/ti/k3-j721e-thermal.dtsi create mode 100644 drivers/thermal/k3_j72xx_bandgap.c -- 2.17.1