Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2394154rwb; Fri, 2 Dec 2022 09:10:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf6CRkYBfV0fsH3Q0evu9fzRMhgqXgsPCt6geWVF0OIbl+K/8DrDtSOiR6EzwJHeyQQLezcP X-Received: by 2002:a17:907:7611:b0:7c0:9bc2:a7c8 with SMTP id jx17-20020a170907761100b007c09bc2a7c8mr12003835ejc.384.1670001045602; Fri, 02 Dec 2022 09:10:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670001045; cv=pass; d=google.com; s=arc-20160816; b=QrZ6qmjoDNQSviMm0DFHPoyeGGSf3Oro5egxJ8CFpeuUS2waYe8mmsRpei7kGbP/yC IB9UE5/CzbsypkSJY/Os8/+fhBQC9xbYoXcTCvC4yYZenDzqPNWmwg4D5Tr1gHGLbuwz 7F+p7/LqrH0PsSvjAQ4AlwqcqA1EVY4t+ujM4ww4uH3nPyaYA9ZTDTvZGc9MAok7q93v I1o140mcDavpZv+nNF/HvOkjDpTwzbjDdV2J46opH2otQ2BdaaFRZVlHQ7Wyd2ImxFcr VJ25AlCOyoOnm4YuDzidMnDQEIAq79UYfCymf7lavhogtzhg9omCsu5DYaIqZ12LbYhr R+RQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:organization:references:in-reply-to:date :cc:to:from:subject:message-id:dkim-signature; bh=+EqTfPk74WLERR+Smv2InmkoLsWm4hNXze0JOAsz9gg=; b=BKqezBULfJjGeYilBEhFD/5CALaDg02TS/4w4rBENYyOqQ6X0N/VLZgdz3oOkAngqX X4Lv80AK2r/EjW4Y+yod7E+qwYDlE5RXX2+Yp3VqkXm8X2F0VMwHLS92+JPKif2Jcl7Y jUs5LK4frOMNkKwJJ1o5LrQIlzwi6fC5DuAbClwM0RH+U4I/2bVemjxtcbES1sqXZ9QA QjF0OVZ+W9JrzglXObEIjT1JK4c4rjJ/IlPeRCyJ1xrh0VzX/Vs5f7kjUFM3YftoAWwu D22F8CiXMtAOP76NVfyQR61AWUUSxyCwqLMPtxInEBo8rc4knBKh/G/bwOsCAICc24J8 8c6w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail header.b=fKM4uQ8Y; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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 nc9-20020a1709071c0900b007bc5528a4d7si7405162ejc.47.2022.12.02.09.10.24; Fri, 02 Dec 2022 09:10:45 -0800 (PST) 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=@icenowy.me header.s=zmail header.b=fKM4uQ8Y; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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 S234261AbiLBRBZ (ORCPT + 82 others); Fri, 2 Dec 2022 12:01:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234208AbiLBRBI (ORCPT ); Fri, 2 Dec 2022 12:01:08 -0500 Received: from sender4-op-o18.zoho.com (sender4-op-o18.zoho.com [136.143.188.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE17AAC6D9; Fri, 2 Dec 2022 09:01:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670000447; cv=none; d=zohomail.com; s=zohoarc; b=LyXsdr5/7uFU3xSgpe8myGtTWV1Hn7zKf4EKiOnKIexKn+w1T7TJ8P5F8qaIDjzvKcyE7jhm4ns9ivF09JsvxMC2gq0iUc9diAIdrbAPARcUH0zlXRCbr0cux4QmrA1rfh2/2h1dQu8brWI7B/KJLZPDQDO8DTHbDY/nN6qzsZY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1670000447; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=+EqTfPk74WLERR+Smv2InmkoLsWm4hNXze0JOAsz9gg=; b=Wi7X4AZ5VMK3ALYDzqnTHK3GZ/+Lhd4Zhw3wEdqSU2NWzKBeT3XgjYH/WEh1hDNlt+UEL+Cfm5g8lDSDpVZWomwdMWGV47gvUjpz9qLXDIA7qX1PbeS+WsEbn8LLAC15jKAmBGVB23VtbopmctZPQjR4vKv9+jsM2Ld34W1iqWQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1670000447; s=zmail; d=icenowy.me; i=uwu@icenowy.me; h=Message-ID:Subject:Subject:From:From:To:To:Cc:Cc:Date:Date:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:MIME-Version:Message-Id:Reply-To; bh=+EqTfPk74WLERR+Smv2InmkoLsWm4hNXze0JOAsz9gg=; b=fKM4uQ8YtjVg9zspKIaEJlQ0oJ8XtleovMU/MCXnjW0aCpXyPNhv2czfH47nVDHG r4y5NCN8c2D/37yOPQgmsD4D/A6jTtqBMHqTIwWDP4o4IVZLrujOPfzPVXartKAmfdx 77TYG6c42kpbHbkqrSl+SRkWakdgImp518IM3l2A= Received: from edelgard.fodlan.icenowy.me (120.85.99.143 [120.85.99.143]) by mx.zohomail.com with SMTPS id 1670000444876905.0700530460737; Fri, 2 Dec 2022 09:00:44 -0800 (PST) Message-ID: <6970fef2a3826a8f060db2091db87b135a06da57.camel@icenowy.me> Subject: Re: [PATCH v2 2/6] dt-bindings: usb: Add binding for Genesys Logic GL850G hub controller From: Icenowy Zheng To: Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Greg Kroah-Hartman , Matthias Kaehlcke , Andre Przywara Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Date: Sat, 03 Dec 2022 01:00:39 +0800 In-Reply-To: References: <20221202081647.3183870-1-uwu@icenowy.me> <20221202081647.3183870-3-uwu@icenowy.me> <2f0f31551d361cf23abdd2c4117f2feb84e2b1a8.camel@icenowy.me> Organization: Anthon Open-Source Community Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLACK autolearn=no 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 =E5=9C=A8 2022-12-02=E6=98=9F=E6=9C=9F=E4=BA=94=E7=9A=84 17:59 +0100=EF=BC= =8CKrzysztof Kozlowski=E5=86=99=E9=81=93=EF=BC=9A > On 02/12/2022 17:54, Icenowy Zheng wrote: > > =E5=9C=A8 2022-12-02=E6=98=9F=E6=9C=9F=E4=BA=94=E7=9A=84 10:02 +0100=EF= =BC=8CKrzysztof Kozlowski=E5=86=99=E9=81=93=EF=BC=9A > > > On 02/12/2022 09:16, Icenowy Zheng wrote: > > > > The Genesys Logic GL850G is a USB 2.0 Single TT hub controller > > > > that > > > > features 4 downstream ports, an internal 5V-to-3.3V LDO > > > > regulator > > > > (can > > > > be bypassed) and an external reset pin. > > > >=20 > > > > Add a device tree binding for its USB protocol part. The > > > > internal > > > > LDO is > > > > not covered by this and can just be modelled as a fixed > > > > regulator. > > > >=20 > > > > Signed-off-by: Icenowy Zheng > > > > --- > > > > Changes in v2: > > > > - Misc fixes suggested by Krzysztof, including property > > > > descriptions, > > > > =C2=A0 single-item "items" and fixing the example's gpio property. > > > > - Fixed $id. > > > >=20 > > > (...) > > >=20 > > > > + > > > > +examples: > > > > +=C2=A0 - | > > > > +=C2=A0=C2=A0=C2=A0 usb { > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 dr_mode =3D "host"; > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #address-cells =3D <1>; > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #size-cells =3D <0>; > > > > + > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 hub: hub@1 { > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= compatible =3D "usb5e3,608"; > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= reg =3D <1>; > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= reset-gpios =3D <&pio 7 2>; > > >=20 > > > Use GPIO flags. What did you fix in the example? > >=20 > > It used to be here, but using it needs another include, which I > > don't > > think it necessary here. >=20 > The header is necessary for the flags... >=20 > >=20 > > Maybe I should just drop this line in the example? >=20 > It's useful. The example should be rather complete, not just > compatible > and reg. >=20 > Different problem - you miss maxItems for the GPIOs. Okay thanks. >=20 > Best regards, > Krzysztof >=20