Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp27324rwi; Sun, 30 Oct 2022 19:46:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4UI8QkWIgB01OvvHzqdfQnddNFJJvflzNQBy+NnM/OUVjcvDzWf0qqcf7IXUKNv9nA4cEs X-Received: by 2002:a17:903:4ca:b0:186:5f81:f1d0 with SMTP id jm10-20020a17090304ca00b001865f81f1d0mr11849333plb.36.1667184368192; Sun, 30 Oct 2022 19:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667184368; cv=none; d=google.com; s=arc-20160816; b=ZtAdk6EvHMtPHyH1sn0YXNto5qROZkuPdLPubCALQbRq6bikzOGGHnw6PQE7+AX6Ep 3EHhAoDACm43Zi9ifSXN+iKW4JV3e1zXg12zq/jtnRy24RlXsJLSNiyMpLx/dXcu10Qd 5TcN5FzeBQM6rMnjoMEBaxmXP5mhdut+1l09olqHd/nnop2eKF77xghY6+J0kLzDJSlQ Ne8ag/XP8QtKEbavtf3eOP83Q3dTo4n2M9TGgHddusnvMknxSD1n1CxwNGuM6n4uBXRV WvEEmP/iQ8RXrarWm7Zrqo13hXRPufxFADN4KeW0+nVMYkQOpnl3ZH1fzw5GT2gczQ8m WdfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=ym7VlgsY2ND1TufftBYNXemLLzwPWb6Y/WuEGfjTql0=; b=wCM+T6fFivJX4YRxKle9LCvlx/bk9xrI8/iMYNdyr0mDxeq8l9lzuDOS5FrnIBeObU Qj1rLD4dH7b7hDv7Gf9/5ZzMC/rjzD7t9NLSkKIUX1v6MVUddgyLakyvdd5Y1M7YBvEq MR6qP8LNBm8GSrNaSyGXpzTHWooRjczayg4+Oryuh9ymZuz55b3LIPeo1pxsGBHUUfoY Z2xxsIqIFEATqxh7KvdmJsEYY1BrgJIPAVtH3lYQ+EgBOJdAGYeI01AEWxVSo8jbrnbe Pkgw/OiL7iVlRK+Qer0DEjoV7BdfrWAroOIUOuNQABCPypDlWkmH0C7K1WHg2Vr/S8CJ DqTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GZwxGwVs; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v22-20020a17090331d600b00176953fee67si6629935ple.86.2022.10.30.19.45.55; Sun, 30 Oct 2022 19:46:08 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GZwxGwVs; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229707AbiJaC3L (ORCPT + 99 others); Sun, 30 Oct 2022 22:29:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiJaC3G (ORCPT ); Sun, 30 Oct 2022 22:29:06 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C146A45D; Sun, 30 Oct 2022 19:29:01 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id 78so9526323pgb.13; Sun, 30 Oct 2022 19:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ym7VlgsY2ND1TufftBYNXemLLzwPWb6Y/WuEGfjTql0=; b=GZwxGwVscF6LN3u//xc+Xv3BdUt0QEiZ0RSRehwah11hGFQFQU1yH2u+q5Ce/z7BR4 3Kj0N1PxO1FMfk5SHRb801HoGBORzDI4S1VFLldMwnBXOrn2xw98+rBVsWF0aAw9q9kU QYFZ2ms1UBCYXCa70rCVMtGtYz1K1GF06JKSD0n6lKCZwLrshoOtOVAolpdAyk1CrNYe IwuNMwROcJKSLMsJgg8xpia6iz1slZJyNZEgwxR7O8gESy6YjRogJp4N0Te4tFm1k1/P dwzRpSFTsf4aXUjNJRP6i8PtHC44triJpFPk4oICyS4Q7hPELabicG0LboqQOSbOg2xp KwCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ym7VlgsY2ND1TufftBYNXemLLzwPWb6Y/WuEGfjTql0=; b=vRHXT/kJp05bmy63Wxtn2DBiENtmBrm7iwcs+zV5w+zS6os7Vnbc31pYyC7QdrpPTH wssxqepiaDrAs02lRNwy+mdKrFVtF1bakI8YcraRVxWlhxykXyFTl+SYWuoFj0c/L3B6 2+ROb2AwCQt+pMfr+6osKCrZFhOK4pAUVvPzrlITU1dZdVOeuhrO9HFfQEaZxaV5Ye8N e7cAguBPAWBWLkpMCaPbmNP6ppC46aueNJgNRhKb74/iG0LpTgJaYpUHa5qXoLYo79hA fZ/iPoLm93YzHubCr/PLTo8a/5qgoj3SuYBp5bfe4TmeFdDSdR15nIU/riTmKf9TOZUA Cqkw== X-Gm-Message-State: ACrzQf3YCrhC/h5rfkrt0WngPI3c8fr/Terw6VmE/NSyawV/tDoFkBd0 vi1ZT8ly6dzO1R1JUVb+P6DdM1D9TTw= X-Received: by 2002:a63:d313:0:b0:46b:2ea0:5b68 with SMTP id b19-20020a63d313000000b0046b2ea05b68mr10556487pgg.464.1667183340398; Sun, 30 Oct 2022 19:29:00 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:46a:ab6a:820:3d51:c22d:4bb5]) by smtp.gmail.com with ESMTPSA id q42-20020a17090a17ad00b0021282014066sm3064504pja.9.2022.10.30.19.28.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Oct 2022 19:28:59 -0700 (PDT) From: cy_huang To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, broonie@kernel.org Cc: lgirdwood@gmail.com, cy_huang@richtek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] Add support for Richtek RT6190 36V 4-wwtich regulator Date: Mon, 31 Oct 2022 10:28:52 +0800 Message-Id: <1667183334-16511-1-git-send-email-u0084500@gmail.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 From: ChiYuan Huang The RT6190 is a 4-switch Buck-Boost controller designed for USB power delivery (USB PD). It operates with wide input voltage range from 4.5V to 36V, and the output voltage can be programmable between 3V and 36V. It implements peak current mode control mechanism to deliver up to 100W power with the programmable constant voltage and constant current output. It also has built-in charge pumps for driving external low-cost N-MOSFETs to control the power path. Since v3: - Fix the typo 'upply' to 'supply'. - Declare 'enable-gpios' maxItems as 1. - Declare the 'maxItems' for the property 'regulator-allowed-modes'. Since v2: - Rename binding filename to 'richtek,rt6190.yaml' ChiYuan Huang (2): dt-bindings: regulator: Add bindings for Richtek RT6190 regulator regulator: rt6190: Add support for Richtek RT6190 regulator .../bindings/regulator/richtek,rt6190.yaml | 79 ++++ drivers/regulator/Kconfig | 11 + drivers/regulator/Makefile | 1 + drivers/regulator/rt6190-regulator.c | 495 +++++++++++++++++++++ 4 files changed, 586 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/richtek,rt6190.yaml create mode 100644 drivers/regulator/rt6190-regulator.c -- 2.7.4