Hello again,
Sorry for the late response.
Actually I couldn’t figured out how to use dts file that spreadsheet created. I have my custom dtb file with other modifications and I load it to TX2 using extlinux. In dts file we created with spreadsheet, there is only “pinmux@2430000” node present. So I decompile my custom dtb to dts file and add my desired pin block to “pinmux@2430000” node, under the common block.
To explain it better;
this is what I want to add to pinmux:
uart7_tx_pw6 {
nvidia,pins = "uart7_tx_pw6";
nvidia,function = "rsvd1";
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_DISABLE>;
nvidia,lpdr = <TEGRA_PIN_DISABLE>;
};
I want this pin “uart7_tx_pw6” to be out and drive 1 at the startup.
This pinmux node below is from my active custom dtb file. I added the block above to this node as this:
pinmux@2430000 {
compatible = "nvidia,tegra186-pinmux";
status = "okay";
phandle = <0x9e>;
reg = <0x0 0x2430000 0x0 0x15000 0x0 0xc300000 0x0 0x4000>;
pinctrl-0 = <0x1e>;
#gpio-range-cells = <0x3>;
linux,phandle = <0x9e>;
pinctrl-names = "default";
vbus_en1_oc_passthrough {
phandle = <0x8e>;
linux,phandle = <0x8e>;
usb_vbus_en1_pl5 {
nvidia,enable-input = <0x1>;
nvidia,pins = "usb_vbus_en1_pl5";
nvidia,tristate = <0x0>;
nvidia,io-high-voltage = <0x1>;
nvidia,function = "usb";
};
};
…
common {
phandle = <0x1e>;
linux,phandle = <0x1e>;
gpio_edp2_pp5 {
nvidia,enable-input = <0x1>;
nvidia,pins = "gpio_edp2_pp5";
nvidia,tristate = <0x1>;
status = "okay";
nvidia,pull = <0x2>;
};
#This is the block I added manually
uart7_tx_pw6 {
nvidia,enable-input = <0x0>;
nvidia,pins = "uart7_tx_pw6";
nvidia,lpdr = <0x0>;
nvidia,tristate = <0x0>;
nvidia,function = "rsvd1";
nvidia,pull = <0x0>;
};
#
gpio_edp3_pp6 {
nvidia,enable-input = <0x0>;
nvidia,pins = "gpio_edp3_pp6";
nvidia,tristate = <0x0>;
status = "okay";
nvidia,pull = <0x0>;
};
};
…
};
I rebuilt dtb from dts with the modification above. Load it on TX2 but I couldn’t get my pin to start as out and drive 1.
Is this the correct way to add my pin configuration? How can I correct this?