Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: ti: k3-j784s4-evm: Enable camera peripherals

CSI cameras are controlled using I2C. On J784S4 EVM, this is routed
to I2C-5, so enable the instance and the TCA6408 GPIO expander
on the bus.

J784S4 EVM schematics: https://www.ti.com/lit/zip/sprr458

Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
Reviewed-by: Jai Luthra <j-luthra@ti.com>
Link: https://lore.kernel.org/r/20240215085518.552692-3-vaishnav.a@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>

authored by

Vaishnav Achath and committed by
Vignesh Raghavendra
fa646b70 f00c6ead

+25
+25
arch/arm64/boot/dts/ti/k3-j784s4-evm.dts
··· 297 297 >; 298 298 }; 299 299 300 + main_i2c5_pins_default: main-i2c5-default-pins { 301 + pinctrl-single,pins = < 302 + J784S4_IOPAD(0x01c, PIN_INPUT, 8) /* (AG34) MCAN15_TX.I2C5_SCL */ 303 + J784S4_IOPAD(0x018, PIN_INPUT, 8) /* (AK36) MCAN14_RX.I2C5_SDA */ 304 + >; 305 + }; 306 + 300 307 main_mmc1_pins_default: main-mmc1-default-pins { 301 308 bootph-all; 302 309 pinctrl-single,pins = < ··· 765 758 "CANUART_MUX1_SEL1", "ENET1_EXP_PWRDN", "ENET1_EXP_RESETZ", 766 759 "ENET1_I2CMUX_SEL", "ENET1_EXP_SPARE2", "ENET2_EXP_RESETZ", 767 760 "USER_INPUT1", "USER_LED1", "USER_LED2"; 761 + }; 762 + }; 763 + 764 + &main_i2c5 { 765 + pinctrl-names = "default"; 766 + pinctrl-0 = <&main_i2c5_pins_default>; 767 + clock-frequency = <400000>; 768 + status = "okay"; 769 + 770 + exp5: gpio@20 { 771 + compatible = "ti,tca6408"; 772 + reg = <0x20>; 773 + gpio-controller; 774 + #gpio-cells = <2>; 775 + gpio-line-names = "CSI2_EXP_RSTZ", "CSI2_EXP_A_GPIO0", 776 + "CSI2_EXP_A_GPIO1", "CSI2_EXP_A_GPIO3", 777 + "CSI2_EXP_B_GPIO1", "CSI2_EXP_B_GPIO2", 778 + "CSI2_EXP_B_GPIO3", "CSI2_EXP_B_GPIO4"; 768 779 }; 769 780 }; 770 781