From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4D000C433EF for ; Fri, 25 Feb 2022 12:21:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D190E83CD8; Fri, 25 Feb 2022 13:21: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=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="p8RUlnef"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DE42083C34; Fri, 25 Feb 2022 12:18:44 +0100 (CET) Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (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 D56E083C81 for ; Fri, 25 Feb 2022 12:18:40 +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=romain.naour@gmail.com Received: by mail-wm1-x32b.google.com with SMTP id n13-20020a05600c3b8d00b0037bff8a24ebso1462207wms.4 for ; Fri, 25 Feb 2022 03:18:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QlVkRPqClyWhXAl4MOmrTKi/GadLUQzH5kmj/ew8XgI=; b=p8RUlnefY1JOUFLSDZMiN+r0bqpaDZ/CK+Yodai0hTLQbFkRA2Kh6w37G4oH2Li91U Z3Q3vo4WZnJ8ooINTQLhdtLHIEima1UxajIfL0XtiVYt8E8HMymIg+KiiH7VgTehQLjw anHbHAAyKCokZ4twtalwl0lFDwnyQ5IdinRMTHn28YIRZtgh6pdG7G/6FuHhnkXgpc3P 2U3+64ZMAtcKqNKzg1VK8wBPT+8KH+13EAx2tKacRY4+HYAR8N962Rh6OboLr505wMEO FKXcCNhHlVKE35sOTrICP7Dyqa3ZRjk58sIoB1KWtsN6dg92uhYep5YdtwbxIvdfQdW2 //MA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=QlVkRPqClyWhXAl4MOmrTKi/GadLUQzH5kmj/ew8XgI=; b=YiW+SsKTldi5wS73dnvP8MGqeFw1arFztOTdACHD8EO1Tge4ztG72+s9luSK3SBz7x aqT88FHNXTqK3qaOF3gaM64GyISVWAYibeYhwzlGrtDp36sPe2zvyP6pAwiDNFMhGsVP Q1lr/9na6k0b+PDA5ZJJmeupK6Gj6iemXxcpHnuFVnLT8UtbiaX+Lk4e0Uf+Ds1PAz5+ bgsx9NzOaw2ptDl1UJqKu/iywXebdj6Cs3SvtlVaROqm+zYlWuLTL4Nr/kx1yr2a9y0W EBNbwIS3pQ2txbZSAbiT5fMVrQ3pR4eOar0UZSAClrF7kfFLB4xZryTL3Qs5AfMT32Pa ENsg== X-Gm-Message-State: AOAM530uHQriGkvXao5SNZ3W33b6HfvEZ5JbbF4rTDKHIIxCRae6ZcmN fD/3LXEpZR3yaHtErIl7e5fgpjR6D0o= X-Google-Smtp-Source: ABdhPJyAwlozX9IZbYtDv/wCFGg3zXNiFPI6HPHI8GMHuuu0IKRFSwlRsvuw3zFYASx+23l56ZtfnA== X-Received: by 2002:a7b:c24e:0:b0:380:e16c:a040 with SMTP id b14-20020a7bc24e000000b00380e16ca040mr2231732wmj.186.1645787920492; Fri, 25 Feb 2022 03:18:40 -0800 (PST) Received: from atlas.home (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id m11-20020adffe4b000000b001edbdaac445sm2546713wrs.90.2022.02.25.03.18.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 03:18:39 -0800 (PST) From: Romain Naour To: u-boot@lists.denx.de Cc: Romain Naour Subject: [PATCH 4/4] ARM: omap3_beagle: Enable DM_PMIC and DM_REGULATOR Date: Fri, 25 Feb 2022 12:18:34 +0100 Message-Id: <20220225111834.231005-4-romain.naour@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220225111834.231005-1-romain.naour@gmail.com> References: <20220225111834.231005-1-romain.naour@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 25 Feb 2022 13:21:06 +0100 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.5 at phobos.denx.de X-Virus-Status: Clean Enabling DM_PMIC, DM_REGULATOR_FIXED, and DM_REGULATOR_GPIO gives us the ability to better monitor voltages and enable hardware through the device tree. The TL4030 (TPS65950) is not yet migrated to DM, so this patch only enables the fixed and GPIO controlled regulators. Based on commit [1][2]. [1] a40d3cc845756e1e38af5ac31986539417e64abb [2] 2448e42d73fb91e4b56bb41b2677e18ab99a6c83 Signed-off-by: Romain Naour --- configs/omap3_beagle_defconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configs/omap3_beagle_defconfig b/configs/omap3_beagle_defconfig index a9b2c15cee..c7111f4e63 100644 --- a/configs/omap3_beagle_defconfig +++ b/configs/omap3_beagle_defconfig @@ -85,6 +85,11 @@ CONFIG_SYS_NAND_U_BOOT_OFFS=0x80000 CONFIG_DM_ETH=y CONFIG_PINCTRL=y CONFIG_PINCTRL_SINGLE=y +CONFIG_DM_PMIC=y +# CONFIG_SPL_PMIC_CHILDREN is not set +CONFIG_DM_REGULATOR=y +CONFIG_DM_REGULATOR_FIXED=y +CONFIG_DM_REGULATOR_GPIO=y CONFIG_SPI=y CONFIG_DM_SPI=y CONFIG_OMAP3_SPI=y -- 2.35.1