From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Tomasz Figa <tomasz.figa@gmail.com>
Cc: kgene.kim@samsung.com, t.figa@samsung.com,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, myungjoo.ham@samsung.com,
m.szyprowski@samsung.com, phil.carmody@partner.samsung.com,
j.anaszewski@samsung.com, kyungmin.park@samsung.com,
devicetree-discuss@lists.ozlabs.org
Subject: Re: [PATCH v3 07/13] ARM: dts: Add AK8975 device node for Exynos4412 TRATS2 board
Date: Mon, 08 Jul 2013 14:52:51 +0200 [thread overview]
Message-ID: <51DAB623.1010404@samsung.com> (raw)
In-Reply-To: <1491290.c836bFtNe2@flatron>
Hi Tomasz,
On 07/06/2013 01:18 AM, Tomasz Figa wrote:
> On Monday 01 of July 2013 17:22:29 Sylwester Nawrocki wrote:
>> From: Jacek Anaszewski <j.anaszewski@samsung.com>
>>
>> This patch adds AK8975 magnetometer node and corresponding
>> i2c-gpio bus node for TRATS2 board.
>>
>> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
>> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
>> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
>> ---
>> arch/arm/boot/dts/exynos4412-trats2.dts | 19 +++++++++++++++++++
>> 1 file changed, 19 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts
>> b/arch/arm/boot/dts/exynos4412-trats2.dts index 056b835..b9de3b5 100644
>> --- a/arch/arm/boot/dts/exynos4412-trats2.dts
>> +++ b/arch/arm/boot/dts/exynos4412-trats2.dts
>> @@ -19,6 +19,10 @@
>> model = "Samsung Trats 2 based on Exynos4412";
>> compatible = "samsung,trats2", "samsung,exynos4412";
>>
>> + aliases {
>> + i2c8 = &i2c_ak8975;
>> + };
>> +
>> memory {
>> reg = <0x40000000 0x40000000>;
>> };
>> @@ -453,4 +457,19 @@
>> serial@13830000 {
>> status = "okay";
>> };
>> +
>> + i2c_ak8975: i2c-gpio@0 {
>
> I think this @0 is slightly incorrect here, as it seems like there is no
> reg property present inside the node and so the device isn't located at
> any address.
>
> For logical indices like in this case I would rather use i2c-gpio-0
> instead.
Indeed, using "-<N>" postfix sounds like a better alternative. I'll change
it and repost the series after 3.11-rc1 is released.
>> + compatible = "i2c-gpio";
>> + gpios = <&gpy2 4 0>, <&gpy2 5 0>;
>> + i2c-gpio,delay-us = <2>;
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> + status = "okay";
>> +
>> + ak8975@0c {
>> + compatible = "asahi-kasei,ak8975";
>> + reg = <0x0c>;
>> + gpios = <&gpj0 7 0>;
>> + };
>> + };
>> };
>
> Otherwise looks good.
>
> Reviewed-by: Tomasz Figa <t.figa@samsung.com>
--
Thanks,
Sylwester
next prev parent reply other threads:[~2013-07-08 12:52 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-01 15:22 [PATCH v3 00/13] ARM: dts: Add camera and magnetometer support for TRATS(2) board Sylwester Nawrocki
2013-07-01 15:22 ` [PATCH v3 01/13] ARM: dts: Correct camera pinctrl nodes for Exynos4x12 SoCs Sylwester Nawrocki
2013-07-01 15:22 ` [PATCH v3 02/13] ARM: dts: Add pinctrl entries for Exynos4x12 FIMC-IS peripherals Sylwester Nawrocki
2013-07-01 15:22 ` [PATCH v3 03/13] ARM: dts: Add ISP power domain node for Exynos4x12 Sylwester Nawrocki
2013-07-01 15:22 ` [PATCH v3 04/13] ARM: dts: Use generic DMA bindings for Exynos4 SPI devices Sylwester Nawrocki
2013-07-01 15:22 ` [PATCH v3 05/13] ARM: dts: Add camera subsystem device nodes to exynos4.dtsi Sylwester Nawrocki
2013-07-01 15:22 ` [PATCH v3 06/13] ARM: dts: Add camera subsystem nodes to exynos4x12.dtsi Sylwester Nawrocki
2013-07-01 15:22 ` [PATCH v3 07/13] ARM: dts: Add AK8975 device node for Exynos4412 TRATS2 board Sylwester Nawrocki
2013-07-05 23:18 ` Tomasz Figa
2013-07-08 12:52 ` Sylwester Nawrocki [this message]
2013-07-01 15:22 ` [PATCH v3 08/13] ARM: dts: Add camera device nodes " Sylwester Nawrocki
2013-07-05 23:23 ` Tomasz Figa
2013-07-08 13:13 ` Sylwester Nawrocki
2013-07-01 15:22 ` [PATCH v3 09/13] ARM: dts: Add camera device nodes for Exynos4210 SoCs Sylwester Nawrocki
2013-07-01 15:22 ` [PATCH v3 10/13] ARM: dts: Add FIMC nodes for Exynos4210 Trats board Sylwester Nawrocki
2013-07-01 15:22 ` [PATCH v3 11/13] ARM: dts: Add Exynos4210 SoC camera port pinctrl nodes Sylwester Nawrocki
2013-07-01 15:22 ` [PATCH v3 12/13] ARM: dts: Add S5K5BA sensor regulator definitions for Trats board Sylwester Nawrocki
2013-07-05 23:26 ` Tomasz Figa
2013-07-08 14:12 ` Sylwester Nawrocki
2013-07-08 14:19 ` Tomasz Figa
2013-07-01 15:22 ` [PATCH v3 13/13] ARM: dts: Add MIPI PHY node to exynos4.dtsi Sylwester Nawrocki
2013-07-05 23:27 ` [PATCH v3 00/13] ARM: dts: Add camera and magnetometer support for TRATS(2) board Tomasz Figa
2013-07-24 13:00 ` Kukjin Kim
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=51DAB623.1010404@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=j.anaszewski@samsung.com \
--cc=kgene.kim@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=myungjoo.ham@samsung.com \
--cc=phil.carmody@partner.samsung.com \
--cc=t.figa@samsung.com \
--cc=tomasz.figa@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).