From patchwork Thu Mar 25 18:44:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ying-Chun Liu X-Patchwork-Id: 408850 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp782627jai; Thu, 25 Mar 2021 11:44:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoxrh3xjMJWSyINM7WWKuGewSlvM5NFHELxdudTkzoiATe8yF5x11e16YPvBLbVwMI0rSn X-Received: by 2002:aa7:cf14:: with SMTP id a20mr10637941edy.49.1616697867050; Thu, 25 Mar 2021 11:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616697867; cv=none; d=google.com; s=arc-20160816; b=0LPoC2J4nGqS98lgFZfX9TsyM7hOipw1gDS3MOxTpQ+99ozciIS3jTalTIVuHwFvxp 7YYHIRfGWdAyrHQNjlSbQrrQUUaFee27MyD7PUFOpX5ZZajVawYIPlr7RVoFw0ggnY3P qOZUOFqvL2rplW4pboS8g3x7MiUUiH//OlHcNGI9IEnwcoBtsc49b58NzOSsTgesQElA qtbZH8YDVTqqFrNmQI3KZKmMczVBMsIbBvq9ZMgVqGha42TtfBO6rDfrt7kkULErAOFs GhbCUtoDZLEl3JrXKbasbhzhBtBE2ZqZjcP7+i3QZHviM8UfMcgG5XzrMCzjYnehz89P KOMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=cdnYFWb+fx/SaTBM55a47f1AgZ/WcGY9IEQaX8iWSqM=; b=IbzD0EI6a/4E099WznZ2Ra7Q+dXfAr4pxWBUz9nog7iuELgT9iekKLV/7VTLUFWkMG kdf0bNiqhCQmu5A8s5ce5/DTF7hiLPM52siyZXoa7LdvSc0GoqnnFu2QRdh4+wfCO4X/ o93nLmAlKKEA5vie651Q3U0Y7ALlVJ6GEu9PuZ/kr48JcAQCn3N5zgLI/EJgdyToxRbN hhlo7Ln3rKxq25dFj1CmYhEN6UDNYQ6C0pvUo4oINYMVZTTbH8zz5uL7OvVt3iS9FoNa wxcDthqFOcDbGcCgMHEUhcGrGFjqsYCmLHGmekxL3f4AXJDhP6hlsoCeU+i94U1tDlAH C+2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L8Ov01GY; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id q8si4978812ejy.320.2021.03.25.11.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Mar 2021 11:44:27 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L8Ov01GY; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9E59D825BF; Thu, 25 Mar 2021 19:44:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="L8Ov01GY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C24BB825BF; Thu, 25 Mar 2021 19:44:19 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C43468006D for ; Thu, 25 Mar 2021 19:44:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=grandpaul@gmail.com Received: by mail-pg1-x532.google.com with SMTP id v186so2701188pgv.7 for ; Thu, 25 Mar 2021 11:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cdnYFWb+fx/SaTBM55a47f1AgZ/WcGY9IEQaX8iWSqM=; b=L8Ov01GYm/Zz9Es9STnEGXFjOvjiQNBt1LcXkXru+4LKiUl4n4p5PdpyIcgJ9oKOXN iY6vI3E0UEKzkf9f8raSc8l+MpRzwHi9PJPhR4czDe+cc1vxy1QQ2ZnJvkWFUs0v3zV2 MBJUp4C63SFKcLfA550ozy3XTQocYaPZff9m6INVOy1ARcH7ATkJ64QaO4SuGQ82xSct xZN/UVt13nZO3e7FsAMJM/JZp2lYjLVLIH/0z+6ZHDH2uI+rMEbMApVMV5v24MsIUNL7 TWhd8YpyTgi6csJRpp1Oo0H3rK9pqzv7XwKd0eeG58w81ggmbKFUajl6r8DDsx+2E9dL WEFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cdnYFWb+fx/SaTBM55a47f1AgZ/WcGY9IEQaX8iWSqM=; b=S17ugPMIt7bxXOvga9/vnzHmUAwFrzXnhwElnMV/jUCYCPVO55t9m3javD7glfwJ8B LiNbaEvMfyIDoZiFD1g+sSoDXGqTzknhpkpIY+f8fGg8gkr2PdVQp6s4FCtwV6ovY4sK YoPNbXRAtk5eKkNvRgg953u0GCKRiqKi+qUOsmMgFxcfAB5m8oy145VtJWMVLJTSie0y eNmZxYWkqmONjHK/ow6FgcSBV36TzMaFJLGHyeZRGHs7vDelTdiqoAovSDE5UznZIKGO BBqZAn+ORhu0eprHF9ttJIFJAfJCLTib8KKeEGH17tybO08onuKrMet3OzKlbQmuV0rt y6ew== X-Gm-Message-State: AOAM530jzYrxxq8GfjUWif7+Ld1n6TR5M8ecSHJK4a+XiDUwS6TPmRAD bHuIGPPV39Jm92bI0+UHFIDL4SvdkX8= X-Received: by 2002:aa7:99c4:0:b029:1f6:c0bf:43d1 with SMTP id v4-20020aa799c40000b02901f6c0bf43d1mr9057570pfi.37.1616697854850; Thu, 25 Mar 2021 11:44:14 -0700 (PDT) Received: from localhost (host-111-184-129-17.dynamic.kbtelecom.net. [111.184.129.17]) by smtp.gmail.com with ESMTPSA id d11sm6281374pjz.47.2021.03.25.11.44.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Mar 2021 11:44:14 -0700 (PDT) From: Ying-Chun Liu To: u-boot@lists.denx.de Cc: "Ying-Chun Liu (PaulLiu)" Subject: [PATCH v3 0/2] power: regulator: add driver for ANATOP regulator Date: Fri, 26 Mar 2021 02:44:05 +0800 Message-Id: <20210325184407.37915-1-grandpaul@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean From: "Ying-Chun Liu (PaulLiu)" Anatop is an integrated regulator inside i.MX6 SoC. There are 3 digital regulators which controls PU, CORE (ARM), and SOC. And 3 analog regulators which controls 1P1, 2P5, 3P0 (USB). This patch adds the Anatop regulator driver. Ying-Chun Liu (PaulLiu) (2): power: regulator: add driver for ANATOP regulator doc: device-tree-bindings: regulator: anatop regulator v2: add functions for set selector and delay. Define ANATOP_REGULATOR_STEP v3: add vin-supply. move regmap retrival to probe .../regulator/fsl,anatop-regulator.txt | 45 +++ drivers/power/regulator/Kconfig | 10 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/anatop_regulator.c | 287 ++++++++++++++++++ 4 files changed, 343 insertions(+) create mode 100644 doc/device-tree-bindings/regulator/fsl,anatop-regulator.txt create mode 100644 drivers/power/regulator/anatop_regulator.c -- 2.30.2