Skip to content

Instantly share code, notes, and snippets.

@kraln
Created July 28, 2024 12:17
Show Gist options
  • Select an option

  • Save kraln/6c9a13076c0950b82eecef7cf6984d4f to your computer and use it in GitHub Desktop.

Select an option

Save kraln/6c9a13076c0950b82eecef7cf6984d4f to your computer and use it in GitHub Desktop.
$ cat k3-am67a-beagley-ai-csi0-imx290.dts
// SPDX-License-Identifier: GPL-2.0
/*
* DT Overlay for Sony IMX290 (and IMX462) on CSI0 J722S BeagleY-AI board.
*
* Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/
*
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
/*
* Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/
*/
&{/chosen} {
overlays {
k3-am67a-beagley-ai-csi0-imx290.kernel = __TIMESTAMP__;
};
};
&{/} {
clk_csi0_imx290_fixed: csi0-imx290-xclk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <74250000>; /* some modules are clocked at half this */
};
};
&mcu_gpio0 {
status = "okay";
};
&main_i2c2 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&main_i2c2_pins_default>;
clock-frequency = <400000>;
#address-cells = <1>;
#size-cells = <0>;
imx290_0: sensor@1a {
compatible = "sony,imx290";
reg = <0x1a>;
clocks = <&clk_csi0_imx290_fixed>;
clock-names = "xclk";
pinctrl-names = "default";
pinctrl-0 = <&csi0_gpio_pins_default>;
reset-gpios = <&mcu_gpio0 15 GPIO_ACTIVE_HIGH>;
port {
csi2_cam0: endpoint {
remote-endpoint = <&csi2rx0_in_sensor>;
link-frequencies = /bits/ 64 <445500000 297000000>;
clock-lanes = <0>;
data-lanes = <1 2>;
};
};
};
};
&cdns_csi2rx0 {
ports {
#address-cells = <1>;
#size-cells = <0>;
csi0_port0: port@0 {
reg = <0>;
status = "okay";
csi2rx0_in_sensor: endpoint {
remote-endpoint = <&csi2_cam0>;
bus-type = <4>; /* CSI2 DPHY */
clock-lanes = <0>;
data-lanes = <1 2>;
};
};
};
};
&ti_csi2rx0 {
status = "okay";
};
&dphy0 {
status = "okay";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment