From: Chen Wang <chen.wang@linux.dev>
To: gaohan@iscas.ac.cn, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
Inochi Amaoto <inochiama@gmail.com>
Cc: Han Gao <rabenda.cn@gmail.com>,
devicetree@vger.kernel.org, sophgo@lists.linux.dev,
linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] riscv: dts: sophgo: Enable the RTC on SG2042 EVB v1
Date: Mon, 23 Nov 2026 16:40:56 +0800 [thread overview]
Message-ID: <ec584c15-c49a-499d-bd79-a9f48f54dad5@linux.dev> (raw)
In-Reply-To: <20261122-sg2042-evb-rtc-v1-1-f222c64cc7b9@iscas.ac.cn>
On 11/22/2026 9:33 PM, Han Gao via B4 Relay wrote:
> From: Han Gao <gaohan@iscas.ac.cn>
>
> The SG2042 EVB v1 has a PT7C4307 RTC at 0x68 on I2C0. Enable I2C0
> and add the RTC node.
>
> Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
Reviewed-by: Chen Wang <chen.wang@linux.dev>
Thanks.
> ---
> arch/riscv/boot/dts/sophgo/sg2042-evb-v1.dts | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/arch/riscv/boot/dts/sophgo/sg2042-evb-v1.dts b/arch/riscv/boot/dts/sophgo/sg2042-evb-v1.dts
> index 9f403e564694eae14913f6ab23080a6333df15ae..6ddb16eabc48a51f457449d245d63a3840b2fdef 100644
> --- a/arch/riscv/boot/dts/sophgo/sg2042-evb-v1.dts
> +++ b/arch/riscv/boot/dts/sophgo/sg2042-evb-v1.dts
> @@ -136,6 +136,17 @@ &emmc {
> status = "okay";
> };
>
> +&i2c0 {
> + pinctrl-0 = <&i2c0_cfg>;
> + pinctrl-names = "default";
> + status = "okay";
> +
> + rtc@68 {
> + compatible = "dallas,ds1307";
> + reg = <0x68>;
> + };
> +};
> +
> &i2c1 {
> pinctrl-0 = <&i2c1_cfg>;
> pinctrl-names = "default";
> @@ -201,6 +212,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)>,
>
next prev parent reply other threads:[~2026-11-23 8:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 13:33 [PATCH 0/2] riscv: dts: sophgo: Enable the RTC on SG2042 EVB v1/v2 Han Gao via B4 Relay
2026-11-22 13:33 ` [PATCH 1/2] riscv: dts: sophgo: Enable the RTC on SG2042 EVB v1 Han Gao via B4 Relay
2026-11-23 8:40 ` Chen Wang [this message]
2026-11-22 13:33 ` [PATCH 2/2] riscv: dts: sophgo: Enable the RTC on SG2042 EVB v2 Han Gao via B4 Relay
2026-11-23 8:41 ` 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=ec584c15-c49a-499d-bd79-a9f48f54dad5@linux.dev \
--to=chen.wang@linux.dev \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gaohan@iscas.ac.cn \
--cc=inochiama@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=rabenda.cn@gmail.com \
--cc=robh@kernel.org \
--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