Hardware clock on the Pioneer

Michael Orlitzky <[email protected]>
Newsgroups dev.linux.lists.sophgo
Message-ID <aVRYtrWucN0x4wNm@mertle>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.