From patchwork Sat Feb 22 22:31:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ondrej Jirman X-Patchwork-Id: 204411 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84FC3C35671 for ; Sat, 22 Feb 2020 22:32:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5105124656 for ; Sat, 22 Feb 2020 22:32:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=megous.com header.i=@megous.com header.b="s918W/Z1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726864AbgBVWcH (ORCPT ); Sat, 22 Feb 2020 17:32:07 -0500 Received: from vps.xff.cz ([195.181.215.36]:33620 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726856AbgBVWb7 (ORCPT ); Sat, 22 Feb 2020 17:31:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1582410717; bh=Ga061MTjmxH5y21oztEFBQFEgUWK38i88cNLUyFojpg=; h=From:To:Cc:Subject:Date:References:From; b=s918W/Z11f/MbFrWcew6lw1koOJjjA68IVU4pRBHY5hQrn0ciimIRxhXvWWNv+bDA Uv2rGddobx4Ul17mPDE5qcY+AJa1Uz9yI5C0akTtR2OE5dEK465y+L6FkThdM/Ay3Y WIQoV2jteZGTnc9NV02UgZClC32uJz+fX5Xr5in4= From: Ondrej Jirman To: linux-sunxi@googlegroups.com, Maxime Ripard , Chen-Yu Tsai Cc: Ondrej Jirman , Tomas Novotny , Rob Herring , Mark Rutland , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Allwinner sunXi SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/4] ARM: dts: sun8i-a83t-tbs-a711: HM5065 doesn't like such a high voltage Date: Sat, 22 Feb 2020 23:31:52 +0100 Message-Id: <20200222223154.221632-3-megous@megous.com> In-Reply-To: <20200222223154.221632-1-megous@megous.com> References: <20200222223154.221632-1-megous@megous.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Lowering the voltage solves the quick image degradation over time (minutes), that was probably caused by overheating. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts index ee5ce3556b2ad..ae1fd2ee3bcce 100644 --- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts +++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts @@ -371,8 +371,8 @@ ®_dldo2 { }; ®_dldo3 { - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; regulator-name = "vdd-csi"; }; From patchwork Sat Feb 22 22:31:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ondrej Jirman X-Patchwork-Id: 204412 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D34FC35671 for ; Sat, 22 Feb 2020 22:32:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7390A206EF for ; Sat, 22 Feb 2020 22:32:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=megous.com header.i=@megous.com header.b="QfZeBXNT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726865AbgBVWcD (ORCPT ); Sat, 22 Feb 2020 17:32:03 -0500 Received: from vps.xff.cz ([195.181.215.36]:33638 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726864AbgBVWb7 (ORCPT ); Sat, 22 Feb 2020 17:31:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1582410717; bh=TCCzp1xrm/SgtBEqTC1+PUvJ6AXuX1dC7GgiBOhdayE=; h=From:To:Cc:Subject:Date:References:From; b=QfZeBXNTsdU36p1AqOKCSv6wS4fFa0WfFSwlwkexX9QFPaToUWYTTUXkM18CIORgf +IxUQD36zqs+WjQ/KEAUmzk08fDN1wSJlASjdPN5A7AtX5eKyK1nXAe+9+qsT8iAig KTNUDtvmexHEMxOyQVvc+Ap4vR5zuM5r6D/2gICg= From: Ondrej Jirman To: linux-sunxi@googlegroups.com, Maxime Ripard , Chen-Yu Tsai Cc: Ondrej Jirman , Tomas Novotny , Rob Herring , Mark Rutland , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Allwinner sunXi SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 3/4] ARM: dts: sun8i-a83t-tbs-a711: Fix USB OTG mode detection Date: Sat, 22 Feb 2020 23:31:53 +0100 Message-Id: <20200222223154.221632-4-megous@megous.com> In-Reply-To: <20200222223154.221632-1-megous@megous.com> References: <20200222223154.221632-1-megous@megous.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org USB-ID signal has a pullup on the schematic, but in reality it's not pulled up, so add a GPIO pullup. And we also need a usb0_vbus_power-supply for VBUS detection. This fixes OTG mode detection and charging issues on TBS A711 tablet. The issues came from ID pin reading 0, causing host mode to be enabled, when it should not be, leading to DRVVBUS being enabled, which disabled the charger. Fixes: f2f221c7810b824e ("ARM: dts: sun8i: a711: Enable USB OTG") Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts index ae1fd2ee3bcce..32fa64a44d8b4 100644 --- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts +++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts @@ -495,7 +495,8 @@ &usb_otg { }; &usbphy { - usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */ + usb0_id_det-gpios = <&pio 7 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH11 */ + usb0_vbus_power-supply = <&usb_power_supply>; usb0_vbus-supply = <®_drivevbus>; usb1_vbus-supply = <®_vmain>; usb2_vbus-supply = <®_vmain>;