Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1934018rwi; Thu, 20 Oct 2022 20:11:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5icyU8eWgFgQTw2rWtnoJ+ulQWyVijwE3mSbwVEgz+2RQQZhoUEZ8yQ8dpm6lGG/lL2Rws X-Received: by 2002:a05:6402:4310:b0:45c:c16c:5c7d with SMTP id m16-20020a056402431000b0045cc16c5c7dmr15035252edc.246.1666321895388; Thu, 20 Oct 2022 20:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666321895; cv=none; d=google.com; s=arc-20160816; b=uKFapRFh5WytO/DguZcC8+Zd7hwJscP1urGw6dxJaRDv9jJhauIncxUZ8TMqmAQz5u A0C0Fqb86NSLvWtUn4aj1IeOpybe7Un4Bb2sc9TEiPFnI6li3QgtJS8K9k6DVKSTmLFv Jp6M59MT5dPPnlE2CrkYTl3QIgzTy6w7DglZ+tD9Fhu1bruprJwnK+NOiZ6Ax0MViqGM Dq3B58TvWtEe5QAXUpTx1zdGe+aMxyqib/dM8YLr/zuA/ekrE0elYf8GsrRUk2C/8H6V etlDiXLv+mVlg10sWM0cz8ufc1hCigKsIJ5uZqpTwviYJF40IhNRqqsoDT4yqQyMSeem tajg== 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=q7qTx0k1id+tqPtrpykfViuJRNlwvqXtqIFSsgug6r4=; b=WX3u2y+01KDS0x9mCI9PVDZMSAiEaGWQ+V5uyX4QCyO1nedfsQOR0X4ohdzR0v4fxT wjorZhPhj582S69hGndM+wQcHoT7jWVxk0DlQxdTiM7zDNYc+Ta38/hK+93Yhhg0HVey XFljXruf4MvP8WJc+em1B85ajWUnAbId6qnUJlGsF5EJcocDJhf7qoaYhTIoB3tT3OQR 7acxN0Sja4Jucgyxjm6B4yoU2Qld+NHmI0WTqDU/wJLsOrEMOvTT929jVmhQz9A4myLW tHUTSSQYvJEY35Ax/wDAaciA4qG98lNdUxBXB6/O3LRreU4Dk/cob/2LhgbU6WcmS3EX 0lRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jb6+eMMf; 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 bu2-20020a170906a14200b0078103b6f8cbsi16456383ejb.318.2022.10.20.20.11.10; Thu, 20 Oct 2022 20:11:35 -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=jb6+eMMf; 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 S229959AbiJUClL (ORCPT + 99 others); Thu, 20 Oct 2022 22:41:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbiJUClJ (ORCPT ); Thu, 20 Oct 2022 22:41:09 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4F661B232E; Thu, 20 Oct 2022 19:41:05 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id pq16so1197474pjb.2; Thu, 20 Oct 2022 19:41:05 -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=q7qTx0k1id+tqPtrpykfViuJRNlwvqXtqIFSsgug6r4=; b=jb6+eMMfeAlOFfvR6HBFBnIUEKd66s8sfoCn1SS236FS6ogTGYFAQimh1lfZiL++XA DK2ZPy3sW7JuPOHLqzHfqXaAE3jTu0kTcqINtCP7oZzyRmNkWRJkImDh7SSVLw2s75/W MJqj5Mwxe3WKSt7MzJPP39mtiCKI2b8TJbHkzufBmaNUQPGvgjmlEcDuR5jkGWUvY1SK gY3P3dg0xaTO/Jr+ctaIe1QpD5gZ+bDRdYaR+4aLwd9TW8Q1YAt7JtiRFUykVAjY5TYx KbqYCEmR+egPBnlphsnRUIYCg4mYGrnqsgXUp7qsVNaFoNUialIyT7NElTwDa0H/Kf5s anxw== 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=q7qTx0k1id+tqPtrpykfViuJRNlwvqXtqIFSsgug6r4=; b=P92epzXNTmcVDtCOOkMbCp4onukyakC88shqy3SxM5R2USaRhA/8c7+9c/kD7Xw3VC PaFjs7f/wjwzb3FpdkvojMmMq7jbKXtkWZ0HWDSENa7OEcOdq28S76a3UTPjg2SKxUGB CF7LvH6QHkNVLoA6/mSmxHFiER/8ex+chJrzJ9//TqejIYmXngVv6u22uiigy46Xqcpk UF2OrR52hcC4uhDC+61fHECNvoDo7pjBa72NlGvxB1cnlWwGn64c3VNPVI84BVXXIrYZ gMzIf11RzwdoLh0UBHoXfOGroDznLB9y4+3Be9LZ4lOpS4XfU/eFVfgODavSEE2TXS/V 5NGg== X-Gm-Message-State: ACrzQf35z9Vq0p8181irOWiFqdVZQBKPwolahRM3Y2Dj1ygKlbH1s3mQ WULPlY/R0WWz192D0IUTrSZ/NYfxmQY= X-Received: by 2002:a17:902:ccc2:b0:178:29e1:899e with SMTP id z2-20020a170902ccc200b0017829e1899emr16995154ple.114.1666320065326; Thu, 20 Oct 2022 19:41:05 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:577:b022:150a:a87e:ab3a:9736]) by smtp.gmail.com with ESMTPSA id a19-20020aa794b3000000b0053e42167a33sm14033023pfl.53.2022.10.20.19.41.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Oct 2022 19:41:04 -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 v2 0/2] Add support for Richtek RT6190 36V 4-wwtich regulator Date: Fri, 21 Oct 2022 10:40:57 +0800 Message-Id: <1666320059-17544-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 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 | 77 ++++ drivers/regulator/Kconfig | 11 + drivers/regulator/Makefile | 1 + drivers/regulator/rt6190-regulator.c | 495 +++++++++++++++++++++ 4 files changed, 584 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/richtek,rt6190.yaml create mode 100644 drivers/regulator/rt6190-regulator.c -- 2.7.4