Skip to content

6.12/iob/topic/rpi imx283 overlay #6869

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

Merged

Conversation

kbingham
Copy link
Contributor

Add support for the IMX283 on Raspberry Pi platforms. This includes the OneInchEye open source camera.

@kbingham
Copy link
Contributor Author

kbingham commented May 23, 2025

And of course I now realise adding the module to 'all configs' is pointless as this is currently only supported as a 4 lane sensor.

But I see 'Compute Module (1, 3, 4, or 5) has 4 lanes, and perhaps so does a pi02w?
So I'm not actually sure which configs should or shouldn't have the module....

@kbingham
Copy link
Contributor Author

kbingham commented Jun 3, 2025

Any changes required from me here ?

Or is it ok to keep the module enabled in all configs ? (Are there any variants that only have a 2 lane device associated ?)

@6by9
Copy link
Contributor

6by9 commented Jun 3, 2025

Any changes required from me here ?

Or is it ok to keep the module enabled in all configs ? (Are there any variants that only have a 2 lane device associated ?)

With the 360MHz link frequency, all devices with 4 data lanes could potentially run this sensor. That would include CM1, CM3, CM4, Pi5, and CM5. (Pi0 and Pi02 have the 22 pin connector due to space constraints, but only 2 lanes are connected).

The only defconfig that therefore can't really make use of it would be bcm2709_defconfig (Pi2), but I'd be tempted to leave it there for consistency.

LGTM.

@pelwell
Copy link
Contributor

pelwell commented Jun 3, 2025

Checkpatch is still complaining about the missing newline at the end of imx283-overlay.dts.

@kbingham
Copy link
Contributor Author

kbingham commented Jun 3, 2025

Checkpatch is still complaining about the missing newline at the end of imx283-overlay.dts.

Aha, I see it - I'll fix that up now.

@pelwell
Copy link
Contributor

pelwell commented Jun 3, 2025

If you comment when that's done I'll kick off the builds again, then get it merged.

kbingham added 2 commits June 3, 2025 16:10
This supports the OneInchEye with a 24MHz crystal INCK.

Use the option 'cam0' to connect this to the CAM/DISP 0 port on
Raspberry Pi 5.

Use the clock-frequency=<value> option if you have a camera module with
a different inclk frequency:

For example:
  dtoverlay=imx283,cam0,clock-frequency=12000000

Signed-off-by: Kieran Bingham <[email protected]>
Add support for the Sony IMX283 image sensor by including the module
for supported Raspberry Pi platforms.

Signed-off-by: Kieran Bingham <[email protected]>
@kbingham kbingham force-pushed the 6.12/iob/topic/rpi-imx283-overlay branch from a589f68 to 7711895 Compare June 3, 2025 15:17
@kbingham
Copy link
Contributor Author

kbingham commented Jun 3, 2025

repushed..

Local checkpatch reports the following, but I don't think that can/should be helped here, as none of the other fragments put an SPDX header in.... and I don't think changing MAINTAINERS is appropriate here.

kbingham@Monstersaurus:~/iob/libcamera/raspberrypi/sources/linux$ ./scripts/checkpatch.pl -g HEAD^^..
--------------------------------------------------------------------------
Commit 3ed0713dc587 ("dtoverlays: Add overlay for the Sony IMX283 Camera")
--------------------------------------------------------------------------
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#74: 
new file mode 100644

WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
#177: FILE: arch/arm/boot/dts/overlays/imx283.dtsi:1:
+// Fragment that configures a Sony IMX283

total: 0 errors, 2 warnings, 154 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

Commit 3ed0713dc587 ("dtoverlays: Add overlay for the Sony IMX283 Camera") has style problems, please review.
-------------------------------------------------------------------
Commit 7711895a2ff0 ("defconfigs: Add IMX283 to all Pi defconfigs")
-------------------------------------------------------------------
total: 0 errors, 0 warnings, 42 lines checked

Commit 7711895a2ff0 ("defconfigs: Add IMX283 to all Pi defconfigs") has no obvious style problems and is ready for submission.

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.

@pelwell
Copy link
Contributor

pelwell commented Jun 3, 2025

Yes, I'm fine with the remaining warnings.

@pelwell pelwell merged commit cee5723 into raspberrypi:rpi-6.12.y Jun 3, 2025
12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jun 5, 2025
kernel: Add support for the IMX283 on Raspberry Pi platforms
See: raspberrypi/linux#6869

kernel: Pisound Micro: Workaround for snd_soc_dai_set_tdm_slot with slots=0
See: raspberrypi/linux#6880

kernel: add rtw88/rtw89 drivers
See: raspberrypi/linux#6881

kernel: configs: arm64: Remove CONFIG_USB_DWCOTG
See: raspberrypi/linux#6883
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Jun 5, 2025
kernel: Add support for the IMX283 on Raspberry Pi platforms
See: raspberrypi/linux#6869

kernel: Pisound Micro: Workaround for snd_soc_dai_set_tdm_slot with slots=0
See: raspberrypi/linux#6880

kernel: add rtw88/rtw89 drivers
See: raspberrypi/linux#6881

kernel: configs: arm64: Remove CONFIG_USB_DWCOTG
See: raspberrypi/linux#6883
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants