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=-0.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 C9D34C2D0BF for ; Wed, 18 Dec 2019 18:38:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A21FA2465E for ; Wed, 18 Dec 2019 18:38:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="G5QCuHck" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727480AbfLRSiI (ORCPT ); Wed, 18 Dec 2019 13:38:08 -0500 Received: from mail-il1-f196.google.com ([209.85.166.196]:33013 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727189AbfLRSiH (ORCPT ); Wed, 18 Dec 2019 13:38:07 -0500 Received: by mail-il1-f196.google.com with SMTP id v15so2580702iln.0 for ; Wed, 18 Dec 2019 10:38:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=If9n9LWtZGwO9cBtHXPSqWrRQWL2H+dGPsSdvZ1Ke3s=; b=G5QCuHckZR+UYBlSuoqYvD3YazGZK1yBYvycKFSY3URC8LIyhCbIuej/Kaaffiq5L4 92606OJK+TKfXSAfkh0FiaB3G5jt9UGQshpfDs2q+I944lz3SEdLnkj/Ub0mvoEu5dOO J/Rd18YDRIPIOTc4M8TImCc1kMLL8HN3M2P7g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=If9n9LWtZGwO9cBtHXPSqWrRQWL2H+dGPsSdvZ1Ke3s=; b=opzym95+Or8vJauaGhZizvfMw7yVstaj/rEUZ1bsFHPmYw9q11PgUYgzr6T3eBYpEm LPYrlfdeI+7HwuqedOtWhD1dZI4MCR6nMgsW5A4ZOuS0h0jc3f6De1AQKfW09ghHn8dv VNPNxOV2ETks4EWZaOaezEDkUDtIg/ZxY0fuoHtwEZJA7a9cdaH4FMgZqZ48AiHIa7XW jg8sbkYEDDaCY9FKE2w7d1atHiofxsZb5iHqhZ0VrpKg6mQvgFs5uMchn5LgK9Fp1CI4 EnzgdvQSrvHebAtp/XW7Ckmh44ogx7rbP99XpW6vPFEmVhMyZdfKON4k0GEFwtImCEh2 At3Q== X-Gm-Message-State: APjAAAU4VIFqSLxHVHvQ42EQs2EsXzJqnCP4HH0t68RuBZY7+r2CeqaG 8haIxob1KvWvfqwydZjFS4U/HLFimIk= X-Google-Smtp-Source: APXvYqwgxafXVF6wtSr4+OMJBbRCjn1p7BDfYcy4o4SyLJ9ua4B9yZDt6SukKhIt02pbNTmtQKLzLQ== X-Received: by 2002:a92:860a:: with SMTP id g10mr3128674ild.280.1576694286336; Wed, 18 Dec 2019 10:38:06 -0800 (PST) Received: from mail-io1-f44.google.com (mail-io1-f44.google.com. [209.85.166.44]) by smtp.gmail.com with ESMTPSA id x2sm907611ilk.76.2019.12.18.10.38.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Dec 2019 10:38:05 -0800 (PST) Received: by mail-io1-f44.google.com with SMTP id v3so3046452ioj.5 for ; Wed, 18 Dec 2019 10:38:05 -0800 (PST) X-Received: by 2002:a6b:b941:: with SMTP id j62mr2902869iof.168.1576694284957; Wed, 18 Dec 2019 10:38:04 -0800 (PST) MIME-Version: 1.0 References: <1576474742-23409-1-git-send-email-sanm@codeaurora.org> <1576474742-23409-2-git-send-email-sanm@codeaurora.org> <6d8c979f-daa3-3b40-f29c-cca5a2f8f1c8@codeaurora.org> In-Reply-To: <6d8c979f-daa3-3b40-f29c-cca5a2f8f1c8@codeaurora.org> From: Doug Anderson Date: Wed, 18 Dec 2019 10:37:53 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/2] dt-bindings: usb: qcom,dwc3: Convert USB DWC3 bindings To: "Sandeep Maheswaram (Temp)" Cc: Andy Gross , Bjorn Andersson , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Felipe Balbi , Stephen Boyd , linux-arm-msm , linux-usb@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , Manu Gautam Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Dec 18, 2019 at 4:41 AM Sandeep Maheswaram (Temp) wrote: > + assigned-clock-rates: > + description: > + Should be 19.2MHz (19200000) for MOCK_UTMI_CLK > + >=125MHz (125000000) for MASTER_CLK in SS mode > + >=60MHz (60000000) for MASTER_CLK in HS mode > + maxItems: 2 > > You can still express some limits here even if we don't go all out > with the "oneOf". AKA I think this is better: > > assigned-clock-rates: > items: > - const: 19200000 > - minimum: 60000000 > description: >= 60 MHz in HS mode, >= 125 MHz in SS mode > > Facing error when i add as above. > properties:assigned-clock-rates: {'items': [{'const': 19200000}, {'minimum': 60000000}]} is not valid under any of the given schemas > Documentation/devicetree/bindings/Makefile:12: recipe for target 'Documentation/devicetree/bindings/usb/qcom,dwc3.example.dts' failed I couldn't figure it out either. ...but at least this seemed to work and is slightly better than what you have: assigned-clock-rates: items: - description: Must be 19.2MHz (19200000) - description: Must be >= 60 MHz in HS mode, >= 125 MHz in SS mode So I'd say go with that. -Doug