From: Tomasz Figa <tomasz.figa@gmail.com>
To: Vikas Sajjan <vikas.sajjan@linaro.org>
Cc: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com,
t.figa@samsung.com, devicetree-discuss@lists.ozlabs.org,
jg1.han@samsung.com, inki.dae@samsung.com, patches@linaro.org,
linaro-kernel@lists.linaro.org
Subject: Re: [PATCH 4/7] ARM: dts: Add FIMD DT node to exynos5420 DTS files
Date: Mon, 29 Jul 2013 23:48:38 +0200 [thread overview]
Message-ID: <2252729.V1lMZqU45k@thinkpad> (raw)
In-Reply-To: <1375105771-8106-5-git-send-email-vikas.sajjan@linaro.org>
Hi Vikas,
Please see my comments inline.
On Monday 29 of July 2013 19:19:28 Vikas Sajjan wrote:
> Adds FIMD DT node to exynos5420 based SMDK. Also adds display-timimg
> information node.
>
> Signed-off-by: Vikas Sajjan <vikas.sajjan@linaro.org>
> ---
> arch/arm/boot/dts/exynos5420-smdk5420.dts | 18 ++++++++++++++++++
> arch/arm/boot/dts/exynos5420.dtsi | 8 ++++++++
> 2 files changed, 26 insertions(+)
>
> diff --git a/arch/arm/boot/dts/exynos5420-smdk5420.dts
> b/arch/arm/boot/dts/exynos5420-smdk5420.dts index 08607df..7c2f477 100644
> --- a/arch/arm/boot/dts/exynos5420-smdk5420.dts
> +++ b/arch/arm/boot/dts/exynos5420-smdk5420.dts
> @@ -30,4 +30,22 @@
> clock-frequency = <24000000>;
> };
> };
> +
> + fimd {
> + display-timings {
> + native-mode = <&timing0>;
> + timing0: timing@0 {
> + clock-frequency = <50000>;
> + hactive = <2560>;
> + vactive = <1600>;
> + hfront-porch = <48>;
> + hback-porch = <80>;
> + hsync-len = <32>;
> + vback-porch = <16>;
> + vfront-porch = <8>;
> + vsync-len = <6>;
> + };
> + };
> + };
> +
> };
> diff --git a/arch/arm/boot/dts/exynos5420.dtsi
> b/arch/arm/boot/dts/exynos5420.dtsi index bd6b310..1f659f4 100644
> --- a/arch/arm/boot/dts/exynos5420.dtsi
> +++ b/arch/arm/boot/dts/exynos5420.dtsi
> @@ -180,4 +180,12 @@
> clocks = <&clock 260>, <&clock 131>;
> clock-names = "uart", "clk_uart_baud0";
> };
> +
> + fimd {
> + samsung,power-domain = <&disp_pd>;
> + clocks = <&clock 147>, <&clock 421>;
> + clock-names = "sclk_fimd", "fimd";
> + status = "okay";
FIMD can't operate without display timings, so status = "okay" doesn't
represent real device state here. Please move status override to board dts.
I know that dtsi files of Exynos 5 SoCs have "okay" status as default, but this
is broken and needs to be fixed, because it moves the responsibility of knowing
about all SoC hardware to board dts.
Generally, the ePAPR document, chapter 2.3.4, specifies following definition of
status property:
The status property indicates the operational status of a device. Valid
values are listed and defined in the following table.
The table specifies following values:
“okay”
Indicates the device is operational
“disabled”
Indicates that the device is not presently operational, but it might become
operational in the future (for example, something is not plugged in, or
switched off). Refer to the device binding for details on what disabled
means for a given device.
“fail”
Indicates that the device is not operational. A serious error was detected
in the device, and it is unlikely to become operational without repair.
“fail-sss”
Indicates that the device is not operational. A serious error was detected
in the device and it is unlikely to become operational without repair. The
sss portion of the value is specific to the device and indicates the error
condition detected.
Without all required properties the device will not be operational, so its
status should be set to "disabled" and then overriden to "okay" when missing
properties are provided (e.g. in board dts).
Best regards,
Tomasz
> + };
> +
> };
next prev parent reply other threads:[~2013-07-29 21:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-29 13:49 [PATCH 0/7] Add DT nodes for FIMD and DP controller for Exynos5420 SoC Vikas Sajjan
2013-07-29 13:49 ` [PATCH 1/7] ARM: dts: Move display-timimg information inside FIMD DT node for exynos5250 Vikas Sajjan
2013-07-29 13:49 ` [PATCH 2/7] ARM: dts: Update FIMD DT node for Exynos5 SoCs Vikas Sajjan
2013-07-29 21:34 ` Tomasz Figa
2013-07-29 13:49 ` [PATCH 3/7] ARM: dts: Add basic PM domains for EXYNOS5420 Vikas Sajjan
2013-07-29 21:37 ` Tomasz Figa
2013-07-29 13:49 ` [PATCH 4/7] ARM: dts: Add FIMD DT node to exynos5420 DTS files Vikas Sajjan
2013-07-29 21:48 ` Tomasz Figa [this message]
2013-07-29 13:49 ` [PATCH 5/7] ARM: dts: Update DP controller DT Node for Exynos5 based SoCs Vikas Sajjan
2013-07-29 13:49 ` [PATCH 6/7] ARM: dts: Add DP controller DT node to exynos5420 SoC Vikas Sajjan
2013-07-29 13:49 ` [PATCH 7/7] ARM: dts: Add pin state information for DP HPD support to Exynos5420 Vikas Sajjan
2013-07-29 21:51 ` [PATCH 0/7] Add DT nodes for FIMD and DP controller for Exynos5420 SoC Tomasz Figa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2252729.V1lMZqU45k@thinkpad \
--to=tomasz.figa@gmail.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=inki.dae@samsung.com \
--cc=jg1.han@samsung.com \
--cc=kgene.kim@samsung.com \
--cc=linaro-kernel@lists.linaro.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=patches@linaro.org \
--cc=t.figa@samsung.com \
--cc=vikas.sajjan@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.