From patchwork Thu Jul 2 11:20:40 2020 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: 11638587 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3179C6C1 for ; Thu, 2 Jul 2020 11:26:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0FCB120723 for ; Thu, 2 Jul 2020 11:26:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=megous.com header.i=@megous.com header.b="GbGC5SiY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728646AbgGBL0h (ORCPT ); Thu, 2 Jul 2020 07:26:37 -0400 Received: from vps.xff.cz ([195.181.215.36]:43632 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728388AbgGBL0g (ORCPT ); Thu, 2 Jul 2020 07:26:36 -0400 X-Greylist: delayed 348 seconds by postgrey-1.27 at vger.kernel.org; Thu, 02 Jul 2020 07:26:36 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1593688846; bh=D6agZe2CGtfC+lKAcUzuOacBCKlRcJFEZMvubKHRrGU=; h=From:To:Cc:Subject:Date:References:From; b=GbGC5SiYva+WMYj3LVvV+kXj1DRElZq0OH0UaBeOo3dEe9hq8j4Jc8SnSbcug9hNP QB3ZPpi/M7zx36o8EP0tV2WTTcVNl9Khp0VFIPsse19OTeqvHtGEzkL5ZOGvd9alax PK3Filigg41wkBF20gk/PNbtUMiHK5JWHuTeQUpg= From: Ondrej Jirman To: Dmitry Torokhov , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Cc: Ondrej Jirman , Luca Weiss , Tomas Novotny , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 3/4] ARM: dts: sun8i-a83t-tbs-a711: Add support for the vibrator motor Date: Thu, 2 Jul 2020 13:20:40 +0200 Message-Id: <20200702112041.1942707-4-megous@megous.com> In-Reply-To: <20200702112041.1942707-1-megous@megous.com> References: <20200702112041.1942707-1-megous@megous.com> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org The board has a vibrator mottor. Hook it to the input subsystem. According to the PMIC specification, LDO needs to be enabled (value 0b11) to achieve the specified max driving current of 150mA. We can't drive the motor with just GPIO mode. In GPIO mode the chip is probably just using the regular CMOS logic output circuitry (typically limited to around 20-35mA, but not specified in this datasheet). Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts index bfc9bb277a49..a278a1e33930 100644 --- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts +++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts @@ -99,6 +99,11 @@ panel_input: endpoint { }; }; + vibrator { + compatible = "gpio-vibrator"; + vcc-supply = <®_ldo_io1>; + }; + reg_gps: reg-gps { compatible = "regulator-fixed"; regulator-name = "gps";