Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/ti/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,8 @@ dtb-$(CONFIG_ARCH_K3) += k3-am67a-beagley-ai-uart-ttyama0.dtbo
dtb-$(CONFIG_ARCH_K3) += k3-am67a-beagley-ai-edgeai-apps.dtbo
dtb-$(CONFIG_ARCH_K3) += k3-am67a-t3-gem-o1.dtb
dtb-$(CONFIG_ARCH_K3) += k3-am67a-t3-gem-o1-csi0-imx219.dtbo
DTC_FLAGS_k3-am67a-t3-gem-o1-csi0-arducam-pivariety += -@
dtb-$(CONFIG_ARCH_K3) += k3-am67a-t3-gem-o1-csi0-arducam-pivariety.dtbo
dtb-$(CONFIG_ARCH_K3) += k3-am67a-t3-gem-o1-dsi-rpi-7inch-panel.dtbo
dtb-$(CONFIG_ARCH_K3) += k3-am67a-t3-gem-o1-dsi-waveshare-10-1inch-panel.dtbo
dtb-$(CONFIG_ARCH_K3) += k3-am67a-t3-gem-o1-dsi-waveshare-11-9inch-panel.dtbo
Expand Down
136 changes: 136 additions & 0 deletions arch/arm64/boot/dts/ti/k3-am67a-t3-gem-o1-csi0-arducam-pivariety.dtso
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Arducam Pivariety camera on T3 Gemstone O1 CSI0/J11
*/

/dts-v1/;
/plugin/;

/*
* Yüklendiğinde:
* /proc/device-tree/chosen/overlays/
* altında görünmesini sağlar.
*/
&{/chosen} {
overlays {
k3-am67a-t3-gem-o1-csi0-arducam-pivariety.kernel =
"manual-port";
};
};

/*
* Pivariety sürücüsü 24 MHz xclk bekliyor.
*
* Regulator düğümleri yazılım tarafında sürücünün zorunlu
* VANA, VDIG ve VDDL supply isteklerini karşılar.
* GPIO içermedikleri için fiziksel voltaj üretmez/değiştirmezler.
*/
&{/} {
clk_csi0_pivariety_fixed: csi0-pivariety-xclk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <24000000>;
};

pivariety_vana: pivariety-vana-regulator {
compatible = "regulator-fixed";
regulator-name = "pivariety-vana";
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
regulator-always-on;
regulator-boot-on;
};

pivariety_vdig: pivariety-vdig-regulator {
compatible = "regulator-fixed";
regulator-name = "pivariety-vdig";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
regulator-boot-on;
};

pivariety_vddl: pivariety-vddl-regulator {
compatible = "regulator-fixed";
regulator-name = "pivariety-vddl";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
regulator-always-on;
regulator-boot-on;
};
};

/*
* CSI0/J11 kamera kontrol hattı.
* Gemstone IMX219 referansında CSI0 için main_i2c2 kullanılıyor.
*/
&main_i2c2 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&main_i2c2_pins_default>;
clock-frequency = <400000>;

#address-cells = <1>;
#size-cells = <0>;

arducam_pivariety_0: camera@c {
compatible = "arducam,arducam-pivariety";
reg = <0x0c>;
status = "okay";

clocks = <&clk_csi0_pivariety_fixed>;
clock-names = "xclk";

VANA-supply = <&pivariety_vana>;
VDIG-supply = <&pivariety_vdig>;
VDDL-supply = <&pivariety_vddl>;

rotation = <0>;
orientation = <2>;

port {
csi2_pivariety_out: endpoint {
remote-endpoint =
<&csi2rx0_in_pivariety>;

link-frequencies =
/bits/ 64 <493500000>;

clock-lanes = <0>;
data-lanes = <1 2>;
clock-noncontinuous;
};
};
};
};

/* Gemstone CSI0 Cadence CSI-2 receiver girişi. */
&cdns_csi2rx0 {
ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
status = "okay";

csi2rx0_in_pivariety: endpoint {
remote-endpoint =
<&csi2_pivariety_out>;

bus-type = <4>;
clock-lanes = <0>;
data-lanes = <1 2>;
clock-noncontinuous;
};
};
};
};

&ti_csi2rx0 {
status = "okay";
};

&dphy0 {
status = "okay";
};
9 changes: 9 additions & 0 deletions drivers/media/i2c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ config VIDEO_ALVIUM_CSI2
To compile this driver as a module, choose M here: the
module will be called alvium-csi2.

config VIDEO_ARDUCAM_PIVARIETY
tristate "Arducam Pivariety camera sensor support"
help
This is a Video4Linux2 sensor driver for Arducam
Pivariety camera modules connected through MIPI CSI-2.

To compile this driver as a module, choose M here: the
module will be called arducam-pivariety.

config VIDEO_AR0521
tristate "ON Semiconductor AR0521 sensor support"
help
Expand Down
1 change: 1 addition & 0 deletions drivers/media/i2c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ obj-$(CONFIG_VIDEO_AK7375) += ak7375.o
obj-$(CONFIG_VIDEO_AK881X) += ak881x.o
obj-$(CONFIG_VIDEO_ALVIUM_CSI2) += alvium-csi2.o
obj-$(CONFIG_VIDEO_APTINA_PLL) += aptina-pll.o
obj-$(CONFIG_VIDEO_ARDUCAM_PIVARIETY) += arducam-pivariety.o
obj-$(CONFIG_VIDEO_AR0521) += ar0521.o
obj-$(CONFIG_VIDEO_BT819) += bt819.o
obj-$(CONFIG_VIDEO_BT856) += bt856.o
Expand Down
Loading