HI sir/Madam,
Since using spreadsheet is not working, I’m trying to configure pinmux in dts.
For example, I want to config B20 to GPIO/output/low.
I put the following codes in tegra186-quill-p3310-1000-c03-00-base.dts and it will be compiler to tegra186-quill-p3310-1000-c03-00-base.dtb but this pin is still input. Is there anything wrong?
pinmux@2430000 {
common {
gpio_wan4_pc0 {
nvidia,pins = "gpio_wan4_pc0";
nvidia,function = "gpio";
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_DISABLE>;
nvidia,lpdr = <TEGRA_PIN_DISABLE>;
};
};
};
I also want to control “SDCARD_PWR_EN” (H16) GPIO#446. (The pin is set to GPIO in spreadsheet)
But I got “bash: echo: write error: Device or resource busy” after “echo 446 > /sys/class/gpio/export”
Thanks.