From patchwork Tue Mar 23 13:48:34 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: 406887 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4469808jai; Tue, 23 Mar 2021 06:48:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxtMz+MQEG3Nc5ksT206jfxBzUE3ZeHB7BKQ6HCSdRT4pQvAbg+ynjCy8yMu2q8AVY6oVb X-Received: by 2002:a05:6402:2d0:: with SMTP id b16mr4826752edx.194.1616507335227; Tue, 23 Mar 2021 06:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616507335; cv=none; d=google.com; s=arc-20160816; b=v4TEmQHL/wJqH+XsX1snKOJvudcTiDlgKVRtT+ofZNYlvEBNvEAaXKv1c2RYJICDmW 1mMXv9aWqRMec3O8wQmMwA14F26OMaz8AKJPPaZGyIV3w8JiMnXE+AFZ9bnnJ+saG53u 8On8Y32dGpE+TV3mYrohsZXHZZQy+Hx6pskSpn9wg+5wU5Se0oba82k11MhHMPv0QbsR e1jm1UzEUEy30uiWBPN5rny2zC258GzkFpAKNUOuYUW+YcKp/d4wqLkaM96tRb3/4ASK kZyDky+X7FYPiS0KZ3RVpvbO/csmXGhx1milJvN1nabdUDd1SnbTxyZX3ArT5uN3zHaM X+5g== 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=CES1BEeBgMRCND+GZUZZzQNjDydwDS9qTfm9UJ48jZA=; b=V0u431MennWmiMU30dpyDjS5rFswGAqi5niYQ8QpA9vISFEZ05d56ONOZ0qV8duniI gcz8fTHdZ0ROtac9TuGqk5zwuAPQwYFsAyEAbO+johHrOxm1ygkMq4MWIgLMOTgfcXc2 UVhoYTOdQ3Eq5d8QAm+iz3+4HLirvBdrfWy+j2OtN6tUTqjuFAEtfwdKDbbQUvKAFSXv WhZzntIJNDJ8z4M6aNnkTTy3P+aVL2PS5FFuq7tu/tCiPkDl7tC1YmwvlIeLbf2TbOPk VojjTsDi7ztliZCTE0oXMhHdsIBfrHb7au/qR90tMFKk85/tc/+6fmOvkbxXHsX2Dzyj T44g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rm6QF9oD; 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 i10si13835160edc.63.2021.03.23.06.48.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Mar 2021 06:48:55 -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=rm6QF9oD; 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 5081B825F4; Tue, 23 Mar 2021 14:48:52 +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="rm6QF9oD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3344C82777; Tue, 23 Mar 2021 14:48:51 +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-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) (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 5995580462 for ; Tue, 23 Mar 2021 14:48:48 +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-pj1-x1031.google.com with SMTP id x7-20020a17090a2b07b02900c0ea793940so12238815pjc.2 for ; Tue, 23 Mar 2021 06:48:48 -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=CES1BEeBgMRCND+GZUZZzQNjDydwDS9qTfm9UJ48jZA=; b=rm6QF9oDg/ytRC0ZvIghNIw2vcg+q9IxBnjrKWawx/fOfqIP4/3gL8VAjD/kfsuamv kwjbvzYj16bqo4mPaDwnx3LH8q8ClxGcGuGhWTwxAcwIKGFLnKBGsdYg8Sc4gaILqfLz UhvO3pJHNZ5hdhP57dadPe2rOXMGcKSJKqYvPWm0VfsxEUNjX1E+flwW/GPGTgsidS6X Q9VJB6FmAZufKFLyL991q7yexILz8VUONOiJe6xlKMN0aWXmVMkcQA5vuxvrxzEGTEFY fUN8WDqcYfGLxbZvZDM6f0DACzKteC5DsXZqtkkaG3ooLnt4yNkpyIQIB7+gMCx3pAbk qWqg== 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=CES1BEeBgMRCND+GZUZZzQNjDydwDS9qTfm9UJ48jZA=; b=s+KulmAOISyzbzuRZuq0sapHo7bwNtogVgre41QZn52+YcFSxqV7NxAyMxEiSgARsT ec+1dd7t2txxHahLxtpUwMSZHBDdx3iIFGkgGeWiateysSi5RH7kchKphKnfONsS566b rvMtordmS7VFYCZdTKmt5E10yzwuC1N/Ws6QRHdS4xMH1fGv3FRmMynVw/EJfwSXyX2G kVBxRFxWJXUqL7eI+s1sjDlPJLs3MxsYXmAKZ9nvTFvRa76cw0JPNDzLdpmjhxfBhUFa mAGsEzHdSBiFCR1yhl/uvD2sZ/jLOP0yev/pIGOTNr6pDFt9T3WIjUZ9Ag4KNYS0rk6Q kAWw== X-Gm-Message-State: AOAM530S5xNfG0vbCvnQ/TIK34VVUGzLfcFOYfNqeld7gOc0vTwDjcwE L1jbJ9leOfp76shhOtqpC5TN06en7IE= X-Received: by 2002:a17:90a:3ec3:: with SMTP id k61mr4530145pjc.125.1616507326477; Tue, 23 Mar 2021 06:48:46 -0700 (PDT) Received: from localhost (host-111-184-129-17.dynamic.kbtelecom.net. [111.184.129.17]) by smtp.gmail.com with ESMTPSA id w203sm17197103pff.59.2021.03.23.06.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Mar 2021 06:48:46 -0700 (PDT) From: Ying-Chun Liu To: u-boot@lists.denx.de Cc: jh80.chung@samsung.com, "Ying-Chun Liu (PaulLiu)" Subject: [PATCH v2 0/2] power: regulator: add driver for ANATOP regulator Date: Tue, 23 Mar 2021 21:48:34 +0800 Message-Id: <20210323134836.99512-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 .../regulator/fsl,anatop-regulator.txt | 45 +++ drivers/power/regulator/Kconfig | 10 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/anatop_regulator.c | 299 ++++++++++++++++++ 4 files changed, 355 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