Message ID | 1381836054-6590-3-git-send-email-l.krishna@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Leela, On Tuesday 15 of October 2013 16:50:54 Leela Krishna Amudala wrote: > Adds G-Scaler devices to the DT device list > > Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com> > --- > arch/arm/boot/dts/exynos5420.dtsi | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/arch/arm/boot/dts/exynos5420.dtsi > b/arch/arm/boot/dts/exynos5420.dtsi index 7f0296c..f86aeea 100644 > --- a/arch/arm/boot/dts/exynos5420.dtsi > +++ b/arch/arm/boot/dts/exynos5420.dtsi > @@ -31,6 +31,8 @@ > i2c1 = &i2c_1; > i2c2 = &i2c_2; > i2c3 = &i2c_3; > + gsc0 = &gsc_0; > + gsc1 = &gsc_1; Do you really need these aliases? > }; > > cpus { > @@ -313,4 +315,22 @@ > clocks = <&clock 431>, <&clock 143>; > clock-names = "mixer", "sclk_hdmi"; > }; > + > + gsc_0: gsc@0x13e00000 { coding style: There should be no 0x in node name and the name should be more meaningful, e.g. video-scaler. Best regards, Tomasz -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Tomasz, On Wed, Oct 16, 2013 at 12:21 AM, Tomasz Figa <tomasz.figa@gmail.com> wrote: > Hi Leela, > > On Tuesday 15 of October 2013 16:50:54 Leela Krishna Amudala wrote: >> Adds G-Scaler devices to the DT device list >> >> Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com> >> --- >> arch/arm/boot/dts/exynos5420.dtsi | 20 ++++++++++++++++++++ >> 1 file changed, 20 insertions(+) >> >> diff --git a/arch/arm/boot/dts/exynos5420.dtsi >> b/arch/arm/boot/dts/exynos5420.dtsi index 7f0296c..f86aeea 100644 >> --- a/arch/arm/boot/dts/exynos5420.dtsi >> +++ b/arch/arm/boot/dts/exynos5420.dtsi >> @@ -31,6 +31,8 @@ >> i2c1 = &i2c_1; >> i2c2 = &i2c_2; >> i2c3 = &i2c_3; >> + gsc0 = &gsc_0; >> + gsc1 = &gsc_1; > > Do you really need these aliases? > Yes, without these aliases probe function fails saying [ 1.040000] exynos-gsc 13e00000.gsc: Invalid platform device id: 65517 [ 1.045000] exynos-gsc: probe of 13e00000.gsc failed with error -22 >> }; >> >> cpus { >> @@ -313,4 +315,22 @@ >> clocks = <&clock 431>, <&clock 143>; >> clock-names = "mixer", "sclk_hdmi"; >> }; >> + >> + gsc_0: gsc@0x13e00000 { > > coding style: There should be no 0x in node name and the name should > be more meaningful, e.g. video-scaler. > Okay, will change it and post next version of this patch. Best Wishes, Leela Krishna. > Best regards, > Tomasz > > -- > To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, Oct 16, 2013 at 3:38 PM, Leela Krishna Amudala <l.krishna@samsung.com> wrote: > Hi Tomasz, > > On Wed, Oct 16, 2013 at 12:21 AM, Tomasz Figa <tomasz.figa@gmail.com> wrote: >> Hi Leela, >> >> On Tuesday 15 of October 2013 16:50:54 Leela Krishna Amudala wrote: >>> Adds G-Scaler devices to the DT device list >>> >>> Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com> >>> --- >>> arch/arm/boot/dts/exynos5420.dtsi | 20 ++++++++++++++++++++ >>> 1 file changed, 20 insertions(+) >>> >>> diff --git a/arch/arm/boot/dts/exynos5420.dtsi >>> b/arch/arm/boot/dts/exynos5420.dtsi index 7f0296c..f86aeea 100644 >>> --- a/arch/arm/boot/dts/exynos5420.dtsi >>> +++ b/arch/arm/boot/dts/exynos5420.dtsi >>> @@ -31,6 +31,8 @@ >>> i2c1 = &i2c_1; >>> i2c2 = &i2c_2; >>> i2c3 = &i2c_3; >>> + gsc0 = &gsc_0; >>> + gsc1 = &gsc_1; >> >> Do you really need these aliases? >> > > Yes, without these aliases probe function fails saying > [ 1.040000] exynos-gsc 13e00000.gsc: Invalid platform device id: 65517 > [ 1.045000] exynos-gsc: probe of 13e00000.gsc failed with error -22 > In gsc_probe() function, of_alias_get_id(pdev->dev.of_node, "gsc") is returning error value, Hence probe failing. >>> }; >>> >>> cpus { >>> @@ -313,4 +315,22 @@ >>> clocks = <&clock 431>, <&clock 143>; >>> clock-names = "mixer", "sclk_hdmi"; >>> }; >>> + >>> + gsc_0: gsc@0x13e00000 { >> >> coding style: There should be no 0x in node name and the name should >> be more meaningful, e.g. video-scaler. >> > > Okay, will change it and post next version of this patch. > > Best Wishes, > Leela Krishna. > >> Best regards, >> Tomasz >> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wednesday 16 of October 2013 15:46:21 Leela Krishna Amudala wrote: > On Wed, Oct 16, 2013 at 3:38 PM, Leela Krishna Amudala > <l.krishna@samsung.com> wrote: > > Hi Tomasz, > > > > On Wed, Oct 16, 2013 at 12:21 AM, Tomasz Figa <tomasz.figa@gmail.com> wrote: > >> Hi Leela, > >> > >> On Tuesday 15 of October 2013 16:50:54 Leela Krishna Amudala wrote: > >>> Adds G-Scaler devices to the DT device list > >>> > >>> Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com> > >>> --- > >>> arch/arm/boot/dts/exynos5420.dtsi | 20 ++++++++++++++++++++ > >>> 1 file changed, 20 insertions(+) > >>> > >>> diff --git a/arch/arm/boot/dts/exynos5420.dtsi > >>> b/arch/arm/boot/dts/exynos5420.dtsi index 7f0296c..f86aeea 100644 > >>> --- a/arch/arm/boot/dts/exynos5420.dtsi > >>> +++ b/arch/arm/boot/dts/exynos5420.dtsi > >>> @@ -31,6 +31,8 @@ > >>> i2c1 = &i2c_1; > >>> i2c2 = &i2c_2; > >>> i2c3 = &i2c_3; > >>> + gsc0 = &gsc_0; > >>> + gsc1 = &gsc_1; > >> > >> Do you really need these aliases? > >> > > > > Yes, without these aliases probe function fails saying > > [ 1.040000] exynos-gsc 13e00000.gsc: Invalid platform device id: 65517 > > [ 1.045000] exynos-gsc: probe of 13e00000.gsc failed with error -22 > > > > In gsc_probe() function, of_alias_get_id(pdev->dev.of_node, "gsc") is > returning error value, > Hence probe failing. OK. > >>> }; > >>> > >>> cpus { > >>> @@ -313,4 +315,22 @@ > >>> clocks = <&clock 431>, <&clock 143>; > >>> clock-names = "mixer", "sclk_hdmi"; > >>> }; > >>> + > >>> + gsc_0: gsc@0x13e00000 { > >> > >> coding style: There should be no 0x in node name and the name should > >> be more meaningful, e.g. video-scaler. > >> > > > > Okay, will change it and post next version of this patch. OK. Thanks. Best regards, Tomasz -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index 7f0296c..f86aeea 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -31,6 +31,8 @@ i2c1 = &i2c_1; i2c2 = &i2c_2; i2c3 = &i2c_3; + gsc0 = &gsc_0; + gsc1 = &gsc_1; }; cpus { @@ -313,4 +315,22 @@ clocks = <&clock 431>, <&clock 143>; clock-names = "mixer", "sclk_hdmi"; }; + + gsc_0: gsc@0x13e00000 { + compatible = "samsung,exynos5-gsc"; + reg = <0x13e00000 0x1000>; + interrupts = <0 85 0>; + clocks = <&clock 465>; + clock-names = "gscl"; + samsung,power-domain = <&gsc_pd>; + }; + + gsc_1: gsc@0x13e10000 { + compatible = "samsung,exynos5-gsc"; + reg = <0x13e10000 0x1000>; + interrupts = <0 86 0>; + clocks = <&clock 466>; + clock-names = "gscl"; + samsung,power-domain = <&gsc_pd>; + }; };
Adds G-Scaler devices to the DT device list Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com> --- arch/arm/boot/dts/exynos5420.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)