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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A902C433EF for ; Mon, 4 Apr 2022 10:28:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353761AbiDDKaP (ORCPT ); Mon, 4 Apr 2022 06:30:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245337AbiDDKaP (ORCPT ); Mon, 4 Apr 2022 06:30:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C4DA3CA52 for ; Mon, 4 Apr 2022 03:28:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 41900B8128F for ; Mon, 4 Apr 2022 10:28:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30A6DC34112; Mon, 4 Apr 2022 10:28:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649068096; bh=2wfmRz6l+pG2FSxfZK6bQul1hCfuJBdmCyXl3zxxdWw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fn01HiAMV6x9AWE+aif4fnbjRKyyPkrApAwJEXdzx1mP9aicxEh4S4RClL+19biU7 xUrxYsEWE8MSSB1awWuJZdSzk/JAKcJgjO7Cj1KNxRJDxOW1bK/FL1cUcJFPvxMAST 3PyxZkvONzcqvK+5uuuCLt03RelzV+YVPJJlSer3p7st4Pfrp2XNR1tngL0ABMhLu0 wT577Xu6NBDE7L53fRoWQxu75TyZSNekKRS6Ke+t9B6/llbpYi6g2JrYSYELH2pzf+ 3+wyMc5FwLGB2CWRHRassWzku1MtyzgPq36XNOOU6mhTVLreGE+JgbmJE7YSjLtfPh 91lL2MfkiNnOA== From: Mark Brown To: Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Codrin Ciubotariu , Rob Herring Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v2 2/2] ARM: dts: at91: Describe regulators on at91sam9g20ek Date: Mon, 4 Apr 2022 11:28:06 +0100 Message-Id: <20220404102806.581374-3-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220404102806.581374-1-broonie@kernel.org> References: <20220404102806.581374-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2090; h=from:subject; bh=2wfmRz6l+pG2FSxfZK6bQul1hCfuJBdmCyXl3zxxdWw=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiSsg1ImQngzUfB+hM4dF2QvCdYteOq//mFrAeNXVk Z9i7mUSJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYkrINQAKCRAk1otyXVSH0EwXB/ 0TqxFfYdVTnMw0X4bagcqa3gLbweGDUapSDkWLBZEHfaKmQvEkGrcy07RZRbCM0LkFPQylLBHdpbP1 ebKEKNq3KysQ+5QZz9Xej1rxRNdtufc6lCo8z644XFmKgNj8DBz4r5sfYrGxVlYhxvOSvtOzkcpuyg 85coO5gnJqB01+anNb5D9uAavqumgk3vCXjQQHPW6wPAl0AM8gqO7r6aCVkZ0Ym7rRtYh8npc8wS1l 6zZbK0fEkAYu6Dtw6mMo27ecmYG8zVge7bke4AO7kxZWLW7tcqqUPTSz9ASO66xoB/VRH1oxIm9W80 ZZnyEtc7XA5zil7fMRiw80WKc8AFfn X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The at91sam9g20ek has no software controllable regulators, only some fixed discrete regulators, but they are there and currently the wm8731 driver does try to use them. Show the supplies in the DT and map them for the wm8731 so things start up cleanly. Signed-off-by: Mark Brown --- arch/arm/boot/dts/at91sam9g20ek_common.dtsi | 37 +++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9g20ek_common.dtsi b/arch/arm/boot/dts/at91sam9g20ek_common.dtsi index ca03685f0f08..6978ccb0cb26 100644 --- a/arch/arm/boot/dts/at91sam9g20ek_common.dtsi +++ b/arch/arm/boot/dts/at91sam9g20ek_common.dtsi @@ -214,6 +214,7 @@ i2c-gpio-0 { 24c512@50 { compatible = "atmel,24c512"; reg = <0x50>; + vcc-supply = <®_3v3>; }; wm8731: wm8731@1b { @@ -225,6 +226,11 @@ wm8731: wm8731@1b { clock-names = "mclk"; assigned-clocks = <&pmc PMC_TYPE_SYSTEM 8>; assigned-clock-rates = <12000000>; + + HPVDD-supply = <&vcc_dac>; + AVDD-supply = <&vcc_dac>; + DCVDD-supply = <®_3v3>; + DBVDD-supply = <®_3v3>; }; }; @@ -260,4 +266,35 @@ sound { atmel,ssc-controller = <&ssc0>; atmel,audio-codec = <&wm8731>; }; + + reg_5v: fixedregulator0 { + compatible = "regulator-fixed"; + regulator-name = "5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; + + reg_3v3: fixedregulator1 { + compatible = "regulator-fixed"; + regulator-name = "3V3"; + vin-supply = <®_5v>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + reg_1v: fixedregulator2 { + compatible = "regulator-fixed"; + regulator-name = "1V"; + vin-supply = <®_5v>; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + }; + + vcc_dac: fixedregulator3 { + compatible = "regulator-fixed"; + regulator-name = "VCC_DAC"; + vin-supply = <®_3v3>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; }; -- 2.30.2