Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp687726rwb; Wed, 26 Jul 2023 00:47:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlHgEABdQ6OM+qwO/0ySuEL0lMOA14kQi0CI9NLgfW24FGWGC4NxS+qKx2ZSHksmo7Lsl2ri X-Received: by 2002:a05:6402:712:b0:522:2dc0:1354 with SMTP id w18-20020a056402071200b005222dc01354mr931151edx.23.1690357655213; Wed, 26 Jul 2023 00:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690357655; cv=none; d=google.com; s=arc-20160816; b=u4Ux5n+bApQltD2WzCKgVX73oLYczh7BYHzjp3FOMxk2KnsCmq6waLw6jb31ufuaqD jWJgSK2s5e2hyWhyDciy9z4V/pNSObPg4nmOjYz4I1dJsbGS/WpBRhZv9PuwFIIfoXCl 0SQM4I3Nb5RihHRNjLILpEuNjhtWsJ10kyhIg50w8Un64ccI3clMwaUzKC3I0fFZ+DF8 G9Xry9CNcOi3IQvICs6Ao5w9bIYPIPw07/gXF5tRTBPiwVZ8EyBJrTnqwTo6LzYBD4rC NL+ojCQRyJer3ErtbLvJjqwXJPuWC/MvXOLVQymHT/UxdkmM3gR87pf1c8U8LIkNDzQg WQgw== 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=m8wIwxADSqTrhoFtvUXg+vtScQYxhWeSz9h10psnDeM=; fh=EvXdj19NGG/oUhOd+waT2B+afVdafeAPALwFNqFsUqc=; b=xr9fz+C7dCJMyk0zMYsc5nQPy9HewI8aPfn44tJKtJMy1RwQw5d+wqJZxe4sJu7LkK PXlXcHQ2oqnsC4O7Zd++HY84+7u1krrYhGmq6H1xfADI14kjzrWKz0Bw8uKEi9cZrZK4 cTDBZE8/sdGYuZhgh0vG34Ak9NCxQ5dJhtpRAfCNOrS1hPfG8pa64q2dR3/5GT5knfsu 3EDBiBzcg1/gt8KAXIRBukEfuXD8vxDiKeAIGYdROX94Etvp+o2eiOCXqNqBxlElDFRh E9awrDshE9wG0Pi13uvyBOpdoceMC+HBeURKBXVuBAI6vxOGA7HE7744p7Qdk2dTRtqj +5PA== 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 d22-20020a056402079600b0052241ef59b6si2842874edy.317.2023.07.26.00.47.11; Wed, 26 Jul 2023 00:47:34 -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 S232489AbjGZHQt (ORCPT + 99 others); Wed, 26 Jul 2023 03:16:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232375AbjGZHQA (ORCPT ); Wed, 26 Jul 2023 03:16:00 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0B7D74236; Wed, 26 Jul 2023 00:13:33 -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(1318260:0:AUTH_RELAY) (envelope-from ) (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256); Wed, 26 Jul 2023 15:13:15 +0800 (CST) Received: from ex4.rt.l (192.168.10.47) 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; Wed, 26 Jul 2023 15:13:15 +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.25 via Frontend Transport; Wed, 26 Jul 2023 15:13:15 +0800 From: Alina Yu To: , , , , CC: , , Subject: [PATCH v5 0/2] Add Richtek RTQ2208 SubPMIC support Date: Wed, 26 Jul 2023 15:13:10 +0800 Message-ID: <1690355592-10920-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,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 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 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 | 196 ++++++++ drivers/regulator/Kconfig | 11 + drivers/regulator/Makefile | 1 + drivers/regulator/rtq2208-regulator.c | 549 +++++++++++++++++++++ 4 files changed, 757 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/richtek,rtq2208.yaml create mode 100644 drivers/regulator/rtq2208-regulator.c -- 2.7.4