From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 6AEC42C236B for ; Wed, 29 Oct 2025 02:33:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761705195; cv=none; b=imi0QGk3Tmjtt0veTzK4l4ef3X3EYGT+aKOzYLxNyudsXM5RE9TcbL7+9xnzn9dTSYBaxxdjfShNkRy2ocBBeAnynuknH+0dagWCF0WqYPntGQ1q3xpI2iuNYYVw46KzEyoSqP/lUfnaG9Puuwb95MeKckstPbsU1KgK1PV2xhU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761705195; c=relaxed/simple; bh=sZuB1Q8LX0nxxFMpEUz33o8Iks1w9uNnsPwhX+IgudI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=tz0+HbMuoK8vr8Uuuq3NVLdxcVIF/FfAqvGOrHEAE03DZqph4FOLgY+cbvFBXHLMl2Lvnmn0p3Kfo3lesdR/68YGDhtjGzqH68S8toMHg47uGtYh6iNSQ2578NYSZOE0ZbehAsNiAew0MbQsmiRGtwltV4uaoRGknJ71M0LEeAc= 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=CNWDmBxT; arc=none smtp.client-ip=209.85.210.177 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CNWDmBxT" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-7a4c202a30aso751639b3a.2 for ; Tue, 28 Oct 2025 19:33:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761705192; x=1762309992; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7FzStmFr3Nqbkz01CHYK3w4vVL3ZAJh3Fiq4695g16A=; b=CNWDmBxTxbmqgZvWIvrYWNbgESZpJS/QC4fPC34/KITiBwjKV9DyrG9DFgW6JWAsmW 3lECcanKovamlQ2tSDlkpvZd+R4Mz5o4xPIblyW2beMNeDYHeJK2QJ6K8LVfCKljWKBH nTXaOh7Zqw/c9gYiA5Y4GbHXJ7nWHMYk01UFQyMHjUpRxcH3UGhIgaIwfdxZKz7SDOTC 0M9ibhKjgbBz5s+muihqVmF1wLgSvGI2d1MAJqZLAOmGLD1kWC3NIRVbs4a8zIwB1nHj 6urBypbZ/K/BYIfQgtuNMGtERfwqeuiJCdiZ0xgTby+zuUkyf+RpJ9wutvcL2gUqCXaH l8yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761705192; x=1762309992; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7FzStmFr3Nqbkz01CHYK3w4vVL3ZAJh3Fiq4695g16A=; b=fA3aBRSalJ2mav9ZNk5MiBqSFovZzICyXFEka+HA163MMNZ9YQfN9zpDCnPbbC3NgZ FgEd4DzRcPodsfxEXBigtP7KARX2U8+T3tk+oJyVzVtwCK+5shPvzDMV/PqAG0TDkZee hR9fYgxwyPyXKm4jPmi/yLOY8dAOw1UDHe/qeHMqCiIRm8xV8PpL/A0Qz4N2p++8zd81 hbfeXo90q8Oh/xFzLOunFGjEN7LLN8Uti075wnhbLYPg0gy0XQ7nuj/KRHzAyjCq/xTz N7U2jJzV0JuMZvjfvn7FCzvInsUBQjOJSgSXksgwO5Qi+3NK5AOKC6KGOniFubQCFM/n ivUg== X-Forwarded-Encrypted: i=1; AJvYcCWIvri3Pvu2PYT3o14VEEYb3pjosPW4G1Hyweh7QBKHLzTxIXoyyP3C8heMqXh/8MLzBM9EmiIfW/wx@vger.kernel.org X-Gm-Message-State: AOJu0YwOHodlQ3+2KNPGVP/dB+cRFKl1YzEvgOhWJz6wlxdLorD9ape0 KnXsdz8/6Srh4AfP0z1kpYY8hq1ujj7olykl16Et/A+ug3Xhh0RlIEzUaYazzg== X-Gm-Gg: ASbGncse1R1ntCM053ScnEQmWRzaDKKCoambey7r9Y/yULvBCOwrRXkjFETZzaz14AO pqmkKQJOBCQtqEXCRZUsnHaQ+V9YQNl1GwB8VkjoiHvccwqwFZjY+qvDy15nTi13icY94cZy0f5 11/YFExqqz/JtA7Zyzh/2IvjH6mK9kChPJcj6tVUByQzVc+R/XpTvZUZaZpLhxwd+KtWDm6QjDF S2LLLUV3AaFM9tG60B4hpc4UI+ucrz9HrMNk6XI+hiJ2NScu3oC1U8fe6k38mEwVBSdqXG1a/hs Yb7chA+FFWb1suOUOeR51GJYpPgsIr+hbyrS/NyP3wCShLgoD/M389r/Kmv63PueCh7bL8laSOG 8Hi1BOX7C3PU8iJNQ4QXhxtpHjzu69d+sOfxzKrfTq2hdQyKQnlO2kKRhMB2vqh9rOOJC28h3SZ b76iJdy+RfFPhSYEBoyboVPK1oVsb13g== X-Google-Smtp-Source: AGHT+IH7KgMBxH7VkWb4N2jyhkjWC2IXZfjH+rgQl28193AGI8ufVi7cMJxC+Z/Z1KoZcdqkFWSKag== X-Received: by 2002:a05:6a20:e291:b0:342:4318:c12e with SMTP id adf61e73a8af0-346538169e3mr1333017637.50.1761705192564; Tue, 28 Oct 2025 19:33:12 -0700 (PDT) Received: from HYB-iPCgmhaB8Cy.ad.analog.com ([59.9.235.253]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b7127bf47a1sm11826966a12.10.2025.10.28.19.33.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Oct 2025 19:33:12 -0700 (PDT) From: Joan-Na-adi X-Google-Original-From: Joan-Na-adi To: Liam Girdwood Cc: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Joan Na Subject: [PATCH v5 0/2] Add support for MAX77675 device Date: Wed, 29 Oct 2025 11:32:51 +0900 Message-Id: <20251029023253.150257-1-joan.na@analog.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Joan Na MAX77675 regulator driver and device tree bindings --- Changes in v5: - Fix subject prefix order to match subsystem ('regulator: dt-bindings: ...') - Drop unnecessary '|' from description fields - Drop repeated constraint descriptions from YAML - Rename 'maxim,en-debounce-time-us' to 'maxim,debounce-delay-us' for clearer naming - Used common 'reset-time-sec' property from input.yaml - Remove duplicate description for 'maxim,fps-slot' and wrap lines to 80 chars - Drop the node reference immediately after registering the regulator Changes in v4: - Remove the 'maxim,max77675-regulator.h' file as it is no longer used for bindings - Eliminate unnecessary '|' characters where they are not needed - Add and modify code to drop references that are no longer used - Remove dead code - Add detailed descriptions for each mode of 'maxim,en-mode' - Rename 'maxim,latency-mode' to 'maxim,voltage-change-latency-us' for clearer meaning - Update max77675_parse_latency_mode function to max77675_parse_voltage_change_latency accordingly - Fix errors detected by running make dt_binding_check - Fix incorrect indentation in the YAML file Changes in v3: - Removed unused variable 'value' - Removed duplicate .list_voltage initializer - Wrapped of_match_table with of_match_ptr() to fix build failure when CONFIG_OF is not set - Updated driver code to match new DT binding schema - Changed regmap_config from REGCACHE_NONE to REGCACHE_MAPLE for improved performance - Added volatile_reg() to mark status registers as non-cacheable - Missing explanation of `maxim,fps-slot` default value - Updated DT binding enums to use string values (e.g., "low", "high") instead of integers - Converted several binary properties to boolean typei - Renamed time-based properties to use standard unit suffixes (e.g., "-sec", "-us") - Added default values for properties - Removed unused macros - Renamed macros for clarity Changes in v2: - Fixed build error due to missing 'max77675_of_match' declaration - Removed duplicate '.list_voltage' initialization - Corrected value usage in regmap_update_bits call - Added CONFIG_OF guards and used of_match_ptr() --- Joan Na (2): regulator: dt-bindings: Add MAX77675 regulator binding regulator: max77675: Add MAX77675 regulator driver .../bindings/regulator/maxim,max77675.yaml | 186 ++++ drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile | 1 + drivers/regulator/max77675-regulator.c | 861 ++++++++++++++++++ drivers/regulator/max77675-regulator.h | 260 ++++++ 5 files changed, 1317 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max77675.yaml create mode 100644 drivers/regulator/max77675-regulator.c create mode 100644 drivers/regulator/max77675-regulator.h base-commit: 6548d364a3e850326831799d7e3ea2d7bb97ba08 -- 2.34.1