HI Sir/Madam,
I look into the documents, the sd card write protection pin is GPIO29 and is configured to “SDMMC1_WP”.
Since Xavier kit just only has microSD without WP pin, just want to make sure does SDCARD_WP enable by default configuration?
Or which device tree or pinmux settings I need to check?
PS: Our custom board has SD card with WP pin.
Thank you
Best Regards,
Jason
I think you need to add “wp-gpios” in device tree.
You could refer to “tegra186-quill-common.dtsi” ->sdhci@3400000
Hi WayneWWW,
Thank you, WayneWWW.
One more question, how do I verify that pinmuxs of GPIO29(soc_gpio31_ps6) is to be set to “SDMMC1_WP” and GPIO02(soc_gpio11_pg7) is to be set to “SDMMC1_CD”
I have ckecked the following two cfg but two different results. Which one is correct and which one I need to modify?
tegra19x-mb1-pinmux-p2888-0000-p2822-0000.cfg
pinmux.0x02431010 = 0x00000458; # soc_gpio31_ps6: pull-up, tristate-enable, input-enable
pinmux.0x02434088 = 0x00000459; # soc_gpio11_pg7: sdmmc1, pull-up, tristate-enable, input-enable
tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg
pinmux.0x02431010 = 0x00000459; # soc_gpio31_ps6: sdmmc1, pull-up, tristate-enable, input-enable, lpdr-disable
pinmux.0x02434088 = 0x00000050; # soc_gpio11_pg7: rsvd0, tristate-enable, input-enable, lpdr-disable
Thanks
The flash config would tell you which file it is using.
/Linux_for_Tegra$ cat jetson-xavier.conf
#!/bin/bash
# Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of NVIDIA CORPORATION nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# p2972-0000-devkit.conf: configuration for T194 Silicon
source "${LDK_DIR}/p2972-0000.conf.common";
<b>PINMUX_CONFIG="tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg";</b>