Skip to contentSkip to conversation

MIPS: dts: qca: ar9132: misc fixes

PATCH Superseded Antony Pavlov 2 participants 6 messages Jan 21, 2016 3 messages not in the archive

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

cover MIPS: dts: qca: ar9132: misc fixes

Antony Pavlov (3):
MIPS: dts: qca: ar9132_tl_wr1043nd_v1.dts: drop unused alias node
MIPS: dts: qca: ar9132: drop unused extosc mentions
MIPS: dts: qca: ar9132: use short references for uart and spi nodes

 arch/mips/boot/dts/qca/ar9132.dtsi               |  7 +-
 arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 84 ++++++++++--------------
 2 files changed, 35 insertions(+), 56 deletions(-)
Signature · 6 lines
2.6.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

PATCH 1/3 MIPS: dts: qca: ar9132_tl_wr1043nd_v1.dts: drop unused alias node

In reply to a message not in the archive
---
 arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 4 ----
 1 file changed, 4 deletions(-)
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +0 -4
index 003015a..a6108f8 100644
@@ -9,10 +9,6 @@
 	compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
 	model = "TP-Link TL-WR1043ND Version 1";
 
-	alias {
-		serial0 = "/ahb/apb/uart@18020000";
-	};
-
 	memory@0 {
 		device_type = "memory";
 		reg = <0x0 0x2000000>;
Signature · 6 lines
2.6.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#5 lore raw

PATCH 2/3 MIPS: dts: qca: ar9132: drop unused extosc mentions

In reply to a message not in the archive

At the moment ar913x_clocks_init() does not use extosc node at all, the reference clock rate is hardcoded inside arch/mips/ath79/clock.c

    #define AR913X_BASE_FREQ        5000000

    ...

    static void __init ar913x_clocks_init(void)
    {
            ref_rate = AR913X_BASE_FREQ;

    ...

            ath79_add_sys_clkdev("ref", ref_rate);

Also please see the commits 'MIPS: ath79: Fix the ar913x reference clock rate' and 'MIPS: ath79: Fix the ar724x clock calculation' in Alban Bedel's github ath79 branch https://github.com/AlbanBedel/linux/tree/ath79

---
 arch/mips/boot/dts/qca/ar9132.dtsi               |  3 ---
 arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 10 ----------
 2 files changed, 13 deletions(-)
arch/mips/boot/dts/qca/ar9132.dtsi +0 -3
index 13d0439..84787e30 100644
@@ -87,9 +87,6 @@
 						"qca,ar9130-pll";
 				reg = <0x18050000 0x20>;
 
-				clock-names = "ref";
-				/* The board must provides the ref clock */
-
 				#clock-cells = <1>;
 				clock-output-names = "cpu", "ddr", "ahb";
 			};
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +0 -10
index a6108f8..10905f6 100644
@@ -14,21 +14,11 @@
 		reg = <0x0 0x2000000>;
 	};
 
-	extosc: oscillator {
-		compatible = "fixed-clock";
-		#clock-cells = <0>;
-		clock-frequency = <40000000>;
-	};
-
 	ahb {
 		apb {
 			uart@18020000 {
 				status = "okay";
 			};
-
-			pll-controller@18050000 {
-				clocks = <&extosc>;
-			};
 		};
 
 		spi@1f000000 {
Signature · 6 lines
2.6.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#8 lore raw

PATCH 3/3 MIPS: dts: qca: ar9132: use short references for uart and spi nodes

In reply to a message not in the archive
---
 arch/mips/boot/dts/qca/ar9132.dtsi               |  4 +-
 arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 70 +++++++++++-------------
 2 files changed, 35 insertions(+), 39 deletions(-)
arch/mips/boot/dts/qca/ar9132.dtsi +2 -2
index 84787e30..f197815 100644
@@ -52,7 +52,7 @@
 				#qca,ddr-wb-channel-cells = <1>;
 			};
 
-			uart@18020000 {
+			uart: uart@18020000 {
 				compatible = "ns8250";
 				reg = <0x18020000 0x20>;
 				interrupts = <3>;
@@ -122,7 +122,7 @@
 			};
 		};
 
-		spi@1f000000 {
+		spi: spi@1f000000 {
 			compatible = "qca,ar9132-spi", "qca,ar7100-spi";
 			reg = <0x1f000000 0x10>;
 
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +33 -37

79 lines not on this page · raw message

Signature · 6 lines
2.6.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw

Re: [PATCH 1/3] MIPS: dts: qca: ar9132_tl_wr1043nd_v1.dts: drop unused alias node

In reply to a message not in the archive

On Thu, 21 Jan 2016 12:59:03 +0300
Antony Pavlov <[email protected]> wrote:

This will need at least a small log that explain that why it is useless. This board only have this one serial, so replacing the default of 0 with 0 does nothing usefull.

Alban

Quoted 13 lines
---
 arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 4 ----
 1 file changed, 4 deletions(-)
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +0 -0
index 003015a..a6108f8 100644

arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts line 14

Quoted 10 lines
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +0 -4
@@ -9,10 +9,6 @@
 	compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
 	model = "TP-Link TL-WR1043ND Version 1";
 
-	alias {
-		serial0 = "/ahb/apb/uart@18020000";
-	};
-
 	memory@0 {
 		device_type = "memory";
 		reg = <0x0 0x2000000>;

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw

Re: [PATCH 2/3] MIPS: dts: qca: ar9132: drop unused extosc mentions

In reply to a message not in the archive
Quoted 15 lines · On Thu, 21 Jan 2016 12:59:04 +0300 Antony Pavlov…

At the moment ar913x_clocks_init() does not use extosc node at all, the reference clock rate is hardcoded inside arch/mips/ath79/clock.c

    #define AR913X_BASE_FREQ        5000000

    ...

    static void __init ar913x_clocks_init(void)
    {
            ref_rate = AR913X_BASE_FREQ;

    ...

            ath79_add_sys_clkdev("ref", ref_rate);
Quoted 3 lines

Also please see the commits 'MIPS: ath79: Fix the ar913x reference clock rate' and 'MIPS: ath79: Fix the ar724x clock calculation' in Alban Bedel's github ath79 branch https://github.com/AlbanBedel/linux/tree/ath79

Yes, the reference clock definition is not yet used by the code, but the binding define it as required. This is because a proper implementation would need the reference clock rate.

It would be better to fix the code to get rid of the hard coded rates when using DT. I haven't done so yet because I wanted to first get DT support without too many changes, but that's on the TODO list along with moving to drivers/clk.

Alban
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html