From patchwork Fri Feb 17 02:06:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiYuan Huang X-Patchwork-Id: 654562 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 A6FFBC61DA4 for ; Fri, 17 Feb 2023 02:07:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229848AbjBQCHP (ORCPT ); Thu, 16 Feb 2023 21:07:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjBQCHO (ORCPT ); Thu, 16 Feb 2023 21:07:14 -0500 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BD65E4BEB5; Thu, 16 Feb 2023 18:07:11 -0800 (PST) X-MailGates: (flag:4,DYNAMIC,BADHELO,RELAY,NOHOST:PASS)(compute_score:DE LIVER,40,3) Received: from 192.168.10.46 by mg.richtek.com with MailGates ESMTP Server V5.0(23463:0:AUTH_RELAY) (envelope-from ); Fri, 17 Feb 2023 10:07:00 +0800 (CST) Received: from ex4.rt.l (192.168.10.47) by ex3.rt.l (192.168.10.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.20; Fri, 17 Feb 2023 10:06:59 +0800 Received: from linuxcarl2.richtek.com (192.168.10.154) by ex4.rt.l (192.168.10.45) with Microsoft SMTP Server id 15.2.1118.20 via Frontend Transport; Fri, 17 Feb 2023 10:06:59 +0800 From: To: , , CC: , , , , Subject: [PATCH v2 0/2] Add Richtek RT5739 switching voltage regulator support Date: Fri, 17 Feb 2023 10:06:56 +0800 Message-ID: <1676599618-24819-1-git-send-email-cy_huang@richtek.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: ChiYuan Huang This patch set is to add Richtek RT5739 regulator support. The RT5739 is a step-down switching voltage regulator that delivers a digitally programmable output from an input voltage supply from 2.5V to 5.5V. The output voltage is programmed through an I2C interface. Since v2: - Refine dt-binding patch subject - Shorten and refine title and description without too much marketing text. - Fix the typo from 'connecton' to 'connection' in 'richtek,vsel-active-high' property description - Remove maxItems in property 'regulator-allowed-modes' - Fix the wrong min/max microvolt in binding example. Must be '300000' and '1300000', respectively. ChiYuan Huang (2): dt-bindings: regulator: Add Richtek RT5739 regulator: Add support for Richtek RT5739 voltage regulator .../bindings/regulator/richtek,rt5739.yaml | 72 +++++ drivers/regulator/Kconfig | 13 + drivers/regulator/Makefile | 1 + drivers/regulator/rt5739.c | 290 +++++++++++++++++++++ 4 files changed, 376 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/richtek,rt5739.yaml create mode 100644 drivers/regulator/rt5739.c