Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1202502lqd; Thu, 25 Apr 2024 08:36:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHnJrCNdOFoOl2XDq29DJreEvD+t2ULmBQmjV7/Rw/vu4vYbkLj18Sw1jaq6ITEsa55l6TarEwcG0l2qkU/r9TI5bXh38garwgwDyfnQ== X-Google-Smtp-Source: AGHT+IFf+yTVW8/edt+5RdyrszVWe2vHPzOzkqcGUoq9HQH8mn72H6SLq46GRBg6YnlXgLL8VLbl X-Received: by 2002:a05:6870:c695:b0:239:5419:bd74 with SMTP id cv21-20020a056870c69500b002395419bd74mr7851274oab.10.1714059411424; Thu, 25 Apr 2024 08:36:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714059411; cv=pass; d=google.com; s=arc-20160816; b=vfN6C/Fu6KZUI3GULe45rOGOGbQruFc/okV6MeJGsbYCiYyejq0R1EWFrgT40ClsZl Ul70OfqgSFsjiG8NocQQg9c8hDjgnVMQkWNjrLcEjm+JANNaYYxwSxOhnZ1o3sSeZVOt WOAvODeHTl8Qln+6nv0e4C9CEHuzJ0H85vsT3er3/XGqx6Ymoa8GODTzgs9CccT/I9CX wBqY2UYfQ4E5fihMJLwc6OmEW4qHoD8jQ6L0IMZPSf093iJeO61nE63hteA9fCkt+CYC EMSDxOP93mN6NgC/WCbYccTx86Qi5xR/jJtuDIHv6z2pY7T8hStM/zcmaTHELtW92fKu eRWw== 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:to:from :dkim-signature; bh=GS1z28aJanup/6e1AA7r2VX25gfbel/TmqZZU+ll62s=; fh=bc56I3o8aTtmo0MQmONxji1r6WILkQjmbFjFeHxGbIc=; b=DmsezjBbBQHdccCup1SsfRONMgQFz9XM54DU3OvonZF59MVvVw1ce0c/ONVlnrtRWo eJY9Nv3vf6Jd7c3280djYbEPFnpMLVMLg9EDtnOMGthG1C9DThVTtEgEezqUy8ODDkkh JJ9A2ILmYcrYGOQFCYoVu8orm8iaEyTax3XuLhaDmEizuEnD4j51wS9V2rg/2MOeUka9 Q6RabYfM6Yb6bqyYR3//tpyNdfhFMllRp0OvKNOY5NZFkau5PsFdVwdMSG9/XFrGYh5w z6hX84B0CEq9BtDb5rPRe6A7q8/sbUYJRYOjLemJRWizhNzwl70uiUSTC+ZEH37CJifm +F8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a7pW6ddM; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-158816-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158816-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s21-20020a635255000000b005e2b17cd8a0si12915358pgl.270.2024.04.25.08.36.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 08:36:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158816-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=@gmail.com header.s=20230601 header.b=a7pW6ddM; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-158816-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158816-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 95D30283FBD for ; Thu, 25 Apr 2024 15:36:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98C0814C59A; Thu, 25 Apr 2024 15:36:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a7pW6ddM" Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F3E814B088; Thu, 25 Apr 2024 15:36:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714059391; cv=none; b=NtuFkiPtwsst2H/WPeiiPEwhICvcvAdq21ooX1uQNDuoXF+Newg9+1+o8dpzFj35rJDFY5XvDUtK5aEGbKSPMzejL7DeyhkRX4csXMeedK4dAVPRgv2UKu3f+XdN05AXnD8s6Cyq7Xj1fQ//qIVrX0H8LAZkcHGYgDhbTDVJvE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714059391; c=relaxed/simple; bh=+aPFoqgCJiCF8M7Yr4hYUX9uwXga+n9jEz+TsIPCY1w=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=QAOe1Tn2/O6OEx02bkkZhYo974SdAh+lJv0LxBzKxbizQ4VgmOvee60bFahfoYYuKdCQ5TCKnZs6t9Q2u6cXdZbVa8g2ZLgbgA47EkkisB9RNZp9DK0ZHHhQL3YvY+DlD8Q7641WS6WyGD+XF9zHCuVKBUfJNt2c8yDhzuc247Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=a7pW6ddM; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1e65a1370b7so10391945ad.3; Thu, 25 Apr 2024 08:36:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714059390; x=1714664190; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=GS1z28aJanup/6e1AA7r2VX25gfbel/TmqZZU+ll62s=; b=a7pW6ddMPgUsrd98BZr9Mu7Eaa+vHe4YdFFFQ/AI+0g97SLeam5DHbcQgZoiHDEntM UbgZRFK9up+H9rYB9+WuynWR5GjAcyZNVhBcTvE89bonchBRMzZh/a+QIhTmVlKjMqb0 AWoA5nWngqrhsVFrqg+VnciGo2CuMHA9iFRVSVOGMjcKe2kfgREmMyQUoD9DVIK9LcUH bO3igtU/IZUjUPT4hgi0mQyJmH8+Ocheyxzen6UIQC3zbQMzzHEf1ClzPodllH+F8+QN 5gD8P3o469Hf3FxtX4N7Q0Xdj2ovLxrivaB7do2278y8lUu3nM+Qj4cnT7eQpj4EzE45 9X7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714059390; x=1714664190; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GS1z28aJanup/6e1AA7r2VX25gfbel/TmqZZU+ll62s=; b=iPduJjlsr8+iq4OAafeAJXoLN9vThOwZoTnac2uDfvJRn0NwtHbSnlMUIxFlaKhrBc 4zwEt42rdgIH17puOfSZfa3ZYnR8xFgzzlR5j/d/5xb0lGtS6rIEKq25XX0PBKBH9V5I yMsHN+VrJuMtXizPGQWr4g9QnE1JXfdK268X2Wiz0+f6G1FTIYs20yAPCtsfCEVB0sCC jkdO9yLLaVg89aLdNJyFCv2soizCuz4IR3Wvd+cNtj6DHEJlApNVvc2cOkUhQk/ebbcD 9VR5pYdqggFzRJruS/OPm5rk2o1Puo4dJREX9CGwy6RWE1f6udFBXjCskujRHGpZTx6y ZM1w== X-Forwarded-Encrypted: i=1; AJvYcCUbC5jvtw5Fb7SShDo0L4O4/fywZvDnKowp+DZ9AZYg/k/eZBKsTFXFCXllIJKp4xHU/F2DZPTilMTI8OIN05q+inOgbD6qsZSOHyLueTe537oXAJetADcWg0fZTXUROVWu0AaFBxUCoyS98fSE/pFFPEY3FgfYDg6efOHPXusuQ29WDd6J4z2SzA2V72rLoqfJKn62sX6BjNOyONg2Iv9QEJk3ugUtC40MVFPp8WtCA+ieaOCC7+nKLHwX X-Gm-Message-State: AOJu0YxwkXrB7HkNxxyU83zULNE4hnbVTdp6wX08QOZSYD71YJcyo8hi TFKBXJRDCY+wSb6R759oxwXBerVixsc35IQS3qzz/geNVPdISN4O X-Received: by 2002:a17:902:ec92:b0:1e2:7717:d34e with SMTP id x18-20020a170902ec9200b001e27717d34emr9132797plg.58.1714059389744; Thu, 25 Apr 2024 08:36:29 -0700 (PDT) Received: from peter-bmc.dhcpserver.bu9bmc.local (1-34-21-66.hinet-ip.hinet.net. [1.34.21.66]) by smtp.gmail.com with ESMTPSA id bi2-20020a170902bf0200b001e27ad5199csm13852586plb.281.2024.04.25.08.36.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 08:36:29 -0700 (PDT) From: Peter Yin To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jean Delvare , Guenter Roeck , Jonathan Corbet , Delphine CC Chiu , Patrick Rudolph , Andre Werner , Bjorn Helgaas , Michal Simek , Lukas Wunner , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org Subject: [PATCH v2 0/2] hwmon: (pmbus) Add support for Infineon XDP710 Date: Thu, 25 Apr 2024 23:36:00 +0800 Message-Id: <20240425153608.4003782-1-peteryin.openbmc@gmail.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add support for xdp710 device from Infineon vendor. This is a Hot-Swap Controller. Change log: v1 -> v2 - Merged patch 3 into patch 1. - Modified comments. - Fixed the microOhmRsense array. - Improved operational accuracy. v1 - Add support for xdp710 hot-swap device from Infineon vendor --- Peter Yin (2): hwmon: (pmbus) Add support for Infineon XDP710 dt-bindings: hwmon: Add infineon xdp710 driver bindings .../devicetree/bindings/trivial-devices.yaml | 2 + Documentation/hwmon/index.rst | 1 + Documentation/hwmon/xdp710.rst | 83 +++++++++++ drivers/hwmon/pmbus/Kconfig | 9 ++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/xdp710.c | 132 ++++++++++++++++++ 6 files changed, 228 insertions(+) create mode 100644 Documentation/hwmon/xdp710.rst create mode 100644 drivers/hwmon/pmbus/xdp710.c -- 2.25.1