Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp438813pxr; Sun, 10 Apr 2022 20:18:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXhDhf1NaXPV1X9kbh4MSiuHDELYIcuCLOmoDyNHM9HeGVYpLsnaxKF3xP7ebo0uvNVYgu X-Received: by 2002:a63:4d66:0:b0:399:14fa:2acc with SMTP id n38-20020a634d66000000b0039914fa2accmr25221296pgl.558.1649647103210; Sun, 10 Apr 2022 20:18:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649647103; cv=none; d=google.com; s=arc-20160816; b=ZCS67p7G+ItSvEJH5JqKxLazunW86t+TltITMmMVIc2HbowLZFjJNXjSsjrn9jcEFL LO7Z1SjXYmQX5rOnYntMjTB0jO5YoUHh1H8oR+RlJ0LVaPdOKiFrsbJIZpX0/+qJMjlx 4WOVa+vkYfu5ioMiOmu+xQy0Y3A1A5g7QkCq/Jpf+aeOPhVvaU+Cj1MlvR44T/XoZ24u i3ecqLwm9ZtFQPgi6C4b7tub37se73XWxVKL2w+09mMRfCVgh19S/4VrHigrcmpuZV+6 Ujaaaq0tsuqjM0+UPVH4JF9m1H6EMSXowkszEIiSEhUbL+qVONBXbQq5A5vjby1wHbS2 AflQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5CNNYXuOr2RcG8eSzPuXT83KGiDGSucj1aFS0r5c1ZA=; b=XLv/+A/Ua+pcbVjzMKWZLa3HYlrYLZk8ZQ1X6UeXWv2Kpd7QAA3HlnbeH7m1VUSt56 uz+qetHMxMJ9X17E0n69OuhLzWsBs6BMW9ZBUW7W7b6W9VgLRDlU4luKddrPK3AAe7x3 nVOOsPW5ewAgHqzrdAgiTsvW5j4KoGy1e9L+U3fnnYIja31VXuD6B1KgZVAt7Mx7Ec/L lWrG6e/Womh/xQkxMPKb2QDAe8YadC276C6SZlqCYMR53ejqr3IO5B/YW1VFIx63OviE bMenmB8R2ETaDdzjFi65+2MZXkg2W5DlPgbK0CpdBxdOcjIZsGSC8Smnl9/GJRBTSlik E+Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dc+l+QFt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020a17090341d100b001570dd6463csi8257784ple.270.2022.04.10.20.18.09; Sun, 10 Apr 2022 20:18:23 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dc+l+QFt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242490AbiDIPfX (ORCPT + 99 others); Sat, 9 Apr 2022 11:35:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbiDIPfV (ORCPT ); Sat, 9 Apr 2022 11:35:21 -0400 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54F7025AEE1; Sat, 9 Apr 2022 08:33:11 -0700 (PDT) Received: by mail-yb1-xb2b.google.com with SMTP id e71so5507681ybf.8; Sat, 09 Apr 2022 08:33:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5CNNYXuOr2RcG8eSzPuXT83KGiDGSucj1aFS0r5c1ZA=; b=dc+l+QFt+ZkI4ADTsbh1RkzZ7R3GKYOGpQPN5INmbHlFKc7ns4gaQ8MzsnTZxHC9VZ sbB+msnC5t+3A0if7JaXZ36vTXMRQDtmmNtdcUvAsD1GXSfjPe0XqX40aVc8WaaCdXR3 FKbS96lEEYq8OvHfAKySYgRQOCU13wtfmO2z3cW4WuEOX/uFIHm22Bbt8NKrZTXdd5zn 6Krcdg+Zap+0/M3Ee0533KHqgEnbVS/gOg93P/KNY4YLpf8ezcXDX6JTxgibmW/+PIEs IjtMFpEt+lHA9MZi3/RZ1SHRC7/jYdMqTmE6qz+mbwfHMbAv4TcYcVYzdKffy/eR2a9W nLxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5CNNYXuOr2RcG8eSzPuXT83KGiDGSucj1aFS0r5c1ZA=; b=sYSB9KLe7E34ii2Dd5aJRN93SaQ4oEAuoUvL8Df/6Cjkxpmc4eN7g6vGEqTRExZezH R8ws3Ro9ldFZqLlw/ewZgBwPxbXCoSHuZ1Sjq3kp/MYDLx5FwB7RD5tlmLVlBCJNJVqm qCsMBYycVoF2TGI6O9WhHtLiiuBR9ioi9ua6VEWHSr0fpp09odBmYyYo1cayO7Ua+BKG kuH6N6F0SbkqysePMnAPqPj53nnnFVDHgI63Vksg+i5c42nW53FLDlIGsWH/foCz1pHu quNBP86q3YcE2vBSmL2vXGD8QHrgfNezeK7Ge67BkUm5FZStJ7wLYzWxmv3npTLiTP0o tSHA== X-Gm-Message-State: AOAM531T9tBiiq+M4pef5V9glJLl9KQnYyCAZY+qyZ3TsAI/7CpvVL8X BFtGfbQabsG9yWHmXYAqwSbvqDXf4WoRb2XAB5NQ9CzJe9Ujrfk1 X-Received: by 2002:a5b:ac7:0:b0:633:cf3f:6d1b with SMTP id a7-20020a5b0ac7000000b00633cf3f6d1bmr17740849ybr.585.1649518390548; Sat, 09 Apr 2022 08:33:10 -0700 (PDT) MIME-Version: 1.0 References: <20220408151237.3165046-1-pgwipeout@gmail.com> <20220408151237.3165046-4-pgwipeout@gmail.com> In-Reply-To: From: Peter Geis Date: Sat, 9 Apr 2022 11:32:59 -0400 Message-ID: Subject: Re: Re: [PATCH v5 3/5] arm64: dts: rockchip: add rk356x dwc3 usb3 nodes To: Frank Wunderlich Cc: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , "open list:ARM/Rockchip SoC..." , devicetree , arm-mail-list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Sat, Apr 9, 2022 at 3:37 AM Frank Wunderlich wrote: > > Got it, > these Patches require different clock names > > ref_clk => ref > bus_clk => bus_early > > after renaming usb works on my board > > will send an follow-up patch for this series > > regards Frank > > > > Gesendet: Samstag, 09. April 2022 um 09:23 Uhr > > Von: "Frank Wunderlich" > > > > at least i nailed it down to these 2 commits in drivers/usb/dwc3/core.c, without them it works > > > > 5114c3ee2487 2022-01-27 usb: dwc3: Calculate REFCLKPER based on reference clock > > 33fb697ec7e5 2022-01-27 usb: dwc3: Get clocks individually > I've submitted a fix for the dwc3 issue. https://patchwork.kernel.org/project/linux-rockchip/patch/20220409152116.3834354-1-pgwipeout@gmail.com/ The offending commit was: 33fb697ec7e5 ("usb: dwc3: Get clocks individually"). It breaks backwards compatibility with rk3328, which follows the rockchip,dwc3.yaml dt-binding, and thus this series as well. This fix is standalone and necessary no matter which route we decide to go with this series (and the rk3328/rk3399 support as well). With this patch, dwc3 is functional on the rk356x as the series was submitted, so if we decide to fix everything all at once, that is a viable option. For those not following the other conversation, here is the TLDR: - rockchip,dwc3.yaml has different clock names than snps,dwc3.yaml - rk3328 and rk356x attach directly to the dwc3 core driver - rk3399 uses the dwc3-simple driver, which still uses the clk_bulk api. - commit 33fb697ec7e5 changed to individual clocks, which follow snps,dwc3.yaml naming - to correct this beyond my fix patch, we would need to align rockchip,dwc3.yaml with snps,dwc3.yaml, which means rk3328, rk3399, and rk356x will move to the snps clock naming scheme. I think we need Rob Herring to weigh in here, as this is a rather uncomfortable dt-binding issue.