Skip to content

Commit

Permalink
brcm63xx: add uart nodes
Browse files Browse the repository at this point in the history
Now that we can register uarts through device-tree, add them to the dtsi
files.

Signed-off-by: Jonas Gorski <[email protected]>
  • Loading branch information
KanjiMonster committed Dec 16, 2017
1 parent 5c69047 commit a338408
Show file tree
Hide file tree
Showing 10 changed files with 224 additions and 0 deletions.
28 changes: 28 additions & 0 deletions target/linux/brcm63xx/dts/bcm3368.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
pflash = &pflash;
gpio0 = &gpio0;
gpio1 = &gpio1;
serial0 = &uart0;
serial1 = &uart1;
spi0 = &lsspi;
};

Expand Down Expand Up @@ -93,6 +95,32 @@
#gpio-cells = <2>;
};

uart0: serial@fff8c100 {
compatible = "brcm,bcm6345-uart";
reg = <0xfff8c100 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <2>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

uart1: serial@fff8c120 {
compatible = "brcm,bcm6345-uart";
reg = <0xfff8c120 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <3>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

lsspi: spi@fff8c800 {
#address-cells = <1>;
#size-cells = <0>;
Expand Down
14 changes: 14 additions & 0 deletions target/linux/brcm63xx/dts/bcm6318.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

aliases {
pinctrl = &pinctrl;
serial0 = &uart0;
spi1 = &hsspi;
};

Expand Down Expand Up @@ -166,6 +167,19 @@
};
};

uart0: serial@10000100 {
compatible = "brcm,bcm6345-uart";
reg = <0x10000100 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <28>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

leds: led-controller@10000200 {
#address-cells = <1>;
#size-cells = <0>;
Expand Down
28 changes: 28 additions & 0 deletions target/linux/brcm63xx/dts/bcm63268.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

aliases {
pinctrl = &pinctrl;
serial0 = &uart0;
serial1 = &uart1;
spi0 = &lsspi;
spi1 = &hsspi;
};
Expand Down Expand Up @@ -193,6 +195,32 @@
};
};

uart0: serial@10000180 {
compatible = "brcm,bcm6345-uart";
reg = <0x10000180 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <5>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

uart1: serial@100001a0 {
compatible = "brcm,bcm6345-uart";
reg = <0x100001a0 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <34>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

lsspi: spi@10000800 {
#address-cells = <1>;
#size-cells = <0>;
Expand Down
28 changes: 28 additions & 0 deletions target/linux/brcm63xx/dts/bcm6328.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

aliases {
pinctrl = &pinctrl;
serial0 = &uart0;
serial1 = &uart1;
spi1 = &hsspi;
};

Expand Down Expand Up @@ -151,6 +153,32 @@
};
};

uart0: serial@10000100 {
compatible = "brcm,bcm6345-uart";
reg = <0x10000100 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <28>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

uart1: serial@10000120 {
compatible = "brcm,bcm6345-uart";
reg = <0x10000120 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <39>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

leds: led-controller@10000800 {
#address-cells = <1>;
#size-cells = <0>;
Expand Down
14 changes: 14 additions & 0 deletions target/linux/brcm63xx/dts/bcm6338.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
aliases {
pflash = &pflash;
gpio0 = &gpio0;
serial0 = &uart0;
spi0 = &lsspi;
};

Expand Down Expand Up @@ -79,6 +80,19 @@
ngpios = <8>;
};

uart0: serial@fffe0300 {
compatible = "brcm,bcm6345-uart";
reg = <0xfffe0300 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <2>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

lsspi: spi@fffe0c00 {
#address-cells = <1>;
#size-cells = <0>;
Expand Down
14 changes: 14 additions & 0 deletions target/linux/brcm63xx/dts/bcm6345.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

aliases {
pflash = &pflash;
serial0 = &uart0;
gpio0 = &gpio0;
};

Expand Down Expand Up @@ -67,6 +68,19 @@
interrupts = <3>, <4>, <5>, <6>;
};

uart0: serial@fffe0300 {
compatible = "brcm,bcm6345-uart";
reg = <0xfffe0300 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <2>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

gpio0: gpio-controller@fffe0404 {
compatible = "brcm,bcm6345-gpio";
reg = <0xfffe0404 4>, <0xfffe0408 4>;
Expand Down
14 changes: 14 additions & 0 deletions target/linux/brcm63xx/dts/bcm6348.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
aliases {
pflash = &pflash;
pinctrl = &pinctrl;
serial0 = &uart0;
spi0 = &lsspi;
};

Expand Down Expand Up @@ -126,6 +127,19 @@
};
};

uart0: serial@fffe0300 {
compatible = "brcm,bcm6345-uart";
reg = <0xfffe0300 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <2>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

lsspi: spi@fffe0c00 {
#address-cells = <1>;
#size-cells = <0>;
Expand Down
28 changes: 28 additions & 0 deletions target/linux/brcm63xx/dts/bcm6358.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
aliases {
pflash = &pflash;
pinctrl = &pinctrl;
serial0 = &uart0;
serial1 = &uart1;
spi0 = &lsspi;
};

Expand Down Expand Up @@ -163,6 +165,32 @@
status = "disabled";
};

uart0: serial@fffe0100 {
compatible = "brcm,bcm6345-uart";
reg = <0xfffe0100 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <2>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

uart1: serial@fffe0120 {
compatible = "brcm,bcm6345-uart";
reg = <0xfffe0120 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <3>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

lsspi: spi@fffe0800 {
#address-cells = <1>;
#size-cells = <0>;
Expand Down
28 changes: 28 additions & 0 deletions target/linux/brcm63xx/dts/bcm6362.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

aliases {
pinctrl = &pinctrl;
serial0 = &uart0;
serial1 = &uart1;
spi0 = &lsspi;
spi1 = &hsspi;
};
Expand Down Expand Up @@ -237,6 +239,32 @@
};
};

uart0: serial@10000100 {
compatible = "brcm,bcm6345-uart";
reg = <0x10000100 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <3>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

uart1: serial@10000120 {
compatible = "brcm,bcm6345-uart";
reg = <0x10000120 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <4>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

lsspi: spi@10000800 {
#address-cells = <1>;
#size-cells = <0>;
Expand Down
28 changes: 28 additions & 0 deletions target/linux/brcm63xx/dts/bcm6368.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
aliases {
pflash = &pflash;
pinctrl = &pinctrl;
serial0 = &uart0;
serial1 = &uart1;
spi0 = &lsspi;
};

Expand Down Expand Up @@ -270,6 +272,32 @@
status = "disabled";
};

uart0: serial@10000100 {
compatible = "brcm,bcm6345-uart";
reg = <0x10000100 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <2>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

uart1: serial@10000120 {
compatible = "brcm,bcm6345-uart";
reg = <0x10000120 0x18>;

interrupt-parent = <&periph_intc>;
interrupts = <3>;

/* clocks = <&periph_clk>; */
/* clock-names = "refclk"; */

status = "disabled";
};

lsspi: spi@10000800 {
#address-cells = <1>;
#size-cells = <0>;
Expand Down

0 comments on commit a338408

Please sign in to comment.