Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2490425ybv; Mon, 24 Feb 2020 06:14:57 -0800 (PST) X-Google-Smtp-Source: APXvYqwjgLRZrxfCgMQIJ68ioqGdjJSwzwDVoinhP6vojFxMSjd25kYP7ZMEnvTdGCgRSUCzNi7o X-Received: by 2002:aca:ea46:: with SMTP id i67mr12153453oih.149.1582553697651; Mon, 24 Feb 2020 06:14:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582553697; cv=none; d=google.com; s=arc-20160816; b=Bx8jSu3lhokV92kpZF7onCrmuRxUwN5LmAXqUP7kW9mpgJPRbFbaYyWWpWlh9obvpY 56MeEKdxhUBmpgMRZ49FfJDjyz79srTtxpjiJbNET9G0Y0QY0zCH9Jjt1jzP0bWF0grv l1mENOhIrMVCHsZVplm8GKbLwRSShWsv6jMjSxBJ1JcYfNFb34AROdEpcZaijGMAfQhh b+ccEpux3CYroVUplJG5iSdm/j7ADIIS1u3ahMuWCCFdWjABaLaJ/P5l79nv1LnncE8x alp7goQancnopyWp5toMagyH6QcBRpOwzCfg/a/z7LjOjcII95fQ9eA0MiKLjcl92iOn bqoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=DzRRnMTnmMthRamnzAZ2wnzfrb23kdbrrqYwzQNAx/U=; b=mCMutz91Xa3Av9hifMpVJO3/JWmNaB8gWzzXCeJw7DLSwqGDSeNprlTnywWuvERSXr VuKaMZBDZXksSRyjcfA6jeeD7BF48cArBW/Jq7fxnBKLYwhkkmaTsmYJZzq51p7+CLxm ZZyNdBLmaI2bCfhBTucjE21mnDtRcWqAhPeZHu0Q2AAcrqekyB4nDasZJJxYP+fvJXuE q0PWAPRkKd9gAoZ/89xedmF45VDDA7a32Riyt6SC4UTnOu5ZhW6LBkGKHpcM9vshjFTa e9DBce8WIeqmEeDeQmGehttjedQDQ14htjPATNWGxIpfGSBlNaUOW+QhJZmftVhHKuIZ 9oDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=Cwmjtlev; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si4843884oig.25.2020.02.24.06.14.45; Mon, 24 Feb 2020 06:14:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=Cwmjtlev; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727593AbgBXOOk (ORCPT + 99 others); Mon, 24 Feb 2020 09:14:40 -0500 Received: from vps.xff.cz ([195.181.215.36]:57708 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727489AbgBXOOk (ORCPT ); Mon, 24 Feb 2020 09:14:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1582553677; bh=4qDdtHK5hpCLQh/4Uxuvof/n91iXc4o9/kYFieclHC8=; h=Date:From:To:Cc:Subject:References:X-My-GPG-KeyId:From; b=CwmjtlevBGOGFS8tVAlWHK3CGBEAbWk3XpVkFnTMNxRatJOHfMJRhY/V+cJaC9zkG kFFMrySU1yL2EhmJVrqKIs2OUozxpQaH0D0Mi30i/jvrY2o06kF1QS38dP51YcxIo+ 9SvdGqY+Z+0RUU6DBQ99AxkJxqCUok4wPDxeL7oc= Date: Mon, 24 Feb 2020 15:14:37 +0100 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Maxime Ripard Cc: linux-sunxi@googlegroups.com, Dmitry Torokhov , Rob Herring , Chen-Yu Tsai , Mark Rutland , 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: Re: [PATCH 3/4] ARM: dts: sun8i-a83t-tbs-a711: Add support for the vibrator motor Message-ID: <20200224141437.opcsfhozfppulu4g@core.my.home> Mail-Followup-To: Maxime Ripard , linux-sunxi@googlegroups.com, Dmitry Torokhov , Rob Herring , Chen-Yu Tsai , Mark Rutland , Luca Weiss , Tomas Novotny , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20200222231428.233621-1-megous@megous.com> <20200222231428.233621-4-megous@megous.com> <20200224091059.lljffogofbexhudt@gilmour.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200224091059.lljffogofbexhudt@gilmour.lan> X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Mon, Feb 24, 2020 at 10:10:59AM +0100, Maxime Ripard wrote: > Hi, > > On Sun, Feb 23, 2020 at 12:14:27AM +0100, Ondrej Jirman wrote: > > The board has a vibrator mottor. Hook it to the input subsystem. > > > > 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 2fd31a0a0b344..a22920275e99b 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>; > > + }; > > + > > LDO IO1 can also be muxed in as a GPIO iirc, why did you choose the > regulator instead? According to the specification, LDO needs to be enabled (value 0b11) to achieve the specified max driving current of 150mA: https://megous.com/dl/tmp/92b7d9d94820c3ba.png Otherwise the chip is probably just using the regular CMOS logic output (typically limited to around 20-35mA, but not specified in this datasheet), which would be probably overdriven, if we try to drive the motor with it. And since we're driving a motor directly, the more the better. thank you and regards, o. > Maxime