From patchwork Wed Jul 19 09:24:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alina Yu X-Patchwork-Id: 12263 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2317755vqt; Wed, 19 Jul 2023 02:46:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlG9ooh+Hbx3iwu8XvEiBvAVRBZtqc03S1Xw4Z9yp3Vs3Xw+HzwpeXWzw3Zf9F62NwEgsjyZ X-Received: by 2002:a17:902:6b82:b0:1b8:9461:6729 with SMTP id p2-20020a1709026b8200b001b894616729mr16976369plk.2.1689760000234; Wed, 19 Jul 2023 02:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689760000; cv=none; d=google.com; s=arc-20160816; b=xfMKehQQwz/+HnbA6cNZAP2YApG8APMquigc0dJkgHSKwWtgEsYnaLKGKaInHAUbB2 L7lwn9z8u2qM9lz/dkpwLCDQdtkpJxicdoNJGS3cONe7bysOKKc1zw2zDV13QJKyXq0U vqg/u4jHhDwYT8pepcZMLuhESNxOMnX5VTb2YCNlstZec+qVhhH+i8kkp1lwIj9t1WTm kO3fzBuztYk5jNny42xXaKlKcmLKD/Hh2mE3IZTL20WIFmdGP3cRQfj5WTW/lpLCJren OlPtgNptoHK4VBYoK6dK3SizKE3huUUxbTacEAtjqEJsrIJTCDh7twwQSsoHxqOCOKuC gcvg== 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=+FETDoGkk2Ua2gRzVvQPD1f0jvrFof6/Ci5NRgkT7Lk=; fh=URTg7QUyL3MAeAYyfWnXjCZoH/RbWBmTfJiY0fFH9aM=; b=05sehEq3jaDjCJXfstxM722C9DOiRO1gIfQitfCofc3nZ2PhAhbYnYgsu++HDtZpPR pkLIPVJkOSZqvT3l96hGzgrrNGAwuu+KW6qfBREi+Euc6dN7rZ0t1wRcaahtL4b9Ckn+ cdcXsclZayNrC9/EdwSSw4mxDAQsW/49caPrxpgCRdmpAEQBuq2x4k4q9Zj/jnKfTev6 P70I5LOuqlrAawglzC7MvMPnPlzjHWt+VS7htDaWZQUwagBcnCbB33+DlgZahrUOAsJA DcNQxs8ZZ2O8dHWDkvyu7ptXC/mMrZ7ZW3ak72EVfeAJ+TqbzmINRYo6x6wXas/KK7/n acEA== 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 x15-20020a170902ec8f00b001b86ddfd49bsi3295733plg.6.2023.07.19.02.46.27; Wed, 19 Jul 2023 02:46:40 -0700 (PDT) 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 S230306AbjGSJZK (ORCPT + 99 others); Wed, 19 Jul 2023 05:25:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230124AbjGSJZG (ORCPT ); Wed, 19 Jul 2023 05:25:06 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 80F7C1BFD; Wed, 19 Jul 2023 02:24:57 -0700 (PDT) X-MailGates: (SIP:2,PASS,NONE)(compute_score:DELIVER,40,3) Received: from 192.168.10.46 by mg.richtek.com with MailGates ESMTPS Server V6.0(1455426:0:AUTH_RELAY) (envelope-from ) (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256); Wed, 19 Jul 2023 17:24:46 +0800 (CST) Received: from ex3.rt.l (192.168.10.46) 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.25; Wed, 19 Jul 2023 17:24:46 +0800 Received: from linuxcarl2.richtek.com (192.168.10.154) by ex3.rt.l (192.168.10.45) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Wed, 19 Jul 2023 17:24:46 +0800 From: To: , , , , CC: , , Subject: [PATCH v4 0/2] Add Richtek RTQ2208 SubPMIC support Date: Wed, 19 Jul 2023 17:24:44 +0800 Message-ID: <1689758686-14409-1-git-send-email-alina_yu@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, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: INBOX X-GMAIL-THRID: 1771823710717525807 X-GMAIL-MSGID: 1771841782267087171 From: alinayu This patch series adds support for RTQ2208 SubPMIC regulators. The RTQ2208 is a multi-phase, programmable power management IC that integrate with dual multi-configurable, synchronous buck converters and two ldos. The bucks features wide output voltage range from 0.4V to 2.05V and the capability to configure the corresponding power stages. Thank you, Alina yu --- Change in v4: - In Patch 1/2: - Modify filename to "richtek,rtq2208" - Add more desciptions for "regulator-allowed-modes" Change in v3: - In Patch 1/2: - Fix some typos - Modify the descriptions for "richtek,mtp-sel" - Modify the node name to lowercase and remove underscore - Remove '|' from description - Remove "regulator-compatible" from property - Remove "regulator-state-mem" from pattern - Modify node name to generic one --- alinayu (2): regulator: dt-bindings: rtq2208: Add Richtek RTQ2208 SubPMIC regulator: rtq2208: Add Richtek RTQ2208 SubPMIC driver .../bindings/regulator/richtek,rtq2208.yaml | 208 ++++++++ drivers/regulator/Kconfig | 11 + drivers/regulator/Makefile | 1 + drivers/regulator/rtq2208-regulator.c | 538 +++++++++++++++++++++ 4 files changed, 758 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/richtek,rtq2208.yaml create mode 100644 drivers/regulator/rtq2208-regulator.c