From nobody Fri Nov 29 08:41:58 2024 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 E35C629CF0; Mon, 23 Sep 2024 06:50:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727074255; cv=none; b=e/Eb5huLMAAyimVDjnRmAL+k9Z7UQ5aonlI+gJ7ebS/KRm4YqtKvooL+LnrGBkOcghC+Ok4tAvnXU/bNo4j8/bnlcNcgOG3jDiG/spXogtJRLNy2aY7ZfU1TB8Jlq+0K9D8VARjvKCqvSogxy23K3hcWQR21wwtkGtrKAbV8JIQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727074255; c=relaxed/simple; bh=ZGx/Y4k1IFA7rZ9omAhAdqPCWvwPb8L8z1U/z1R/QuE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=AGoxYdkJq79X4IeLos72tbXPcjp+zzKlbbK536tbXPEENX/oLv2kvxjvJrkvbhwYRoNv0nHSQb6/YJL4fCnkiiT2x4Eac5jqU7fiR29dNkjSi9yaydu1j1hb9I1ZzLmKQfGdv2L9jIddrS5kI7zvNr5xwQwssZLeWBsqdpLr9p4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=0snZ/Ojs; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="0snZ/Ojs" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1727074254; x=1758610254; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZGx/Y4k1IFA7rZ9omAhAdqPCWvwPb8L8z1U/z1R/QuE=; b=0snZ/OjsbCt701do5+Lwe5aU30mxMh/zLcT3EYfMD9F5pu6T38SzVnlN QkMoNNrhvQj8r9vx6Ium6qvs/pwvXs0/C3YUySkasWWJAnvL+eaZ7yjeu fdJT//FZYXk0o3D6dIw8yOO1F/VcsUaNxvLyGDjAR1UG037k6KmRZJ4lC FoNYAF7ILyRVSe98pv3BHyo4Bg3Tog99fmNZo/pHKF58H9RB90VBNc0s2 eEwBY2mSn4gtUSagb84MfLt83QC47qcL7VutaBZBSwGtB2F7aFScgA30l bY04YF+1kNhEX3PG0rko/jQsQi8KCCbIGung2crnA1FV7rUNM2MZdUckD A==; X-CSE-ConnectionGUID: nbowMA2OSLiJEr3vdSwxZA== X-CSE-MsgGUID: z58YvuKbRk2Q8qwMkyjySw== X-IronPort-AV: E=Sophos;i="6.10,250,1719903600"; d="scan'208";a="263115656" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 22 Sep 2024 23:50:51 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 22 Sep 2024 23:50:09 -0700 Received: from archlinux.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Sun, 22 Sep 2024 23:50:06 -0700 From: Mihai Sain To: , , , , , , , , , CC: Mihai Sain Subject: [PATCH 1/5] ARM: dts: microchip: sam9x60ek: Add power monitor support Date: Mon, 23 Sep 2024 09:49:28 +0300 Message-ID: <20240923064932.5797-2-mihai.sain@microchip.com> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20240923064932.5797-1-mihai.sain@microchip.com> References: <20240923064932.5797-1-mihai.sain@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add PAC1934 support in order to monitor the board power consumption. Signed-off-by: Mihai Sain --- .../arm/boot/dts/microchip/at91-sam9x60ek.dts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts b/arch/arm/boot= /dts/microchip/at91-sam9x60ek.dts index 3b38707d736e..6cf699d9b540 100644 --- a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts +++ b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts @@ -260,6 +260,37 @@ i2c6: i2c@600 { i2c-digital-filter-width-ns =3D <35>; status =3D "okay"; =20 + power-monitor@17 { + compatible =3D "microchip,pac1934"; + reg =3D <0x17>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + channel@1 { + reg =3D <0x1>; + shunt-resistor-micro-ohms =3D <10000>; + label =3D "VDDIOM"; + }; + + channel@2 { + reg =3D <0x2>; + shunt-resistor-micro-ohms =3D <10000>; + label =3D "VDDCORE"; + }; + + channel@3 { + reg =3D <0x3>; + shunt-resistor-micro-ohms =3D <10000>; + label =3D "VDD3V3_MPU"; + }; + + channel@4 { + reg =3D <0x4>; + shunt-resistor-micro-ohms =3D <10000>; + label =3D "VDD3V3"; + }; + }; + gpio_exp: mcp23008@20 { compatible =3D "microchip,mcp23008"; reg =3D <0x20>; --=20 2.46.1 From nobody Fri Nov 29 08:41:58 2024 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 B07D9286A3; Mon, 23 Sep 2024 06:50:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727074254; cv=none; b=MOuY3hL97s0Wd68opVM9nU5w3vixl9o2gB7ASaBcrdsrvY3J6klJQo4AMLk51f96ZEnD9KMxzWr7dLxO/r0HL76df8AJWFe1NVwX3nCyqt1+YujFCWlVDmjFlR89L7Bgcry7q4L3w0ebD16aGiFPmzfi7KKfY7zqZjJ9NlcXmWc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727074254; c=relaxed/simple; bh=wb2GBC7wQUH3F1JQWlhvXnNwMTYmGLZmlzIgJkKpLjg=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VM8Hps1FWtqvm8AtonKcoK1a7IUVjheSee3XTuQ5nzMbtnFs+TWrGEYYSMagZT6bQHmCqat8CQPlwEDeXCZp1BYMyNbwtuI3L/amWDDZ4nQCGNdTJeG/YVqbNlHoVRg2yXpk1lMNTYCE17iVuG8F+fGhDLwjZxJtZXW0ywaQVIA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=Xogev/wr; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="Xogev/wr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1727074253; x=1758610253; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wb2GBC7wQUH3F1JQWlhvXnNwMTYmGLZmlzIgJkKpLjg=; b=Xogev/wrgOpcmgrCM3BgcyIHrzTy+BsL/XLC/YnXUYLWliiNct1EWHgI PgGFvwNJux/94K1ANhkeFOlW2y2qpW02NCIo9JCIBevYYVDZA+Yksh/bi +DH8rK6XY5UZiqVXklIm1tIeIKTMyoST2TZKjowIXKqrhEIq39wjtttJ6 ABuWFTwNjb+JRaU2pZF/SkbyMN4VYiPsbb6KmuMK8ximCSKH+NuDQrV3D X23od2QKrO7sNNyKgz0PoFO2jmI1JNMpNGitj02Kqd0V5hTY3xTLadlb/ i21yi4d13Sd7abaSP6rs2FUUK6W++aj/8iJ1ylVBuXQdvMySD/tp9QeQJ g==; X-CSE-ConnectionGUID: nbowMA2OSLiJEr3vdSwxZA== X-CSE-MsgGUID: Semz+/50SQeuWkVqHzFr8w== X-IronPort-AV: E=Sophos;i="6.10,250,1719903600"; d="scan'208";a="263115658" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 22 Sep 2024 23:50:51 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 22 Sep 2024 23:50:12 -0700 Received: from archlinux.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Sun, 22 Sep 2024 23:50:09 -0700 From: Mihai Sain To: , , , , , , , , , CC: Mihai Sain Subject: [PATCH 2/5] ARM: dts: microchip: sama5d2_icp: Add power monitor support Date: Mon, 23 Sep 2024 09:49:29 +0300 Message-ID: <20240923064932.5797-3-mihai.sain@microchip.com> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20240923064932.5797-1-mihai.sain@microchip.com> References: <20240923064932.5797-1-mihai.sain@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add PAC1934 support in order to monitor the board power consumption. Signed-off-by: Mihai Sain --- .../boot/dts/microchip/at91-sama5d2_icp.dts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts b/arch/arm/bo= ot/dts/microchip/at91-sama5d2_icp.dts index 5e2bb517a480..8f617cb29d36 100644 --- a/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts +++ b/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts @@ -195,6 +195,37 @@ i2c6: i2c@600 { i2c-digital-filter-width-ns =3D <35>; status =3D "okay"; =20 + power-monitor@10 { + compatible =3D "microchip,pac1934"; + reg =3D <0x10>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + channel@1 { + reg =3D <0x1>; + shunt-resistor-micro-ohms =3D <10000>; + label =3D "VDD3V3_1"; + }; + + channel@2 { + reg =3D <0x2>; + shunt-resistor-micro-ohms =3D <10000>; + label =3D "VDD3V3_2"; + }; + + channel@3 { + reg =3D <0x3>; + shunt-resistor-micro-ohms =3D <10000>; + label =3D "VDDCORE"; + }; + + channel@4 { + reg =3D <0x4>; + shunt-resistor-micro-ohms =3D <10000>; + label =3D "VDDIODDR"; + }; + }; + mcp16502@5b { compatible =3D "microchip,mcp16502"; reg =3D <0x5b>; --=20 2.46.1 From nobody Fri Nov 29 08:41:58 2024 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 557B579E1; Mon, 23 Sep 2024 06:50:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727074231; cv=none; b=jfQQ0F9ylVH+PnGrTjf+NMPR9QiI+g8G2cSNlI83NVWvaZfZPEFvONe34ujtfcunq7T11ZYiCIN2szI4peZ0+q/F1VpfFoIDrchapR1wQs3u+BgS7iiPFvCGBvOtL7LGQukCgx8pXTMTJnXH+LrrHZcvgfbPzI3hv++snKNNDyw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727074231; c=relaxed/simple; bh=4pFe+LKNT/3bDaKjRJ6PORZtjwOBmMGi0IqA1mX80fw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PN+7STx8A6034XuObfNYuRB8On0o+2ZxjXD/C9hMdMSTn9xVJBGjzSCYBBPkd5yF0A/7gQJDCGpVEiX1cvkATqy967LF37tZkdaTlssPmALUN+4tj1eyIsa0jZjrI0FAOV7sPH6XXZoKnAvvix95RS+RXL3gOgfoU90ll7snseQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=MAa8Ei2o; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="MAa8Ei2o" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1727074229; x=1758610229; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4pFe+LKNT/3bDaKjRJ6PORZtjwOBmMGi0IqA1mX80fw=; b=MAa8Ei2oaKcRuOiWsZAJIHUsZ9dMT3TZyOdNB/W5YKFHgTUwYt2FA7i9 MWlpL5eBtzRYVKqWX+tzsrt2x4qKSjlinF8iLgpQiKLoqODzr52yFZ9kY wUkd+dpy7oOm+mf3bDa1W4RTSQCzoColmGPsP43NlF86E0fZYaF2XvOn1 s1PmKL2Au1jS47DNvJ4yjDthJmaGIy4Tn/nUzVVTbnaGOZs2S0mkjosAY 0JaUpLluAgZS6v/VlkVQUTIY6y6RzaXp4FpjlD6EkGEiFxYWhHWE7CE69 hrgzXJil3s2fvH09UdLCPQKQm9JHUKpwK0//I9C4I7QQKIOKScv3rJ4nO w==; X-CSE-ConnectionGUID: U10XO7xER1qeFauEdbUvEA== X-CSE-MsgGUID: Mizc+XO8TNqEiqLtdb9EVA== X-IronPort-AV: E=Sophos;i="6.10,250,1719903600"; d="scan'208";a="32721982" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 22 Sep 2024 23:50:28 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 22 Sep 2024 23:50:14 -0700 Received: from archlinux.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Sun, 22 Sep 2024 23:50:12 -0700 From: Mihai Sain To: , , , , , , , , , CC: Mihai Sain Subject: [PATCH 3/5] ARM: dts: microchip: sama7g54_curiosity: Add power monitor support Date: Mon, 23 Sep 2024 09:49:30 +0300 Message-ID: <20240923064932.5797-4-mihai.sain@microchip.com> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20240923064932.5797-1-mihai.sain@microchip.com> References: <20240923064932.5797-1-mihai.sain@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add PAC1934 support in order to monitor the board power consumption. Signed-off-by: Mihai Sain --- .../dts/microchip/at91-sama7g54_curiosity.dts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts b/arch= /arm/boot/dts/microchip/at91-sama7g54_curiosity.dts index 645e49fdb7fe..2dec2218f32c 100644 --- a/arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts +++ b/arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts @@ -186,6 +186,37 @@ i2c10: i2c@600 { i2c-digital-filter-width-ns =3D <35>; status =3D "okay"; =20 + power-monitor@1f { + compatible =3D "microchip,pac1934"; + reg =3D <0x1f>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + channel@1 { + reg =3D <0x1>; + shunt-resistor-micro-ohms =3D <47000>; + label =3D "VDD3V3"; + }; + + channel@2 { + reg =3D <0x2>; + shunt-resistor-micro-ohms =3D <47000>; + label =3D "VDDIODDR"; + }; + + channel@3 { + reg =3D <0x3>; + shunt-resistor-micro-ohms =3D <47000>; + label =3D "VDDCORE"; + }; + + channel@4 { + reg =3D <0x4>; + shunt-resistor-micro-ohms =3D <47000>; + label =3D "VDDCPU"; + }; + }; + eeprom@51 { compatible =3D "atmel,24c02"; reg =3D <0x51>; --=20 2.46.1 From nobody Fri Nov 29 08:41:58 2024 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 98DA83D556; Mon, 23 Sep 2024 06:50:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727074256; cv=none; b=puTB3k1QMRwb3ejRgsoiBgoPAzY/66uv452OxYOU5BXxBy7vGv1RPP/7w2Lg9LRUur22lNMtP9G9D3Y4ymiMgw+Uo7We0tw1CRL+PGcClsV+iUNMiGVFZvJvCUsvUbCawP5/ua0wsPofkKBoIt3fJ+jM3F8ce+dqmQQdb7pSDmo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727074256; c=relaxed/simple; bh=I5L8Derw58tSEC47Am0Yn8oNzi6p4Swk4/yxKYbMZEc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nfts5ETV5RxQI1sA6JmldOj2yediahtphJWugY/ELI1z5kH/Snrr56lnpL9phYcWjZRN8Wfwhk4vi6k6M+Q3vkZY+Jg0JrAuDNgWRXBi3/X+4QecNCrvM0Sjwoc+IlcMyFDQIQGwVFGjcSPK0tNMZuRXboneFv0gZM6laKA8SO4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=vdFFyz/2; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="vdFFyz/2" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1727074255; x=1758610255; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=I5L8Derw58tSEC47Am0Yn8oNzi6p4Swk4/yxKYbMZEc=; b=vdFFyz/2A7rpcskcz4eSAz6c06VavRwh181Tvh816ZJWiQnluq+TZXAf e74n8KcA+RTB5UzkguLDDG6Pt3pdGCi97V3ifdIuC5/lX2sWHuHtp9p8d Va6OijHOj/Vjs3ZTCU7tC255X2ryEfpnoxhc0eu7Nwsv7QksZU3S92oZI pg1gwOabrZYkOXZWNXmM/iaN0eCBLAE+vfUVKIwnb6QAAkcnnDSJCgRTB QXcTtTlQEvKpOAV0/PYqksVWB60C1+gD7DwFGTc+WNnj/J8dcY6pTglWJ zCu4KQjWcgxoP0kfFHjxmtXwG2J/iKYSm2Ba3m2UVD+J2KSD9CRn/G7EJ Q==; X-CSE-ConnectionGUID: nbowMA2OSLiJEr3vdSwxZA== X-CSE-MsgGUID: ofM9s08gTE2AfR4IXfdH4A== X-IronPort-AV: E=Sophos;i="6.10,250,1719903600"; d="scan'208";a="263115668" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 22 Sep 2024 23:50:53 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 22 Sep 2024 23:50:17 -0700 Received: from archlinux.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Sun, 22 Sep 2024 23:50:15 -0700 From: Mihai Sain To: , , , , , , , , , CC: Mihai Sain Subject: [PATCH 4/5] ARM: dts: microchip: sama7g5ek: Add power monitor support Date: Mon, 23 Sep 2024 09:49:31 +0300 Message-ID: <20240923064932.5797-5-mihai.sain@microchip.com> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20240923064932.5797-1-mihai.sain@microchip.com> References: <20240923064932.5797-1-mihai.sain@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add PAC1934 support in order to monitor the board power consumption. Signed-off-by: Mihai Sain --- .../arm/boot/dts/microchip/at91-sama7g5ek.dts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts b/arch/arm/boot= /dts/microchip/at91-sama7g5ek.dts index ed75d491a246..5fd77abd4201 100644 --- a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts +++ b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts @@ -244,6 +244,37 @@ i2c1: i2c@600 { i2c-digital-filter-width-ns =3D <35>; status =3D "okay"; =20 + power-monitor@10 { + compatible =3D "microchip,pac1934"; + reg =3D <0x10>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + channel@1 { + reg =3D <0x1>; + shunt-resistor-micro-ohms =3D <10000>; + label =3D "VDD3V3"; + }; + + channel@2 { + reg =3D <0x2>; + shunt-resistor-micro-ohms =3D <10000>; + label =3D "VDDIODDR"; + }; + + channel@3 { + reg =3D <0x3>; + shunt-resistor-micro-ohms =3D <10000>; + label =3D "VDDCORE"; + }; + + channel@4 { + reg =3D <0x4>; + shunt-resistor-micro-ohms =3D <10000>; + label =3D "VDDCPU"; + }; + }; + mcp16502@5b { compatible =3D "microchip,mcp16502"; reg =3D <0x5b>; --=20 2.46.1 From nobody Fri Nov 29 08:41:58 2024 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 3395145025; Mon, 23 Sep 2024 06:50:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727074256; cv=none; b=DZl65GZRj6Img21WgbP9ekodR6XzKaeFYnlIsdIj/Tfy5GTRR6nLHiGxokP3wvSexF4tP6o34S9FSUryJnOPZIa42HrXMmSagAY+uZAOfK4IDuk1S+aGdEMRov9l/A/KtGkQs9eyNsGFVi8vcUD0qI09LOixn2tijy6besJ1lro= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727074256; c=relaxed/simple; bh=lckwW4uQvCxylSjsWiEw2aSLtvHoRVEH7N8d1FoLgb0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OsHAyhEBr3k2gjoM4qL6zoSfRC/gh5MYyOpiGRV8pjQ5fhoGsT+NF7cAimSi5yCTt/PGmPN+4c3qz6dwgFmc9tRRawZ0W52pgoBIhQupH3NNnpWVqkK3RWBSuNnpTQ5HBlf5SGgTaUjgN0f693b3KP2gM6g7cPl9AXmtdKlwbI0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=rQcbGYDn; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="rQcbGYDn" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1727074256; x=1758610256; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lckwW4uQvCxylSjsWiEw2aSLtvHoRVEH7N8d1FoLgb0=; b=rQcbGYDnzeuKCuz+m8mUc1yPw3E2IBx0+PvHMRpIR32TsCV4d2pszolm 0HgRteLKUAEHq0WJJ+OkTV1oMVzW0rAdLdQkH2fc4tunCBpkc9Muapawy yxWr/Mzh2+HJTFhy40xF9mdikg+dGRfKRt6/wOkimmJ+ZZhVqgPlb+Kcr r8xSOkeUGL860kt5O/6CKtOw5TH/2x8t1ntXnUe2gOuBSauoJu0i6BPX+ zMPVo0YPYNVXrrvPi+dD/p0nephoxiRCa2povCYmx5v9NwzjOSD3MZRVD TqmZadgdMb7da+tbqpVXCtMazvXZ1TIFLSpfXVkwZCly0ISdjis/BZNIH w==; X-CSE-ConnectionGUID: nbowMA2OSLiJEr3vdSwxZA== X-CSE-MsgGUID: CsBhKaC0RT2ob83R12qREw== X-IronPort-AV: E=Sophos;i="6.10,250,1719903600"; d="scan'208";a="263115670" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 22 Sep 2024 23:50:53 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 22 Sep 2024 23:50:20 -0700 Received: from archlinux.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Sun, 22 Sep 2024 23:50:17 -0700 From: Mihai Sain To: , , , , , , , , , CC: Mihai Sain Subject: [PATCH 5/5] ARM: configs: at91: enable PAC1934 driver as module Date: Mon, 23 Sep 2024 09:49:32 +0300 Message-ID: <20240923064932.5797-6-mihai.sain@microchip.com> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20240923064932.5797-1-mihai.sain@microchip.com> References: <20240923064932.5797-1-mihai.sain@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Enable PAC1934 driver and build as module. Signed-off-by: Mihai Sain --- arch/arm/configs/at91_dt_defconfig | 1 + arch/arm/configs/sama5_defconfig | 1 + arch/arm/configs/sama7_defconfig | 1 + 3 files changed, 3 insertions(+) diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_= defconfig index 2022a7fca0f9..f2596a1b2f7d 100644 --- a/arch/arm/configs/at91_dt_defconfig +++ b/arch/arm/configs/at91_dt_defconfig @@ -201,6 +201,7 @@ CONFIG_AT_XDMAC=3Dy CONFIG_IIO=3Dy CONFIG_AT91_ADC=3Dy CONFIG_AT91_SAMA5D2_ADC=3Dy +CONFIG_PAC1934=3Dm CONFIG_PWM=3Dy CONFIG_PWM_ATMEL=3Dy CONFIG_PWM_ATMEL_HLCDC_PWM=3Dy diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defc= onfig index 9096a99b5abd..e447329398d5 100644 --- a/arch/arm/configs/sama5_defconfig +++ b/arch/arm/configs/sama5_defconfig @@ -212,6 +212,7 @@ CONFIG_VIDEO_HANTRO=3Dm CONFIG_IIO=3Dy CONFIG_AT91_ADC=3Dy CONFIG_AT91_SAMA5D2_ADC=3Dy +CONFIG_PAC1934=3Dm CONFIG_ENVELOPE_DETECTOR=3Dm CONFIG_DPOT_DAC=3Dm CONFIG_MCP4531=3Dm diff --git a/arch/arm/configs/sama7_defconfig b/arch/arm/configs/sama7_defc= onfig index 7fa5d251ced2..1a2e93c8ee71 100644 --- a/arch/arm/configs/sama7_defconfig +++ b/arch/arm/configs/sama7_defconfig @@ -193,6 +193,7 @@ CONFIG_STAGING=3Dy CONFIG_IIO=3Dy CONFIG_IIO_SW_TRIGGER=3Dy CONFIG_AT91_SAMA5D2_ADC=3Dy +CONFIG_PAC1934=3Dm CONFIG_PWM=3Dy CONFIG_PWM_ATMEL=3Dy CONFIG_MCHP_EIC=3Dy --=20 2.46.1