[PATCH v2 09/14] riscv: dts: jh7110: Add u-boot device tree for JH7110 based boards
E Shattow
lucent at gmail.com
Mon Oct 28 04:34:48 CET 2024
On Sun, Oct 27, 2024 at 6:59 PM Hal Feng <hal.feng at starfivetech.com> wrote:
>
> To support the other JH7110 based boards, add u-boot
> device tree for them.
>
> Cc: Heinrich Schuchardt <xypron.glpk at gmx.de>
> Cc: H Bell <dmoo_dv at protonmail.com>
> Signed-off-by: Hal Feng <hal.feng at starfivetech.com>
> ---
> arch/riscv/dts/jh7110-milkv-mars-u-boot.dtsi | 11 +++++++++++
> arch/riscv/dts/jh7110-pine64-star64-u-boot.dtsi | 6 ++++++
> .../jh7110-starfive-visionfive-2-v1.2a-u-boot.dtsi | 6 ++++++
> 3 files changed, 23 insertions(+)
> create mode 100644 arch/riscv/dts/jh7110-milkv-mars-u-boot.dtsi
> create mode 100644 arch/riscv/dts/jh7110-pine64-star64-u-boot.dtsi
> create mode 100644 arch/riscv/dts/jh7110-starfive-visionfive-2-v1.2a-u-boot.dtsi
>
> diff --git a/arch/riscv/dts/jh7110-milkv-mars-u-boot.dtsi b/arch/riscv/dts/jh7110-milkv-mars-u-boot.dtsi
> new file mode 100644
> index 0000000000..2ad4068549
> --- /dev/null
> +++ b/arch/riscv/dts/jh7110-milkv-mars-u-boot.dtsi
> @@ -0,0 +1,11 @@
> +// SPDX-License-Identifier: GPL-2.0 OR MIT
> +/*
> + * Copyright (C) 2024 StarFive Technology Co., Ltd.
> + */
> +
> +#include "jh7110-common-u-boot.dtsi"
> +
> +&phy0 {
> + /delete-property/ motorcomm,tx-clk-10-inverted;
> + rx-internal-delay-ps = <1900>;
> +};
For Heinrich, what is the origin of rx-internal-delay-ps 1900 value? Refer to:
https://patchwork.ozlabs.org/project/uboot/list/?series=429908 "
riscv64: dts: starfive: Mars ethernet0 phy delay values sync with
upstream Linux "
For Hal, I think we should not replace the rx-internal-delay-ps
property here and then the phy delay patch for Mars (as mentioned) is
not needed. Carrying this value from before OF_UPSTREAM creates work
for future, unless you prefer to avoid change in functionality
compared to before OF_UPSTREAM.
> diff --git a/arch/riscv/dts/jh7110-pine64-star64-u-boot.dtsi b/arch/riscv/dts/jh7110-pine64-star64-u-boot.dtsi
> new file mode 100644
> index 0000000000..9df1e5db55
> --- /dev/null
> +++ b/arch/riscv/dts/jh7110-pine64-star64-u-boot.dtsi
> @@ -0,0 +1,6 @@
> +// SPDX-License-Identifier: GPL-2.0 OR MIT
> +/*
> + * Copyright (C) 2024 StarFive Technology Co., Ltd.
> + */
> +
> +#include "jh7110-common-u-boot.dtsi"
There is a same story here for Pine64 Star64 about delay values. Refer to:
https://patchwork.ozlabs.org/project/uboot/list/?series=429906
"riscv64: dts: starfive: Star64 ethernet0 phy delay values sync with
upstream Linux"
https://lore.kernel.org/lkml/20241023-guts-versus-1a2bcfdfbec2@spud/
"[PATCH] riscv: dts: starfive: Update ethernet phy0 delay parameter
values for Star64"
It is your choice if you want to duplicate the upstream patch here to
change the property nodes (or not) until the next dts sync from
upstream, or cherry-pick a dts sync (when that becomes possible after
upstream makes this available). The problem affects only ethernet0
which is well-known as "does not work, try a different network port"
and so it is not any trouble to just ignore the problem here, making
this fix now creates more work for us in the future. Star64 has a
working secondary network port ethernet1 and so no change is requested
from me.
The phy delay value patch for U-Boot and Star64 can be dropped in
favor of the OF_UPSTREAM series and any action or non-action you
decide for this.
> diff --git a/arch/riscv/dts/jh7110-starfive-visionfive-2-v1.2a-u-boot.dtsi b/arch/riscv/dts/jh7110-starfive-visionfive-2-v1.2a-u-boot.dtsi
> new file mode 100644
> index 0000000000..9df1e5db55
> --- /dev/null
> +++ b/arch/riscv/dts/jh7110-starfive-visionfive-2-v1.2a-u-boot.dtsi
> @@ -0,0 +1,6 @@
> +// SPDX-License-Identifier: GPL-2.0 OR MIT
> +/*
> + * Copyright (C) 2024 StarFive Technology Co., Ltd.
> + */
> +
> +#include "jh7110-common-u-boot.dtsi"
> --
> 2.43.2
>
More information about the U-Boot
mailing list