Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2121118iof; Tue, 7 Jun 2022 20:26:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwza/JZ4hULQUC1MgX0JUH1uGo7j2kIeKUOd/5vFynlDfFZLmCr8RZK20uXplf7oFqnzbiJ X-Received: by 2002:a17:90a:6747:b0:1e6:6a5b:f040 with SMTP id c7-20020a17090a674700b001e66a5bf040mr37888146pjm.134.1654658776800; Tue, 07 Jun 2022 20:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654658776; cv=none; d=google.com; s=arc-20160816; b=HdUwOruw0Do/9dTaopiv1Ha6ARPRMfAFVtBudOoQ8z9ml7PImU6RyYTuE6pvFy3eL/ Kl1yiozobGYWBXegY//Wz2UdZGPOXNFbaB/u/lEBLsa7uo1RTiDGRtED7EgbQyEO7Oci 9eTS5lSoWwFzfLKBZ+mAReeFkuD9e7iyvpXLzs0hK0SGj7368WvWTztdfnklCgJSfhXQ 4BN5p3gheREVf5JS8QuLmRc4oyNzfDP36TsjiiwBe2oRaQ1Ou8iXKrZXNMz4693dsa3Y 424Ri5mO8V3OHIoks3UzEN/7M998Bmk/Q3TK5DQ/jUjUNKUR1koxL/cgcsCIzVef/M1q TJMQ== 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=ogw5CSsvpaaXGZURlAkQnHXVkK1HBWHlB5QWz//Ik9Q=; b=DvTydvf7kAJ6Tm8sgcPq6x726V0qvqLZf21sDsdmi0e4yK/UPnHbrMMg969akwPTQI oG1wRP6mLeTDlAV+UKEr0nr8dTj+ISdTnShtSF5tnh38mLj2Hhqwx4nuUV6TuLvQ/maS P8vJ2FNC8jUW0EfDQPSw6kz/Nzo7FJuRZkJcgiM4mh77X3Ml5t/i7mfJhuVKuGmm85RJ CybcdjEAAnK8JELN9nKSc6UxtN14OmWeajH6OMnmm/lwSxcQZThFqEMMmhzFkB2lNNRj J6dFRZVNdawVNqZrHUnwERYTB6+/rWs59MpUZbPCRKyOcs7BBLxN56vlyV33Izyfp7p1 nQ+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LSHDyPHN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ms11-20020a17090b234b00b001e07e97c688si22630215pjb.153.2022.06.07.20.26.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 20:26:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LSHDyPHN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2799A261810; Tue, 7 Jun 2022 19:49:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236814AbiFGFwx (ORCPT + 99 others); Tue, 7 Jun 2022 01:52:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230090AbiFGFwv (ORCPT ); Tue, 7 Jun 2022 01:52:51 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE88C60D7; Mon, 6 Jun 2022 22:52:49 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id v11-20020a17090a4ecb00b001e2c5b837ccso19839182pjl.3; Mon, 06 Jun 2022 22:52:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=ogw5CSsvpaaXGZURlAkQnHXVkK1HBWHlB5QWz//Ik9Q=; b=LSHDyPHNWYiPhd9aFhvXZeMZ7l4rvIUdgZGJc95z/p8IVMUsEMgDxxt4bYKW86cDH7 pcaKtpWuNM3QPl9spSZO0VuAtwE1hPOoL0ZRKRm6SfhpSeckvXmno0/S12AuAwEnMeXX HMgN8aIf17IYruMqiEnz0a3vVNwTEhexIjHWZQc0mdVZleZ4CbvLFHEbPLwSd1jY0VdV jj/2nGkeXFCwAONnjy1p/AwQVId4s/LieY7MXoXeiw9UdBQ+UfKIpNpk2QS9uGl7N/Vm PSsvW/ghQcfYvRMvDqTTTeFpOLMQBs33vb7OTDnB3yQwpN14w+Gfld4Nj0Wexkp3PlYc bbxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ogw5CSsvpaaXGZURlAkQnHXVkK1HBWHlB5QWz//Ik9Q=; b=TGF0QH6+fBuvNdwzV4LPZAkhhumW2Zq3oPqdzKQlxhKrhCgnQSoVoymOCs3aIX5r3F rM0SL0F79XLiC1L6EN9PUrqeDsP/gcSFMB9lN0OSFwjxi7MturoL1YOPd6yN42eyZChR 6h8HiNssTVWYdIdRJLqeUXXgp43/x3Tzib6XyPCVP9lFSN7/S27URh/SFCpS2jhuO4HH HE+Ix1oUqCVhsQW3E65AD8t/cDiggIVX+nSyYeiZL2Za82PeBUHBZ7nUrOebVo88Z8Sp zyFL2MoRyLXqMiQFsy9nKoylUa5K5oF2B/A+/+WiKgJqRgrnq9XgrMEKDYYtTFDSQVdp lq8Q== X-Gm-Message-State: AOAM531c95CGnN3vJiwCoUmlOfS6XiDSeJpSLAGQhQrlajkPrBQaA2Xa 0tByBCeXB7Tfi+OO/bgk+RQ= X-Received: by 2002:a17:902:7449:b0:167:9520:d063 with SMTP id e9-20020a170902744900b001679520d063mr1592807plt.146.1654581169285; Mon, 06 Jun 2022 22:52:49 -0700 (PDT) Received: from localhost.localdomain ([49.216.54.77]) by smtp.gmail.com with ESMTPSA id z41-20020a056a001da900b0051b62689ec2sm9203520pfw.129.2022.06.06.22.52.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jun 2022 22:52:48 -0700 (PDT) From: cy_huang To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee.jones@linaro.org, broonie@kernel.org, dmitry.torokhov@gmail.com Cc: lgirdwood@gmail.com, cy_huang@richtek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH 0/4] Add Richtek RT5120 PMIC support Date: Tue, 7 Jun 2022 13:52:37 +0800 Message-Id: <1654581161-12349-1-git-send-email-u0084500@gmail.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 This patch series is to add Richtek RT5120 PMIC support. In RT5120, it integrates four channels of buck converter, one channel of LDO, and one external enable channel to control the external power source. ChiYuan Huang (4): dt-binding: mfd: Add Richtek RT5120 PMIC support mfd: rt5120: Add Richtek PMIC support regulator: rt5120: Add PMIC regulator support input: misc: rt5120: Add power key support .../devicetree/bindings/mfd/richtek,rt5120.yaml | 180 +++++++++ drivers/input/misc/Kconfig | 9 + drivers/input/misc/Makefile | 1 + drivers/input/misc/rt5120-pwrkey.c | 115 ++++++ drivers/mfd/Kconfig | 12 + drivers/mfd/Makefile | 1 + drivers/mfd/rt5120.c | 125 ++++++ drivers/regulator/Kconfig | 10 + drivers/regulator/Makefile | 1 + drivers/regulator/rt5120-regulator.c | 417 +++++++++++++++++++++ 10 files changed, 871 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/richtek,rt5120.yaml create mode 100644 drivers/input/misc/rt5120-pwrkey.c create mode 100644 drivers/mfd/rt5120.c create mode 100644 drivers/regulator/rt5120-regulator.c -- 2.7.4