Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14474904rwb; Mon, 28 Nov 2022 01:09:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf4plQNyP6fNaoAAbhY094J4j2rV64seWfG+14171awilW0NTDFUyqxYjMshH8pqxdGWPR0X X-Received: by 2002:a17:906:ce2d:b0:7ba:b9a:5e7e with SMTP id sd13-20020a170906ce2d00b007ba0b9a5e7emr20152678ejb.735.1669626564428; Mon, 28 Nov 2022 01:09:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669626564; cv=none; d=google.com; s=arc-20160816; b=xTPK6cdvIbhnmT8tCVFtDG5sb37q/RzRt0s5iHzb+5KEvc8sbPLNlp1b7TrlY0sk1s aqcVfx1FuxHjGPx9bsLQah9tZNFsrgYPWCLmobgXkJClxR2tmkakVvaAWo0lqREkIlG+ hgbxxFU+pRVZI2WEpDaT3BxQY1n6SHfl/9TH4UyMo84VPdsam+nx1Sa0wuQmLN44SCqf tN92S+tkqmVClPwXKW1lMYlWYDQUxM4Uo78jCwni/1qLfLwAn1Tm9vdSpFdk5CioBtvf ERYKnzbMa9s8tnScr5mxgCwUzOOsIcfqEVgObkFrFddXT+W7RKcI/mJQRvvQzH7qqfiv JeNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qXMY8f9iJDeQoKaNyCjgw4YZP5Yos8JV58NKPKjonWA=; b=D6oQuVNYEFOEK9dRorGpdKruJ3AfGH5D5iyQOw+z7NB0lUlWxajtaYj4WUY+mg2SEM 2FhGXVawGNsIRkVdCYXMqv8JnLX0K/dY6X9EcLmmpL9y/q0Ckn8lvVcvA96qEeWQHwXL 0T/65Is1HzFt51pgrgRYcZX+sLL1+5GVMYXINN2rPKHzYsINQutapbrGnnUykhjHVMRG iX+K6jf2N69/qRUUu7ghVe/1qbKpdhkVre3x2D8a4qGSpHgUp/Vm64wBp91Qn8XKu81m +SIaula+3FA6+U1R+d/yrkH+5Tcd0CaplCIDA20gnQvqBj6jtpikqoBR5iJikotlHt8m hdZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=INWnLSgo; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd36-20020a1709076e2400b007313312730esi8896083ejc.85.2022.11.28.01.09.04; Mon, 28 Nov 2022 01:09:24 -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=@linaro.org header.s=google header.b=INWnLSgo; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229795AbiK1Irb (ORCPT + 83 others); Mon, 28 Nov 2022 03:47:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229680AbiK1Ir2 (ORCPT ); Mon, 28 Nov 2022 03:47:28 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAF4317E05 for ; Mon, 28 Nov 2022 00:47:26 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id j4so16289626lfk.0 for ; Mon, 28 Nov 2022 00:47:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qXMY8f9iJDeQoKaNyCjgw4YZP5Yos8JV58NKPKjonWA=; b=INWnLSgoKorZYTLKYMFR0SCopMcQUb8vW+c8SCLMkc0NL95rTtpkyj2xYsncOheI7o JBaRFycHg/jwB3mN/13MkVibdO7w6IaJ7pnCrRdzbz3P5DOje8CZ09GGOIg6YvmLN3ws lgw87QYwpSNmpZn9/0VIBvaOYlUf8noaj/VbWjwdr1BP56VF51ns2rtj4vStbZglEqSk tYLiEMbaN6EtwozQ3W45bp28HoRV4OjIAEPGjQxTJUpgYVb0aeYuJR3/m8F05AnJiTnf bH6kE/boaq9iT4Gzqz3TJCdDvJoTm0bCFJT66I6CjWadlrhvW1NJ5FjWECNuOaCcru5b 1qDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qXMY8f9iJDeQoKaNyCjgw4YZP5Yos8JV58NKPKjonWA=; b=pIhf/NYEhp2IgLLYJ5scoeru2MNDbEGzWdFSulMbrPyQXO76Rc6UklllxQV778aGxz 6QbU9e2HZmou197DgN9AVuH5q1C9l+6CNG3DT9Ybj2WmTG93m9gwONVtwfBgAt2s9rZ+ Sjcl2cFcBAVzwki/X+Azpir19N4kjY5wkgeUNpZ/NYwIQ9LjIpfjdThe4LM10uOpUxmb lbjk+VsuX9xzSd17R9kOdCj7W5EQVvATw0kYtNK52N5VfmsoMIxdt9kp6dX9xBTWfeKn J3LTDvWnzmLpiEKNxjYrXZpKHcfgCA/3sfyKxZUAKbvmWgSkgX2vTx1KbaHjTXgXi7i1 LnUA== X-Gm-Message-State: ANoB5pmFwOIPegmZIMQaMnCa117CTzpRcQKZ9Hdns4IOyFrJwHbLNRPn B7KNu7tgqPs1WaK8eM4u/x/kiQ== X-Received: by 2002:a05:6512:158c:b0:4a2:3ba8:fae9 with SMTP id bp12-20020a056512158c00b004a23ba8fae9mr16461067lfb.440.1669625245297; Mon, 28 Nov 2022 00:47:25 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id g3-20020a056512118300b0049462af8614sm1637774lfr.145.2022.11.28.00.47.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Nov 2022 00:47:24 -0800 (PST) Message-ID: Date: Mon, 28 Nov 2022 09:47:23 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH 2/6] dt-bindings: usb: Add binding for Genesys Logic GL850G hub controller Content-Language: en-US To: Icenowy Zheng , 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 References: <20221127073140.2093897-1-uwu@icenowy.me> <20221127073140.2093897-3-uwu@icenowy.me> From: Krzysztof Kozlowski In-Reply-To: <20221127073140.2093897-3-uwu@icenowy.me> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 27/11/2022 08:31, 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. Subject: drop second, redundant "binding for". Few nits below. > > 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. > > Signed-off-by: Icenowy Zheng > --- > .../bindings/usb/genesys,gl850g.yaml | 48 +++++++++++++++++++ > 1 file changed, 48 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/genesys,gl850g.yaml > > diff --git a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml > new file mode 100644 > index 000000000000..d1fe539db399 > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml > @@ -0,0 +1,48 @@ > +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/usb/realtek,rts5411.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Genesys Logic GL850G USB 2.0 hub controller > + > +maintainers: > + - Icenowy Zheng > + > +allOf: > + - $ref: usb-device.yaml# > + > +properties: > + compatible: > + items: Drop items, you have only one item. > + - enum: > + - usb5e3,608 > + > + reg: true > + > + reset-gpios: > + description: GPIO specifier for GRST# pin. Drop "GPIO specifier for", so just "GRST# pin". No need to describe DeviceTree syntax. > + > + vdd-supply: > + description: > + phandle to the regulator that provides power to the hub. Also drop "phandle to" > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + usb { > + dr_mode = "host"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + hub: hub@1 { > + compatible = "usb5e3,608"; > + reg = <1>; > + reset-gpios = <&pio 7 2 GPIO_ACTIVE_LOW>; Missing header. Does not look like you tested the bindings. Please run `make dt_binding_check` (see Documentation/devicetree/bindings/writing-schema.rst for instructions). > + }; > + }; Best regards, Krzysztof