From: Maxime Ripard <maxime.ripard-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>
To: megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org
Cc: wens-jdAy2FN1RRM@public.gmane.org,
robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
johan-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
mark.rutland-5wv7dgnIgG8@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: [PATCH 2/7] ARM: dts: sun8i: tbs-a711: Add node for BMA250 accelerometer
Date: Mon, 1 Apr 2019 08:30:49 +0200 [thread overview]
Message-ID: <20190401063049.h2as3qllpelkxkbb@flea> (raw)
In-Reply-To: <20190327001843.2420-3-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1170 bytes --]
Hi,
On Wed, Mar 27, 2019 at 01:18:38AM +0100, megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org wrote:
> From: Ondrej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
>
> A711 tablet has BMA250 accelerometer connected to I2C1 bus. Enable
> both the I2C1 bus and add the accelerometer device to it.
>
> Signed-off-by: Ondrej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
> ---
> arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
> index 6aae70c89a1e..347fc0c31fa4 100644
> --- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
> +++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
> @@ -156,6 +156,21 @@
> status = "okay";
> };
>
> +&i2c1 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&i2c1_pins>;
It's there already
> + clock-frequency = <400000>;
> + status = "okay";
> +
> + /* Accelerometer */
> + bma250@18 {
The node name should be the class of the device, not its model, so
something like accelerometer.
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2019-04-01 6:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-27 0:18 [PATCH 0/7] Add bluetooth, gps and accelerometer to TBS A711 megous via linux-sunxi
[not found] ` <20190327001843.2420-1-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
2019-03-27 0:18 ` [PATCH 1/7] ARM: dts: sun8i: tbs-a711: Enable bluetooth megous via linux-sunxi
2019-04-01 8:00 ` Maxime Ripard
2019-03-27 0:18 ` [PATCH 2/7] ARM: dts: sun8i: tbs-a711: Add node for BMA250 accelerometer megous via linux-sunxi
[not found] ` <20190327001843.2420-3-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
2019-04-01 6:30 ` Maxime Ripard [this message]
2019-04-01 11:34 ` 'Ondřej Jirman' via linux-sunxi
2019-03-27 0:18 ` [PATCH 3/7] ARM: dts: sun8i: a83t: Add nodes for UART2-UART4 megous via linux-sunxi
[not found] ` <20190327001843.2420-4-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
2019-04-01 8:00 ` Maxime Ripard
2019-03-27 0:18 ` [PATCH 4/7] ARM: dts: sun8i: a83t: Add UART2 PB pins megous via linux-sunxi
[not found] ` <20190327001843.2420-5-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
2019-03-28 8:01 ` Chen-Yu Tsai
2019-03-27 0:18 ` [PATCH 5/7] gnss: Add u-blox,neo-6m compatible megous via linux-sunxi
2019-03-27 0:18 ` [PATCH 6/7] dt-bindings: " megous via linux-sunxi
2019-03-31 6:42 ` Rob Herring
2019-03-27 0:18 ` [PATCH 7/7] ARM: dts: sun8i: tbs-a711: Enable UART2 (for NEO-6M GPS module) megous via linux-sunxi
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=20190401063049.h2as3qllpelkxkbb@flea \
--to=maxime.ripard-ldxbnhwyfcjbdgjk7y7tuq@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=johan-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org \
--cc=robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=wens-jdAy2FN1RRM@public.gmane.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 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).