Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp553123lqm; Wed, 1 May 2024 08:37:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXapQg8kEfXrm3gWLQNuic0+L8oyBqbQUy2opRbHd8d1a4hHRQcdUIYdZEBIZEjPWFWJgTCiaUGg/8tCH1h2zPMp1NSQfv/s7M6BkiN1A== X-Google-Smtp-Source: AGHT+IHDPdeGRDLzKXgIWijpr5H+AlbNaEiAGmzLOxz0HtzVKF1FXjELwr6WUt9oHN2Prg9MN0jk X-Received: by 2002:a05:6a20:f39a:b0:1aa:927d:75f1 with SMTP id qr26-20020a056a20f39a00b001aa927d75f1mr2679716pzb.10.1714577831434; Wed, 01 May 2024 08:37:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714577831; cv=pass; d=google.com; s=arc-20160816; b=kQVGYm8M4Rx0lku6bgYSTEVTiyVAlUv6+kUC4UbZWiyqzfzMjisqcdSuNq6vKNBn8+ yQO/nimvGBxqPm+5WyNPka5gFj5vGTC9vo0ocRgIKdX8pHKdAUpcF7L/ZH+ueiPjn/Lo GwyXq9gcg7gOyfvbcYckEFRuUeU8ffKdyuC7NU+FN/vMe4rKfvRjh6kFDpURJX9L9VH7 3qs8dfSlT8rlshB+fH0sF4r3iRelsCS61vmU+ecGY35KjkqBwbprFsqBHRiNba/kBwvC CtsO7Ljp8nAWx7Je0atrSVa37YXZOKjksItDx7k0q4jr7CR9O40Ab5bU/54SsM5tTcRu 97rg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=+xXPTyMqwNil0F+SNlwp0WRm3BqjCvUXobb0++gCjm0=; fh=Sky8LutnCstkW8VY3VqdgjDXWCzame4VrGG2FzYDIPU=; b=L2bk3JbRB0QYii07FsAlE+Z85pCkNrMEssWePQwKPl2/ziXi7mPWms7dkX3fZ+97ws gzIVxqCNcFH/87Ck8RNSiKqIkvp8G6uIU9eU8vty0NXMdJ1MS9J7mqhCSYpzNdVSzFHJ XID2HztnFSHLYnh+6mLNyb4Y4pnkBvIwlISRb6GNP+rGBWYyqUNB8abqptm2lN9vcHdt nVirKxJxQto6X5VIVelLGdmjH7b22XSm53Ph9Kt0zjHjVP3iHxfpWNHMyEjrvu2w58C5 GdzVVeX2J5FqkNBB387GkMTu+DVloSNIrJcjKo5L2bxyPzZK52ZZxgSJCxxJA2mQxZlL uZ4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="UsYOGQX/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165497-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165497-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ld15-20020a056a004f8f00b006e580678e00si25131252pfb.50.2024.05.01.08.37.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 08:37:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165497-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="UsYOGQX/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165497-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165497-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 162D728B0D9 for ; Wed, 1 May 2024 15:37:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6929D12FB1A; Wed, 1 May 2024 15:36:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UsYOGQX/" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85F0212F59D; Wed, 1 May 2024 15:36:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714577808; cv=none; b=SJA2Izqbfga6KAIxZlBAIhvLvxqAZK9Avvl5Wl68eUilu7Xt31QtRmAoXog2rCVTYra23NXbJNJQ4KJpCady4AYbTfNU/uEz8amVwhLIONy01z9wezCNLYQxgtJz4A6Vqpxu197gyU4D+w7B3d7ErtAntKpev75JmJ7nO1wnf7M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714577808; c=relaxed/simple; bh=H43Z4wgbneQvtO9lOey4SVLIXIEEJWVeRwaZ4YWCu7A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=klq3fpObB5q605Bj80K14LA8pIDjzutgy9zheKs/AU54cfqYzvdo9HYFNLv54W9C2PMDhGOJPNbOdsuwq4GRPjjIea5ilDoU5JjjVwgURDgR59OSW4Rs79bUiWZJ/1BPCS+jlLfGDVsU6m7YcI3JwYffW0N9wRwmRojxbx+yOR4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UsYOGQX/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F879C072AA; Wed, 1 May 2024 15:36:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714577808; bh=H43Z4wgbneQvtO9lOey4SVLIXIEEJWVeRwaZ4YWCu7A=; h=From:To:Cc:Subject:Date:From; b=UsYOGQX/t6MdBD4L55qbAiRXgRV0yCJL0PcNAH1ykns2kVT6+aiGrDVNTioib50qO fVuMzecaVmfudYZ8y/t696yAT9dEdBpGPbjSaGMGWU/wel/omYY6a/lGruZci9DqmS /bUmpsqdbdWbAHpdI4cM+rFHTaVtiLAbUvbR7sOfUtbsZUh0/aSQdMZhmDDYRWzqqQ VPkgWo2xyKeyfHiC3FjG0rL3SEwDLNS+4pteQEcEKYJiUADzefGYAiKJC3bvH63z1r 3bOHEjsY6Ee5t49S7R26BatI1lgqu0ROEiT4tdEVg/+25F8k1RSFwuO+J8fJyAf3hT QPSp6tOzank6Q== From: Conor Dooley To: linux-riscv@lists.infradead.org Cc: conor@kernel.org, Conor Dooley , Daire McNamara , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] riscv: dts: microchip: add pac1934 power-monitor to icicle Date: Wed, 1 May 2024 16:36:31 +0100 Message-ID: <20240501-spearman-primary-17df3c21c770@spud> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1690; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=FR3O438NmrY2UU2Fa9xj9X2SWoXZf7FrPgh3S7n8dV4=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDGlGifUKzt45m0oaa5d41NdWVy8Mez3HUb3t6cwZywV9E hcqODB0lLIwiHEwyIopsiTe7muRWv/HZYdzz1uYOaxMIEMYuDgFYCIh0xn+mQrefiVZOiMkf9aE zSHevarTsgryiss2FzedmfU4pTpvBiPDt1/c3M9cc68WaAQYzvsoX/i+JfxTrGP6g97jhySOXlL lAwA= X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C Content-Transfer-Encoding: 8bit From: Conor Dooley The binding for this landed in v6.9, add the description. In the off-chance that there were people carrying local patches for this based on the driver shipped on the Microchip website (or vendor kernel) both the binding and sysfs filenames changed during upstreaming. Signed-off-by: Conor Dooley --- CC: Conor Dooley CC: Daire McNamara CC: Rob Herring CC: Krzysztof Kozlowski CC: linux-riscv@lists.infradead.org CC: devicetree@vger.kernel.org CC: linux-kernel@vger.kernel.org --- .../boot/dts/microchip/mpfs-icicle-kit.dts | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts b/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts index 222a39d90f85..f80df225f72b 100644 --- a/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts +++ b/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts @@ -100,6 +100,38 @@ &i2c0 { &i2c1 { status = "okay"; + + power-monitor@10 { + compatible = "microchip,pac1934"; + reg = <0x10>; + + #address-cells = <1>; + #size-cells = <0>; + + channel@1 { + reg = <0x1>; + shunt-resistor-micro-ohms = <10000>; + label = "VDDREG"; + }; + + channel@2 { + reg = <0x2>; + shunt-resistor-micro-ohms = <10000>; + label = "VDDA25"; + }; + + channel@3 { + reg = <0x3>; + shunt-resistor-micro-ohms = <10000>; + label = "VDD25"; + }; + + channel@4 { + reg = <0x4>; + shunt-resistor-micro-ohms = <10000>; + label = "VDDA_REG"; + }; + }; }; &i2c2 { -- 2.43.0