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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 547C3C4332F for ; Mon, 28 Nov 2022 08:48:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jcZuTOOaT3CZfTrKWSrUP9+6pFxfi4kUJrS3Ak02i8s=; b=LKlBMUcE8C2LOi gaqdQVWsZifgQxlKbP3hFlSAxBRhaWZyyn3SomvaLap7LmkVD28wQbBJhY60YrAf/pD/hWJgT5ELY 2TOPby1Wk0jMgP+QBcgHI+nT7r00sqT1brRmuuQQNtMmaVHBsU1XfHxtssfj9KqdAcEED5+Ai2p+Y WA4c35MFjjPFx04mTUpsZLxVDjFaZXgEABQk1wOF61vF4QoM5m0oQeWL7prHJbGEJfnTdgvOxtaJs MbkvSKZx6Cg9guOov49lYdmtP2+x0zlLZUi8p18hhuoTfasMrCnxq94IyGyiIkUEDAuBUSdo8et8U uoYM3EpvSeMYvTZW+C2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozZnb-000MvV-3G; Mon, 28 Nov 2022 08:47:35 +0000 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozZnU-000Mqm-Gu for linux-arm-kernel@lists.infradead.org; Mon, 28 Nov 2022 08:47:31 +0000 Received: by mail-lf1-x12d.google.com with SMTP id c1so16234466lfi.7 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=UopxpHceKeBmoE7r5S9NnLHoa8rVmpZqdNK/xdD4rAUCgYsfIEh8+XF0u55TEjyEh+ Sd86gG7+KPrfTjMxNLveClmA9lfJDUsYll/QFNDmIr9P1FTSIJM7WeYiNaFpmewMwCUn VhnTlum6FGR3G88CQH9TvW8MIlHf//yUuAYTuroPV4XE/IS/uT0gmr0qA8Ky3l+3oid3 cKKmuvwGmXuI2UjCpt6dzK5nsOP++I6IWtrQP50hTevIgqafP0avGp2dJGA7nR7MSSUL obraz5HQ2mCOxFAwX2dsLQqaq6VesHjdM4hOz1jozyGz/bq1tu4f57rNHEcJM59dAFX9 BKfA== X-Gm-Message-State: ANoB5pnhVLVU6brNKXC9lTWNlX4he546grzlsar0pjXrE8ecl8ToiFwc wYSQPHSfGrjK0wvzWSElx6EP3w== X-Google-Smtp-Source: AA0mqf48HTjBl1q/N2bBerRjL5SpxOcN7KKcKyR6RessFHJh9U/pKAT/SphhbumIOtv4z0+d0iGbjA== 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221128_004728_640950_2EE6BB31 X-CRM114-Status: GOOD ( 20.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel