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 X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E47CC433E7 for ; Fri, 16 Oct 2020 18:49:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 294D920FC3 for ; Fri, 16 Oct 2020 18:49:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602874165; bh=7S0p2aV7VLST/gf02zq6/8vNgyDcx4p52FSi1m91Bdw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=jAC/a4KzjHXJhjNv3nzfLLbOKO0Se1vriqcItqan4JK8n/VUbLDSQ4iU3n0FRD6rl /tv/KccUF1G4PGGCFN2w7Qu+jof/g2ypreG3rl6iXFSLKBgGWdxHIOxWGRvuNaZ599 UqwMGK3miPM/3P8N1vuQORtMo7mQbWIPNPZ5xpHM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403859AbgJPStY (ORCPT ); Fri, 16 Oct 2020 14:49:24 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:33453 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390142AbgJPStX (ORCPT ); Fri, 16 Oct 2020 14:49:23 -0400 Received: by mail-oi1-f196.google.com with SMTP id s21so3569701oij.0; Fri, 16 Oct 2020 11:49:23 -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; bh=3MxugCiE5y0heSpZifDkccjElq8hTuw4iGDrR5HUSmI=; b=OUAXikZuiDr71yEkCYphgaD+qJmNhBCYQdNiQwJxPuRs4Zaa5DgM69l6WSbkPgZjTz inN22ZAdfYhvLbvfH8X2pM1bz5i/JMvLvXtRASVMQj2g3zCnyq8f63nxURGKPH8M1z83 1lnNxapD5WMFb2jdu+yMejAl82OMpD+TuuK3Mabgwmt34pP1rVpqnm6ue5LaG0DiGXFG a/YZ5WT73TyxpSeSCHvPwJ4vvvq4LPzPS8X+tgdWDk2t8zmoCe66GDVVUomgADl+RitT 9w6bc5CJUYRCILhuw5VHRONrUQlW55jmoj8XcRA6Y0PibT4Jb2y/dlSu3DROs8Yvvw// PaQQ== X-Gm-Message-State: AOAM531vjKpmrA09y1EKKyyocMuUdhX9COidv3sKCJB0Gr7lqTJXMwlL lLrco27lecknDFlYa3Tp3Q== X-Google-Smtp-Source: ABdhPJxhlHWdR759W2/ZwO3kHuI+wtcySV279kCyDwV40mkUK/8z3O06wkP5ssZVrgQY5g1y7yDEXA== X-Received: by 2002:aca:bf82:: with SMTP id p124mr3170755oif.133.1602874162686; Fri, 16 Oct 2020 11:49:22 -0700 (PDT) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id d11sm1192131otf.44.2020.10.16.11.49.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2020 11:49:22 -0700 (PDT) Received: (nullmailer pid 1732283 invoked by uid 1000); Fri, 16 Oct 2020 18:49:21 -0000 Date: Fri, 16 Oct 2020 13:49:21 -0500 From: Rob Herring To: Serge Semin Cc: Kevin Hilman , Roger Quadros , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org, Pavel Parkhomenko , Manu Gautam , Neil Armstrong , Lad Prabhakar , linux-mips@vger.kernel.org, Andy Gross , linuxppc-dev@lists.ozlabs.org, Alexey Malahov , Serge Semin , linux-usb@vger.kernel.org, Bjorn Andersson , Mathias Nyman , devicetree@vger.kernel.org, Rob Herring , Felipe Balbi , linux-arm-kernel@lists.infradead.org, Yoshihiro Shimoda Subject: Re: [PATCH 06/20] dt-bindings: usb: Convert xHCI bindings to DT schema Message-ID: <20201016184921.GA1732241@bogus> References: <20201014101402.18271-1-Sergey.Semin@baikalelectronics.ru> <20201014101402.18271-7-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201014101402.18271-7-Sergey.Semin@baikalelectronics.ru> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Oct 2020 13:13:48 +0300, Serge Semin wrote: > Currently the DT bindings of Generic xHCI Controllers are described by means > of the legacy text file. Since such format is deprecated in favor of the > DT schema, let's convert the Generic xHCI Controllers bindings file to the > corresponding yaml files. There will be two of them: a DT schema for the > xHCI controllers on a generic platform and a DT schema validating a generic > xHCI controllers properties. The later will be used to validate the xHCI > controllers, which aside from some vendor-specific features support the > basic xHCI functionality. > > An xHCI-compatible DT node shall support the standard USB HCD properties > and custom ones like: usb2-lpm-disable, usb3-lpm-capable, > quirk-broken-port-ped and imod-interval-ns. In addition if a generic xHCI > controller is being validated against the DT schema it is also supposed to > be equipped with mandatory compatible string, single registers range, > single interrupts source, and is supposed to optionally contain up to two > reference clocks for the controller core and CSRs. > > Signed-off-by: Serge Semin > > --- > > Changelog v2: > - Add explicit "additionalProperties: true" to the usb-xhci.yaml schema, > since additionalProperties/unevaluatedProperties are going to be mandary > for each binding. > --- > .../devicetree/bindings/usb/generic-xhci.yaml | 63 +++++++++++++++++++ > .../devicetree/bindings/usb/usb-xhci.txt | 41 ------------ > .../devicetree/bindings/usb/usb-xhci.yaml | 42 +++++++++++++ > 3 files changed, 105 insertions(+), 41 deletions(-) > create mode 100644 Documentation/devicetree/bindings/usb/generic-xhci.yaml > delete mode 100644 Documentation/devicetree/bindings/usb/usb-xhci.txt > create mode 100644 Documentation/devicetree/bindings/usb/usb-xhci.yaml > Reviewed-by: Rob Herring