From patchwork Tue Dec 1 15:41:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicente Bergas X-Patchwork-Id: 11943171 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 9D2FFC64E90 for ; Tue, 1 Dec 2020 15:42:08 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 C7A122151B for ; Tue, 1 Dec 2020 15:42:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WRSIRMCD"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lsjai3AV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C7A122151B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OYfC/4ACANo/HRfBwoX7Daw0SSNZZO56kTD4wHDGZmk=; b=WRSIRMCDjBxE65msoagEI6Grt cy2q2rozT0ON9X4JlUEfMzGXLTUcpCr3Qw6GZNOb/9DiBZ7qj5dXZu9DYbsd2Pz9cxp19aqHdOZcR RBNXK7V5Kwoa+c55/Y1o4wucMMMKKmY5j0ARvCY3FaRCVLXRx51eV3SETXVqQG9/0pqyCiyu9WN3l 8Ukr9xQXoENhx4TnQC2/QBLWAc5Hnywbm3R14HYCEAiFv0nBCk1ugnTUlFvsbt/lNIH1TGRRdUl4Z OemszBA3xJLqHB9XaIkPCMmWJNtzasQTxBfZJci/fXZe7ryWIyt29GU8Zi2wXEV5ySZFXyFzGT+qY hY1WCkxjQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk7n2-00045w-2a; Tue, 01 Dec 2020 15:42:04 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk7mz-00045B-L1 for linux-rockchip@lists.infradead.org; Tue, 01 Dec 2020 15:42:02 +0000 Received: by mail-wm1-x343.google.com with SMTP id 3so6122582wmg.4 for ; Tue, 01 Dec 2020 07:42:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dmVwDArpQLOJLr3UJ05ez3++5vGwUMUVMIH0BYJICZs=; b=lsjai3AVFamXkbQZsnXCW39d5JR3xIR+LW7hWBnddNvHpYUP1gtEZC/PHf6nQlJnAf ALfBaWGzbavy9hoPpFZfeXu9Qw1a1VpjOJsLl5cmiSPPoLz1RudijB1JctPIaUVXEN3t t5aSDCQ8dGRYJ1WW5S/jSTmIODAIBChcysiO7UT5sRiH+qrMUp602SD97U0Fv1ueldMk Iox4YUxiI5R8SrOE5UcIxF+u228EHtdSSZR02uSKt9AOk0FRfZ9UztSSAkDLyw9uJ+7L Rnk7lCd0Ean5vRFwetFgjoxtXAvmmcxk5di8rGovmBgtM+ffX24qNnZmZK2Ayu7K7pBT /vuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dmVwDArpQLOJLr3UJ05ez3++5vGwUMUVMIH0BYJICZs=; b=b8cj/87Sb1BUjQUgR0ATlSva0ROGv5xAHNmchQmTkyTqiK8PfATif+1AXDczoP7zIy Q2m3wQXL1SJymMTq4VtyF9ZlsTWj7lxGFvQr9KqkYlRlj1dnSwsByHkWwwg/Ox72WMur E0gVsZC5FSJn4jimbot4g+KK8nQz1r7qMeMUxl+E3H+1AEiEWHTsfsuOLOdVxn4lyiAz 1Jj+W6NMh9hRiM9K0Zw9Z4lmzj756JY059SD+xOEma2+fVvgSAyH7Nk38xviNNOcUWy7 svUm/ipq75s0zt1cOWR1CvOegH/lwNPeFkVmtznB13e4n0HDW0dHikc6p0jpiljNKxYr /R9Q== X-Gm-Message-State: AOAM532Rn6Y87NjtHmti9cIMrN4OEv8/2GATOTpnrOy7Yu+mPnwzmp7g t1oTwUlbZJFE+S2hTuPJYe8= X-Google-Smtp-Source: ABdhPJyvUhb7VNwu+8FL5Q1uwJKLucvLwyCjmT6InBJjnJithmUoZM1rZR7FbbYiva8KZpkm2MGt1Q== X-Received: by 2002:a1c:9ac6:: with SMTP id c189mr3271349wme.137.1606837320572; Tue, 01 Dec 2020 07:42:00 -0800 (PST) Received: from localhost.localdomain ([170.253.51.27]) by smtp.gmail.com with ESMTPSA id l24sm4229811wrb.28.2020.12.01.07.41.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 07:41:59 -0800 (PST) From: Vicente Bergas To: Rob Herring , Heiko Stuebner , Johan Jonker , Chen-Yu Tsai , Douglas Anderson , Carlos de Paula , Sugar Zhang , Shunqian Zheng , Boris Brezillon , Robin Murphy , linux-rockchip@lists.infradead.org Subject: [PATCH 1/3] arm64: dts: rockchip: fix supplies on rk3399-rock-pi-4 Date: Tue, 1 Dec 2020 16:41:30 +0100 Message-Id: <20201201154132.1286-2-vicencb@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201154132.1286-1-vicencb@gmail.com> References: <20201201154132.1286-1-vicencb@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_104201_707359_3D2822CF X-CRM114-Status: GOOD ( 12.84 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vicente Bergas Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Based on the board schematics at https://dl.radxa.com/rockpi4/docs/hw/rockpi4/rockpi_4c_v12_sch_20200620.pdf on page 18: vcc_lan is not controllable by software, it is just an analog LC filter. Because of this, it can not be turned off-in-suspend. and on page 17: vcc_cam and vcc_mipi are not voltage regulators, they are just switches. So, the voltage range is not applicable. This silences an error message about not being able to adjust the voltage. Signed-off-by: Vicente Bergas --- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi index 678a33601..06df2397b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi @@ -111,10 +111,6 @@ vcc_lan: vcc3v3-phy-regulator { regulator-boot-on; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - - regulator-state-mem { - regulator-off-in-suspend; - }; }; vdd_log: vdd-log { @@ -362,8 +358,6 @@ vcc_cam: SWITCH_REG1 { regulator-name = "vcc_cam"; regulator-always-on; regulator-boot-on; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; regulator-state-mem { regulator-off-in-suspend; }; @@ -373,8 +367,6 @@ vcc_mipi: SWITCH_REG2 { regulator-name = "vcc_mipi"; regulator-always-on; regulator-boot-on; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; regulator-state-mem { regulator-off-in-suspend; }; From patchwork Tue Dec 1 15:41:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicente Bergas X-Patchwork-Id: 11943173 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 75BCBC64E7A for ; Tue, 1 Dec 2020 15:42:13 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 3B5E820857 for ; Tue, 1 Dec 2020 15:42:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jPnF+7Ma"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="M19oXvZn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B5E820857 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9lvpYA/aX09kP3H9CE6ATxAzpH7sIyDMuXOS7NYs0cc=; b=jPnF+7Ma5c4LUbsT4Sjw9GBiX THA2Sxu1bAheviAd/V5xbJhFO54zDpLHzK0+mvDCWF4Ysev3NQF9M+fT437EF7J2DAfto+ircFOoS ospUss5eKXTXnkPvTFFIK+02gE9BUosIwHBZPoaADpPFrQ+ZsAnKHcIEZFvCapcMvISrvSwX1I9HY 54dmhzK8ODQW34oqiN1mgWiKOvViwJGduXnaPI8U9tQZnKONu160gUaNJ/vOzcKOI9ohe7E+vBhNb VBcY+i2AGBv3UDQrMuSNA/xgD7k9Cb9RU2g2eE5LD1uI4aO6O2A7IA9e64HBa7kbZd9I2MYIQf+II HcyCa99Ew==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk7n4-00046r-Gq; Tue, 01 Dec 2020 15:42:06 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk7n2-00045v-LS for linux-rockchip@lists.infradead.org; Tue, 01 Dec 2020 15:42:05 +0000 Received: by mail-wm1-x341.google.com with SMTP id h21so6161138wmb.2 for ; Tue, 01 Dec 2020 07:42:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+PbHYRo9ru+iaQnGJq34Q1hIXsrQG+mWKbefVtI+W94=; b=M19oXvZncYxrfSjOA2C1LF3obpSCw4EZsbmDkYYAfBv/9HXt94dwOgLLomyIeMxb6d wbx1Pqz8x9OZ+fLX+LYEfsEFCLj3Rp6fgObNQN1esHyb/mUWTWkTiXXUjTjQSWOAeNU2 fVRfj28kh0B54VPqLViOV/FydgNhVQ64gMRUmxKwoVBqcok+8Vu4nfmvnP8d+aIAfJpZ fmfBtnOixS+zomWZReTpc+cwqteFVj1ntu/XVhIlIxY2HR2VoPDftsNKcgwTlXiSkxTh uZAcOTmHGsFzi8inniWKwEkZKEdg6Il7qhUu9IXFjoEXtPletDG+COGi0hu/RpbQ602y HnIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+PbHYRo9ru+iaQnGJq34Q1hIXsrQG+mWKbefVtI+W94=; b=BycKIxD7IJlsGLz7ny6yZT/09J/SrflHo6FnANKdSbvle93DEd+RHAGBPbh1B75UYx bYxjn1bMN9Cr81EEQtGRXQu6ypz5c3xL0PMYwM7eOA9WMp8r6QiM+8o0hzqMGtJHtnjX NUwxXxNqgqggVV0WswUy0qQ4e1FtmneP+3ZsnjQ0s1HPmNOGjgY342HdeGGYQvgaywLq nrgtiqfNgJRzQM275tgVR/alvssJVNsptn2vbxayWb8z8X42+hxtUVRtIgUwWbCuy/cx nHmb9m054yTOpWt5loxd37PwMqVVhhHan17uSl+Mv/Da4Ygy/Yn6yayebi3Q1yyQPB68 my1Q== X-Gm-Message-State: AOAM533w4EwG0d3lZ6n6/eboYB9WehMLzBXcYJW0Xd0DsjMdkKdnAz7D rkdB79njkV2D+mRu+oNpJKc= X-Google-Smtp-Source: ABdhPJzDvQdugL3V1uuxtHAOSDKLzb/NPCG/8Lm72iZFcOe4RfI8jCdCyHWHqGFhrl9lDDyZU5zWFw== X-Received: by 2002:a1c:1bc9:: with SMTP id b192mr3272891wmb.136.1606837323632; Tue, 01 Dec 2020 07:42:03 -0800 (PST) Received: from localhost.localdomain ([170.253.51.27]) by smtp.gmail.com with ESMTPSA id l24sm4229811wrb.28.2020.12.01.07.42.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 07:42:03 -0800 (PST) From: Vicente Bergas To: Rob Herring , Heiko Stuebner , Johan Jonker , Chen-Yu Tsai , Douglas Anderson , Carlos de Paula , Sugar Zhang , Shunqian Zheng , Boris Brezillon , Robin Murphy , linux-rockchip@lists.infradead.org Subject: [PATCH 2/3] arm64: dts: rockchip: fix I2S conflict on rk3399-rock-pi-4 Date: Tue, 1 Dec 2020 16:41:31 +0100 Message-Id: <20201201154132.1286-3-vicencb@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201154132.1286-1-vicencb@gmail.com> References: <20201201154132.1286-1-vicencb@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_104204_710947_722CD7C3 X-CRM114-Status: GOOD ( 12.56 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vicente Bergas Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Based on the board schematics at https://dl.radxa.com/rockpi4/docs/hw/rockpi4/rockpi_4c_v12_sch_20200620.pdf on page 14: Only two channels of I2S are connected and the extra I2S pins are in conflict with other functions like USB power. Signed-off-by: Vicente Bergas --- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi index 06df2397b..63b029a54 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi @@ -432,8 +432,9 @@ &i2c4 { }; &i2s0 { - rockchip,playback-channels = <8>; - rockchip,capture-channels = <8>; + pinctrl-0 = <&i2s0_2ch_bus>; + rockchip,capture-channels = <2>; + rockchip,playback-channels = <2>; status = "okay"; }; From patchwork Tue Dec 1 15:41:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicente Bergas X-Patchwork-Id: 11943175 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 D3103C64E7B for ; Tue, 1 Dec 2020 15:42:13 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 D07AA20870 for ; Tue, 1 Dec 2020 15:42:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="E1v31yq/"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GeXG4P28" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D07AA20870 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vwdooBlhUqTVn91PdK/GzgVLFa8sh4vGOiViV/Saiko=; b=E1v31yq/O82v6oD0dMkCIy4VD t2UDe8vCnIQRngHVhtp5MIuNUBD4VmF/sFmm/7YLkWYF+5RTXg3ZhdBXHWn8aHnELMB96NSkCJ5zi ZMymOO6NU689GLHHaAIk4n6bfORkxmVBXOOcv8Piv4K6H53iLpX94WNPtZ52DwNn9ciD5UxK5MEvG tg8Mf4VNpb3tH7Jv00lvGLDTSyc0sU9P4xQOgM1CgZDkTooJj4Vta4BTw67ev7Q7vm53keR6UJh71 jL9t1aqV8Evu6UaFZ05KwZocgX7TGLrwYwsWPFbDSWg7zGE1u5HjYSfAPWiWtPMzzbGYmDm9naRS5 cJKsyJiQg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk7n8-00047z-1r; Tue, 01 Dec 2020 15:42:10 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk7n4-00046p-Un for linux-rockchip@lists.infradead.org; Tue, 01 Dec 2020 15:42:08 +0000 Received: by mail-wm1-x341.google.com with SMTP id c198so3888515wmd.0 for ; Tue, 01 Dec 2020 07:42:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DZ/KcM3AbG5Ra+lTfzAJHWq3Pro/pywUpIewN/J49DA=; b=GeXG4P28domF155wuCJyT2Jf2wl4DVejZ8aCmj6Wg/XpdbVEPkl1bgpjNS2sf3ZA71 qNOwwM7BZWghJJXaaE/5UymEg9SL3xEh2MDceCvPbokv/37/qYotODloHn+DPWVoHHjb DHD19ydQ9A7kOZUwsEVg6Q2vPcoDns3DNl9/qVPDqcP69a6OnG7fmAhyzWLlBheVScOp g2D/BC6hjz3lSZDiVs048ighq2d5R1tVaMxlFlspByKc786wfgSNPMvpgQUjwdTJoOJ0 tSW0A5DE5UnnhVVt9i5cfVs/fkVtXK4KqsvtLEfTuY0i7X5224AomYlcpY8fDIhdWMun X6xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DZ/KcM3AbG5Ra+lTfzAJHWq3Pro/pywUpIewN/J49DA=; b=L+tw7HgbtS4bk+njpem/DOdMyYc9JvmKYZgXBy63J2oCj0jwlLXcdT5WokZXDscTLd S0enxshYCZ6lD2K8vNxrmjn+B7Kg/s9zLKKcaGCfNGE3vxHPmwcuyU16FzIfVWmpjmLy YtxEjUWxTKAJWUUSnJnTMm31gieyVpA7yN7n1yJK2+lL35gMN03ftKXPLhGE6hgCovv+ lu4Rz0KhgDNDk2t1iCrHXYtxhZ+e630jDP0m4PbqK7Q19W99vKEvOgzFJRSNIfaig4AK DxFAWrGj69N5e7mfdI/dbPxGHoyscnnkLXCxAJJWIytEcbaxEId6e+yfaNSY9KwKqgHz ewIw== X-Gm-Message-State: AOAM530yfOwd89G4tLWDKhKWCczzvFuvFvXuIUADF5A0urO46wjw6toX LrEWLbyVSiBe2mCoNxLKh/8= X-Google-Smtp-Source: ABdhPJz3Yb7RkrvEJHZ4cU/HdgkWpxeJQLLFk7l76J2J3YpjsKWvEOe7MHkuPgvs9/Wpa5x8tlcpew== X-Received: by 2002:a05:600c:cc:: with SMTP id u12mr3385733wmm.42.1606837326107; Tue, 01 Dec 2020 07:42:06 -0800 (PST) Received: from localhost.localdomain ([170.253.51.27]) by smtp.gmail.com with ESMTPSA id l24sm4229811wrb.28.2020.12.01.07.42.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 07:42:05 -0800 (PST) From: Vicente Bergas To: Rob Herring , Heiko Stuebner , Johan Jonker , Chen-Yu Tsai , Douglas Anderson , Carlos de Paula , Sugar Zhang , Shunqian Zheng , Boris Brezillon , Robin Murphy , linux-rockchip@lists.infradead.org Subject: [PATCH 3/3] arm64: dts: rockchip: use USB host by default on rk3399-rock-pi-4 Date: Tue, 1 Dec 2020 16:41:32 +0100 Message-Id: <20201201154132.1286-4-vicencb@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201154132.1286-1-vicencb@gmail.com> References: <20201201154132.1286-1-vicencb@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_104207_052500_8D84B9CF X-CRM114-Status: GOOD ( 15.41 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vicente Bergas Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Based on the board schematics at https://dl.radxa.com/rockpi4/docs/hw/rockpi4/rockpi_4c_v12_sch_20200620.pdf on page 19 there is an USB Type-A receptacle being used as an USB-OTG port. But the Type-A connector is not valid for OTG operation, for this reason there is a switch to select host or device role. This is non-compliant and error prone because switching is manual. So, use host mode as it corresponds for a Type-A receptacle. Signed-off-by: Vicente Bergas --- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi index 63b029a54..fb7599f07 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi @@ -673,7 +673,7 @@ &usbdrd3_0 { &usbdrd_dwc3_0 { status = "okay"; - dr_mode = "otg"; + dr_mode = "host"; }; &usbdrd3_1 {