Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2764715ybb; Mon, 30 Mar 2020 12:24:39 -0700 (PDT) X-Google-Smtp-Source: ADFU+vutr5TnoJTgjls66Ib8qBj/UWtM4UK381JqaqFogJ0V+R8THYrutPdoiJ7ow7Bn6SYkPcne X-Received: by 2002:a9d:68c5:: with SMTP id i5mr10816992oto.266.1585596279620; Mon, 30 Mar 2020 12:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585596279; cv=none; d=google.com; s=arc-20160816; b=zuEjfIqc7KD17ZiOIrXGRMhncLWlpqtd64TxEN2QVrY2Zp12mmSCwgtUBFgjNJFsvq 8w/qBqpWztNWDlOzaoXaJbgcglnMtLJKr8AmWO1S6G6/o9JKWPGRyDIFAP1oM4jIPUZ3 NLeJKUuU/RHeGXt7d8GALEouyYwEY/KV2OEdlD8gDzmQrWj0F5msGxlCte3S8cRibmxf PS5EmUfHKnmIE7zQDS6/hUXG34n3lDa6uLI3/wO8mnpPclRU4YuchCKlwRoPTND4NgyZ 9gkxfsy8dp2zL7sWwW0fKTC8jq+4H1mpSzRz6h5+/H+e0+5z8cdM7K+g5be/MdsqkfBa SdVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MXO0cFSUgdRH+a4P/o/GAi4s4MndCf1pU3SuIpqOxH8=; b=JziCaNstW+ODF5gCra8DzjvXu9G4yQuZWAjQhP8gRnrMQt3DiP/zcGrN8PwvqZkJdA odQ4IqqWKOXyVeZ1rIiC3dqazE3Nw/0tdC0cFPeReHSTOr7nCWZFQi0VZC9R0UxhRrmd vM0ImXF71DDwaXna3sv+pRjJHGSiIo8D0e/3lli5LXB/8H3TBWV7XFJQIMAXABKNygAW 0YstLbNhRKGyckbJ61HzStuhgrxkHNZUmVYXLrVuNOLOvUfC8cIhs8fJMFZZrNYWuwyv CYWFneX1yZCm8hZvzuHZgOv+Jf+ZBC0DirjFJ0hF5EQaoV8spoRTxynlIyeLgJhLzobS 272Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si7047055otr.302.2020.03.30.12.24.19; Mon, 30 Mar 2020 12:24:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728537AbgC3TXv (ORCPT + 99 others); Mon, 30 Mar 2020 15:23:51 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:43691 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726781AbgC3TXv (ORCPT ); Mon, 30 Mar 2020 15:23:51 -0400 Received: by mail-io1-f65.google.com with SMTP id x9so12633343iom.10; Mon, 30 Mar 2020 12:23:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=MXO0cFSUgdRH+a4P/o/GAi4s4MndCf1pU3SuIpqOxH8=; b=b2WK8r2tG8huW8HYFFvjSGY0TfaCN7piJfb0Q6GCQr2a3D7F1WfwdHRz/eIsnRs86h y09f5qGv5o3X3V6sdlUdZ85G+LVyGsiVn2O6zaTDfR/dxWWFN4wS+IuLsuOghqSAS16q JY7WtgUBEVR8UhHPFnmpe7aEd6AyuRYuLGOUvZ9KWwCR+B+w0+GcrzPTDVzJ0vZ7bfwA 0zSPfP/DNT2X+3VGFWso8z6aZa8wQ1yXJGxVB5OnNSQ08HeZK0RYyz7qEo/PQ+onL9kk plhszG505Bx2v9I6pFuUbqrnfCNukCl4Wy1rrPlN8SP0l3zdmzRFjFpFcET95+k7sKyF 8tmA== X-Gm-Message-State: ANhLgQ2L0jfR/zywO3xGCDo+Jo+oRoFsqB9+tnHPwhAgy5Z4YXYYXiGC /fynJzRe+bOxB9EsTf78WQ== X-Received: by 2002:a6b:b989:: with SMTP id j131mr12170677iof.6.1585596229713; Mon, 30 Mar 2020 12:23:49 -0700 (PDT) Received: from rob-hp-laptop ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id p189sm4307507iof.17.2020.03.30.12.23.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 12:23:49 -0700 (PDT) Received: (nullmailer pid 22585 invoked by uid 1000); Mon, 30 Mar 2020 19:23:47 -0000 Date: Mon, 30 Mar 2020 13:23:47 -0600 From: Rob Herring To: rentao.bupt@gmail.com Cc: Felipe Balbi , Greg Kroah-Hartman , Joel Stanley , Andrew Jeffery , Benjamin Herrenschmidt , Chunfeng Yun , Colin Ian King , Stephen Boyd , Mark Rutland , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Subject: Re: [PATCH v2 6/6] dt-bindings: usb: document aspeed vhub device ID/string properties Message-ID: <20200330192347.GA6388@bogus> References: <20200315191632.12536-1-rentao.bupt@gmail.com> <20200315191632.12536-7-rentao.bupt@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200315191632.12536-7-rentao.bupt@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 15, 2020 at 12:16:32PM -0700, rentao.bupt@gmail.com wrote: > From: Tao Ren > > Update device tree binding document for aspeed vhub's device IDs and > string properties. > > Signed-off-by: Tao Ren > --- > No change in v2: > - the patch is added into the series since v2. > > .../bindings/usb/aspeed,usb-vhub.yaml | 68 +++++++++++++++++++ > 1 file changed, 68 insertions(+) > > diff --git a/Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml b/Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml > index 06399ba0d9e4..5b2e8d867219 100644 > --- a/Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml > +++ b/Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml > @@ -52,6 +52,59 @@ properties: > minimum: 1 > maximum: 21 > > + vhub-vendor-id: > + description: vhub Vendor ID > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + - maximum: 65535 > + > + vhub-product-id: > + description: vhub Product ID > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + - maximum: 65535 There's already standard 'vendor-id' and 'device-id' properties. Use those. > + > + vhub-device-revision: Specific to USB, not vhub. > + description: vhub Device Revision in binary-coded decimal > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + - maximum: 65535 > + > + vhub-strings: > + type: object > + > + properties: > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 0 > + > + patternProperties: > + '^string@[0-9a-f]+$': > + type: object > + description: string descriptors of the specific language > + > + properties: > + reg: > + maxItems: 1 > + description: 16-bit Language Identifier defined by USB-IF > + > + manufacturer: > + description: vhub manufacturer > + allOf: > + - $ref: /schemas/types.yaml#/definitions/string > + > + product: > + description: vhub product name > + allOf: > + - $ref: /schemas/types.yaml#/definitions/string > + > + serial-number: > + description: vhub device serial number > + allOf: > + - $ref: /schemas/types.yaml#/definitions/string For all of this, it's USB specific, not vhub specific. I'm not sure this is the right approach. It might be better to just define properties which are just raw USB descriptors rather than inventing some DT format that then has to be converted into USB descriptors. Rob