Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1641421ybh; Tue, 14 Jul 2020 03:27:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxf3wKb9KPHcaZjNmsOztFqgCs6k39PZTjVpbQvSjbEsbkW/yu5DK+Rom/1x7YMdhRXWgtT X-Received: by 2002:a05:6402:1a3c:: with SMTP id be28mr3939942edb.140.1594722445876; Tue, 14 Jul 2020 03:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594722445; cv=none; d=google.com; s=arc-20160816; b=AUivkPzjasXlAy+tKqz0SntSE8BFxJgVdaT7W4+MFSZzeG0zuMg6H9UnzlNwD4BZ5e rJYbDZ64A1zp79f2+gcDT269xah9RQ4j5sj1+H+hWgNSEPaGBHGItFD79E0RqI5SRCR9 vJsiVi8HhMaMMY4CFTc401elemISLQYKNDrmmrAPDepxUxL8nbME3PRJLwvsDpFNpQgt +j9D++BnGKmEobahmgjRS6SE5MiRQEO/xZXCMQbwJHeXU7NuxOCpbRn6CVxHooTQzI50 Cco42R+MmcIZ9IGhsq50ataXhWnVpYsX/RLr8foPuOP7OxVg+6yr96pBvLoNrdCCO954 c7LA== 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=JTGwVrXeBtX8bwwtXZb2e/vebgczJ8oFNbyrFC2qVvo=; b=j8jiBSoD7ncH+PQQR+ZQyNF4FzB/3qFcgvpJpVUM2svM88+7bkw5Gk8nSwBxVD+I14 /2JjJcU3f+wGdq7cOwET6FZjFl8lhJOO0o6aNRfouQ2izjrwR7cbwDmFmtx5lzmfGlvO YKAZqsuNuMGq/HjV5IzGK6tOYkfqwoHPeuDFhVuKsfAlGZeISDG0AKAC6sfxwRHq/IWl AdiIlDjUBR5cOCQ4/YclDGpBJ3kPGWLbpodo+WdEwOhQSjzdK+YbiUWX+ctsL/+h2+EN WaocxuIQePq5KuULgZsO8TvSuvBFbPhVKzV5EbtdfvXNHo97g2pOja3HgCT0AMjhcfpQ ddfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b="DI5/RFmy"; 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 l15si10353619ejq.119.2020.07.14.03.27.02; Tue, 14 Jul 2020 03:27:25 -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="DI5/RFmy"; 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 S1727782AbgGNKXu (ORCPT + 99 others); Tue, 14 Jul 2020 06:23:50 -0400 Received: from vps.xff.cz ([195.181.215.36]:46218 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726831AbgGNKXl (ORCPT ); Tue, 14 Jul 2020 06:23:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1594722218; bh=GszcDyWuzeoUstoycZg/BqelDXcPSvv9p22i7U58TFw=; h=From:To:Cc:Subject:Date:References:From; b=DI5/RFmy4sKWgydJvRQnpNDnYGVJuc0b4ZcD1NprlN1NtaamjnbbebHgesCNRgIzW EQm7qHc8pfNEV0ODtUOcKosEPR4FfqVSDOE82cbcbqZwiF4GJYOezAL4rHvx0Eqs/5 S3HhZfmD92Zl8WYYtLARIpAgtvwJDntZk5wngCSY= 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 v4 3/4] ARM: dts: sun8i-a83t-tbs-a711: Add support for the vibrator motor Date: Tue, 14 Jul 2020 12:23:02 +0200 Message-Id: <20200714102303.3007896-4-megous@megous.com> In-Reply-To: <20200714102303.3007896-1-megous@megous.com> References: <20200714102303.3007896-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 motor. 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.27.0