From patchwork Thu Aug 3 03:50:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alina Yu X-Patchwork-Id: 13041 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp907211vqx; Wed, 2 Aug 2023 21:39:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlHi4jAdMi3KwEn48pJEROREfrbBJLmyv8ESRTsylcuZlWqGzAUG18B2ucfic/9AGFiOAoyg X-Received: by 2002:a17:906:77c3:b0:993:d54b:3e44 with SMTP id m3-20020a17090677c300b00993d54b3e44mr11960806ejn.2.1691037589908; Wed, 02 Aug 2023 21:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691037589; cv=none; d=google.com; s=arc-20160816; b=hEwFi0UoRqGAdm8FJueEuiJAPu1Vm8u0rQcJwW8LrAR4Sf24ie9hE/8iOCdA7cAa97 /rOZ/hwYVpATGtv/4ioxc85k5njlTyS1xKcPgGfwGlGG7OX/XvwPWdYcDW/0LHhsB1yj tRYxHhFzDauo54KB7awWqEfn6qzONoRs6MGtHvZGck801JGHOiMLnITM44OY9POco2An pwjdzS63f7stJBHvo/1XCP5Jws5HT4dYR0d5P5v6+q1Q1LrdFBAARHkcXoR7IWyBtEsx XgagC5U2GJ74jsbo7bIezqbz/10hv3wQgKGRFSIWewaCReiRswvlNwvruAFZFoIJQ9Ob 0Thg== 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=iVpgb2r3e9i93fcXr1D1nayYlMIvYEJFzi3IEnG5sjA=; fh=EvXdj19NGG/oUhOd+waT2B+afVdafeAPALwFNqFsUqc=; b=dwHPVjqDNqt4Y0xCVd5jRZjoZBNkLPQG/EZq/y4TuwEEncjsaHkEDBvqVya7aC2D9I gQ89FG5sA0bG0hZ9n0xADqAiC1oamel+0q2SgOiaui5JiSaE0uaYyzkpwlSlvOlcJzbS tj57rgryyVg8fnSWIXNQgTFfG3rAUhgj7DeG40eu/UbCLgEFxutfXsig68B07lXMlL/0 g3QVIRNoDoCaQxndauQ/NnXSzDLRD1Igbu8YgO75N7V2L6OmYyKVwCAoPuDS/yAWODUC E8XIC3v+xQlm/y0kDmTiVkPclb9gD+xsXttLQ5o8OAuaXHJs6lnVVB79FIXsuk0wR0I7 xFIA== 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 g21-20020a170906595500b0099c49a11e74si1920551ejr.972.2023.08.02.21.39.26; Wed, 02 Aug 2023 21:39:49 -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 S231484AbjHCDvT (ORCPT + 99 others); Wed, 2 Aug 2023 23:51:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231637AbjHCDvI (ORCPT ); Wed, 2 Aug 2023 23:51:08 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9744730D3; Wed, 2 Aug 2023 20:51:04 -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(2307:0:AUTH_RELAY) (envelope-from ) (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256); Thu, 03 Aug 2023 11:50:49 +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; Thu, 3 Aug 2023 11:50:49 +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; Thu, 3 Aug 2023 11:50:49 +0800 From: Alina Yu To: , , , , CC: , , Subject: [PATCH v6 0/2] Add Richtek RTQ2208 SubPMIC support Date: Thu, 3 Aug 2023 11:50:43 +0800 Message-ID: <1691034645-11595-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: 1773181431865329171 X-GMAIL-MSGID: 1773181431865329171 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 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 | 549 +++++++++++++++++++++ 4 files changed, 758 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/richtek,rtq2208.yaml create mode 100644 drivers/regulator/rtq2208-regulator.c