From patchwork Mon Apr 1 11:56:12 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: 10879787 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 0C31314DE for ; Mon, 1 Apr 2019 11:57:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF9A328827 for ; Mon, 1 Apr 2019 11:57:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DDCDC28833; Mon, 1 Apr 2019 11:57:21 +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 9119F28827 for ; Mon, 1 Apr 2019 11:57:21 +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=pBuUf9w5977HAy38P1XgYXC3vG1i0FX0Uekx7XLqBUc=; b=H+cDTS+FhJyzJf SjRFe5N6E4idlSbcveW1qvzRt8mx3Y4cLSbrNQuAz0W5rNle45MOW18PfnD0x87r3qRVX6kpJ3cJd Fy9yYd4/Fjjc6NMbSXuzpWpnGzPHIXpRgczTr2qWUzE4frjKHA9piQPOV4ILlqOxQfsFGUmx9OH8s Pa4RiW2dihIyNX40eag8yv/lPh4lI9eLWSiImoptobVJb3NDnQrmj1DKHdOtSGaqkix3mij0douYT k6gTRAG1A6wjaT5cwkq4zmK8Vpcl+R6J8350HGcPc/BzWDicF835/AFy1PUsBIXZct/D7sAaJEI4L wg9lc+5ulsXyt1BvkX/Q==; 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 1hAvZ0-00030Z-Sn; Mon, 01 Apr 2019 11:57:18 +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 1hAvY6-0001tX-6Z for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2019 11:56:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1554119779; bh=xsDRRopunoJOnvYG1WzHSSCPeJDvYoOT7KX/78WCQRc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RHr+r7m5OJVShrRXZn9+dKGcPPG1kUnyr+2nN+1lbdq87p+Wg+gV2g6npRM7nrri9 TpTHs3f9vSlpBpRheDzJjnib+pg8eZlbNcc+cZCtye9we94w6NAiOr3RkOgkn+HRDm CNKoIjaEDkgm94CyEYZ3lmkTQPpKj8lPvp4j0+wM= 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 v2 1/5] ARM: dts: sun8i: tbs-a711: Add node for BMA250 accelerometer Date: Mon, 1 Apr 2019 13:56:12 +0200 Message-Id: <20190401115616.21337-2-megous@megous.com> In-Reply-To: <20190401115616.21337-1-megous@megous.com> References: <20190401115616.21337-1-megous@megous.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190401_045622_404698_8F33ECC4 X-CRM114-Status: UNSURE ( 9.24 ) 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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts index 1e840ab5a541..d70fe04b66f0 100644 --- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts +++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts @@ -156,6 +156,19 @@ status = "okay"; }; +&i2c1 { + clock-frequency = <400000>; + status = "okay"; + + /* Accelerometer */ + accelerometer@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";