From 420d404ff074251c5881d95e4f50e3b4712a125c Mon Sep 17 00:00:00 2001 From: Brad Griffis Date: Wed, 8 Nov 2023 13:59:31 +0000 Subject: [PATCH] nv-public: SD card fixes for Concord and Nano The power supply info is missing for the SD card interface: 1. SD card for Concord is implemented at the board level, not in the module itself. Accordingly the updates are in the board files (p3737) rather than the module (p3701). 2. SD card for Orin Nano is implemented at the module level. Accordingly the updates are in the modules files (p3767) rather than the board files (p3768). Bug 4307643 Change-Id: Id2bc9071387b3a16141db68076d29f0158f82cce Signed-off-by: Brad Griffis Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3013069 (cherry picked from commit 71752edda2c6bd498d893e5ba5e63d159a002b13) Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3016036 Reviewed-by: Amulya Yarlagadda Tested-by: Amulya Yarlagadda --- nv-platform/tegra234-p3737-0000.dtsi | 13 +++++++++++++ nv-platform/tegra234-p3767-0000.dtsi | 10 ++++++++++ 2 files changed, 23 insertions(+) diff --git a/nv-platform/tegra234-p3737-0000.dtsi b/nv-platform/tegra234-p3737-0000.dtsi index 22306e8..46c5d0e 100644 --- a/nv-platform/tegra234-p3737-0000.dtsi +++ b/nv-platform/tegra234-p3737-0000.dtsi @@ -29,6 +29,10 @@ }; }; + mmc@3400000 { + vmmc-supply = <&vdd_3v3_sd>; + }; + padctl@3520000 { ports { usb2-0 { @@ -122,4 +126,13 @@ }; }; }; + + vdd_3v3_sd: regulator-vdd-3v3-sd { + compatible = "regulator-fixed"; + regulator-name = "VDD_3V3_SD"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio TEGRA234_MAIN_GPIO(A, 0) GPIO_ACTIVE_HIGH>; + enable-active-high; + }; }; diff --git a/nv-platform/tegra234-p3767-0000.dtsi b/nv-platform/tegra234-p3767-0000.dtsi index acf02d8..ccbb243 100644 --- a/nv-platform/tegra234-p3767-0000.dtsi +++ b/nv-platform/tegra234-p3767-0000.dtsi @@ -13,6 +13,7 @@ nvidia,cd-wakeup-capable; nvidia,boot-detect-delay = <1000>; cd-gpios = <&gpio TEGRA234_MAIN_GPIO(G, 7) GPIO_ACTIVE_LOW>; + vmmc-supply = <&vdd_3v3_sd>; }; gpu@17000000 { @@ -70,4 +71,13 @@ status = "okay"; }; }; + + vdd_3v3_sd: regulator-vdd-3v3-sd { + compatible = "regulator-fixed"; + regulator-name = "VDD_3V3_SD"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio TEGRA234_MAIN_GPIO(A, 0) GPIO_ACTIVE_HIGH>; + enable-active-high; + }; };