forked from radxa-pkg/radxa-overlays
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4266bf9
commit abd431e
Showing
3 changed files
with
184 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
183 changes: 183 additions & 0 deletions
183
arch/arm64/boot/dts/rockchip/overlays/radxa-zero3-arducam-pivariety-imx462.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
/* | ||
* Copyright (C) 2024 Raphael from OpenHD | ||
* | ||
* This is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/pinctrl/rockchip.h> | ||
#include <dt-bindings/power/rk3568-power.h> | ||
|
||
|
||
/ { | ||
metadata { | ||
title = "Enable Arducam Pivariety on Radxa Zero3"; | ||
compatible = "radxa,zero3"; | ||
category = "camera"; | ||
exclusive = "csi2_dphy0"; | ||
description = "Enable Arducam Pivariety on Radxa Zero3"; | ||
}; | ||
|
||
fragment@0 { | ||
target-path = "/"; | ||
|
||
__overlay__ { | ||
clk_cam_24m: external-camera-clock-24m { | ||
status = "okay"; | ||
compatible = "fixed-clock"; | ||
clock-frequency = <24000000>; | ||
clock-output-names = "clk_cam_24m"; | ||
#clock-cells = <0>; | ||
}; | ||
|
||
camera_pwdn_gpio: camera-pwdn-gpio { | ||
status = "okay"; | ||
compatible = "regulator-fixed"; | ||
regulator-name = "camera_pwdn_gpio"; | ||
regulator-always-on; | ||
regulator-boot-on; | ||
enable-active-high; | ||
gpio = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&i2c2>; | ||
clock-frequency = <10000>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&i2c2m1_xfer>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
arducam_pivariety: arducam-pivariety@c { | ||
compatible = "arducam,arducam-pivariety"; | ||
reg = <0x0c>; | ||
clocks = <&clk_cam_24m>; | ||
clock-names = "xclk"; | ||
rockchip,camera-module-index = <0>; | ||
rockchip,camera-module-facing = "back"; | ||
rockchip,camera-module-name = "IMX462"; | ||
rockchip,camera-module-lens-name = "default"; | ||
|
||
port { | ||
pivariety_out0: endpoint { | ||
remote-endpoint = <&mipi_in_ucam0>; | ||
data-lanes = <1 2>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&csi2_dphy_hw>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@3 { | ||
target = <&csi2_dphy0>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
|
||
ports { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
port@0 { | ||
reg = <0>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
mipi_in_ucam0: endpoint@1 { | ||
reg = <1>; | ||
remote-endpoint = <&pivariety_out0>; | ||
data-lanes = <1 2>; | ||
}; | ||
}; | ||
|
||
port@1 { | ||
reg = <1>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
dphy0_out: endpoint@1 { | ||
reg = <1>; | ||
remote-endpoint = <&isp0_in>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@4 { | ||
target = <&rkisp_vir0>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
|
||
port { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
isp0_in: endpoint@0 { | ||
reg = <0>; | ||
remote-endpoint = <&dphy0_out>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@5 { | ||
target = <&rkisp>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@6 { | ||
target = <&rkisp_mmu>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@7 { | ||
target = <&rkcif_mmu>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@8 { | ||
target = <&rkcif>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
}; |
130 changes: 0 additions & 130 deletions
130
arch/arm64/boot/dts/rockchip/overlays/radxa-zero3-arducam-pivariety.dts
This file was deleted.
Oops, something went wrong.