Skip to content

Odroid-M2: Support for weather board zero#9523

Merged
igorpecovnik merged 1 commit intoarmbian:mainfrom
mlegenovic:main
Mar 15, 2026
Merged

Odroid-M2: Support for weather board zero#9523
igorpecovnik merged 1 commit intoarmbian:mainfrom
mlegenovic:main

Conversation

@mlegenovic
Copy link
Contributor

@mlegenovic mlegenovic commented Mar 14, 2026

Description

Activates the WEATHER-BOARD Zero on the 40-pin header.

Documentation summary for feature / change

This makes weather board zero usable on Odroid-M2 board with mainline kernel. To activate it

  • use armbian-config tool to enable overlay odroidm2-weather-board-zero
  • or add it directly in /boot/armbianEnv.txt (e.g. overlays=odroidm2-weather-board-zero)

After reboot, verify with sudo i2cdetect -y 5 that the sensor has been detected. Then you can read values with sensors command (lm-sensors package), or by using directly HWMON subsystem (cat /sys/class/hwmon/hwmonX/{temp1_input,humidity1_input}).

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings

Summary by CodeRabbit

  • New Features
    • Added device tree overlay support for Odroid M2 weather sensor board (RK3588/RK3588S) across kernel versions 6.18 and 7.0, enabling integration with the SHTC1 weather sensor via i2c5.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 14, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: bd97c8fb-274c-437e-9308-e07a1672ade5

📥 Commits

Reviewing files that changed from the base of the PR and between 9209e7e and b9b71ea.

📒 Files selected for processing (4)
  • patch/kernel/archive/rockchip64-6.18/overlay/Makefile
  • patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3588-odroidm2-weather-board-zero.dtso
  • patch/kernel/archive/rockchip64-7.0/overlay/Makefile
  • patch/kernel/archive/rockchip64-7.0/overlay/rockchip-rk3588-odroidm2-weather-board-zero.dtso
🚧 Files skipped from review as they are similar to previous changes (3)
  • patch/kernel/archive/rockchip64-6.18/overlay/Makefile
  • patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3588-odroidm2-weather-board-zero.dtso
  • patch/kernel/archive/rockchip64-7.0/overlay/rockchip-rk3588-odroidm2-weather-board-zero.dtso

📝 Walkthrough

Walkthrough

This PR adds support for a weather board on the Odroid M2 with RK3588S by introducing new device tree overlays in both the 6.18 and 7.0 kernel branches. The overlays enable a Sensirion SHTC1 temperature/humidity sensor connected via I2C5. Corresponding Makefile entries register the new device tree binary overlays for compilation.

Changes

Cohort / File(s) Summary
Kernel 6.18 Makefile
patch/kernel/archive/rockchip64-6.18/overlay/Makefile
Adds rockchip-rk3588-odroidm2-weather-board-zero.dtbo entry to the dtbo-$(CONFIG_ARCH_ROCKCHIP) list.
Kernel 7.0 Makefile
patch/kernel/archive/rockchip64-7.0/overlay/Makefile
Adds rockchip-rk3588-odroidm2-weather-board-zero.dtbo entry to the dtbo-$(CONFIG_ARCH_ROCKCHIP) list.
Device Tree Overlays (6.18 & 7.0)
patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3588-odroidm2-weather-board-zero.dtso, patch/kernel/archive/rockchip64-7.0/overlay/rockchip-rk3588-odroidm2-weather-board-zero.dtso
Defines weather board overlay for Odroid M2 with RK3588S, binding Sensirion SHTC1 sensor to i2c5 at address 0x70 with pinctrl configuration.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~8 minutes

Poem

🐰 A weather board joins the garden so green,
For Odroid M2, a sensor is seen,
Through i2c channels, the data will flow,
SHTC1 whispers what the weather will show! 🌡️

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Odroid-M2: Support for weather board zero' accurately describes the main change—adding device tree overlay support for the WEATHER-BOARD Zero sensor on the Odroid-M2, which is the primary purpose of this PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can approve the review once all CodeRabbit's comments are resolved.

Enable the reviews.request_changes_workflow setting to automatically approve the review once all CodeRabbit's comments are resolved.

@github-actions github-actions bot added 05 Milestone: Second quarter release size/medium PR with more then 50 and less then 250 lines Needs review Seeking for review Hardware Hardware related like kernel, U-Boot, ... Patches Patches related to kernel, U-Boot, ... labels Mar 14, 2026
@github-actions github-actions bot added the Ready to merge Reviewed, tested and ready for merge label Mar 14, 2026
@github-actions
Copy link
Contributor

✅ This PR has been reviewed and approved — all set for merge!

@github-actions github-actions bot removed the Needs review Seeking for review label Mar 14, 2026
@github-actions github-actions bot added size/large PR with 250 lines or more Needs review Seeking for review and removed size/medium PR with more then 50 and less then 250 lines Ready to merge Reviewed, tested and ready for merge labels Mar 15, 2026
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In
`@patch/kernel/archive/rockchip64-6.18/board-odroidm2-support-for-vu8s-panel.patch`:
- Around line 426-427: The panel's viewable size fields (.width_mm and
.height_mm) are wrong for the portrait 800×1280 Vu8S panel; update them to the
rotated viewable dimensions (approx. width_mm = 108 and height_mm = 172) so
physical-size and DPI calculations are correct—locate the struct/initializer
that sets .width_mm and .height_mm in the Vu8S panel descriptor and replace the
current 135/217 values with 108/172 (integers) preserving the portrait
orientation.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 789683b2-c5c5-4d33-b636-9aa0683eba4a

📥 Commits

Reviewing files that changed from the base of the PR and between 19735f1 and 9209e7e.

📒 Files selected for processing (6)
  • patch/kernel/archive/rockchip64-6.18/board-odroidm2-support-for-vu8s-panel.patch
  • patch/kernel/archive/rockchip64-6.18/overlay/Makefile
  • patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3588-odroidm2-display-vu8s.dtso
  • patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3588-odroidm2-weather-board-zero.dtso
  • patch/kernel/archive/rockchip64-7.0/overlay/Makefile
  • patch/kernel/archive/rockchip64-7.0/overlay/rockchip-rk3588-odroidm2-weather-board-zero.dtso
🚧 Files skipped from review as they are similar to previous changes (3)
  • patch/kernel/archive/rockchip64-7.0/overlay/Makefile
  • patch/kernel/archive/rockchip64-7.0/overlay/rockchip-rk3588-odroidm2-weather-board-zero.dtso
  • patch/kernel/archive/rockchip64-6.18/overlay/Makefile

@github-actions github-actions bot added size/medium PR with more then 50 and less then 250 lines and removed size/large PR with 250 lines or more labels Mar 15, 2026
Signed-off-by: Milivoje Legenovic <m.legenovic@gmail.com>
@github-actions
Copy link
Contributor

✅ This PR has been reviewed and approved — all set for merge!

@github-actions github-actions bot added Ready to merge Reviewed, tested and ready for merge and removed Needs review Seeking for review labels Mar 15, 2026
@igorpecovnik igorpecovnik merged commit 50b42fa into armbian:main Mar 15, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

05 Milestone: Second quarter release Hardware Hardware related like kernel, U-Boot, ... Patches Patches related to kernel, U-Boot, ... Ready to merge Reviewed, tested and ready for merge size/medium PR with more then 50 and less then 250 lines

Development

Successfully merging this pull request may close these issues.

3 participants