[source] brcm63xx: add uart nodes
LEDE Commits
lede-commits at lists.infradead.org
Sat Dec 16 04:18:27 PST 2017
jogo pushed a commit to source.git, branch master:
https://git.lede-project.org/a3384088a212cb1458746624f016f93ff98135f3
commit a3384088a212cb1458746624f016f93ff98135f3
Author: Jonas Gorski <jonas.gorski at gmail.com>
AuthorDate: Mon Jul 31 11:08:20 2017 +0200
brcm63xx: add uart nodes
Now that we can register uarts through device-tree, add them to the dtsi
files.
Signed-off-by: Jonas Gorski <jonas.gorski at gmail.com>
---
target/linux/brcm63xx/dts/bcm3368.dtsi | 28 ++++++++++++++++++++++++++++
target/linux/brcm63xx/dts/bcm6318.dtsi | 14 ++++++++++++++
target/linux/brcm63xx/dts/bcm63268.dtsi | 28 ++++++++++++++++++++++++++++
target/linux/brcm63xx/dts/bcm6328.dtsi | 28 ++++++++++++++++++++++++++++
target/linux/brcm63xx/dts/bcm6338.dtsi | 14 ++++++++++++++
target/linux/brcm63xx/dts/bcm6345.dtsi | 14 ++++++++++++++
target/linux/brcm63xx/dts/bcm6348.dtsi | 14 ++++++++++++++
target/linux/brcm63xx/dts/bcm6358.dtsi | 28 ++++++++++++++++++++++++++++
target/linux/brcm63xx/dts/bcm6362.dtsi | 28 ++++++++++++++++++++++++++++
target/linux/brcm63xx/dts/bcm6368.dtsi | 28 ++++++++++++++++++++++++++++
10 files changed, 224 insertions(+)
diff --git a/target/linux/brcm63xx/dts/bcm3368.dtsi b/target/linux/brcm63xx/dts/bcm3368.dtsi
index 29dae01..66cb6ab 100644
--- a/target/linux/brcm63xx/dts/bcm3368.dtsi
+++ b/target/linux/brcm63xx/dts/bcm3368.dtsi
@@ -7,6 +7,8 @@
pflash = &pflash;
gpio0 = &gpio0;
gpio1 = &gpio1;
+ serial0 = &uart0;
+ serial1 = &uart1;
spi0 = &lsspi;
};
@@ -93,6 +95,32 @@
#gpio-cells = <2>;
};
+ uart0: serial at fff8c100 {
+ compatible = "brcm,bcm6345-uart";
+ reg = <0xfff8c100 0x18>;
+
+ interrupt-parent = <&periph_intc>;
+ interrupts = <2>;
+
+ /* clocks = <&periph_clk>; */
+ /* clock-names = "refclk"; */
+
+ status = "disabled";
+ };
+
+ uart1: serial at fff8c120 {
+ compatible = "brcm,bcm6345-uart";
+ reg = <0xfff8c120 0x18>;
+
+ interrupt-parent = <&periph_intc>;
+ interrupts = <3>;
+
+ /* clocks = <&periph_clk>; */
+ /* clock-names = "refclk"; */
+
+ status = "disabled";
+ };
+
lsspi: spi at fff8c800 {
#address-cells = <1>;
#size-cells = <0>;
diff --git a/target/linux/brcm63xx/dts/bcm6318.dtsi b/target/linux/brcm63xx/dts/bcm6318.dtsi
index 7c45051..a902c1b 100644
--- a/target/linux/brcm63xx/dts/bcm6318.dtsi
+++ b/target/linux/brcm63xx/dts/bcm6318.dtsi
@@ -5,6 +5,7 @@
aliases {
pinctrl = &pinctrl;
+ serial0 = &uart0;
spi1 = &hsspi;
};
@@ -166,6 +167,19 @@
};
};
+ uart0: serial at 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 at 10000200 {
#address-cells = <1>;
#size-cells = <0>;
diff --git a/target/linux/brcm63xx/dts/bcm63268.dtsi b/target/linux/brcm63xx/dts/bcm63268.dtsi
index 94c7dd0..1b4b3e6 100644
--- a/target/linux/brcm63xx/dts/bcm63268.dtsi
+++ b/target/linux/brcm63xx/dts/bcm63268.dtsi
@@ -5,6 +5,8 @@
aliases {
pinctrl = &pinctrl;
+ serial0 = &uart0;
+ serial1 = &uart1;
spi0 = &lsspi;
spi1 = &hsspi;
};
@@ -193,6 +195,32 @@
};
};
+ uart0: serial at 10000180 {
+ compatible = "brcm,bcm6345-uart";
+ reg = <0x10000180 0x18>;
+
+ interrupt-parent = <&periph_intc>;
+ interrupts = <5>;
+
+ /* clocks = <&periph_clk>; */
+ /* clock-names = "refclk"; */
+
+ status = "disabled";
+ };
+
+ uart1: serial at 100001a0 {
+ compatible = "brcm,bcm6345-uart";
+ reg = <0x100001a0 0x18>;
+
+ interrupt-parent = <&periph_intc>;
+ interrupts = <34>;
+
+ /* clocks = <&periph_clk>; */
+ /* clock-names = "refclk"; */
+
+ status = "disabled";
+ };
+
lsspi: spi at 10000800 {
#address-cells = <1>;
#size-cells = <0>;
diff --git a/target/linux/brcm63xx/dts/bcm6328.dtsi b/target/linux/brcm63xx/dts/bcm6328.dtsi
index 7a79aed..d08b6ba 100644
--- a/target/linux/brcm63xx/dts/bcm6328.dtsi
+++ b/target/linux/brcm63xx/dts/bcm6328.dtsi
@@ -5,6 +5,8 @@
aliases {
pinctrl = &pinctrl;
+ serial0 = &uart0;
+ serial1 = &uart1;
spi1 = &hsspi;
};
@@ -151,6 +153,32 @@
};
};
+ uart0: serial at 10000100 {
+ compatible = "brcm,bcm6345-uart";
+ reg = <0x10000100 0x18>;
+
+ interrupt-parent = <&periph_intc>;
+ interrupts = <28>;
+
+ /* clocks = <&periph_clk>; */
+ /* clock-names = "refclk"; */
+
+ status = "disabled";
+ };
+
+ uart1: serial at 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 at 10000800 {
#address-cells = <1>;
#size-cells = <0>;
diff --git a/target/linux/brcm63xx/dts/bcm6338.dtsi b/target/linux/brcm63xx/dts/bcm6338.dtsi
index 1811acf..3d1c068 100644
--- a/target/linux/brcm63xx/dts/bcm6338.dtsi
+++ b/target/linux/brcm63xx/dts/bcm6338.dtsi
@@ -6,6 +6,7 @@
aliases {
pflash = &pflash;
gpio0 = &gpio0;
+ serial0 = &uart0;
spi0 = &lsspi;
};
@@ -79,6 +80,19 @@
ngpios = <8>;
};
+ uart0: serial at fffe0300 {
+ compatible = "brcm,bcm6345-uart";
+ reg = <0xfffe0300 0x18>;
+
+ interrupt-parent = <&periph_intc>;
+ interrupts = <2>;
+
+ /* clocks = <&periph_clk>; */
+ /* clock-names = "refclk"; */
+
+ status = "disabled";
+ };
+
lsspi: spi at fffe0c00 {
#address-cells = <1>;
#size-cells = <0>;
diff --git a/target/linux/brcm63xx/dts/bcm6345.dtsi b/target/linux/brcm63xx/dts/bcm6345.dtsi
index b16c132..7d5f79b 100644
--- a/target/linux/brcm63xx/dts/bcm6345.dtsi
+++ b/target/linux/brcm63xx/dts/bcm6345.dtsi
@@ -5,6 +5,7 @@
aliases {
pflash = &pflash;
+ serial0 = &uart0;
gpio0 = &gpio0;
};
@@ -67,6 +68,19 @@
interrupts = <3>, <4>, <5>, <6>;
};
+ uart0: serial at 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 at fffe0404 {
compatible = "brcm,bcm6345-gpio";
reg = <0xfffe0404 4>, <0xfffe0408 4>;
diff --git a/target/linux/brcm63xx/dts/bcm6348.dtsi b/target/linux/brcm63xx/dts/bcm6348.dtsi
index b6dafee..f3e17be 100644
--- a/target/linux/brcm63xx/dts/bcm6348.dtsi
+++ b/target/linux/brcm63xx/dts/bcm6348.dtsi
@@ -6,6 +6,7 @@
aliases {
pflash = &pflash;
pinctrl = &pinctrl;
+ serial0 = &uart0;
spi0 = &lsspi;
};
@@ -126,6 +127,19 @@
};
};
+ uart0: serial at fffe0300 {
+ compatible = "brcm,bcm6345-uart";
+ reg = <0xfffe0300 0x18>;
+
+ interrupt-parent = <&periph_intc>;
+ interrupts = <2>;
+
+ /* clocks = <&periph_clk>; */
+ /* clock-names = "refclk"; */
+
+ status = "disabled";
+ };
+
lsspi: spi at fffe0c00 {
#address-cells = <1>;
#size-cells = <0>;
diff --git a/target/linux/brcm63xx/dts/bcm6358.dtsi b/target/linux/brcm63xx/dts/bcm6358.dtsi
index 8feb3dd..a78cdef 100644
--- a/target/linux/brcm63xx/dts/bcm6358.dtsi
+++ b/target/linux/brcm63xx/dts/bcm6358.dtsi
@@ -6,6 +6,8 @@
aliases {
pflash = &pflash;
pinctrl = &pinctrl;
+ serial0 = &uart0;
+ serial1 = &uart1;
spi0 = &lsspi;
};
@@ -163,6 +165,32 @@
status = "disabled";
};
+ uart0: serial at fffe0100 {
+ compatible = "brcm,bcm6345-uart";
+ reg = <0xfffe0100 0x18>;
+
+ interrupt-parent = <&periph_intc>;
+ interrupts = <2>;
+
+ /* clocks = <&periph_clk>; */
+ /* clock-names = "refclk"; */
+
+ status = "disabled";
+ };
+
+ uart1: serial at fffe0120 {
+ compatible = "brcm,bcm6345-uart";
+ reg = <0xfffe0120 0x18>;
+
+ interrupt-parent = <&periph_intc>;
+ interrupts = <3>;
+
+ /* clocks = <&periph_clk>; */
+ /* clock-names = "refclk"; */
+
+ status = "disabled";
+ };
+
lsspi: spi at fffe0800 {
#address-cells = <1>;
#size-cells = <0>;
diff --git a/target/linux/brcm63xx/dts/bcm6362.dtsi b/target/linux/brcm63xx/dts/bcm6362.dtsi
index 076fc6a..2ff5c52 100644
--- a/target/linux/brcm63xx/dts/bcm6362.dtsi
+++ b/target/linux/brcm63xx/dts/bcm6362.dtsi
@@ -5,6 +5,8 @@
aliases {
pinctrl = &pinctrl;
+ serial0 = &uart0;
+ serial1 = &uart1;
spi0 = &lsspi;
spi1 = &hsspi;
};
@@ -237,6 +239,32 @@
};
};
+ uart0: serial at 10000100 {
+ compatible = "brcm,bcm6345-uart";
+ reg = <0x10000100 0x18>;
+
+ interrupt-parent = <&periph_intc>;
+ interrupts = <3>;
+
+ /* clocks = <&periph_clk>; */
+ /* clock-names = "refclk"; */
+
+ status = "disabled";
+ };
+
+ uart1: serial at 10000120 {
+ compatible = "brcm,bcm6345-uart";
+ reg = <0x10000120 0x18>;
+
+ interrupt-parent = <&periph_intc>;
+ interrupts = <4>;
+
+ /* clocks = <&periph_clk>; */
+ /* clock-names = "refclk"; */
+
+ status = "disabled";
+ };
+
lsspi: spi at 10000800 {
#address-cells = <1>;
#size-cells = <0>;
diff --git a/target/linux/brcm63xx/dts/bcm6368.dtsi b/target/linux/brcm63xx/dts/bcm6368.dtsi
index 3efe76c..b834f9e 100644
--- a/target/linux/brcm63xx/dts/bcm6368.dtsi
+++ b/target/linux/brcm63xx/dts/bcm6368.dtsi
@@ -6,6 +6,8 @@
aliases {
pflash = &pflash;
pinctrl = &pinctrl;
+ serial0 = &uart0;
+ serial1 = &uart1;
spi0 = &lsspi;
};
@@ -270,6 +272,32 @@
status = "disabled";
};
+ uart0: serial at 10000100 {
+ compatible = "brcm,bcm6345-uart";
+ reg = <0x10000100 0x18>;
+
+ interrupt-parent = <&periph_intc>;
+ interrupts = <2>;
+
+ /* clocks = <&periph_clk>; */
+ /* clock-names = "refclk"; */
+
+ status = "disabled";
+ };
+
+ uart1: serial at 10000120 {
+ compatible = "brcm,bcm6345-uart";
+ reg = <0x10000120 0x18>;
+
+ interrupt-parent = <&periph_intc>;
+ interrupts = <3>;
+
+ /* clocks = <&periph_clk>; */
+ /* clock-names = "refclk"; */
+
+ status = "disabled";
+ };
+
lsspi: spi at 10000800 {
#address-cells = <1>;
#size-cells = <0>;
More information about the lede-commits
mailing list