Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2640080rwb; Mon, 7 Aug 2023 00:27:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFrmUJUmT+WLHCmU4StFtGQgeIhoeQcxt7WnMcyagTxCmXJWoC3KusXWWKrPKYz8niL+e5o X-Received: by 2002:a17:903:485:b0:1b8:475d:ebf6 with SMTP id jj5-20020a170903048500b001b8475debf6mr8901581plb.0.1691393240294; Mon, 07 Aug 2023 00:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691393240; cv=none; d=google.com; s=arc-20160816; b=LIVLJXOCYmD9dMxX/xgYaa9zQN/SVDEDmcqvFg8v7blaoPMiKsR/yRF6jF56XJe/qH pxWT5Hj+P/D1g7YA1E7GvedFu1DclCap0yaM/BI5b4X90F/TnHVsFm2uHYm1xZAHJSVg fzXlem9DrbLJvYJbpIyt3SC4E8jKyomNRVkdmxFd154ipUU4N4Sw1G0wok4UYu5W0kd1 76c0f4wZX1C4FIKs+bOB/9ydZJ8t8nq0Km2dG1p2OuLqBLYWt/2d7IHy3C0jt9cSbejQ RkFzsKPcvPYm7jR5iYWcQyvlGQB6wPOfO1dYnKFyZAdUj7MadV4w8FFJJ0qWrtPvG616 FjHQ== 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=0TLVPH4J7BHCFMvdpiyZ+ZxNVm52nfwAQKcV+r77Xoo=; fh=EvXdj19NGG/oUhOd+waT2B+afVdafeAPALwFNqFsUqc=; b=sAt65LK9APJwOTsGL70EQ7aBhLoqTfJapN7UlMUHdgaJCh6nMTZ3bi/c6txFbr02cN mbuHiLreOU74obCAU+cUpNzMtjCUjB1yeDZ8b82bOIhwDhPLn5Wa3VzCNBGDr3bSa+GS NksWO6RqNqPreBpRsBJvWxe/Uh/86E4FKc/DCS6T1ZVBOK6kl6Xo6RZHF5vxD90Iin7Q LqVyFhj9DS78lteIar8YtNjoF19TDWrWT1rJeqC3NG2KBvOtruCAwmiMJQa6wc9eVZti K5sszDIfWBda3f1Sw9OmoVzwYuE7T3hwWWEH11xep79jto0s88KNbHMgb3cfzr7JLBLn SGbw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ku15-20020a170903288f00b001b5589848absi5399092plb.234.2023.08.07.00.27.07; Mon, 07 Aug 2023 00:27:20 -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 S231295AbjHGG3f (ORCPT + 99 others); Mon, 7 Aug 2023 02:29:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231289AbjHGG3X (ORCPT ); Mon, 7 Aug 2023 02:29:23 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C12B21FDE; Sun, 6 Aug 2023 23:28:53 -0700 (PDT) X-MailGates: (SIP:2,PASS,NONE)(compute_score:DELIVER,40,3) Received: from 192.168.10.47 by mg.richtek.com with MailGates ESMTPS Server V6.0(3962120:0:AUTH_RELAY) (envelope-from ) (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256); Mon, 07 Aug 2023 14:28:10 +0800 (CST) Received: from ex3.rt.l (192.168.10.46) by ex4.rt.l (192.168.10.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Mon, 7 Aug 2023 14:28:10 +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; Mon, 7 Aug 2023 14:28:10 +0800 From: Alina Yu To: , , , , CC: , , Subject: [PATCH v7 0/2] Add Richtek RTQ2208 SubPMIC support Date: Mon, 7 Aug 2023 14:28:05 +0800 Message-ID: <1691389687-31211-1-git-send-email-alina_yu@richtek.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 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 v7: - In Patch 2/2: - Include missing - Remove fixed_uV in self-defined structure and rtq2208_ldo_get_voltage - Modify sizeof() parameter in rdesc = devm_kzalloc(..., sizeof().....) - Add const to type casting in regulator_ops to avoid unexpected manipulation - Remove rtq2208_of_parse_cb and use of_regulator_match to get constraints.min_uV - Return devm_request_threaded_irq directly - Remove __maybe_unused and redundant comma in rtq2208_device_tables - Remove v2 in MODULE_LICENSE Change in v6: - In Patch 1/2: - Add "additionalProperties: false" to regulator node - In Patch 2/2: - Remove Reported-by tag Change in v5: - In Patch 1/2: - Revise filename from $id - Remove "regulator-compatible" for ldos - Add missing "high" for "richtek,mtp-sel-high" - Remove "regulator-mode" property - Add and modify "unevaluatedProperties: false" and "additionalProperties: false" - Remove "richtek,fixed-uV" - Remove redundant space in "buck-a" and "ldo2" - In Patch 2/2: - Modify 'rdesc->fixed_uV' get, becasue "richtek,fixed-uV" is removed from yaml - Modify 'mtp_sel' get because read property is changed from "richtek,mtp-sel" to "richtek,mtp-sel-high" in yaml - Add missing regulators_node points to regulator node in yaml - Include for 'FIELD_PREP' reported by kernel test robot 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 --- Alina Yu (2): regulator: dt-bindings: rtq2208: Add Richtek RTQ2208 SubPMIC regulator: rtq2208: Add Richtek RTQ2208 SubPMIC driver .../bindings/regulator/richtek,rtq2208.yaml | 197 +++++++ drivers/regulator/Kconfig | 11 + drivers/regulator/Makefile | 1 + drivers/regulator/rtq2208-regulator.c | 583 +++++++++++++++++++++ 4 files changed, 792 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/richtek,rtq2208.yaml create mode 100644 drivers/regulator/rtq2208-regulator.c -- 2.7.4