mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Du Huanpeng <u74147@gmail.com>
To: barebox@lists.infradead.org
Subject: Re: [PATCH] ls1b200: dts: add serials and nand nodes
Date: Wed, 28 Oct 2020 22:14:51 +0800	[thread overview]
Message-ID: <20201028141448.GA27980@beer.tkernel.org> (raw)
In-Reply-To: <1603887359-12609-1-git-send-email-u74147@gmail.com>

sorry, please hold. I will send a v2 patch.

On Wed, Oct 28, 2020 at 08:15:59PM +0800, Du Huanpeng wrote:
> add all serials and sort them by base address.
>  UART0_1, UART0_2, UART0_3 renamed to
>  serial6, serial7, serial8.
>  UART1_1, UART1_2, UART1_3 renamed to
>  serial9, serial10, serial11.
> 
> because the nand and pll share the some base
> address, so add it as well.
> 
> Signed-off-by: Du Huanpeng <u74147@gmail.com>
> ---
>  arch/mips/dts/ls1b.dtsi | 158 ++++++++++++++++++++++++++++++++++++++----------
>  1 file changed, 125 insertions(+), 33 deletions(-)
> 
> diff --git a/arch/mips/dts/ls1b.dtsi b/arch/mips/dts/ls1b.dtsi
> index 8b772af..0bd3d08 100644
> --- a/arch/mips/dts/ls1b.dtsi
> +++ b/arch/mips/dts/ls1b.dtsi
> @@ -11,43 +11,135 @@
>  		device_type = "soc";
>  		ranges;
>  
> -		serial0: serial@1fe40000 {
> -			compatible = "ns16550a";
> -			reg = <0x1fe40000 0x8>;
> -			reg-shift = <0>;
> -			clock-frequency = <83000000>;
> -			status = "disabled";
> -		};
> +		xbar {
> +			compatible = "loongson,xbar-bus", "simple-bus";
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +			ranges;
>  
> -		serial1: serial@1fe44000 {
> -			compatible = "ns16550a";
> -			reg = <0x1fe44000 0x8>;
> -			reg-shift = <0>;
> -			clock-frequency = <83000000>;
> -			status = "disabled";
> -		};
> +			axi-mux {
> +				compatible = "loongson,axi-mux", "simple-bus";
> +				#address-cells = <1>;
> +				#size-cells = <1>;
> +				ranges;
>  
> -		serial2: serial@1fe48000 {
> -			compatible = "ns16550a";
> -			reg = <0x1fe48000 0x8>;
> -			reg-shift = <0>;
> -			clock-frequency = <83000000>;
> -			status = "disabled";
> -		};
>  
> -		serial3: serial@1fe4c000 {
> -			compatible = "ns16550a";
> -			reg = <0x1fe4c000 0x8>;
> -			reg-shift = <0>;
> -			clock-frequency = <83000000>;
> -			status = "disabled";
> -		};
> +				apb@0x1fe40000 {
> +					compatible = "loongson,apb-bus", "simple-bus";
> +					#address-cells = <1>;
> +					#size-cells = <1>;
> +					ranges;
> +
> +					serial0: serial@1fe40000 {
> +						compatible = "ns16550a";
> +						reg = <0x1fe40000 0x8>;
> +						reg-shift = <0>;
> +						clocks = <&pll LS1B_CLK_APB_DIV>;
> +						status = "disabled";
> +					};
> +
> +					serial6: serial@1fe41000 {
> +						compatible = "ns16550a";
> +						reg = <0x1fe41000 0x8>;
> +						reg-shift = <0>;
> +						clocks = <&pll LS1B_CLK_APB_DIV>;
> +						status = "disabled";
> +					};
> +
> +					serial7: serial@1fe42000 {
> +						compatible = "ns16550a";
> +						reg = <0x1fe42000 0x8>;
> +						reg-shift = <0>;
> +						clocks = <&pll LS1B_CLK_APB_DIV>;
> +						status = "disabled";
> +					};
> +
> +					serial8: serial@1fe43000 {
> +						compatible = "ns16550a";
> +						reg = <0x1fe43000 0x8>;
> +						reg-shift = <0>;
> +						clocks = <&pll LS1B_CLK_APB_DIV>;
> +						status = "disabled";
> +					};
> +
> +					serial1: serial@1fe44000 {
> +						compatible = "ns16550a";
> +						reg = <0x1fe44000 0x8>;
> +						reg-shift = <0>;
> +						clocks = <&pll LS1B_CLK_APB_DIV>;
> +						status = "disabled";
> +					};
> +
> +					serial9: serial@1fe45000 {
> +						compatible = "ns16550a";
> +						reg = <0x1fe45000 0x8>;
> +						reg-shift = <0>;
> +						clocks = <&pll LS1B_CLK_APB_DIV>;
> +						status = "disabled";
> +					};
> +
> +					serial10: serial@1fe46000 {
> +						compatible = "ns16550a";
> +						reg = <0x1fe46000 0x8>;
> +						reg-shift = <0>;
> +						clocks = <&pll LS1B_CLK_APB_DIV>;
> +						status = "disabled";
> +					};
> +
> +					serial11: serial@1fe47000 {
> +						compatible = "ns16550a";
> +						reg = <0x1fe47000 0x8>;
> +						reg-shift = <0>;
> +						clocks = <&pll LS1B_CLK_APB_DIV>;
> +						status = "disabled";
> +					};
> +
> +					serial2: serial@1fe48000 {
> +						compatible = "ns16550a";
> +						reg = <0x1fe48000 0x8>;
> +						reg-shift = <0>;
> +						clocks = <&pll LS1B_CLK_APB_DIV>;
> +						status = "disabled";
> +					};
> +
> +					serial3: serial@1fe4c000 {
> +						compatible = "ns16550a";
> +						reg = <0x1fe4c000 0x8>;
> +						reg-shift = <0>;
> +						clocks = <&pll LS1B_CLK_APB_DIV>;
> +						status = "disabled";
> +					};
> +
> +					serial4: serial@1fe6c000 {
> +						compatible = "ns16550a";
> +						reg = <0x1fe6c000 0x8>;
> +						reg-shift = <0>;
> +						clocks = <&pll LS1B_CLK_APB_DIV>;
> +						status = "disabled";
> +					};
> +
> +					serial5: serial@1fe7c000 {
> +						compatible = "ns16550a";
> +						reg = <0x1fe7c000 0x8>;
> +						reg-shift = <0>;
> +						clocks = <&pll LS1B_CLK_APB_DIV>;
> +						status = "disabled";
> +					};
> +
> +					nand: nand@1fe78000 {
> +						compatible = "loongson,ls1b-nand";
> +						reg = <0x1fe78000 0x30>, <0x1fe78040 0x8>;
> +						reg-names = "ctrl", "dma";
> +				       };
>  
> -		pll: pll@1fe78030 {
> -			compatible = "loongson,ls1b-pll";
> -			#clock-cells = <1>;
> -			reg = <0x1fe78030 0x8>;
> -			clocks = <&oscillator>;
> +					pll: pll@1fe78030 {
> +						compatible = "loongson,ls1b-pll";
> +						#clock-cells = <1>;
> +						reg = <0x1fe78030 0x8>;
> +						clocks = <&oscillator>;
> +					};
> +				};
> +			};
>  		};
>  	};
>  };
> -- 
> 2.7.4
> 

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2020-10-28 14:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-28 12:15 Du Huanpeng
2020-10-28 14:14 ` Du Huanpeng [this message]

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=20201028141448.GA27980@beer.tkernel.org \
    --to=u74147@gmail.com \
    --cc=barebox@lists.infradead.org \
    /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