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

arm64: dts: ti: k3-am68-sk-base-board: Enable camera peripherals

CSI cameras are controlled using I2C. On AM68 Starter Kit, this is routed
to I2C-1, so enable the instance and the TCA9543 I2C switch on the bus.

AM68 SK schematics: https://www.ti.com/lit/zip/sprr463

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-4-vaishnav.a@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>

authored by

Vaishnav Achath and committed by
Vignesh Raghavendra
5dcc1aaf fa646b70

+50
+50
arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts
··· 169 169 }; 170 170 }; 171 171 }; 172 + 173 + csi_mux: mux-controller { 174 + compatible = "gpio-mux"; 175 + #mux-state-cells = <1>; 176 + mux-gpios = <&exp3 1 GPIO_ACTIVE_HIGH>; 177 + idle-state = <0>; 178 + }; 172 179 }; 173 180 174 181 &main_pmx0 { ··· 190 183 pinctrl-single,pins = < 191 184 J721S2_IOPAD(0x0e0, PIN_INPUT, 0) /* (AH25) I2C0_SCL */ 192 185 J721S2_IOPAD(0x0e4, PIN_INPUT, 0) /* (AE24) I2C0_SDA */ 186 + >; 187 + }; 188 + 189 + main_i2c1_pins_default: main-i2c1-default-pins { 190 + pinctrl-single,pins = < 191 + J721S2_IOPAD(0x0ac, PIN_INPUT, 13) /* (AC25) MCASP0_AXR15.I2C1_SCL */ 192 + J721S2_IOPAD(0x0b0, PIN_INPUT, 13) /* (AD26) MCASP1_AXR3.I2C1_SDA */ 193 193 >; 194 194 }; 195 195 ··· 442 428 "BOARDID_EEPROM_WP", "CAN_STB", " ", 443 429 "GPIO_uSD_PWR_EN", " ", "IO_EXP_PCIe1_M.2_RTSz", 444 430 "IO_EXP_MCU_RGMII_RST#", " ", " ", " ", " "; 431 + }; 432 + }; 433 + 434 + &main_i2c1 { 435 + pinctrl-names = "default"; 436 + pinctrl-0 = <&main_i2c1_pins_default>; 437 + status = "okay"; 438 + 439 + exp3: gpio@20 { 440 + compatible = "ti,tca6408"; 441 + reg = <0x20>; 442 + gpio-controller; 443 + #gpio-cells = <2>; 444 + gpio-line-names = "CSI_VIO_SEL", "CSI_SEL_FPC_EXPn", 445 + "IO_EXP_CSI2_EXP_RSTz","CSI0_B_GPIO1", 446 + "CSI1_B_GPIO1"; 447 + }; 448 + 449 + i2c-mux@70 { 450 + compatible = "nxp,pca9543"; 451 + #address-cells = <1>; 452 + #size-cells = <0>; 453 + reg = <0x70>; 454 + 455 + cam0_i2c: i2c@0 { 456 + #address-cells = <1>; 457 + #size-cells = <0>; 458 + reg = <0>; 459 + }; 460 + 461 + cam1_i2c: i2c@1 { 462 + #address-cells = <1>; 463 + #size-cells = <0>; 464 + reg = <1>; 465 + }; 466 + 445 467 }; 446 468 }; 447 469