From: hdegoede@redhat.com (Hans de Goede)
To: linux-arm-kernel@lists.infradead.org
Subject: [linux-sunxi] Re: [PATCH] ARM: dts: sun4i: Add dts file for the pov protab2-ips9 tablet
Date: Mon, 7 Sep 2015 11:30:03 +0200 [thread overview]
Message-ID: <55ED591B.7050705@redhat.com> (raw)
In-Reply-To: <1441617262.21530.4.camel@plaes.org>
Hi,
On 07-09-15 11:14, Priit Laes wrote:
> On Mon, 2015-09-07 at 10:49 +0200, Hans de Goede wrote:
>> Hi,
>>
>> On 07-09-15 09:49, Priit Laes wrote:
>>> On Mon, 2015-09-07 at 09:05 +0200, Hans de Goede wrote:
>>>> Hi,
>>>>
>>>> On 06-09-15 18:30, Maxime Ripard wrote:
>>>>> On Sat, Sep 05, 2015 at 10:21:59AM +0200, Hans de Goede wrote:
>>>>>> The Point of View protab2-ips9 is a tablet with a 9" ips
>>>>>> 1024x768
>>>>>> lcd screen,
>>>>>> microsd slot, headphones, mini hdmi, mini usb b and power
>>>>>> barrel
>>>>>> connectors.
>>>>>>
>>>>>> It uses a rtl8188cus usb wifi chip and a RDA 5875Y bluetooth
>>>>>> chip
>>>>>> attached
>>>>>> to uart2. It has a bma250 accelerometer attached to i2c1 addr
>>>>>> 0x18.
>>>>>>
>>>
>>> [...]
>>>>>
>>>>> What is connected on i2c1 ? Just the camera sensor? or it has
>>>>> some
>>>>> other devices there?
>>>>
>>>> The bma250 accelerometer sits there, and the kernel already has a
>>>> driver
>>>> for it. That driver needs to have devicetree binding support
>>>> added,
>>>> and
>>>> then we should be able to use the accelerometer.
>>>
>>> bma250 already has devicetree support. It is used in Gemei G9
>>> tablet
>>> (sun4i-gemei-g9.dts).
>>
>> Yes I've seen that, but does it actually work? I've not tried but I
>> do not see any compatible string in the actual bma250 code in the
>> kernel,
>> so I believe that this part of the sun4i-gemei-g9.dts file does not
>> work ?
>
> It worked (even without IRQs) when I submitted the patch. Driver itself
> is under iio/accel/bma180.c
That is really weird, because:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/iio/accel/bma180.c
Does not have an of_match_table ... ??
Regards,
Hans
WARNING: multiple messages have this Message-ID (diff)
From: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Priit Laes <plaes-q/aMd4JkU83YtjvyW6yDsg@public.gmane.org>,
Maxime Ripard
<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: [linux-sunxi] Re: [PATCH] ARM: dts: sun4i: Add dts file for the pov protab2-ips9 tablet
Date: Mon, 7 Sep 2015 11:30:03 +0200 [thread overview]
Message-ID: <55ED591B.7050705@redhat.com> (raw)
In-Reply-To: <1441617262.21530.4.camel-q/aMd4JkU83YtjvyW6yDsg@public.gmane.org>
Hi,
On 07-09-15 11:14, Priit Laes wrote:
> On Mon, 2015-09-07 at 10:49 +0200, Hans de Goede wrote:
>> Hi,
>>
>> On 07-09-15 09:49, Priit Laes wrote:
>>> On Mon, 2015-09-07 at 09:05 +0200, Hans de Goede wrote:
>>>> Hi,
>>>>
>>>> On 06-09-15 18:30, Maxime Ripard wrote:
>>>>> On Sat, Sep 05, 2015 at 10:21:59AM +0200, Hans de Goede wrote:
>>>>>> The Point of View protab2-ips9 is a tablet with a 9" ips
>>>>>> 1024x768
>>>>>> lcd screen,
>>>>>> microsd slot, headphones, mini hdmi, mini usb b and power
>>>>>> barrel
>>>>>> connectors.
>>>>>>
>>>>>> It uses a rtl8188cus usb wifi chip and a RDA 5875Y bluetooth
>>>>>> chip
>>>>>> attached
>>>>>> to uart2. It has a bma250 accelerometer attached to i2c1 addr
>>>>>> 0x18.
>>>>>>
>>>
>>> [...]
>>>>>
>>>>> What is connected on i2c1 ? Just the camera sensor? or it has
>>>>> some
>>>>> other devices there?
>>>>
>>>> The bma250 accelerometer sits there, and the kernel already has a
>>>> driver
>>>> for it. That driver needs to have devicetree binding support
>>>> added,
>>>> and
>>>> then we should be able to use the accelerometer.
>>>
>>> bma250 already has devicetree support. It is used in Gemei G9
>>> tablet
>>> (sun4i-gemei-g9.dts).
>>
>> Yes I've seen that, but does it actually work? I've not tried but I
>> do not see any compatible string in the actual bma250 code in the
>> kernel,
>> so I believe that this part of the sun4i-gemei-g9.dts file does not
>> work ?
>
> It worked (even without IRQs) when I submitted the patch. Driver itself
> is under iio/accel/bma180.c
That is really weird, because:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/iio/accel/bma180.c
Does not have an of_match_table ... ??
Regards,
Hans
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-09-07 9:30 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-05 8:21 [PATCH] ARM: dts: sun4i: Add dts file for the pov protab2-ips9 tablet Hans de Goede
2015-09-05 8:21 ` Hans de Goede
2015-09-06 16:30 ` Maxime Ripard
2015-09-06 16:30 ` Maxime Ripard
2015-09-07 7:05 ` [linux-sunxi] " Hans de Goede
2015-09-07 7:05 ` Hans de Goede
2015-09-07 7:49 ` [linux-sunxi] " Priit Laes
2015-09-07 7:49 ` Priit Laes
2015-09-07 8:49 ` [linux-sunxi] " Hans de Goede
2015-09-07 8:49 ` Hans de Goede
2015-09-07 9:14 ` Priit Laes
2015-09-07 9:14 ` Priit Laes
2015-09-07 9:30 ` Hans de Goede [this message]
2015-09-07 9:30 ` Hans de Goede
2015-09-07 20:52 ` Maxime Ripard
2015-09-07 20:52 ` Maxime Ripard
2015-09-08 7:48 ` [linux-sunxi] " Hans de Goede
2015-09-08 7:48 ` Hans de Goede
2015-09-10 13:56 ` [linux-sunxi] " Maxime Ripard
2015-09-10 13:56 ` Maxime Ripard
2015-09-07 20:56 ` [linux-sunxi] " Maxime Ripard
2015-09-07 20:56 ` Maxime Ripard
2015-09-08 7:45 ` [linux-sunxi] " Hans de Goede
2015-09-08 7:45 ` Hans de Goede
2015-09-08 8:40 ` Chen-Yu Tsai
2015-09-08 8:40 ` Chen-Yu Tsai
2015-09-08 12:49 ` [linux-sunxi] " Hans de Goede
2015-09-08 12:49 ` Hans de Goede
2015-09-08 13:14 ` Chen-Yu Tsai
2015-09-08 13:14 ` Chen-Yu Tsai
2015-09-13 15:22 ` [linux-sunxi] " Maxime Ripard
2015-09-13 15:22 ` Maxime Ripard
2015-09-13 17:33 ` [linux-sunxi] " Hans de Goede
2015-09-13 17:33 ` Hans de Goede
2015-09-22 15:02 ` [linux-sunxi] " Maxime Ripard
2015-09-22 15:02 ` Maxime Ripard
2015-09-22 15:24 ` [linux-sunxi] " Hans de Goede
2015-09-22 15:24 ` Hans de Goede
2015-10-10 12:32 ` Hans de Goede
2015-10-10 12:32 ` Hans de Goede
2015-10-19 19:43 ` Maxime Ripard
2015-10-19 19:43 ` Maxime Ripard
2015-10-20 21:59 ` [linux-sunxi] " Hans de Goede
2015-10-20 21:59 ` Hans de Goede
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=55ED591B.7050705@redhat.com \
--to=hdegoede@redhat.com \
--cc=linux-arm-kernel@lists.infradead.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.