[PATCH] ls1b200: dts: add serials and nand nodes
Du Huanpeng
u74147 at gmail.com
Wed Oct 28 10:14:51 EDT 2020
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 at 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 at 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 at 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 at 1fe48000 {
> - compatible = "ns16550a";
> - reg = <0x1fe48000 0x8>;
> - reg-shift = <0>;
> - clock-frequency = <83000000>;
> - status = "disabled";
> - };
>
> - serial3: serial at 1fe4c000 {
> - compatible = "ns16550a";
> - reg = <0x1fe4c000 0x8>;
> - reg-shift = <0>;
> - clock-frequency = <83000000>;
> - status = "disabled";
> - };
> + apb at 0x1fe40000 {
> + compatible = "loongson,apb-bus", "simple-bus";
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges;
> +
> + serial0: serial at 1fe40000 {
> + compatible = "ns16550a";
> + reg = <0x1fe40000 0x8>;
> + reg-shift = <0>;
> + clocks = <&pll LS1B_CLK_APB_DIV>;
> + status = "disabled";
> + };
> +
> + serial6: serial at 1fe41000 {
> + compatible = "ns16550a";
> + reg = <0x1fe41000 0x8>;
> + reg-shift = <0>;
> + clocks = <&pll LS1B_CLK_APB_DIV>;
> + status = "disabled";
> + };
> +
> + serial7: serial at 1fe42000 {
> + compatible = "ns16550a";
> + reg = <0x1fe42000 0x8>;
> + reg-shift = <0>;
> + clocks = <&pll LS1B_CLK_APB_DIV>;
> + status = "disabled";
> + };
> +
> + serial8: serial at 1fe43000 {
> + compatible = "ns16550a";
> + reg = <0x1fe43000 0x8>;
> + reg-shift = <0>;
> + clocks = <&pll LS1B_CLK_APB_DIV>;
> + status = "disabled";
> + };
> +
> + serial1: serial at 1fe44000 {
> + compatible = "ns16550a";
> + reg = <0x1fe44000 0x8>;
> + reg-shift = <0>;
> + clocks = <&pll LS1B_CLK_APB_DIV>;
> + status = "disabled";
> + };
> +
> + serial9: serial at 1fe45000 {
> + compatible = "ns16550a";
> + reg = <0x1fe45000 0x8>;
> + reg-shift = <0>;
> + clocks = <&pll LS1B_CLK_APB_DIV>;
> + status = "disabled";
> + };
> +
> + serial10: serial at 1fe46000 {
> + compatible = "ns16550a";
> + reg = <0x1fe46000 0x8>;
> + reg-shift = <0>;
> + clocks = <&pll LS1B_CLK_APB_DIV>;
> + status = "disabled";
> + };
> +
> + serial11: serial at 1fe47000 {
> + compatible = "ns16550a";
> + reg = <0x1fe47000 0x8>;
> + reg-shift = <0>;
> + clocks = <&pll LS1B_CLK_APB_DIV>;
> + status = "disabled";
> + };
> +
> + serial2: serial at 1fe48000 {
> + compatible = "ns16550a";
> + reg = <0x1fe48000 0x8>;
> + reg-shift = <0>;
> + clocks = <&pll LS1B_CLK_APB_DIV>;
> + status = "disabled";
> + };
> +
> + serial3: serial at 1fe4c000 {
> + compatible = "ns16550a";
> + reg = <0x1fe4c000 0x8>;
> + reg-shift = <0>;
> + clocks = <&pll LS1B_CLK_APB_DIV>;
> + status = "disabled";
> + };
> +
> + serial4: serial at 1fe6c000 {
> + compatible = "ns16550a";
> + reg = <0x1fe6c000 0x8>;
> + reg-shift = <0>;
> + clocks = <&pll LS1B_CLK_APB_DIV>;
> + status = "disabled";
> + };
> +
> + serial5: serial at 1fe7c000 {
> + compatible = "ns16550a";
> + reg = <0x1fe7c000 0x8>;
> + reg-shift = <0>;
> + clocks = <&pll LS1B_CLK_APB_DIV>;
> + status = "disabled";
> + };
> +
> + nand: nand at 1fe78000 {
> + compatible = "loongson,ls1b-nand";
> + reg = <0x1fe78000 0x30>, <0x1fe78040 0x8>;
> + reg-names = "ctrl", "dma";
> + };
>
> - pll: pll at 1fe78030 {
> - compatible = "loongson,ls1b-pll";
> - #clock-cells = <1>;
> - reg = <0x1fe78030 0x8>;
> - clocks = <&oscillator>;
> + pll: pll at 1fe78030 {
> + compatible = "loongson,ls1b-pll";
> + #clock-cells = <1>;
> + reg = <0x1fe78030 0x8>;
> + clocks = <&oscillator>;
> + };
> + };
> + };
> };
> };
> };
> --
> 2.7.4
>
More information about the barebox
mailing list