From patchwork Mon Aug 12 21:51:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 13761066 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 03361C3DA7F for ; Mon, 12 Aug 2024 21:52:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=emftv3NAPMFtQJGOiajAqRPblL8P/mZGsVYvU9uyAIc=; b=TgTNqoO4knh7nqkM19/aP7hMBp C6frpVdZtN/JS9XO4IJgZLowOBwFUI8cK87eF0z3suRzZVYejw9k66qTn+Suf9n0XKWMZzzVoKFh4 G1xUOtzgsHHp6CBAjNKGosnrdT+8cZmxrEryn944hXZq3MstFywBfGgo9pl5/ADDuYCskUguMRk0k Tp5R1Gk/0DQ85a+lVCS3ypBxG0ikVaB6r6z681gw/UApjCgsSZj9r+WzOTZ+BEkw48OpHJ5EQ/5hF Nvjn0hJqkkoA+6u4KAdKNwOrVG+Ds+RXIXn+BcHM92M5VeCmjlkIA2aAGp2p2T6B+n7CR0tOmif6N /rDu/2Bw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdcxb-00000001eWX-23D6; Mon, 12 Aug 2024 21:52:15 +0000 Received: from out-175.mta0.migadu.com ([2001:41d0:1004:224b::af]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdcwz-00000001eOz-07jd for linux-arm-kernel@lists.infradead.org; Mon, 12 Aug 2024 21:51:38 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1723499494; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=emftv3NAPMFtQJGOiajAqRPblL8P/mZGsVYvU9uyAIc=; b=PMmIkIhWWDdi4zDKw42HWl029qyE0wIogAoj/bzplbR9loRk+VG4HuEfci/WSm5hjrWnlC ru008TPonpEEmPg7WDxNy64Q/kMnqPki9KvoatKb1bNhYTvYJVb/RD3iFUTJBHvdVD5mN+ Ibpf/z44xno1GQl4dyEJFlhiTDsoxtM= From: Sean Anderson To: Michal Simek , linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Conor Dooley , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Sean Anderson Subject: [PATCH 0/3] arm64: zynqmp: Add thermal zones Date: Mon, 12 Aug 2024 17:51:25 -0400 Message-Id: <20240812215129.3599832-1-sean.anderson@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240812_145137_436885_6B2D3AA9 X-CRM114-Status: UNSURE ( 7.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org At the moment, the ZynqMP Analog Monitoring System (AMS) is only used sporadically. As it is built into the SoC and doesn't depend on external hardware, it can be exposed to userspace for all boards. Additionally, we can use it to implement thermal zones. Sean Anderson (3): arm64: zynqmp: Enable AMS for all boards arm64: zynqmp: Expose AMS to userspace as HWMON arm64: zynqmp: Add thermal zones .../boot/dts/xilinx/zynqmp-sm-k26-revA.dts | 18 ---- .../boot/dts/xilinx/zynqmp-zcu100-revC.dts | 4 - .../boot/dts/xilinx/zynqmp-zcu102-revA.dts | 4 - .../boot/dts/xilinx/zynqmp-zcu104-revA.dts | 4 - .../boot/dts/xilinx/zynqmp-zcu104-revC.dts | 4 - arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 101 +++++++++++++++++- 6 files changed, 100 insertions(+), 35 deletions(-)