From ffaaa6788a983a5eae0117d138a297df3f131869 Mon Sep 17 00:00:00 2001 From: Stanislav Galabov Date: Tue, 10 May 2016 16:23:54 +0300 Subject: 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 --- target/linux/ramips/dts/mt7621.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'target/linux/ramips/dts/mt7621.dtsi') diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi index bc30597..2ce07d7 100644 --- a/target/linux/ramips/dts/mt7621.dtsi +++ b/target/linux/ramips/dts/mt7621.dtsi @@ -109,6 +109,7 @@ reg = <0xc00 0x100>; clocks = <&sysclock>; + clock-frequency = <50000000>; interrupt-parent = <&gic>; interrupts = ; @@ -241,6 +242,11 @@ #reset-cells = <1>; }; + clkctrl: clkctrl { + compatible = "ralink,rt2880-clock"; + #clock-cells = <1>; + }; + sdhci: sdhci@1E130000 { compatible = "ralink,mt7620-sdhci"; reg = <0x1E130000 0x4000>; @@ -349,6 +355,11 @@ status = "okay"; + resets = <&rstctrl 24 &rstctrl 25 &rstctrl 26>; + reset-names = "pcie0", "pcie1", "pcie2"; + clocks = <&clkctrl 24 &clkctrl 25 &clkctrl 26>; + clock-names = "pcie0", "pcie1", "pcie2"; + pcie0 { reg = <0x0000 0 0 0 0>; -- cgit v1.1