From patchwork Mon Apr 10 15:33:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dinh.nguyen@linux.intel.com X-Patchwork-Id: 672138 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94FD3C77B75 for ; Mon, 10 Apr 2023 15:43:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230074AbjDJPnA (ORCPT ); Mon, 10 Apr 2023 11:43:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230052AbjDJPm6 (ORCPT ); Mon, 10 Apr 2023 11:42:58 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 068E01BCA; Mon, 10 Apr 2023 08:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681141378; x=1712677378; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FGV+fdCgw3aBzLM/prNQt4Br3a3O7eyOg7GihjhTucw=; b=kYcZcWcuftunIHrUyNB1vMc5is3ZmqzvFgdQ3hcqyhEKLgblHQYVox8G KIQDOYWab8j1kTGtbVyLwc+3Fncl2R9HOeFj2+0DH46q+cchMVMwgAPYz wPEeQMBVxFFgNhVOakpZVIGayi+k7N0T4wJ9fncCLktneLbR8f1Rep+g0 lYkPGKSNlguhOVU1LjH2uPygwvgwyvQFcgHwAe6jUC/x6aVEu50NLt/Q1 xFdRKaoRY/1wMRtsiOwConhXwwu7HKS1uVxyi/IzONoA40xTTDRNoLMS/ aI5nCtjmR/tRFgHLuT14jsTF7Ytn++RMikgoL3R+kIrBk/e0cLhqZZeou A==; X-IronPort-AV: E=McAfee;i="6600,9927,10676"; a="340868168" X-IronPort-AV: E=Sophos;i="5.98,333,1673942400"; d="scan'208";a="340868168" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2023 08:42:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10676"; a="757482051" X-IronPort-AV: E=Sophos;i="5.98,333,1673942400"; d="scan'208";a="757482051" Received: from linux-builds1.an.intel.com ([10.122.105.32]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2023 08:42:56 -0700 From: dinh.nguyen@linux.intel.com To: linux-hwmon@vger.kernel.org Cc: dinguyen@kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, jdelvare@suse.com, linux@roeck-us.net, Dinh Nguyen Subject: [PATCH 4/5] MAINTAINERS: add Dinh Nguyen for socfpga-hwmon driver Date: Mon, 10 Apr 2023 10:33:13 -0500 Message-Id: <20230410153314.27127-4-dinh.nguyen@linux.intel.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230410153314.27127-1-dinh.nguyen@linux.intel.com> References: <20230410153314.27127-1-dinh.nguyen@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Dinh Nguyen Add Dinh Nguyen as the maintainer for the SoCFPGA hardware monitor driver. Signed-off-by: Dinh Nguyen --- MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8d5bc223f305..064f9db7ffe1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2781,6 +2781,12 @@ M: Dinh Nguyen S: Maintained F: drivers/edac/altera_edac.[ch] +ARM/SOCFPGA HARDWARE MONITOR +M: Dinh Nguyen +S: Maintained +F: drivers/hwmon/socfpga-hwmon.c +F: Documentation/devicetree/bindings/hwmon/intel,socfpga-hwmon.yaml + ARM/SPREADTRUM SoC SUPPORT M: Orson Zhai M: Baolin Wang From patchwork Mon Apr 10 15:33:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dinh.nguyen@linux.intel.com X-Patchwork-Id: 672137 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68013C77B78 for ; Mon, 10 Apr 2023 15:43:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230064AbjDJPnB (ORCPT ); Mon, 10 Apr 2023 11:43:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbjDJPnA (ORCPT ); Mon, 10 Apr 2023 11:43:00 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AEF049EC; Mon, 10 Apr 2023 08:42:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681141379; x=1712677379; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3Ym2cho9LOcQwyXbTc9OkJFyWAtaHr3Us3FO9g6jBII=; b=PaHoH9EDdCTl3J1sAeODk+KuVDVk0DKSsjijcR97ArbYc08OINR9E/U6 DMIW9nY7NaUaMglnbJPZI+Zl0fZjgPBt0CJ7geI4sEi+Rd8MJvYfCmb1G /s4xJSlZ3hqxcmpqbCuiCGPvoCzKDh65tQ9tSd654ibDr+sPpnnIrbskc DYKznVb7UN942w3Eh9AMG35UbsRHLCh94MkFooJZTSReds4wRxngxc4HK Gpj+yMYiVyKe/uy7pvX7B8zlnRaoEWxxWm4KhwPNuZrsJ40Iq2e4d+53a joXV9hR1CjKWqNScmm0MkcgmffV3zSNZrBSUPNzMeRFzsVRwVmvMcjvOZ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10676"; a="340868175" X-IronPort-AV: E=Sophos;i="5.98,333,1673942400"; d="scan'208";a="340868175" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2023 08:42:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10676"; a="757482052" X-IronPort-AV: E=Sophos;i="5.98,333,1673942400"; d="scan'208";a="757482052" Received: from linux-builds1.an.intel.com ([10.122.105.32]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2023 08:42:57 -0700 From: dinh.nguyen@linux.intel.com To: linux-hwmon@vger.kernel.org Cc: dinguyen@kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, jdelvare@suse.com, linux@roeck-us.net, Dinh Nguyen Subject: [PATCH 5/5] arm64: dts: socfpga: add hwmon properties Date: Mon, 10 Apr 2023 10:33:14 -0500 Message-Id: <20230410153314.27127-5-dinh.nguyen@linux.intel.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230410153314.27127-1-dinh.nguyen@linux.intel.com> References: <20230410153314.27127-1-dinh.nguyen@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Dinh Nguyen Add the hardware monitoring properties for Stratix10 and Agilex. Signed-off-by: Dinh Nguyen --- .../boot/dts/altera/socfpga_stratix10.dtsi | 4 ++ .../dts/altera/socfpga_stratix10_socdk.dts | 31 +++++++++ arch/arm64/boot/dts/intel/socfpga_agilex.dtsi | 4 ++ .../boot/dts/intel/socfpga_agilex_n6000.dts | 66 +++++++++++++++++++ .../boot/dts/intel/socfpga_agilex_socdk.dts | 66 +++++++++++++++++++ .../dts/intel/socfpga_agilex_socdk_nand.dts | 66 +++++++++++++++++++ .../boot/dts/intel/socfpga_n5x_socdk.dts | 46 +++++++++++++ 7 files changed, 283 insertions(+) diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi index 41c9eb51d0ee..0efb570d27e5 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi @@ -633,6 +633,10 @@ svc { fpga_mgr: fpga-mgr { compatible = "intel,stratix10-soc-fpga-mgr"; }; + + temp_volt: hwmon { + compatible = "intel,socfpga-hwmon"; + }; }; }; }; diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts index 38ae674f2f02..eb0880a49f77 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts @@ -212,3 +212,34 @@ qspi_rootfs: partition@3FE0000 { }; }; }; + +&temp_volt { + voltage { + #address-cells = <1>; + #size-cells = <0>; + input@2 { + label = "0.8V VCC"; + reg = <2>; + }; + + input@3 { + label = "1.0V VCCIO"; + reg = <3>; + }; + + input@6 { + label = "0.9V VCCERAM"; + reg = <6>; + }; + }; + + temperature { + #address-cells = <1>; + #size-cells = <0>; + + input@0 { + label = "Main Die SDM"; + reg = <0x0>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi b/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi index f9674cc46764..d6cc52a48599 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi +++ b/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi @@ -666,6 +666,10 @@ svc { fpga_mgr: fpga-mgr { compatible = "intel,agilex-soc-fpga-mgr"; }; + + temp_volt: hwmon { + compatible = "intel,socfpga-hwmon"; + }; }; }; }; diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts index 6231a69204b1..09ce00fe42d1 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts +++ b/arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts @@ -64,3 +64,69 @@ &watchdog0 { &fpga_mgr { status = "disabled"; }; + +&temp_volt { + voltage { + #address-cells = <1>; + #size-cells = <0>; + input@2 { + label = "0.8V VCC"; + reg = <2>; + }; + + input@3 { + label = "1.8V VCCIO_SDM"; + reg = <3>; + }; + + input@4 { + label = "1.8V VCCPT"; + reg = <4>; + }; + + input@5 { + label = "1.2V VCCCRCORE"; + reg = <5>; + }; + + input@6 { + label = "0.9V VCCH"; + reg = <6>; + }; + + input@7 { + label = "0.8V VCCL"; + reg = <7>; + }; + }; + + temperature { + #address-cells = <1>; + #size-cells = <0>; + + input@0 { + label = "Main Die SDM"; + reg = <0x0>; + }; + + input@10000 { + label = "Main Die corner bottom left max"; + reg = <0x10000>; + }; + + input@20000 { + label = "Main Die corner top left max"; + reg = <0x20000>; + }; + + input@30000 { + label = "Main Die corner bottom right max"; + reg = <0x30000>; + }; + + input@40000 { + label = "Main Die corner top right max"; + reg = <0x40000>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts index 07c3f8876613..9af029e5633e 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts +++ b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts @@ -138,3 +138,69 @@ qspi_rootfs: partition@3FE0000 { }; }; }; + +&temp_volt { + voltage { + #address-cells = <1>; + #size-cells = <0>; + input@2 { + label = "0.8V VCC"; + reg = <2>; + }; + + input@3 { + label = "1.8V VCCIO_SDM"; + reg = <3>; + }; + + input@4 { + label = "1.8V VCCPT"; + reg = <4>; + }; + + input@5 { + label = "1.2V VCCCRCORE"; + reg = <5>; + }; + + input@6 { + label = "0.9V VCCH"; + reg = <6>; + }; + + input@7 { + label = "0.8V VCCL"; + reg = <7>; + }; + }; + + temperature { + #address-cells = <1>; + #size-cells = <0>; + + input@0 { + label = "Main Die SDM"; + reg = <0x0>; + }; + + input@10000 { + label = "Main Die corner bottom left max"; + reg = <0x10000>; + }; + + input@20000 { + label = "Main Die corner top left max"; + reg = <0x20000>; + }; + + input@30000 { + label = "Main Die corner bottom right max"; + reg = <0x30000>; + }; + + input@40000 { + label = "Main Die corner top right max"; + reg = <0x40000>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk_nand.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk_nand.dts index 51f83f96ec65..d3576bb8b04d 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk_nand.dts +++ b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk_nand.dts @@ -114,3 +114,69 @@ &usb0 { &watchdog0 { status = "okay"; }; + +&temp_volt { + voltage { + #address-cells = <1>; + #size-cells = <0>; + input@2 { + label = "0.8V VCC"; + reg = <2>; + }; + + input@3 { + label = "1.8V VCCIO_SDM"; + reg = <3>; + }; + + input@4 { + label = "1.8V VCCPT"; + reg = <4>; + }; + + input@5 { + label = "1.2V VCCCRCORE"; + reg = <5>; + }; + + input@6 { + label = "0.9V VCCH"; + reg = <6>; + }; + + input@7 { + label = "0.8V VCCL"; + reg = <7>; + }; + }; + + temperature { + #address-cells = <1>; + #size-cells = <0>; + + input@0 { + label = "Main Die SDM"; + reg = <0x0>; + }; + + input@10000 { + label = "Main Die corner bottom left max"; + reg = <0x10000>; + }; + + input@20000 { + label = "Main Die corner top left max"; + reg = <0x20000>; + }; + + input@30000 { + label = "Main Die corner bottom right max"; + reg = <0x30000>; + }; + + input@40000 { + label = "Main Die corner top right max"; + reg = <0x40000>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts index 08c088571270..70b9f0e56cc5 100644 --- a/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts +++ b/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts @@ -129,3 +129,49 @@ &usb0 { &watchdog0 { status = "okay"; }; + +&temp_volt { + voltage { + #address-cells = <1>; + #size-cells = <0>; + input@2 { + label = "0.8V VDD"; + reg = <2>; + }; + + input@3 { + label = "0.8V VDD_SDM"; + reg = <3>; + }; + + input@4 { + label = "1.8V VCCADC"; + reg = <4>; + }; + + input@5 { + label = "1.8V VCCPD"; + reg = <5>; + }; + + input@6 { + label = "1.8V VCCIO_SDM"; + reg = <6>; + }; + + input@7 { + label = "0.8V VDD_HPS"; + reg = <7>; + }; + }; + + temperature { + #address-cells = <1>; + #size-cells = <0>; + + input@0 { + label = "Main Die SDM"; + reg = <0x0>; + }; + }; +};