I use customer products SOM Nano module with my own carrier board,
L4T is R32.2.1,sources and rootfs are all the same.
I’m not using camera,so i extended some camera IO for other usage.
When i use the default tegra210-p3448-0002-p3449-0000-b00.dts, some dts node’status is “okay”.
And I get info by cmd “cat /sys/kernel/debug/gpio”:
gpiochip0: GPIOs 0-255, parent: platform/6000d000.gpio, tegra-gpio:
gpio-2 ( |pcie_wake ) in hi
gpio-6 ( |system-suspend-gpio ) out hi
gpio-64 ( |i2c-mux-gpio ) out hi
gpio-65 ( |? ) out hi
gpio-151 ( |cam_reset_gpio ) out lo
gpio-152 ( |cam_reset_gpio ) out lo
gpio-189 ( |Power ) in hi IRQ
gpio-190 ( |Forcerecovery ) in hi IRQ
gpio-202 ( |pwm-fan-tach ) in hi IRQ
gpio-203 ( |vdd-3v3-sd ) out lo
gpio-225 ( |hdmi2.0_hpd ) in hi IRQ
gpio-228 ( |extcon:extcon@1 ) in lo IRQ
gpio-231 ( |? ) out hi
gpiochip1: GPIOs 504-511, parent: platform/max77620-gpio, max77620-gpio, can sleep:
gpio-505 ( |spmic-default-output) out hi
gpio-507 ( |vdd-3v3-sys ) out hi
gpio-510 ( |enable ) out lo
gpio-511 ( |avdd-io-edp-1v05 ) out lo
“gpio-64” -> “i2c-mux-gpio”,“gpio-151” -> “cam_reset_gpio” are used.
“gpio-65” is a led which is not my usage.
I can confirm that the following node has been disabled.
tegra-camera-platform {
compatible = "nvidia, tegra-camera-platform";
status = "disabled";
};
cam_i2cmux {
compatible = "i2c-mux-gpio";
#address-cells = <0x1>;
#size-cells = <0x0>;
mux-gpios = <0x56 0x40 0x0>;
i2c-parent = <0xa8>;
status = "disabled";
};
camera-control-output-low {
gpio-hog;
output-low;
gpios = <0x97 0x0 0x98 0x0>;
label = "cam1-pwdn", "cam2-pwdn";
status = "disabled";
};
leds {
compatible = "gpio-leds";
status = "disabled";
linux,phandle = <0xc7>;
phandle = <0xc7>;
pwr {
gpios = <0x56 0x41 0x0>;
default-state = "on";
linux,default-trigger = "system-throttle";
};
};
I want to use gpio-64,gpio-65,gpio-151,gpio-152 as general gpios, and I do not want to modify the common dts “tegra210-porg-plugin-manager.dtsi”.
How to implement the above modification by just modifying the top dts file “tegra210-p3448-0002-p3449-0000-b00.dts” ???