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: 5534 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp647179wrn; Thu, 16 Feb 2023 18:17:05 -0800 (PST) X-Google-Smtp-Source: AK7set/F/irpJq2WbosOoJUAciGQkKthcHF2vaZL+oJsiYz4r5IJ5+PHu0vI7dnI8ds/iJENThdf X-Received: by 2002:a62:84d0:0:b0:5a9:bf42:fcc5 with SMTP id k199-20020a6284d0000000b005a9bf42fcc5mr2522876pfd.0.1676600225702; Thu, 16 Feb 2023 18:17:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676600225; cv=none; d=google.com; s=arc-20160816; b=pm5uPlo/nV+V9LooNybgXEUW6HeUM7rTVkaye8h80ZYkBlcgcJxZLEaO2AReoZ+lAV 57oEcH+/3KIHHqvmhsQ86DPbW85ebQVa5avKJRVsYQ4k1iu7ge0LrQ0bo2Vg7PDxCVTg UwLz8LCJh4U4jNBZwpKiNx6RlXH5bMqvDnTI2Gtna1I6nUKyn7HdXZX95haoaD5Y93SN g+vkG8fOjstDWXCxlT1dlCmOnwPegjGzgDotUusmP6DT0z6AP5RGfxsWFC5tuh3RODgH eO/HZOsj+hWjlbNpUl2zOxOqBv+qPwICQNcNZyHVvCBTCLUn/mRmHWW1I6mLEzSfiST7 tg2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=26AAgu6u2EspdePa0GpkbHeCXYMQpnjbWMj5sCb8Kt0=; b=Jh/7W3q+gCT4dHZy+VmGc9C4nd6dw0hNYqRdtsouDzuhEueci61XRnHEoDBYMo216u yh8JTzjNrk8Xs6nHSEVMCMkP4PrnloNz/oELseMovnPdiDp6j/kskY4xW/Z+LSowDUVR /tHlxUoYQqqnJbiWEF5W+UHyltzUXbamuPQodU97fbFECODduVDvb/gIx+GwHrLw+nx6 qaEWeTnOnmF4INIKC8q/GiBGquukaSf9/0cawaPiD2MdL1+vtJhZAKPVszpqsAEQdRS9 to4IGUmMqo/b17Zl6LPFtHLYRC4AsK1s+ZpRUTUhWiBrBbtFz63EGrwHcPfjLXNS5j4b zERA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i18-20020a056a00225200b00575428b9ea7si2892392pfu.204.2023.02.16.18.16.52; Thu, 16 Feb 2023 18:17:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230284AbjBQCHP (ORCPT + 99 others); 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758042758130942797?= X-GMAIL-MSGID: =?utf-8?q?1758042758130942797?= 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