Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp61919ybk; Tue, 12 May 2020 15:24:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAXyzHd9fQ3adXOlSr2PUJA9o01S9x0KPmyxvo5odJgcw0od927oWvAsXJNuFHtDx/JiUl X-Received: by 2002:a17:906:aad8:: with SMTP id kt24mr1961433ejb.54.1589322259281; Tue, 12 May 2020 15:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589322259; cv=none; d=google.com; s=arc-20160816; b=apYhw3hbVo2Zqu0YAEBiprCPGvid0uxhcngOltgoA5r6gfOyvzuMPpXCUTdBas/s04 HqPXuqiP1eDpHD0RwldtLuL16CTKm7w4yq5o9Uw9kMi89m0js22VjzaQV5GFBkStCnwo ZB2d1FdFgnNqym4010vjvHnhus3Tk4tSAzIfhBRZO9Q34Bni9eIVZi2qXw3QPp6/12TX wYgx6QIU9xrejnnFqi0pNP2TC+W7lcuLgAR3H9k2rddez+NO7A+V3cE0B9sFDZaucyhN 6+FGS9vPydNrBbKpIsG+BYFXlSxF57Bgr570+ZwUP15rIdz72bjw7gTU94gVPaX9LTtK 6RkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vIGFsHDzwVrYIsKClUVOsebV5zIjYZxgbHudhenEmEI=; b=0GRi5+CaFm3XtKkfblDhiWZWhXmSHa1Ryo0wsNzkAzjBkYa33UgloITZlXxUzRVY8q oQHHAuQci4ITPBIsJN2IhBx5hsV6zvkjBa/TlSdLjf8+GUyQFdIl6/wnRLkA8ryyKJvm Cj0M2IcJmNyQKJ4AuMVWPtJT5NoNIGA/XUSiKWwJQefvCtN6bPDiP7qVjCb5NhpHhk4/ HJt23GLIJWp5jpzRaxXpgN/leq563liTg8CS6WDa4iznvec/gXLQ4Jkj1B+jgm9CTYrH MA8aBDaRI4uoMYBy9+IiAixVpOao2+rysb+E5qSM6eKXHxTVmZnhtb0ajHAQ8uMJ0TST JV6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=KkWWh4AL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id f23si8644932ejf.414.2020.05.12.15.23.56; Tue, 12 May 2020 15:24:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=KkWWh4AL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1731638AbgELWWQ (ORCPT + 99 others); Tue, 12 May 2020 18:22:16 -0400 Received: from vps.xff.cz ([195.181.215.36]:41484 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731049AbgELWWM (ORCPT ); Tue, 12 May 2020 18:22:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1589322130; bh=b9l6jhTz95HtziyiK/WtyUDqMPHpI5aFV0oYbIcE+vw=; h=From:To:Cc:Subject:Date:References:From; b=KkWWh4ALhc+PRFHfEh099xQOptYQQ6xhyYOjUHyfazCqou4xI1fXgKsdo4YRZc1F8 u4/Z8EE33aneGs6oF52UHG4xIzT9TKZ+zkK+eTsbJJTdfe2XhlTFiJYjGRjMQq9pLi acGqW5S+xeMVKlMqSb2rzMY07t4WLGspQbX5FGLk= From: Ondrej Jirman To: linux-sunxi@googlegroups.com, 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 v2 3/4] ARM: dts: sun8i-a83t-tbs-a711: Add support for the vibrator motor Date: Wed, 13 May 2020 00:22:04 +0200 Message-Id: <20200512222205.1456300-4-megous@megous.com> In-Reply-To: <20200512222205.1456300-1-megous@megous.com> References: <20200512222205.1456300-1-megous@megous.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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"; -- 2.26.2