Skip to contentSkip to conversation

ARM: dts: Exynos5420: Add dt support for gscaler

PATCH In review Leela Krishna Amudala 2 participants 2 messages Oct 16, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: Exynos5420: Add dt support for gscaler

Adds G-Scaler devices to the DT device list

---
 arch/arm/boot/dts/exynos5420.dtsi |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm/boot/dts/exynos5420.dtsi +20 -0
index 09aa06c..c4210dc 100644
@@ -31,6 +31,8 @@
 		i2c1 = &i2c_1;
 		i2c2 = &i2c_2;
 		i2c3 = &i2c_3;
+		gsc0 = &gsc_0;
+		gsc1 = &gsc_1;
 	};
 
 	cpus {
@@ -310,4 +312,22 @@
 		clocks = <&clock 431>, <&clock 143>;
 		clock-names = "mixer", "sclk_hdmi";
 	};
+
+	gsc_0:  g-scaler@13e00000 {
+		compatible = "samsung,exynos5-gsc";
+		reg = <0x13e00000 0x1000>;
+		interrupts = <0 85 0>;
+		clocks = <&clock 465>;
+		clock-names = "gscl";
+		samsung,power-domain = <&gsc_pd>;
+	};
+
+	gsc_1:  g-scaler@13e10000 {
+		compatible = "samsung,exynos5-gsc";
+		reg = <0x13e10000 0x1000>;
+		interrupts = <0 86 0>;
+		clocks = <&clock 466>;
+		clock-names = "gscl";
+		samsung,power-domain = <&gsc_pd>;
+	};
 };
Signature · 1 line
1.7.9.5
#1 lore raw

Hi Leela,

Quoted 6 lines · On Wednesday 16 of October 2013 16:26:26 Leela Krishna Amudala wrote:

Adds G-Scaler devices to the DT device list

---
 arch/arm/boot/dts/exynos5420.dtsi |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

Now as I think of it, patch subject should be rather something like:

ARM: dts: Exynos5420: Add device nodes for GScaler blocks

because the patch alone does not have anything to do with adding device tree support to GScaler driver.

Also please see remaining comments inline.

Quoted 14 lines
arch/arm/boot/dts/exynos5420.dtsi +2 -0
index 09aa06c..c4210dc 100644
@@ -31,6 +31,8 @@
 		i2c1 = &i2c_1;
 		i2c2 = &i2c_2;
 		i2c3 = &i2c_3;
+		gsc0 = &gsc_0;
+		gsc1 = &gsc_1;
 	};
 
 	cpus {

arch/arm/boot/dts/exynos5420.dtsi line 316

Quoted 5 lines
arch/arm/boot/dts/exynos5420.dtsi +2 -0
@@ -310,4 +312,22 @@
 		clocks = <&clock 431>, <&clock 143>;
 		clock-names = "mixer", "sclk_hdmi";
 	};
+
+	gsc_0:  g-scaler@13e00000 {

coding style: There should be just one space after the label.

coding style 2: Please name the node simply video-scaler. Node name is not supposed to tell what exactly the device is. The name should be mostly used for readability, so a person reading the sources can find that this node represents some video scaler and then by looking at compatible value he would be able to state that it is an GScaler block compatible with this on Exynos 5 SoCs.

Best regards,
Tomasz