Skip to contentSkip to conversation

ARM: dts: atlas7: add some missed nodes and properties

PATCH New Barry Song 1 participant 11 messages Jul 28, 2015 Device tree bindings

lore
Share & tools
lore

Barry Song

author
#0 lore raw

cover ARM: dts: atlas7: add some missed nodes and properties

From: Barry Song <[email protected]>

Andy Sun (1):
ARM: dts: atlas7: add a GPIO key for rearview button

Dongli Li (1):
ARM: dts: atlas7: add lost G2D node

Guo Zeng (1):
ARM: dts: atlas7: add lost PWM node

Huayi Li (1):
ARM: dts: atlas7: put pinctl property to get pinmux for NAND

Lily.Li (1):
ARM: dts: atlas7: add lost jpeg node

Qipan Li (1):
ARM: dts: atlas7: add alias name for spi device

Xiaofeng Fei (1):
ARM: dts: atlas7: add multimedia codec node

Ye He (2):
ARM: dts: atlas7: add performance monitor unit node
ARM: dts: atlas7: add lost gmac node

Yonghui Zhang (1):
ARM: dts: atlas7: add software digital radio nodes and its DMA
channels

 arch/arm/boot/dts/atlas7-evb.dts | 18 ++++++++
 arch/arm/boot/dts/atlas7.dtsi    | 97 ++++++++++++++++++++++++++++++++++++++--
 2 files changed, 111 insertions(+), 4 deletions(-)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/10 ARM: dts: atlas7: add lost jpeg node

From: "Lily.Li" <[email protected]>

this patch adds lost jpeg node, and also fix the ranges of its parent node.

---
 arch/arm/boot/dts/atlas7.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/atlas7.dtsi +9 -0
index 3e21311..d590b82 100644
@@ -1350,6 +1350,7 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 			ranges = <0x16000000 0x16000000 0x00200000>,
+				<0x17000000 0x17000000 0x10000>,
 				<0x17020000 0x17020000 0x1000>,
 				<0x17030000 0x17030000 0x1000>,
 				<0x17040000 0x17040000 0x1000>,
@@ -1416,6 +1417,14 @@
 				bus-width = <8>;
 			};
 
+			jpeg at 17000000 {
+				compatible = "sirf,atlas7-jpeg";
+				reg = <0x17000000 0x10000>;
+				interrupts = <0 72 0>,
+					<0 73 0>;
+				clocks = <&car 103>;
+			};
+
 			usb0: usb at 17060000 {
 				cell-index = <0>;
 				compatible = "sirf,atlas7-usb";
Signature · 1 line
1.9.1
author
#2 lore raw

PATCH 2/10 ARM: dts: atlas7: add performance monitor unit node

In reply to Barry Song

From: Ye He <[email protected]>

---
 arch/arm/boot/dts/atlas7.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/atlas7.dtsi +5 -0
index d590b82..3caa2cc 100644
@@ -53,6 +53,11 @@
 		};
 	};
 
+	arm-pmu {
+		compatible = "arm,cortex-a7-pmu";
+		interrupts = <0 29 4>, <0 82 4>;
+	};
+
 	noc {
 		compatible = "simple-bus";
 		#address-cells = <1>;
Signature · 1 line
1.9.1
author
#3 lore raw

PATCH 3/10 ARM: dts: atlas7: add lost gmac node

In reply to Barry Song

From: Ye He <[email protected]>

this patch adds lost ethernet gmac node, and also fix the ranges of its parent node.

---
 arch/arm/boot/dts/atlas7.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm/boot/dts/atlas7.dtsi +13 -0
index 3caa2cc..cc9db08 100644
@@ -1236,6 +1236,7 @@
 				<0x18040000 0x18040000 0x1000>,
 				<0x18050000 0x18050000 0x1000>,
 				<0x18060000 0x18060000 0x1000>,
+				<0x180b0000 0x180b0000 0x4000>,
 				<0x18100000 0x18100000 0x3000>,
 				<0x18250000 0x18250000 0x10000>,
 				<0x18200000 0x18200000 0x1000>;
@@ -1319,6 +1320,18 @@
 				dma-names = "rx", "tx";
 				status = "disabled";
 			};
+			gmac: eth at 180b0000 {
+				compatible = "snps, dwc-eth-qos";
+				reg = <0x180b0000 0x4000>;
+				interrupts = <0 59 0>, <0 70 0>;
+				interrupt-names = "macirq", "macpmt";
+				clocks = <&car 39>, <&car 45>,
+				       <&car 86>, <&car 87>;
+				clock-names = "gnssm_rgmii", "gnssm_gmac",
+					"rgmii", "gmac";
+				local-mac-address = [00 00 00 00 00 00];
+				phy-mode = "rgmii";
+			};
 			dspub at 18250000 {
 				compatible = "dx,cc44p";
 				reg = <0x18250000 0x10000>;
Signature · 1 line
1.9.1
author
#4 lore raw

PATCH 4/10 ARM: dts: atlas7: add alias name for spi device

In reply to Barry Song

From: Qipan Li <[email protected]>

spi framework can use alias name of spi device to retrieve the bus id, so bus id will not be dynamical but statical and it will be easier for test for a specified spi device with a fixed name like use spidev.

---
 arch/arm/boot/dts/atlas7.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/atlas7.dtsi +4 -0
index cc9db08..b872d12 100644
@@ -21,6 +21,10 @@
 		serial5 = &uart5;
 		serial6 = &uart6;
 		serial9 = &usp2;
+		spi1 = &spi1;
+		spi2 = &usp1;
+		spi3 = &usp2;
+		spi4 = &usp3;
 	};
 	cpus {
 		#address-cells = <1>;
Signature · 1 line
1.9.1
author
#5 lore raw

PATCH 5/10 ARM: dts: atlas7: add multimedia codec node

In reply to Barry Song

From: Xiaofeng Fei <[email protected]>

this patch adds multimedia video codec node, and also fixes the ranges of its parent node.

---
 arch/arm/boot/dts/atlas7.dtsi | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
arch/arm/boot/dts/atlas7.dtsi +9 -1
index b872d12..5a98485 100644
@@ -1371,7 +1371,8 @@
 			compatible = "arteris, flexnoc", "simple-bus";
 			#address-cells = <1>;
 			#size-cells = <1>;
-			ranges = <0x16000000 0x16000000 0x00200000>,
+			ranges = <0x15000000 0x15000000 0x00600000>,
+				<0x16000000 0x16000000 0x00200000>,
 				<0x17000000 0x17000000 0x10000>,
 				<0x17020000 0x17020000 0x1000>,
 				<0x17030000 0x17030000 0x1000>,
@@ -1383,6 +1384,13 @@
 				<0x17070200 0x17070200 0x100>,
 				<0x170A0000 0x170A0000 0x3000>;
 
+			multimedia at 15000000 {
+				compatible = "sirf,atlas7-video-codec";
+				reg = <0x15000000 0x10000>;
+				interrupts = <0 5 0>;
+				clocks = <&car 102>;
+			};
+
 			mediam at 170A0000 {
 				compatible = "sirf,nocfw-mediam";
 				reg = <0x170A0000 0x3000>;
Signature · 1 line
1.9.1
author
#6 lore raw

PATCH 6/10 ARM: dts: atlas7: add lost G2D node

In reply to Barry Song

From: Dongli Li <[email protected]>

this patch adds lost G2D node, and also fixes the range of its parent node.

---
 arch/arm/boot/dts/atlas7.dtsi | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
arch/arm/boot/dts/atlas7.dtsi +8 -1
index 5a98485..9bad559 100644
@@ -1865,7 +1865,8 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 			ranges = <0x13100000 0x13100000 0x20000>,
-				 <0x10e10000 0x10e10000 0x10000>;
+				<0x10e10000 0x10e10000 0x10000>,
+				<0x17010000 0x17010000 0x10000>;
 
 			lcd at 13100000 {
 				compatible = "sirf,atlas7-lcdc";
@@ -1887,6 +1888,12 @@
 				clocks = <&car 54>;
 				resets = <&car 29>;
 			};
+			g2d at 17010000 {
+				compatible = "sirf, atlas7-g2d";
+				reg = <0x17010000 0x10000>;
+				interrupts = <0 61 0>;
+				clocks = <&car 104>;
+			};
 
 		};
 
Signature · 1 line
1.9.1
author
#7 lore raw

PATCH 7/10 ARM: dts: atlas7: add lost PWM node

In reply to Barry Song

From: Guo Zeng <[email protected]>

this patch adds lost PWM node, and also fixes the ranges of its parent node.

---
 arch/arm/boot/dts/atlas7.dtsi | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
arch/arm/boot/dts/atlas7.dtsi +11 -1
index 9bad559..456cf81 100644
@@ -1214,7 +1214,8 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 			ranges = <0x18641000 0x18641000 0x3000>,
-					 <0x18620000 0x18620000 0x1000>;
+					 <0x18620000 0x18620000 0x1000>,
+					<0x18630000 0x18630000 0x10000>;
 
 			cgum at 18641000 {
 				compatible = "sirf,nocfw-cgum";
@@ -1227,6 +1228,15 @@
 				#clock-cells = <1>;
 				#reset-cells = <1>;
 			};
+			pwm: pwm at 18630000 {
+				compatible = "sirf,prima2-pwm";
+				#pwm-cells = <2>;
+				reg = <0x18630000 0x10000>;
+				clocks = <&car 138>, <&car 139>, <&car 237>,
+					<&car 240>,  <&car 140>, <&car 246>;
+				clock-names = "pwmc", "sigsrc0", "sigsrc1",
+					"sigsrc2", "sigsrc3", "sigsrc4";
+			};
 		};
 
 		gnssm {
Signature · 1 line
1.9.1
author
#8 lore raw

PATCH 8/10 ARM: dts: atlas7: add software digital radio nodes and its DMA channels

In reply to Barry Song

From: Yonghui Zhang <[email protected]>

this patch adds SDR(software digital raio) nodes and the DMA channels for it.

---
 arch/arm/boot/dts/atlas7.dtsi | 33 ++++++++++++++++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)
arch/arm/boot/dts/atlas7.dtsi +32 -1
index 456cf81..de38bc98 100644
@@ -1370,11 +1370,42 @@
 			compatible = "arteris, flexnoc", "simple-bus";
 			#address-cells = <1>;
 			#size-cells = <1>;
-			ranges = <0x13000000 0x13000000 0x3000>;
+			ranges = <0x13000000 0x13000000 0x3000>,
+				<0x13010000 0x13010000 0x1400>,
+				<0x13010800 0x13010800 0x100>,
+				<0x13011000 0x13011000 0x100>;
 			gpum at 0x13000000 {
 				compatible = "sirf,nocfw-gpum";
 				reg = <0x13000000 0x3000>;
 			};
+			dmacsdrr: dma-controller at 13010800 {
+				cell-index = <5>;
+				compatible = "sirf,atlas7-dmac-v2";
+				reg = <0x13010800 0x100>;
+				interrupts = <0 8 0>;
+				clocks = <&car 127>;
+				#dma-cells = <1>;
+				#dma-channels = <1>;
+			};
+			dmacsdrw: dma-controller at 13011000 {
+				cell-index = <6>;
+				compatible = "sirf,atlas7-dmac-v2";
+				reg = <0x13011000 0x100>;
+				interrupts = <0 9 0>;
+				clocks = <&car 127>;
+				#dma-cells = <1>;
+				#dma-channels = <1>;
+			};
+			sdr at 0x13010000 {
+				compatible = "sirf,atlas7-sdr";
+				reg = <0x13010000 0x1400>;
+				interrupts = <0 7 0>,
+					   <0 8 0>,
+					   <0 9 0>;
+				clocks = <&car 127>;
+				dmas = <&dmacsdrr 0>, <&dmacsdrw 0>;
+				dma-names = "tx", "rx";
+			};
 		};
 
 		mediam {
Signature · 1 line
1.9.1
author
#9 lore raw

PATCH 9/10 ARM: dts: atlas7: put pinctl property to get pinmux for NAND

In reply to Barry Song

From: Huayi Li <[email protected]>

Nand controller often share some pins with sd/mmc controller on atlas and prima series, nand node can be disabled if the pins are used by sd/mmc controller.

---
 arch/arm/boot/dts/atlas7.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/atlas7.dtsi +2 -0
index de38bc98..83449b3 100644
@@ -1458,6 +1458,8 @@
 			nand at 17050000 {
 				compatible = "sirf,atlas7-nand";
 				reg = <0x17050000 0x10000>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&nd_df_pmx>;
 				interrupts = <0 41 0>;
 				clocks = <&car 108>, <&car 112>;
 				clock-names = "nand_io", "nand_nand";
Signature · 1 line
1.9.1
author
#10 lore raw

PATCH 10/10 ARM: dts: atlas7: add a GPIO key for rearview button

In reply to Barry Song

From: Andy Sun <[email protected]>

Touching this key will trigger a camera event for rearview.

---
 arch/arm/boot/dts/atlas7-evb.dts | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
arch/arm/boot/dts/atlas7-evb.dts +18 -0
index 49cf59a..1e9cd1a 100644
@@ -10,6 +10,9 @@
 
 /include/ "atlas7.dtsi"
 
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/gpio/gpio.h>
+
 / {
 	model = "CSR SiRFatlas7 Evaluation Board";
 	compatible = "sirf,atlas7-cb", "sirf,atlas7";
@@ -106,5 +109,20 @@
 				};
 			};
 		};
+
+		gpio_keys {
+			compatible = "gpio-keys";
+			status = "okay";
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			rearview_key {
+				label = "rearview key";
+				linux,code = <KEY_CAMERA>;
+				gpios = <&gpio_1 3 GPIO_ACTIVE_LOW>;
+				debounce_interval = <100>;
+			};
+		};
+
 	};
 };
Signature · 1 line
1.9.1