From patchwork Wed Jul 24 12:58:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13740935 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EE52FC3DA61 for ; Wed, 24 Jul 2024 13:01:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=2B4DC1tsLJTrSdQrtO6CfWTr0Ph1/cVhkWOkvqs0bZo=; b=3LGjBsv2mcn0oDCPFvF7faiDah MA5FuotzZQPmq1Kd47UH3ArqgUvzeahOLtVLhBqWQrfU6eKoD7kN3Ljuy7hop1IKKZ91d/zkyv61K h+FeRMtt0/iqjRDZqrMXXD1534SwujffquluOr8v3Wb4HD/yoZDF16MntWio5pNElBVAxFNNrxQuX bG8ukseX3Ndhul6aGBAdDQtfbuoOfLfoBXdUknad4MB1xpmrl6gr7/cn8vo7ZRCV8h/kjsnoz0Bp/ 4U4zXEZstl73K6j4va84i6tt5wKI1/duJMjWeLXBE3fcExhdBK000TNgIhv/EUh+vqJEjGVeS2IT9 EnZFuv9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWbbq-0000000FMyq-04yQ; Wed, 24 Jul 2024 13:00:46 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWbaP-0000000FMRP-0miw for linux-arm-kernel@lists.infradead.org; Wed, 24 Jul 2024 12:59:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1721825957; x=1753361957; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2B4DC1tsLJTrSdQrtO6CfWTr0Ph1/cVhkWOkvqs0bZo=; b=h/9HdZfn9nKrR7XKwBKJ/EqBdWV5elLFcOqQAesNDQgfqjJbRlX1BwES /eDmfL9PzyVgRENcENA/hrUqfXLt849SCyn5CI2HYRz2kaHGpDWQs4mcO uiuarVWuo1xqByRY67VilyXZZdnzQi+M/2KvEnTz2MkRbqjo6M6lj+NzV 5u9hanRjjgQ+WvDUtrCSl8b5wW0PwgwCPshi4+7KpYEJ/PGR2vTltkIAV vP8t255lKB/YFo/ZUNrQJAPKBHjewjXFv85iAP5NitG6X/xQk5FvvmUor CEwcaAUMHLOJffMv/dSmDt/lyG43Z1oRppMorFlg51e9KonNDEE0fYFc+ Q==; X-CSE-ConnectionGUID: 0V/QZIuHRrysLrDzyN6Crg== X-CSE-MsgGUID: k77nmjrETxeAif5g0E09Bw== X-IronPort-AV: E=Sophos;i="6.09,232,1716242400"; d="scan'208";a="38058825" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 24 Jul 2024 14:59:16 +0200 X-CheckPoint: {66A0FAA4-12-E6D9A9-F72EA055} X-MAIL-CPID: 4210538D93A811F857648E3E2556405C_4 X-Control-Analysis: str=0001.0A782F26.66A0FAA4.0161,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7B30616380A; Wed, 24 Jul 2024 14:59:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1721825954; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=2B4DC1tsLJTrSdQrtO6CfWTr0Ph1/cVhkWOkvqs0bZo=; b=QYP9aik+OjFbFan2DJivviD41CQuqm0nWxsCcC+MtS7oF/2+aFLVilw5CSBiER32iTvUbx ThnFmm8FU61qIJPmywk5cFdszdk6MKubHbIKauyCnBX/nVFcFEad3FNYJwcwjS2+eQZD8J jer3UqU10A0ePdM1QJxTgAsx2CwdUtLbjmCzCe8gC4ARSQjLLCcTetC7J/mSw9WwUlevcq BPzPwBCsdNPumQUfTDP6U0qxHx5nqH17YsZCYrlojgrOnUF1mMuKv1lhbwsQVcw2xReDbE WHCCUFm5t+TfWkuEfw1p80NwNbEzgUz8LRG7HZhyfjt3URcNIfblplGm4YHfyg== From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Alexander Stein Cc: linux@ew.tq-group.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/14] arm64: dts: freescale: imx93-tqma9352: Add PMIC node Date: Wed, 24 Jul 2024 14:58:50 +0200 Message-Id: <20240724125901.1391698-4-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240724125901.1391698-1-alexander.stein@ew.tq-group.com> References: <20240724125901.1391698-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240724_055917_545708_C0E632B5 X-CRM114-Status: GOOD ( 11.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org With driver support in place add the PMIC node and remove the fixed-regulators for rails provided by PMIC. Signed-off-by: Alexander Stein Reviewed-by: Peng Fan --- .../boot/dts/freescale/imx93-tqma9352.dtsi | 113 ++++++++++++++---- 1 file changed, 92 insertions(+), 21 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx93-tqma9352.dtsi b/arch/arm64/boot/dts/freescale/imx93-tqma9352.dtsi index d07eca6526db..ddb4f452ba2d 100644 --- a/arch/arm64/boot/dts/freescale/imx93-tqma9352.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93-tqma9352.dtsi @@ -25,20 +25,6 @@ linux,cma { }; }; - reg_v1v8: regulator-v1v8 { - compatible = "regulator-fixed"; - regulator-name = "V_1V8"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; - - reg_v3v3: regulator-v3v3 { - compatible = "regulator-fixed"; - regulator-name = "V_3V3"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - }; - /* SD2 RST# via PMIC SW_EN */ reg_usdhc2_vmmc: regulator-usdhc2 { compatible = "regulator-fixed"; @@ -47,14 +33,14 @@ reg_usdhc2_vmmc: regulator-usdhc2 { regulator-name = "VSD_3V3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - vin-supply = <®_v3v3>; + vin-supply = <&buck4>; gpio = <&gpio3 7 GPIO_ACTIVE_HIGH>; enable-active-high; }; }; &adc1 { - vref-supply = <®_v1v8>; + vref-supply = <&buck5>; }; &flexspi1 { @@ -105,6 +91,91 @@ se97_som: temperature-sensor@1b { reg = <0x1b>; }; + pca9451a: pmic@25 { + compatible = "nxp,pca9451a"; + reg = <0x25>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pca9451>; + interrupt-parent = <&gpio1>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + + regulators { + /* V_0V8_SOC - hw developer guide: 0.75 .. 0.9 */ + buck1: BUCK1 { + regulator-name = "BUCK1"; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <900000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <3125>; + }; + + /* V_DDRQ - 1.1 LPDDR4 or 0.6 LPDDR4X */ + buck2: BUCK2 { + regulator-name = "BUCK2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1100000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <3125>; + }; + + /* V_3V3 - EEPROM, RTC, ... */ + buck4: BUCK4{ + regulator-name = "BUCK4"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + /* V_1V8 - SPI NOR, eMMC, RAM VDD1... */ + buck5: BUCK5{ + regulator-name = "BUCK5"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + /* V_1V1 - RAM VDD2*/ + buck6: BUCK6 { + regulator-name = "BUCK6"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-boot-on; + regulator-always-on; + }; + + /* V_1V8_BBSM, fix 1.8 */ + ldo1: LDO1 { + regulator-name = "LDO1"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + /* V_0V8_ANA */ + ldo4: LDO4 { + regulator-name = "LDO4"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + regulator-boot-on; + regulator-always-on; + }; + + /* V_SD2 - 3.3/1.8V USDHC2 io Voltage */ + ldo5: LDO5 { + regulator-name = "LDO5"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; + pcf85063: rtc@51 { compatible = "nxp,pcf85063a"; reg = <0x51>; @@ -116,28 +187,28 @@ eeprom0: eeprom@53 { reg = <0x53>; pagesize = <16>; read-only; - vcc-supply = <®_v3v3>; + vcc-supply = <&buck4>; }; eeprom1: eeprom@57 { compatible = "atmel,24c64"; reg = <0x57>; pagesize = <32>; - vcc-supply = <®_v3v3>; + vcc-supply = <&buck4>; }; /* protectable identification memory (part of M24C64-D @57) */ eeprom@5f { compatible = "atmel,24c64d-wl"; reg = <0x5f>; - vcc-supply = <®_v3v3>; + vcc-supply = <&buck4>; }; imu@6a { compatible = "st,ism330dhcx"; reg = <0x6a>; - vdd-supply = <®_v3v3>; - vddio-supply = <®_v3v3>; + vdd-supply = <&buck4>; + vddio-supply = <&buck4>; }; };