-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dtoverlays: Add an overlay for the Infineon IRS1125
The Infineon IRS1125 is a CSI2 time of flight depth sensor which has a suitable V4L2 subdevice driver. Add an overlay for configuring it. Signed-off-by: Markus Proeller <markus.proeller@pieye.org>
- Loading branch information
1 parent
e0e5443
commit 6018f7e
Showing
3 changed files
with
110 additions
and
0 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
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
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,97 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
// Definitions for IRS1125 camera module on VC I2C bus | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/{ | ||
compatible = "brcm,bcm2835"; | ||
|
||
fragment@0 { | ||
target = <&i2c_vc>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "okay"; | ||
|
||
irs1125: irs1125@3D { | ||
compatible = "infineon,irs1125"; | ||
reg = <0x3D>; | ||
status = "okay"; | ||
|
||
pwdn-gpios = <&gpio 5 0>; | ||
clocks = <&irs1125_clk>; | ||
|
||
irs1125_clk: camera-clk { | ||
compatible = "fixed-clock"; | ||
#clock-cells = <0>; | ||
clock-frequency = <26000000>; | ||
}; | ||
|
||
port { | ||
irs1125_0: endpoint { | ||
remote-endpoint = <&csi1_ep>; | ||
clock-lanes = <0>; | ||
data-lanes = <1 2>; | ||
clock-noncontinuous; | ||
link-frequencies = | ||
/bits/ 64 <297000000>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&csi1>; | ||
__overlay__ { | ||
status = "okay"; | ||
|
||
port { | ||
csi1_ep: endpoint { | ||
remote-endpoint = <&irs1125_0>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&i2c0_pins>; | ||
__dormant__ { | ||
brcm,pins = <28 29>; | ||
brcm,function = <4>; /* alt0 */ | ||
}; | ||
}; | ||
fragment@3 { | ||
target = <&i2c0_pins>; | ||
__overlay__ { | ||
brcm,pins = <44 45>; | ||
brcm,function = <5>; /* alt1 */ | ||
}; | ||
}; | ||
fragment@4 { | ||
target = <&i2c0_pins>; | ||
__dormant__ { | ||
brcm,pins = <0 1>; | ||
brcm,function = <4>; /* alt0 */ | ||
}; | ||
}; | ||
fragment@5 { | ||
target = <&i2c_vc>; | ||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@6 { | ||
target-path="/__overrides__"; | ||
__overlay__ { | ||
cam0-pwdn-ctrl = <&irs1125>,"pwdn-gpios:0"; | ||
cam0-pwdn = <&irs1125>,"pwdn-gpios:4"; | ||
}; | ||
}; | ||
|
||
__overrides__ { | ||
i2c_pins_0_1 = <0>,"-2-3+4"; | ||
i2c_pins_28_29 = <0>,"+2-3-4"; | ||
}; | ||
}; |