For rpi4 allow dtoverlay i2c-rtc use i2c5 port

Open
#4,892 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, linux, raspberry-pi

Research direction

Start by reproducing the Raspberry Pi 4 case with the dtoverlay i2c-rtc setup and the i2c5 command shown in the issue. Trace how the overlay selects its I2C port, then verify that an RTC on i2c5 can be configured without running the sysfs command at boot.

Written by the indexing model from the issue text.

Description

Describe the bug

Add functionality for dtoverlay i2c-rtc to use i2c 5 port

Steps to reproduce the behaviour

The only way to use an rtc on port 5 is activating i2c5 and run at boot, the following

echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-5/new_device

Device (s)

Raspberry Pi 4 Mod. B

System

Linux alarmpi 5.15.21-3-rpi-ARCH #1 armv7l GNU/Linux

Logs

No response

Additional context

No response

Dominant language
C
Stars
13.2k
Forks
5.5k
Avg merge
2d 21h
Merged PRs (30d)
21

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/linux

All issues in raspberrypi/linux

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.