Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2496844pxb; Mon, 18 Apr 2022 01:19:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbWs603tk8818hvg2C31IqlS3R+AxVlzgFCvklLtGH3rKjAmE/U2L2e+FU7PCRXDyL/CFp X-Received: by 2002:a17:902:eb81:b0:158:937e:adf with SMTP id q1-20020a170902eb8100b00158937e0adfmr9928272plg.123.1650269949873; Mon, 18 Apr 2022 01:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650269949; cv=none; d=google.com; s=arc-20160816; b=rhvKI89q0LAx9xBHbUqzl57AFDd0SF9gwNt7CPQRlcwb5imaTToaTm3QovGQLjnPhU Dg76i7oQKS4xXdZ6q+X8YtaSdqRFCz1SXIp3sfaATqFrJIv9uUR/6rDqUNKmSGFPLADK d3PcCd4cdvA9iovahC9mENOWNcObA8ObpdjDrGPtv6ItRTnS32ALZiFItfLISyzh1oxF yZdJOLYMwbpf5+XR0DCfxrGCpuzJ9eQ4vVX1exiDoZ9utVk/wuvTr9QacpZRp4I4xx5o 6gYlwIGKU5lKBJmkR4i1OhAH5zTpzNaBd4Mo10I2JqQSpuK7GPbWdb5+jRPoUA4FdDog T3yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=WeP4bLLJkg6sxiv6YAr9vUyhvbuDUwJ1nIhSIY9ksAk=; b=V94TXZl8XbFOF/btl10Z11+C6c0dPOHFdfO0MTII3kxlIvdBIUYsef3BN28MNXK5Du VH6bY9YVqBsTose5G1mn/rj6TvBz8EjNSsQVOYagfDsNQ14CJtpwcF3wq8MeV434PsWg YW+nPmuFyinfHpahoJSS6Qkaj8u5AcaA7e3B4FMkNn5197UXAEUf3DDv11GX6DYWz8Bc /BfrPs20SHhqGRVwSYH5any7D33w2P+19N9G1qOHDiiryk4lpAGIfNYPooa8FzYed0P/ 1iV0lGGKVDNUlY8Tw7cRv6mELHpZGk2qu0k+MomhYhYj6Osj9QT9TmsdjXu6Uk76ao1W idwg== 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 n16-20020a170902f61000b0015881788556si8516009plg.530.2022.04.18.01.18.55; Mon, 18 Apr 2022 01:19:09 -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 S233820AbiDQJaS (ORCPT + 99 others); Sun, 17 Apr 2022 05:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233795AbiDQJaR (ORCPT ); Sun, 17 Apr 2022 05:30:17 -0400 Received: from out28-101.mail.aliyun.com (out28-101.mail.aliyun.com [115.124.28.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D65A387A1; Sun, 17 Apr 2022 02:27:41 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.09126422|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0227706-0.0250717-0.952158;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047201;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=18;RT=18;SR=0;TI=SMTPD_---.NSFwFyR_1650187655; Received: from 192.168.30.128(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.NSFwFyR_1650187655) by smtp.aliyun-inc.com(33.37.71.29); Sun, 17 Apr 2022 17:27:36 +0800 Subject: Re: [PATCH v3 1/3] dt-bindings: dwc2: Add bindings for new Ingenic SoCs. To: Paul Cercueil Cc: gregkh@linuxfoundation.org, hminas@synopsys.com, robh+dt@kernel.org, krzk+dt@kernel.org, tsbogend@alpha.franken.de, linux-usb@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dragancecavac@yahoo.com, hns@goldelico.com, dongsheng.qiu@ingenic.com, aric.pzqi@ingenic.com, rick.tyliu@ingenic.com, sernia.zhou@foxmail.com, zhenwenjin@gmail.com, reimu@sudomaker.com References: <1649964337-114337-1-git-send-email-zhouyanjie@wanyeetech.com> <1649964337-114337-2-git-send-email-zhouyanjie@wanyeetech.com> From: Zhou Yanjie Message-ID: <62d961c6-6c3e-393e-2348-cb874320316e@wanyeetech.com> Date: Sun, 17 Apr 2022 17:27:34 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Hi Paul, On 2022/4/17 上午12:34, Paul Cercueil wrote: > Hi Zhou, > > Le ven., avril 15 2022 at 03:25:35 +0800, 周琰杰 (Zhou Yanjie) > a écrit : >> Add the dwc2 bindings for the JZ4775 SoC, the JZ4780 SoC, the X1000 >> SoC, the X1600 SoC, the X1700 SoC, the X1830 SoC, and the X2000 SoC >> from Ingenic. >> >> Signed-off-by: 周琰杰 (Zhou Yanjie) >> Acked-by: Rob Herring >> --- >> >> Notes: >>     v1->v2: >>     Add Rob Herring's Acked-by. >> >>     v2->v3: >>     No change. >> >>  Documentation/devicetree/bindings/usb/dwc2.yaml | 7 +++++++ >>  1 file changed, 7 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/usb/dwc2.yaml >> b/Documentation/devicetree/bindings/usb/dwc2.yaml >> index 4cebce6..c6e8c0b 100644 >> --- a/Documentation/devicetree/bindings/usb/dwc2.yaml >> +++ b/Documentation/devicetree/bindings/usb/dwc2.yaml >> @@ -17,6 +17,13 @@ properties: >>      oneOf: >>        - const: brcm,bcm2835-usb >>        - const: hisilicon,hi6220-usb >> +      - const: ingenic,jz4775-otg >> +      - const: ingenic,jz4780-otg >> +      - const: ingenic,x1000-otg > > The driver handles the JZ4775, JZ4780 and X1000 the exact same way. > Maybe the latter two should use the JZ4775 string as the fallback? Do > you know if the IP cores are any different? > From the manual, it seems that JZ4775 and JZ4780 should have the same specifications, but in fact, the behavior of JZ4775 and JZ4780 is different, especially if the JZ4780 does not turn off overcurrent detection, there will be a high probability of affecting the use, while the JZ4775 does not have this problem, so I think they should actually be different. The manual of X1000 shows that it has only 8 endpoints, which is different from JZ4775 and JZ4780. From the experimental results, it seems that the three of them can use the same set of parameters, but in order to avoid hidden dangers that have not been found for the time being, I think it seems necessary to keep three independent compatible strings. >> +      - const: ingenic,x1600-otg >> +      - const: ingenic,x1700-otg >> +      - const: ingenic,x1830-otg > > Same here (and btw, first time I hear about the X1600 and X1700 ;)) The OTG of X1600 and X1700 seem to be the same, I will remove the compatibility string of X1700 in the next version, but the device tree of X1830 in Ingenic SDK is configured with different parameters from X1600/X1700, so I believe the X1830 should be a little different from the X1600/X1700, so although the experimental results show that the three of them seem to be able to use the same parameters, it seems that it is more appropriate to keep the compatibe string of X1830. I also heard about the X1600 and X1700 not long ago. From the existing information, the X1600 should be the only SoC with CAN in the known models of Ingenic. And the X1700 is more like an SoC that focuses on display applications. Thanks and best regards! > > Cheers, > -Paul > >> +      - const: ingenic,x2000-otg >>        - items: >>            - const: rockchip,rk3066-usb >>            - const: snps,dwc2 >> -- >> 2.7.4 >> >