From patchwork Tue Jun 28 14:06:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1649557 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=HPXZVIdp; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LXRH56VLPz9sFx for ; Wed, 29 Jun 2022 00:06:57 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3F7C183EA0; Tue, 28 Jun 2022 16:06:55 +0200 (CEST) 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="HPXZVIdp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 616398408D; Tue, 28 Jun 2022 16:06:53 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (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 4FDBE8408D for ; Tue, 28 Jun 2022 16:06:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=heiko.thiery@gmail.com Received: by mail-ed1-x52c.google.com with SMTP id fd6so17750522edb.5 for ; Tue, 28 Jun 2022 07:06: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:mime-version :content-transfer-encoding; bh=vzjyDr/k75siZuIvSnFTRHSu8NPQT7rmd0DBl6kzfOs=; b=HPXZVIdpRenqsv19myo7YTHuL015tVAjXzoMijMzuP5jLcWxnVMnmYeoaiXLXhcVFE PLsKH/WYPliquYRrU2AxBi30dYLT/XYiVYCLkIZMNU3e1KMxLvs4fRhgwvlugl5VVG+W VW2OriyDSXYXffSxwaQEMVn6W90HhekgjAmXnTRzuGS4o/2qUZd9NXwpXtalli9KaE++ 9hjAXZjl6irtwinU3gjkxpa+fXzGASpqYUpeJ2ODZIthdn5u0Bo6qs+uUyOjVflDjRiM UwNFQEfMMZLLWGSjVMdxWOrHrKzHcFJ/hdjdae/qz7GQInslRRSSD48kr407ub9CHo4x f1vg== 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:mime-version :content-transfer-encoding; bh=vzjyDr/k75siZuIvSnFTRHSu8NPQT7rmd0DBl6kzfOs=; b=RvyoRXcKaWpkBn2bDBj3NUbQ7RuK/lfEgtJl3K5nlA+XEIN4C0nyfe0JhqBIqDsE+6 NSJbbP66O2RVV8GyQrH2qUEY19VVr0StZpfqv74Ob7Zn1mSDteOwtd6tYdvLujRgWCrp 4I9kcN9hv9mkSKn+hQDkXuCvbKCuKfB+jBWbh+1mC1lynoqOweUtfTlRa2wWaAzYxgZh Bfux1wgUD/pTY3U/GpMZVjgY1c0D3EQXV82WS25R2YV/CxNbC/aIiYGqJbbf8II23GeB 2CNUAI4+fuHYFsqu2RJW91gv2t2mBfq7FBZJMuzqPMC3l0kmdsc8gUcvHUKDhC4Sypqn rwHA== X-Gm-Message-State: AJIora9/2UmxZD7DYrv06N4ZNZ8aZlQ/1Ou1MPIEmU16DCmnYg1Xgxu2 Mv3IgU9fEg1x2WnpPYdOr0pqTNqs7GA1mQ== X-Google-Smtp-Source: AGRyM1sEzSLcfmQzmDupvD74FtgQ/PbrFCFxjY0CKjWR1y/378oNJQjjCamHG4GzD6Z35SVvC6ix7g== X-Received: by 2002:a05:6402:4387:b0:435:94c6:716d with SMTP id o7-20020a056402438700b0043594c6716dmr24140853edc.298.1656425208612; Tue, 28 Jun 2022 07:06:48 -0700 (PDT) Received: from hthiery.fritz.box ([2a02:810b:5a40:2a43:8e16:45ff:fe22:ad85]) by smtp.gmail.com with ESMTPSA id a9-20020a170906244900b00722e50dab2csm6424252ejb.109.2022.06.28.07.06.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 07:06:48 -0700 (PDT) From: Heiko Thiery To: u-boot@lists.denx.de Cc: Jaehoon Chung , Andre Przywara , Samuel Holland , Simon Glass , Kever Yang , Quentin Schulz , Lukasz Majewski , Stephan Gerhold , Fabio Estevam , Marek Vasut , Heiko Thiery , Frieder Schrempf Subject: [PATCH 0/2] pmic: pca9450: Initialization of pmic like done in linux Date: Tue, 28 Jun 2022 16:06:20 +0200 Message-Id: <20220628140621.254550-1-heiko.thiery@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.39 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.103.6 at phobos.denx.de X-Virus-Status: Clean To be able to initialize the PMIC voltages by using the PCA9450 regulator driver we need to properly disable the BUCK1/2/3 preset behavior. Also the RESET_CTRL/WDOG_B_CFG behavior can be done by the PC9450 PMIC driver. With that enabled the PMIC custom configurations done in SPL code for boards that has the PCA9450 implemented can be cleaned. Heiko Thiery (2): pmic: pca9450: enable system reset on WDOG_B assertion pmic: pca9450: clear PRESET_EN bit for BUCK1/2/3 voltage settings drivers/power/pmic/Kconfig | 4 ++++ drivers/power/pmic/pca9450.c | 21 +++++++++++++++++++++ include/power/pca9450.h | 10 ++++++++++ 3 files changed, 35 insertions(+)