@@ -0,0 +1,81 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * edgeai-apps: device-tree overlay + * + * Copyright (C) 2019 - 2021 Texas Instruments Incorporated - http://www.ti.com/ + */ + +#include "k3-j721e-rtos-memory-map.dtsi" +#include +#include +#include + +&main_i2c3 { + status = "disabled"; +}; + +&serdes_wiz4 { + status = "disabled"; +}; + +&mhdp { + status = "disabled"; +}; + +&dss { + status = "disabled"; +}; + +// &main_i2c1 { +// status = "disabled"; +// }; + +&ti_csi2rx0 { + status = "disabled"; +}; + +&ti_csi2rx1 { + status = "disabled"; +}; + + +&main_pmx0 { + main_rpi_cam0_reset_pins_default: main-rpi-cam0-reset-pins-default { + pinctrl-single,pins = < + J721E_IOPAD(0x1D4, PIN_OUTPUT, 7) /* (Y3) SPI1_CS0 */ + >; + }; + + main_rpi_cam1_reset_pins_default: main-rpi-cam1-reset-pins-default { + pinctrl-single,pins = < + J721E_IOPAD(0x1E0, PIN_OUTPUT, 7) /* (Y5) SPI1_D0 */ + >; + }; + + main_csi_mux_sel2_pins_default: main-csi-mux-sel2-pins-default { + pinctrl-single,pins = < + J721E_IOPAD(0x164, PIN_OUTPUT, 7) /* (V29) RGMII5_TD2 */ + >; + }; +}; + +&main_gpio0 { + pinctrl-names = "default"; + pinctrl-0 = <&main_csi_mux_sel2_pins_default>; + + csi-mux-hog { + /* CSI_MUX_SEL_2 */ + gpio-hog; + gpios = <88 GPIO_ACTIVE_HIGH>; + output-low; + line-name = "CSI_MUX_SEL_2"; + }; + + csi-rstz { + /* CSI_MUX_SEL_2 */ + gpio-hog; + gpios = <78 GPIO_ACTIVE_LOW>; + output-high; + line-name = "CSI_CAM_RSTz"; + }; +};