aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7628an.dtsi
diff options
context:
space:
mode:
authorStanislav Galabov <sgalabov@gmail.com>2016-06-24 11:44:26 +0200
committerZoltan HERPAI <wigyori@uid0.hu>2016-06-24 11:44:26 +0200
commit2bf6b1e78aefa796e73928d5072c356f1b74c290 (patch)
tree237c21007a051d21110b8442f974eb1e42b48763 /target/linux/ramips/dts/mt7628an.dtsi
parent3059f411b46a94e54b6627e6d507b48958012cbc (diff)
downloadmaster-187ad058-2bf6b1e78aefa796e73928d5072c356f1b74c290.tar.gz
master-187ad058-2bf6b1e78aefa796e73928d5072c356f1b74c290.tar.bz2
master-187ad058-2bf6b1e78aefa796e73928d5072c356f1b74c290.zip
ramips: DTS modifications
This commit makes the following modifications to ramips dts files: 1. Add clkctrl node to all dtsi files (although not used for now) 2. Add clocks and clock-names properties to some nodes (usbphy, pci) 3. Add usbphy node for rt3050 (although not used for now) 4. Add clock-frequency to uart nodes in mt7621.dtsi and mt7628an.dtsi These modifications, although not fully used at the moment, will make it easier for FreeBSD to adopt and use LEDE ramips dts files with minimal changes for easier maintenance. Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
Diffstat (limited to 'target/linux/ramips/dts/mt7628an.dtsi')
-rw-r--r--target/linux/ramips/dts/mt7628an.dtsi21
1 files changed, 18 insertions, 3 deletions
diff --git a/target/linux/ramips/dts/mt7628an.dtsi b/target/linux/ramips/dts/mt7628an.dtsi
index b242e48d21..6b8b1b73d0 100644
--- a/target/linux/ramips/dts/mt7628an.dtsi
+++ b/target/linux/ramips/dts/mt7628an.dtsi
@@ -166,6 +166,8 @@
reg-io-width = <4>;
no-loopback-test;
+ clock-frequency = <40000000>;
+
resets = <&rstctrl 12>;
reset-names = "uartl";
@@ -184,6 +186,8 @@
reg-io-width = <4>;
no-loopback-test;
+ clock-frequency = <40000000>;
+
resets = <&rstctrl 19>;
reset-names = "uart1";
@@ -204,6 +208,8 @@
reg-io-width = <4>;
no-loopback-test;
+ clock-frequency = <40000000>;
+
resets = <&rstctrl 20>;
reset-names = "uart2";
@@ -344,6 +350,11 @@
#reset-cells = <1>;
};
+ clkctrl: clkctrl {
+ compatible = "ralink,rt2880-clock";
+ #clock-cells = <1>;
+ };
+
usbphy: usbphy@10120000 {
compatible = "ralink,mt7628an-usbphy", "mediatek,mt7620-usbphy";
reg = <0x10120000 0x4000>;
@@ -351,6 +362,8 @@
resets = <&rstctrl 22 &rstctrl 25>;
reset-names = "host", "device";
+ clocks = <&clkctrl 22 &clkctrl 25>;
+ clock-names = "host", "device";
};
sdhci: sdhci@10130000 {
@@ -420,12 +433,14 @@
#address-cells = <3>;
#size-cells = <2>;
- resets = <&rstctrl 26>;
- reset-names = "pcie0";
-
interrupt-parent = <&cpuintc>;
interrupts = <4>;
+ resets = <&rstctrl 26 &rstctrl 27>;
+ reset-names = "pcie0", "pcie1";
+ clocks = <&clkctrl 26 &clkctrl 27>;
+ clock-names = "pcie0", "pcie1";
+
status = "disabled";
device_type = "pci";