From patchwork Wed Mar 27 00:18:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Ond=C5=99ej_Jirman?= X-Patchwork-Id: 10872331 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BDF541669 for ; Wed, 27 Mar 2019 00:20:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5869287BB for ; Wed, 27 Mar 2019 00:20:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9963B28C10; Wed, 27 Mar 2019 00:20:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=2.0 tests=BAYES_00,DKIM_ADSP_DISCARD, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 53A63287BB for ; Wed, 27 Mar 2019 00:20:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bi3WXizgFV3WU0qWzJW3q5XK09GWasnRSaNZQ26m6O4=; b=quJ0Hm4A7u0NQw mIYZe0wj1BeGkjmowuedcZsw/MWE3oS98PNQSXoBaJsR1aHr6CghmZEeA08xAWt3f7sPc/YC4+DAM Pi5eVQ3HlwPQqJA9vNGYAWoZubQPumR45PUhPlhNVNy+cYvMM2zFpF1GTm1pdCg1yhrhjAVONZkbb ygxteRGUOLfdU1QHvKrWXuTnant7SiYZHDAGQas7KS0z517QlBHb+AdIn+RhDT0F3GGEkF4VoG+ha 2Qr5eFhOZcHmYwBzMeM91fG0xFreY8qn2omHhXBfhw++lDGqocit6ykU3D3xry0ItpcJGsS70PKK8 A7qP1Ncx8656pS6aKYSw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8wIq-0005P7-Fs; Wed, 27 Mar 2019 00:20:24 +0000 Received: from vps.xff.cz ([195.181.215.36]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8wHX-0002pD-Qi for linux-arm-kernel@lists.infradead.org; Wed, 27 Mar 2019 00:19:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1553645935; bh=e0nnK3rTomZ/ylsbcx/9arI5/NLZs1j94ZDpFtu3D0I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fYNU1kDGlQjGU/t9NjO/hEQoxy/v5tKR7aYDUKpUoMcM3lHzZrVXsdu55Ha9WBO9P sfSVQZNX0cRFzTPbJI8SALaFZfrLTHrRsVes5rEmhnrZoHS7jTdnRuMd9emUaLeOSH 9po1tgXfC/tlKwUFBtQoZ9i5J8zHTob5+UFyWde0= From: megous@megous.com To: maxime.ripard@free-electrons.com, wens@csie.org, robh@kernel.org, johan@kernel.org, mark.rutland@arm.com Subject: [PATCH 2/7] ARM: dts: sun8i: tbs-a711: Add node for BMA250 accelerometer Date: Wed, 27 Mar 2019 01:18:38 +0100 Message-Id: <20190327001843.2420-3-megous@megous.com> In-Reply-To: <20190327001843.2420-1-megous@megous.com> References: <20190327001843.2420-1-megous@megous.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190326_171904_145877_7784A4B0 X-CRM114-Status: UNSURE ( 8.91 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ondrej Jirman , devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ondrej Jirman 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 --- 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>; + clock-frequency = <400000>; + status = "okay"; + + /* Accelerometer */ + bma250@18 { + compatible = "bosch,bma250"; + reg = <0x18>; + interrupt-parent = <&pio>; + interrupts = <7 10 IRQ_TYPE_EDGE_RISING>; /* PH10 / EINT10 */ + }; +}; + &mmc0 { vmmc-supply = <®_dcdc1>; pinctrl-names = "default";