[PATCH 2/4] arm64: dts: Renesas: R-Car3: Add product register

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The product register of the Renesas R-Car3 isn't part of any SoC
module, but "just" a register at address 0xFFF00044.

It provides some configuration information about the SoC itself, like
the number of the CA57, CA53 and CR7 cores, the product description
(R-Car H3, R-Car M3-W etc) and the sample revision.

This information is needed by some drivers to enable or disable
specific features which are present or not in the SoC.

Signed-off-by: Dirk Behme <dirk.behme@xxxxxxxxxxxx>
---
 .../bindings/soc/renesas/renesas,rcar-gen3-prr.txt  | 21 +++++++++++++++++++++
 arch/arm64/boot/dts/renesas/r8a7795.dtsi            |  6 ++++++
 arch/arm64/boot/dts/renesas/r8a7796.dtsi            |  6 ++++++
 3 files changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/soc/renesas/renesas,rcar-gen3-prr.txt

diff --git a/Documentation/devicetree/bindings/soc/renesas/renesas,rcar-gen3-prr.txt b/Documentation/devicetree/bindings/soc/renesas/renesas,rcar-gen3-prr.txt
new file mode 100644
index 0000000..23101cd
--- /dev/null
+++ b/Documentation/devicetree/bindings/soc/renesas/renesas,rcar-gen3-prr.txt
@@ -0,0 +1,21 @@
+Renesas R-Car3 product register binding
+---------------------------------------
+
+The product register of the Renesas R-Car3 provides some configuration
+information about the SoC itself, like the number of the CA57, CA53 and
+CR7 cores, the product description (R-Car H3, R-Car M3-W etc) and the
+sample revision. This information is needed by some drivers to enable
+or disable specific features which are present or not in the SoC.
+
+Required properties:
+- compatible : "renesas,rcar-gen3-prr"
+	       and additionally a SoC specific property like
+	       "renesas,r8a7795-prr" or
+	       "renesas,r8a7796-prr"
+- reg : Location and size of the product register
+
+Example:
+	prr: product-register@fff00044 {
+		compatible = "renesas,rcar-gen3-prr", "renesas,r8a7795-prr";
+		reg = <0 0xfff00044 0 0x4>;
+	};
diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
index 26df300..0ae4687 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
@@ -1610,5 +1610,11 @@
 			interrupts = <0 436 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&cpg CPG_MOD 728>;
 		};
+
+		prr: product-register@fff00044 {
+			compatible = "renesas,rcar-gen3-prr",
+				     "renesas,r8a7795-prr";
+			reg = <0 0xfff00044 0 0x4>;
+		};
 	};
 };
diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi
index 1389528..100b531 100644
--- a/arch/arm64/boot/dts/renesas/r8a7796.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7796.dtsi
@@ -141,5 +141,11 @@
 			power-domains = <&sysc R8A7796_PD_ALWAYS_ON>;
 			status = "disabled";
 		};
+
+		prr: product-register@fff00044 {
+			compatible = "renesas,rcar-gen3-prr",
+				     "renesas,r8a7796-prr";
+			reg = <0 0xfff00044 0 0x4>;
+		};
 	};
 };
-- 
2.8.0




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux