-
Notifications
You must be signed in to change notification settings - Fork 5.2k
add mira220 image sensor #6717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
fiepfiep
wants to merge
10
commits into
raspberrypi:rpi-6.12.y
Choose a base branch
from
fiepfiep:rpi-6.12.y
base: rpi-6.12.y
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,149
−0
Open
add mira220 image sensor #6717
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9e928d3
defconfigs: Add ams Mira220 image sensor to Pi defconfigs
7887667
dtoverlays: Add overlay for ams Mira220 image sensor
88be0ee
media/i2c: Add driver for ams Mira220
94bcda1
media/i2c: changes to Mira220 driver:
2f06530
dtoverlays: clean up mira220 overlay
aa30a31
media/i2c: changes to Mira220 driver:
ffb911a
implement different color formats similar to imx219.
e78f40c
implement fsleep. change non-return function to void
dd1f93a
configs: defconfig: add mira220 to bcm2711_rt_defconfig
58f81cd
media/i2c: mira220 driver cosmetic fixes
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,87 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
// Definitions for MIRA220 camera module on VC I2C bus | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
|
||
/{ | ||
compatible = "brcm,bcm2835"; | ||
|
||
fragment@0 { | ||
target = <&i2c0if>; | ||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
clk_frag: fragment@1 { | ||
target = <&cam1_clk>; | ||
__overlay__ { | ||
status = "okay"; | ||
clock-frequency = <38400000>; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&i2c0mux>; | ||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
i2c_frag: fragment@100 { | ||
target = <&i2c_csi_dsi>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "okay"; | ||
|
||
#include "mira220.dtsi" | ||
|
||
}; | ||
}; | ||
|
||
csi_frag: fragment@101 { | ||
target = <&csi1>; | ||
csi: __overlay__ { | ||
status = "okay"; | ||
|
||
port { | ||
csi_ep: endpoint { | ||
remote-endpoint = <&cam_endpoint>; | ||
clock-lanes = <0>; | ||
data-lanes = <1 2>; | ||
// clock-noncontinuous; // mira220 use cont clk | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@102 { | ||
target = <&csi1>; | ||
__dormant__ { | ||
compatible = "brcm,bcm2835-unicam-legacy"; | ||
}; | ||
}; | ||
|
||
|
||
__overrides__ { | ||
rotation = <&cam_node>,"rotation:0"; | ||
orientation = <&cam_node>,"orientation:0"; | ||
media-controller = <0>,"!102"; | ||
cam0 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi0>, | ||
<&csi_frag>, "target:0=",<&csi0>, | ||
<&clk_frag>, "target:0=",<&cam0_clk>, | ||
<&cam_node>, "clocks:0=",<&cam0_clk>, | ||
<&cam_node>, "vana-supply:0=",<&cam0_reg>; | ||
}; | ||
}; | ||
|
||
&cam_node { | ||
status = "okay"; | ||
}; | ||
|
||
&cam_endpoint { | ||
remote-endpoint = <&csi_ep>; | ||
}; |
This file contains hidden or 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,27 @@ | ||
// Fragment that configures an mira220 | ||
|
||
cam_node: mira220@10 { | ||
compatible = "ams,mira220"; | ||
reg = <0x54>; | ||
status = "disabled"; | ||
|
||
clocks = <&cam1_clk>; | ||
clock-names = "xclk"; | ||
|
||
vana-supply = <&cam1_reg>; /* 2.8v */ | ||
vdig-supply = <&cam_dummy_reg>; /* 1.8v */ | ||
vddl-supply = <&cam_dummy_reg>; /* 1.2v */ | ||
|
||
rotation = <0>; | ||
orientation = <2>; | ||
|
||
port { | ||
cam_endpoint: endpoint { | ||
clock-lanes = <0>; | ||
data-lanes = <1 2>; | ||
// clock-noncontinuous; | ||
link-frequencies = | ||
/bits/ 64 <750000000>; | ||
}; | ||
}; | ||
}; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.