Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp354627iog; Fri, 17 Jun 2022 04:59:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vllKuu5UGbPzLjHZu4dXZbTTlFQ/eEJ81Am87b9T5ls8JsQEp0usVrGBxhb4R/2BZ5n7ug X-Received: by 2002:a17:90a:6602:b0:1e3:17e:6290 with SMTP id l2-20020a17090a660200b001e3017e6290mr10429873pjj.37.1655467170201; Fri, 17 Jun 2022 04:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655467170; cv=none; d=google.com; s=arc-20160816; b=ulzCJF9EaOCgOJFnt8OoYpMLTm+5ly6V9QuVOjv/YgraKapJ5FogV0BHt4ukGDAGQ3 BYuiCZyCFc3CFwcGiJ6ZcbudLwIUcaI8Rbg2ds1CnVt8tJ055R0sW9MuFiunFKahs5MN jMhMZVdE03p/ztFPPVabiyaBH6miMxnTwqz0opj4A7ZbC3xKB0WKZrpWPV9Un0iX0RMh rMpFgpLpmn1H/xUEdn9fLrgCCv2bhdrXZ91D4iH0/uGEiaNkhE35Ighx/9kQUkN7MIPm uwvbXVTZzZtsr1fA6CfnJ2u+w2KhS3I+/o12Xw+qcuVxrLoruTaI2uvgnWbaWOhPKWNW ZhYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date; bh=VgTgYNsTlXobnFV/YKhEawd6KMRCbuwAjSPw2UcGi/s=; b=P2SXPbGn90grgPQlLF9VozJk+YcRP/tuKtZyKcikWlifjl1d9riXs3D5fm6vWlk6d2 vB0TCQk7Y9WcTQOPrSUVP+GQC8C9+T4U6ROvk4kSUbq41f+gOx4Rrzew1gEASevXgrk7 sJqvwpPkhESjaRXqnirm+xQBJenScWxclxblM9l85hOIt3XCeF3w1k2+ViuqOgbJW4/M QEa3oNph1d+cYbcSdZup62WJ8wkSPiZ99Q9AyF3JjaEzQRsDggabjmOUuIOSpq/DcJfX MRxGJwFU9+c2QS9xS5ucYS/CRHyIIPRU3FOtdsQtWx7eE3N0N0ySh1NHjbg2EqJ26Thp LxqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g16-20020a056a001a1000b0051c248757cdsi5971036pfv.356.2022.06.17.04.59.17; Fri, 17 Jun 2022 04:59:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381981AbiFQLtE convert rfc822-to-8bit (ORCPT + 99 others); Fri, 17 Jun 2022 07:49:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380989AbiFQLtD (ORCPT ); Fri, 17 Jun 2022 07:49:03 -0400 X-Greylist: delayed 349 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 17 Jun 2022 04:49:01 PDT Received: from wp126.webpack.hosteurope.de (wp126.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8485::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D97D6CF56 for ; Fri, 17 Jun 2022 04:49:01 -0700 (PDT) Received: from p5098d998.dip0.t-ipconnect.de ([80.152.217.152] helo=hermes.fivetechno.de); authenticated by wp126.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1o2ATD-000767-I8; Fri, 17 Jun 2022 13:48:59 +0200 X-Virus-Scanned: by amavisd-new 2.12.2 using newest ClamAV at linuxbbg.five-lan.de Received: from [127.0.0.1] (dynamic-046-114-037-216.46.114.pool.telefonica.de [46.114.37.216]) (authenticated bits=0) by hermes.fivetechno.de (8.15.2/8.16.1/SUSE Linux 0.8) with ESMTPSA id 25HBmv1V003806 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 17 Jun 2022 13:48:58 +0200 Date: Fri, 17 Jun 2022 13:48:56 +0200 From: MR To: linux-rockchip@lists.infradead.org, Corentin Labbe , Robin Murphy CC: heiko@sntech.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: rk3399-roc-pc does not boot User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-bounce-key: webpack.hosteurope.de;m.reichl@fivetechno.de;1655466541;bb534dd1; X-HE-SMSGID: 1o2ATD-000767-I8 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HK_NAME_MR_MRS, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 17. Juni 2022 13:35:20 MESZ schrieb Corentin Labbe : >Le Fri, Jun 17, 2022 at 10:58:03AM +0100, Robin Murphy a écrit : >> On 2022-06-17 10:06, Corentin Labbe wrote: >> > Hello >> > >> > I try to add rk3399-roc-pc to kernelCI but this board fail to ends its boot with any kernel I try. >> > It boot normally up to starting init but it stucks shorty after. >> > It fail on 5.10, 5.15, 5.17, 5.18 and linux-next. >> > When disabling CONFIG_USB, the board boots successfully. >> > >> > In dmesg I see OF: graph: no port node found in /i2c@ff160000/usb-typec@22 >> > According to Documentation/devicetree/bindings/usb/fcs,fusb302.txt, the port is mandatory. >> > Can it be possible that the problem was that the power port being disabled ? >> >> Indeed, I believe the OF graph error is just a meaningless annoyance, >> but the general problem sounds like it's probably the same thing that's >> come up before: >> >> https://lore.kernel.org/all/0ac6bbe7-6395-526d-213c-ac58a19d8673@fivetechno.de/ >> >> Disabling CONFIG_TYPEC_FUSB302 or blacklisting the fusb302 module should >> help confirm that. I have no idea if it's still an open problem, or if >> it's been fixed and you might just need to define the proper power role >> in the DT; this just triggered a memory of that older thread :) >> > >If I comment fusb0 node in arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi, the board boot well. > >With the following patch, the boards boot well also: >diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi >index 0e45cc2d195b..60c400ca4034 100644 >--- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi >+++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi >@@ -552,6 +552,22 @@ fusb0: usb-typec@22 { > pinctrl-0 = <&fusb0_int>; > vbus-supply = <&vcc_vbus_typec0>; > status = "okay"; >+ >+ connector { >+ compatible = "usb-c-connector"; >+ data-role = "host"; >+ label = "USB-C"; >+ power-role = "dual"; >+ >+ ports { >+ #address-cells = <1>; >+ #size-cells = <0>; >+ >+ port@0 { >+ reg = <0>; >+ }; >+ }; >+ }; > }; > > mp8859: regulator@66 { > >I think this patch is the proper way to fix, I will send it soon. > Thanks, happy to see that this works now. >Linux-rockchip mailing list >Linux-rockchip@lists.infradead.org >http://lists.infradead.org/mailman/listinfo/linux-rockchip >