From: Michael Orlitzky <michael@orlitzky.com>
To: sophgo@lists.linux.dev
Subject: Hardware clock on the Pioneer
Date: Tue, 30 Dec 2025 17:56:54 -0500 [thread overview]
Message-ID: <aVRYtrWucN0x4wNm@mertle> (raw)
Hello, I finally have the upstream kernel running on my Pioneer Box,
and I notice that the hardware clock is not enabled. I've patched this
in my own kernel (sg2042-milkv-pioneer.dts) by enabling i2c0, defining
the RTC,
&i2c0 {
pinctrl-0 = <&i2c0_cfg>;
pinctrl-names = "default";
status = "okay";
rtc: rtc@68 {
compatible = "dallas,ds1307";
reg = <0x68>;
};
};
and copying the pinctrl bits from i2c1:
i2c0_cfg: i2c0-cfg {
i2c0-pins {
pinmux = <PINMUX(PIN_IIC0_SDA, 0)>,
<PINMUX(PIN_IIC0_SCL, 0)>;
bias-pull-up;
drive-strength-microamp = <26800>;
input-schmitt-enable;
};
};
It seems to work:
$ sudo hwclock --show
2025-12-30 17:54:05.093606-05:00
Is there a reason not to do this? The sophgo upstream status page says
that the RTC is "Low priority, may not be needed." But if the above is
OK, I will submit a patch for it.
next reply other threads:[~2025-12-30 23:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-30 22:56 Michael Orlitzky [this message]
2026-01-05 0:38 ` Hardware clock on the Pioneer Chen Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aVRYtrWucN0x4wNm@mertle \
--to=michael@orlitzky.com \
--cc=sophgo@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox