* [PATCH v2 0/1] Enable hardware clock (RTC) on the Milk-V Pioneer @ 2026-01-07 11:29 Michael Orlitzky 2026-01-07 11:29 ` [PATCH v2 1/1] riscv: dts: sophgo: enable " Michael Orlitzky 2026-01-15 0:35 ` [PATCH v2 0/1] Enable " Inochi Amaoto 0 siblings, 2 replies; 4+ messages in thread From: Michael Orlitzky @ 2026-01-07 11:29 UTC (permalink / raw) To: unicorn_wang, inochiama Cc: robh, krzk+dt, conor+dt, pjw, palmer, aou, alex, devicetree, sophgo, linux-riscv Add the DTS entries needed for the hardware clock on the Milk-V Pioneer. I was able to get this working with an earlier (6.1.x) vendor kernel, but it is disabled in the upstream DTS. Changes in v2: - Trim extraneous information from the commit message - Link to v1: https://lore.kernel.org/sophgo/20260105120129.58895-1-michael@orlitzky.com Michael Orlitzky (1): riscv: dts: sophgo: enable hardware clock (RTC) on the Milk-V Pioneer .../boot/dts/sophgo/sg2042-milkv-pioneer.dts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) -- 2.52.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/1] riscv: dts: sophgo: enable hardware clock (RTC) on the Milk-V Pioneer 2026-01-07 11:29 [PATCH v2 0/1] Enable hardware clock (RTC) on the Milk-V Pioneer Michael Orlitzky @ 2026-01-07 11:29 ` Michael Orlitzky 2026-01-12 6:18 ` Chen Wang 2026-01-15 0:35 ` [PATCH v2 0/1] Enable " Inochi Amaoto 1 sibling, 1 reply; 4+ messages in thread From: Michael Orlitzky @ 2026-01-07 11:29 UTC (permalink / raw) To: unicorn_wang, inochiama Cc: robh, krzk+dt, conor+dt, pjw, palmer, aou, alex, devicetree, sophgo, linux-riscv These boards have a working hardware clock if you put a CR-1220 battery in them. We enable it using information from a 6.1.x vendor kernel. Reviewed-by: Chen Wang <unicorn_wang@outlook.com> Signed-off-by: Michael Orlitzky <michael@orlitzky.com> --- .../boot/dts/sophgo/sg2042-milkv-pioneer.dts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts index 54d8386bf9c0..ecf8c1e29079 100644 --- a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts +++ b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts @@ -52,6 +52,17 @@ &emmc { status = "okay"; }; +&i2c0 { + pinctrl-0 = <&i2c0_cfg>; + pinctrl-names = "default"; + status = "okay"; + + rtc: rtc@68 { + compatible = "dallas,ds1307"; + reg = <0x68>; + }; +}; + &i2c1 { pinctrl-0 = <&i2c1_cfg>; pinctrl-names = "default"; @@ -89,6 +100,16 @@ sdhci-emmc-rst-pwr-pins { }; }; + 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; + }; + }; + i2c1_cfg: i2c1-cfg { i2c1-pins { pinmux = <PINMUX(PIN_IIC1_SDA, 0)>, -- 2.52.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/1] riscv: dts: sophgo: enable hardware clock (RTC) on the Milk-V Pioneer 2026-01-07 11:29 ` [PATCH v2 1/1] riscv: dts: sophgo: enable " Michael Orlitzky @ 2026-01-12 6:18 ` Chen Wang 0 siblings, 0 replies; 4+ messages in thread From: Chen Wang @ 2026-01-12 6:18 UTC (permalink / raw) To: Michael Orlitzky, inochiama Cc: robh, krzk+dt, conor+dt, pjw, palmer, aou, alex, devicetree, sophgo, linux-riscv On 1/7/2026 7:29 PM, Michael Orlitzky wrote: > These boards have a working hardware clock if you put a CR-1220 > battery in them. We enable it using information from a 6.1.x vendor > kernel. > > Reviewed-by: Chen Wang <unicorn_wang@outlook.com> > Signed-off-by: Michael Orlitzky <michael@orlitzky.com> > --- > .../boot/dts/sophgo/sg2042-milkv-pioneer.dts | 21 +++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts > index 54d8386bf9c0..ecf8c1e29079 100644 > --- a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts > +++ b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts > @@ -52,6 +52,17 @@ &emmc { > status = "okay"; > }; > > +&i2c0 { > + pinctrl-0 = <&i2c0_cfg>; > + pinctrl-names = "default"; > + status = "okay"; > + > + rtc: rtc@68 { > + compatible = "dallas,ds1307"; > + reg = <0x68>; > + }; > +}; > + > &i2c1 { > pinctrl-0 = <&i2c1_cfg>; > pinctrl-names = "default"; > @@ -89,6 +100,16 @@ sdhci-emmc-rst-pwr-pins { > }; > }; > > + 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; > + }; > + }; > + > i2c1_cfg: i2c1-cfg { > i2c1-pins { > pinmux = <PINMUX(PIN_IIC1_SDA, 0)>, Tested based off 6.19-rc1 and passed. Thanks, Chen _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 0/1] Enable hardware clock (RTC) on the Milk-V Pioneer 2026-01-07 11:29 [PATCH v2 0/1] Enable hardware clock (RTC) on the Milk-V Pioneer Michael Orlitzky 2026-01-07 11:29 ` [PATCH v2 1/1] riscv: dts: sophgo: enable " Michael Orlitzky @ 2026-01-15 0:35 ` Inochi Amaoto 1 sibling, 0 replies; 4+ messages in thread From: Inochi Amaoto @ 2026-01-15 0:35 UTC (permalink / raw) To: unicorn_wang, Michael Orlitzky Cc: Inochi Amaoto, robh, krzk+dt, conor+dt, pjw, palmer, aou, alex, devicetree, sophgo, linux-riscv On Wed, 07 Jan 2026 06:29:21 -0500, Michael Orlitzky wrote: > Add the DTS entries needed for the hardware clock on the Milk-V > Pioneer. I was able to get this working with an earlier (6.1.x) vendor > kernel, but it is disabled in the upstream DTS. > > Changes in v2: > - Trim extraneous information from the commit message > - Link to v1: https://lore.kernel.org/sophgo/20260105120129.58895-1-michael@orlitzky.com > > [...] Applied to dt/riscv, thanks! [1/1] riscv: dts: sophgo: enable hardware clock (RTC) on the Milk-V Pioneer https://github.com/sophgo/linux/commit/9e81c522680db5998c872fb91ff7877cf3d8ff42 Thanks, Inochi _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-01-15 0:36 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-01-07 11:29 [PATCH v2 0/1] Enable hardware clock (RTC) on the Milk-V Pioneer Michael Orlitzky 2026-01-07 11:29 ` [PATCH v2 1/1] riscv: dts: sophgo: enable " Michael Orlitzky 2026-01-12 6:18 ` Chen Wang 2026-01-15 0:35 ` [PATCH v2 0/1] Enable " Inochi Amaoto
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox