From patchwork Thu Aug 5 22:04:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Johansen X-Patchwork-Id: 12422199 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=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 8B2F4C4338F for ; Thu, 5 Aug 2021 22:07:14 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1DA0C60462 for ; Thu, 5 Aug 2021 22:07:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1DA0C60462 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=manjaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=3Ljm4E5gy6kbCw1hh58RGprSo6bzO+eTN7MfwMj8eUg=; b=ueLAq0Cyp/mQu7 8wb/RGyfmEQzuUrpfHt93XumLwmylQTedjTm+JSTjB+clrnxfuMYDhosC8pq0u6p4NTBCac1UyfAv W5OuHq8jOIMmN4bAf7Y5+YIdtCBeEp+XBFXyJHeMquKV9sz6XzwbcxvbAn+ChQ17sfq7QF4/CXyYi TVw1TxA1Ei5zVdr74G2rWNcL1VpF5+3fXHADHE/G7whvWSrKw2RclIt729z9/2LnlmsRmhJxLhZKu FAZBLW8smTEkIVkIvUsnxmI8ETpln3uzi16i4Z62aNBRXaVTbKS6kn1fejR+6cCyo493Dj4lIb1wt xo+NGoh2Q4YFo58uWG4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBlUn-00Avvr-AR; Thu, 05 Aug 2021 22:05:45 +0000 Received: from mail.manjaro.org ([116.203.91.91]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBlUj-00AvvA-8Y; Thu, 05 Aug 2021 22:05:43 +0000 From: Dan Johansen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1628201134; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=n9PerTqiOhSYPAMhgipyu0mDMtUeEGLOP38xaaVz54g=; b=n5YRiBm8ER+k0J5kntSZAUKoN2fk3mdzRN6iWZHaYnVqweiiGyauJgZGBwydjph9wTrX6D eIIiKym2ZZx18Qxd6ZQUr9iV4bsW7BgxwnJguLQ+/r27ZjhkiESNZyzODtWiHxP6N1u5xb XWhK8H30Da9QScTfAXtkqV9vyC0niFE8+5L1J7vnnDLdvvAnKYh8T7/FlY1UdFwY6IkPMb wqz1AaxfiDMesBEC+yNTRE9jn1Mht7kNo6gCckm1Uck1hQ7Sv7cMif1lPRQJugQGaLbb0H hSRYJ2wsjdfJiji8LzqaqNcOXc1AzlqfZpwGFqDJvdw4+MKoe/Xa61JESd6RMQ== To: robh+dt@kernel.org, heiko@sntech.de Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, strit@manjaro.org, linux-rockchip@lists.infradead.org Subject: [PATCH] arm64: dts: rockchip: Setup USB typec port as datarole on Date: Fri, 6 Aug 2021 00:04:27 +0200 Message-Id: <20210805220426.2693062-1-strit@manjaro.org> MIME-Version: 1.0 Authentication-Results: ORIGINATING; auth=pass smtp.auth=strit@manjaro.org smtp.mailfrom=strit@manjaro.org X-Spam: Yes X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210805_150541_653588_B35BEC8A X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Some chargers try to put the charged device into device data role. Before this commit this condition caused the tcpm state machine to issue a hard reset due to a capability missmatch. Signed-off-by: Dan Johansen --- arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts index 2b5f001ff4a6..2115e03a59d7 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts @@ -711,7 +711,7 @@ fusb0: fusb30x@22 { connector { compatible = "usb-c-connector"; - data-role = "host"; + data-role = "dual"; label = "USB-C"; op-sink-microwatt = <1000000>; power-role = "dual";