From mboxrd@z Thu Jan 1 00:00:00 1970 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.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 289C1C11F64 for ; Thu, 1 Jul 2021 18:13:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0990561285 for ; Thu, 1 Jul 2021 18:13:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232376AbhGASQP (ORCPT ); Thu, 1 Jul 2021 14:16:15 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:23425 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229844AbhGASQP (ORCPT ); Thu, 1 Jul 2021 14:16:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625163224; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CywOQuoVk5N72tkIO6gfgUt+pTez87wevGV8+pLajjo=; b=hv3clhl4ANFcmDgXTajiYKQar8RI+L7e0e7Gau7IdNMzyFSvzOEt/kdYBFerC6GS6k05Y0 +qpclpoH58YQroYyDvJHPBb2tCLgpPQB8grbJe46tlIxgPkWWSWwRGSGV7Uk/wmj8ormqR xuyuLB1aeGfDuzB3MB/OSk9EFL4+Kv0= Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-428-Awa4jE5MOPuO53TTtmpCJg-1; Thu, 01 Jul 2021 14:13:43 -0400 X-MC-Unique: Awa4jE5MOPuO53TTtmpCJg-1 Received: by mail-io1-f70.google.com with SMTP id l15-20020a5e820f0000b02904bd1794d00eso5044494iom.7 for ; Thu, 01 Jul 2021 11:13:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=CywOQuoVk5N72tkIO6gfgUt+pTez87wevGV8+pLajjo=; b=dypLimW9XRJh8CsBQCD28b0H4wATvxq7Ptq3RHndvlK8bpYLdViqqk+fntmJpobyz+ QTfO9JlARdJ7sSrzcJBSDKi3fjiRaN6b/lWaiTiOdrqa9c5eqd/r+gTd9eP5MyK0fsrc IH9xocRERfEcHj0ePa6sWHyyYPvpqOaokMdAj2oMcaek05gbNiGjsYdSiHwKkM+tW05q 5duZObplMxsezTTzUUQvIbYt0O/ays7ylAg7SIBpumvNSHYqjhf+eE8ZGexcObakas28 7enoXxMME75CTlSKoA8kio2OwZVPMffG7p7viPTg3ZcYiXVlccc9hSfbKhlazHRvJ5aL uiBw== X-Gm-Message-State: AOAM5302VF17wFxlNa58e3E15rlRaAAtY8rGOTq74x2plXiEZNO5J68z 6RByS5JOZskxceOKOQ/82qqrobjYyOpeIegdnbmCQM8RwqtT3Yma1UJ60cHyTd+KakNLOX27HfR pOhwY7iNDRJjSvvymzPQhlQ== X-Received: by 2002:a92:ddc6:: with SMTP id d6mr472166ilr.51.1625163222655; Thu, 01 Jul 2021 11:13:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHTXwr1EsWNLVHHiri1W3U3TZItD53EsA6YVI/BP/RUPjAgrPo2OaUFyrUry8nZ0eZOCOiCw== X-Received: by 2002:a92:ddc6:: with SMTP id d6mr472153ilr.51.1625163222422; Thu, 01 Jul 2021 11:13:42 -0700 (PDT) Received: from kasuf.ausil.us (207-179-239-100.mtco.com. [207.179.239.100]) by smtp.gmail.com with ESMTPSA id q8sm285806iot.30.2021.07.01.11.13.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jul 2021 11:13:42 -0700 (PDT) Message-ID: <9a144e2fed4fe6f4eb3c1c88a51d72e3db5a3cee.camel@redhat.com> Subject: Re: [PATCH 1/4] arm64: dts: rockchip: helios64: fixup USB setup From: Dennis Gilmore To: Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= , linux-rockchip@lists.infradead.org Cc: Rob Herring , Heiko Stuebner , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/Rockchip SoC support" , open list Date: Thu, 01 Jul 2021 13:13:26 -0500 In-Reply-To: References: <20210701004043.18585-1-dgilmore@redhat.com> <01f1b032-14a8-a6fa-9063-23de65fc6f43@kleine-koenig.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.2 (3.40.2-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Thu, 2021-07-01 at 15:35 +0200, Uwe Kleine-König wrote: > Hello Dennis, > > On 7/1/21 2:59 PM, Dennis Gilmore wrote: > > On Thu, 2021-07-01 at 11:31 +0200, Uwe Kleine-König wrote: > > > Hello, > > > > > > On 7/1/21 2:40 AM, Dennis Gilmore wrote: > > > > Without the usbdrd_dwc3_1 node defined u-boot will throw an > > > > error > > > > and > > > > reset the system. > > > > > > I wonder if this should better be fixed in u-boot then?! > > > > > > > All other rk3399 systems use this format > > > > > > This is true for the dwc nodes, however for the usb2 nodes there > > > are > > > several that use this idiom (and even repeat the label name), see > > > for > > > example the &u2phy0 node in > > > arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi . > > > > > > > looking at that file is where I got the idea to set it up as I have > > proposed, it follows the format I have submitted > > I guess you didn't read exactly what I wrote and only looked at > &usbdrd* > but not &u2phy0. Hi Uwe, I did read what you pointed at, the issue is that is already defined in arch/arm64/boot/dts/rockchip/rk3399.dtsi and all that is needed it to set the status to okay and minor enablement. as DTC merges all the snippets together they end up in the right place and doing the right thing, the approach you took is different to all the other boards I looked at and seemingly causes issues in u-boot. I did not get far enough in booting to verify the state in linux as I am updating u-boot as I go and testing using u-boots dtb for simplicty sake. It quite likely is a bug in u-boot that it resets the system, at the same time I do not think that doing it differently to how the other boards are implemented is right either. There is still a lot of the hardware in the system that is not defined in the devicetree file, including a lot of the usb stack. Dennis