RISC-V (and others?) UART0 clock rate from OF_UPSTREAM
E Shattow
e at freeshell.de
Wed Apr 23 22:09:08 CEST 2025
Quoting Emil reply to
https://lore.kernel.org/lkml/CAJM55Z95pwTZmw-WPcUaB1BGpVoNgaRYYjUnqSFcLTNyVmZahg@mail.gmail.com/
> diff --git a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi
b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi
> index 8a59c3001339..6bb13af82147 100644
> --- a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi
> +++ b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi
> @@ -635,6 +635,7 @@ GPOEN_DISABLE,
> };
>
> &uart0 {
> + clock-frequency = <24000000>;
> pinctrl-names = "default";
> pinctrl-0 = <&uart0_pins>;
> status = "okay";
"The uart0 node already has a reference to the uart0_core clock, so it
shouldn't need this property."
jh7110-common-u-boot.dtsi-26-&uart0 {
jh7110-common-u-boot.dtsi-27- bootph-pre-ram;
jh7110-common-u-boot.dtsi-28- reg-offset = <0>;
jh7110-common-u-boot.dtsi-29- current-speed = <115200>;
jh7110-common-u-boot.dtsi:30: clock-frequency = <24000000>;
$ grep -B1 -rn 24000000 dts/upstream/src/riscv/starfive/
dts/upstream/src/riscv/starfive/jh7110-common.dtsi-115-&osc {
dts/upstream/src/riscv/starfive/jh7110-common.dtsi:116: clock-frequency
= <24000000>;
What should U-Boot be doing to get this uart0 setting when OF_UPSTREAM ?
-E
More information about the U-Boot
mailing list