From: Shawn Guo <shawnguo2@yeah.net>
To: Alexander Stein <alexander.stein@ew.tq-group.com>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
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: Re: [PATCH 03/14] arm64: dts: freescale: imx93-tqma9352: Add PMIC node
Date: Tue, 13 Aug 2024 09:55:37 +0800 [thread overview]
Message-ID: <Zrq9GSPJmXFQxL94@dragon> (raw)
In-Reply-To: <20240724125901.1391698-4-alexander.stein@ew.tq-group.com>
On Wed, Jul 24, 2024 at 02:58:50PM +0200, Alexander Stein wrote:
> With driver support in place add the PMIC node and remove the
> fixed-regulators for rails provided by PMIC.
>
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> .../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{
Missing space before braces.
> + 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{
Ditto
Shawn
> + 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>;
> };
> };
>
> --
> 2.34.1
>
next prev parent reply other threads:[~2024-08-13 1:56 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-24 12:58 [PATCH 00/14] TQMa93xx improvements Alexander Stein
2024-07-24 12:58 ` [PATCH 01/14] arm64: dts: freescale: imx93-tqma9352: fix CMA alloc-ranges Alexander Stein
2024-08-01 2:54 ` Peng Fan
2024-08-13 1:45 ` Shawn Guo
2024-07-24 12:58 ` [PATCH 02/14] arm64: dts: freescale: imx93-tqma9352: improve pad configuration Alexander Stein
2024-08-13 1:53 ` Shawn Guo
2024-07-24 12:58 ` [PATCH 03/14] arm64: dts: freescale: imx93-tqma9352: Add PMIC node Alexander Stein
2024-08-01 2:58 ` Peng Fan
2024-08-13 1:55 ` Shawn Guo [this message]
2024-07-24 12:58 ` [PATCH 04/14] arm64: dts: freescale: imx93-tqma9352: add eMMC regulators Alexander Stein
2024-08-01 2:59 ` Peng Fan
2024-07-24 12:58 ` [PATCH 05/14] arm64: dts: freescale: imx93-tqma9352-mba93xxla: fix typo Alexander Stein
2024-08-13 1:58 ` Shawn Guo
2024-07-24 12:58 ` [PATCH 06/14] arm64: dts: freescale: imx93-tqma9352-mba93xxla: improve pad configuration Alexander Stein
2024-08-01 3:04 ` Peng Fan
2024-08-19 11:34 ` Alexander Stein
2024-07-24 12:58 ` [PATCH 07/14] arm64: dts: freescale: imx93-tqma9352-mba93xxla: add irq for temp sensor Alexander Stein
2024-08-01 3:06 ` Peng Fan
2024-07-24 12:58 ` [PATCH 08/14] arm64: dts: freescale: imx93-tqma9352-mba91xxla: Add ethernet aliases Alexander Stein
2024-08-01 3:06 ` Peng Fan
2024-07-24 12:58 ` [PATCH 09/14] arm64: dts: freescale: imx93-tqma9352-mba93xxla: add GPIO line names Alexander Stein
2024-08-01 3:07 ` Peng Fan
2024-07-24 12:58 ` [PATCH 10/14] arm64: dts: freescale: imx93-tqma9352-mba93xxca: improve pad configuration Alexander Stein
2024-08-01 3:09 ` Peng Fan
2024-07-24 12:58 ` [PATCH 11/14] arm64: dts: freescale: imx93-tqma9352-mba93xxca: add RTC / temp sensor IRQ Alexander Stein
2024-07-24 12:58 ` [PATCH 12/14] arm64: dts: freescale: imx93-tqma9352-mba91xxca: Add ethernet aliases Alexander Stein
2024-07-24 12:59 ` [PATCH 13/14] arm64: dts: freescale: imx93-tqma9352-mba93xxca: add GPIO line names Alexander Stein
2024-07-24 12:59 ` [PATCH 14/14] arm64: dts: freescale: imx93-tqma9352: set SION for cmd and data pad of USDHC Alexander Stein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zrq9GSPJmXFQxL94@dragon \
--to=shawnguo2@yeah.net \
--cc=alexander.stein@ew.tq-group.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@ew.tq-group.com \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).