Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2532216pxu; Mon, 7 Dec 2020 08:54:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzX7fzhqRarRisnTjffgKZYGlbE+TpA+8DX2JRvDW4fwmlYIeGGWGaJkXvfN9NMM7Ak/mfv X-Received: by 2002:a50:8163:: with SMTP id 90mr20558067edc.142.1607360082169; Mon, 07 Dec 2020 08:54:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607360082; cv=none; d=google.com; s=arc-20160816; b=tvCEkwO3qt2okmyqRFzFvX9SGKf17zm4Do4nMzSkKa/pvbHK1AGXeAQvdxQMcS3Q7s EqkjcGHrviOgtL/u3MO3VeVpzi5NVwYZlBuvAhyLqPZ0YdTWH5T1CZvoBF2DksKnl/Fq rdJd6inf3qwBjDdxdkCFuG4KmT05tVsZau5IxAHoG+p7PahxU6NXuJU5T7TeeZUeyrqV iLHfGQjPNbneu5B32AGCxvnK8/Ts0u9LVphyHsLjSdIN2LB5wedATTdX5roYDjWCgMIr 3fVXxTb2V5rE+ppnAfZvoxllQ821JuxTr4DyDG66LktgZtK+6kZXGXKRUBdF6jFaSFiA FkwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=UuU157skWGSfcX1NxkRT5BCxvQhS6DEbdRKPwY10+n0=; b=SQrgdLheG7mrHbwpokRZrwqDcz9jEWEe5Wz/RoPf0zjP5o/JSVR6aJ89UtgXOsUWXm yd5mY2pN4Y/GlUwESqWOrzOo0Mlk1rK9da0B3RKc0ZfFFyeTWdqQGWQ0Q3j5AX3aov/z Oc3A4loH3fXPKN9M/HOZSkaOFu7MuQZT51EcPzhZBfJlBtpbw29hT1L4wEi4MwUYcTGF gkQrsW9tzZGnGof2J8FcMofS7YnJHA10qED9QMOoVMPikMDRZr862hC0lFAJm9WHeLpG +9eGu3H9NeFf+v4IUxV+oCBPgtNrkdvkdb84rpBLDcg1wKySWRApKdokpsI6D9DEF9FS T92Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr14si6522231ejc.396.2020.12.07.08.54.17; Mon, 07 Dec 2020 08:54:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726465AbgLGQuc (ORCPT + 99 others); Mon, 7 Dec 2020 11:50:32 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:38022 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726007AbgLGQub (ORCPT ); Mon, 7 Dec 2020 11:50:31 -0500 Received: by mail-ot1-f68.google.com with SMTP id b62so13062988otc.5; Mon, 07 Dec 2020 08:50:15 -0800 (PST) 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=UuU157skWGSfcX1NxkRT5BCxvQhS6DEbdRKPwY10+n0=; b=hCK6FDD4WU2yynGVHiEr7PlQf2WEC969EJ0vecyIyYzNyLdcXCpFPiT+cIt868FFn/ XGrut0KXl74RIs+evyFoUkUYQbC+XwrGOZ0ppEEFnG1cRgpueDcFoxNES6n++AFfEyhv sEx6PYMh57zw9RLk7TV22Ac2HuN9YUbf4X9UaXEV24ZozqpVO9PM8mlMx9M7PF1dG59E oSNgUNNTSrzyaAb0u33l5Grg3rfEEGEMNefIvsWS6HAVdj6vXSO9e/zCebJsyOOPeWDw opJTzKxJ879dJAXKMPsJUPkdr0OeZPkDyUiu68XRKf10P4FjsHl8VtSRbK0owYbAjT3r +alA== X-Gm-Message-State: AOAM531z9b6RvfIUU77KY3tXS4Q1gS6J8vksaFaXOQ3VvNvk829MAInq HZcAd8eugS4mutGD5MAf8A== X-Received: by 2002:a9d:7304:: with SMTP id e4mr4414560otk.228.1607359790146; Mon, 07 Dec 2020 08:49:50 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id x72sm3040778oia.16.2020.12.07.08.49.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 08:49:48 -0800 (PST) Received: (nullmailer pid 420892 invoked by uid 1000); Mon, 07 Dec 2020 16:49:47 -0000 Date: Mon, 7 Dec 2020 10:49:47 -0600 From: Rob Herring To: Serge Semin Cc: Roger Quadros , linux-kernel@vger.kernel.org, Martin Blumenstingl , devicetree@vger.kernel.org, Serge Semin , Felipe Balbi , Mathias Nyman , Ahmad Zainie , Rob Herring , Neil Armstrong , Pavel Parkhomenko , linux-mips@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Yoshihiro Shimoda , Lad Prabhakar , Chunfeng Yun , Kevin Hilman , linuxppc-dev@lists.ozlabs.org, Krzysztof Kozlowski , Alexey Malahov , Greg Kroah-Hartman , Andy Gross , Bjorn Andersson , linux-usb@vger.kernel.org, Manu Gautam Subject: Re: [PATCH v5 10/19] dt-bindings: usb: Convert DWC USB3 bindings to DT schema Message-ID: <20201207164947.GA420349@robh.at.kernel.org> References: <20201205152427.29537-1-Sergey.Semin@baikalelectronics.ru> <20201205152427.29537-11-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201205152427.29537-11-Sergey.Semin@baikalelectronics.ru> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 05 Dec 2020 18:24:17 +0300, Serge Semin wrote: > DWC USB3 DT node is supposed to be compliant with the Generic xHCI > Controller schema, but with additional vendor-specific properties, the > controller-specific reference clocks and PHYs. So let's convert the > currently available legacy text-based DWC USB3 bindings to the DT schema > and make sure the DWC USB3 nodes are also validated against the > usb-xhci.yaml schema. > > Note 1. we have to discard the nodename restriction of being prefixed with > "dwc3@" string, since in accordance with the usb-hcd.yaml schema USB nodes > are supposed to be named as "^usb(@.*)". > > Note 2. The clock-related properties are marked as optional to match the > DWC USB3 driver expectation and to improve the bindings mainainability > so in case if there is a glue-node it would the responsible for the > clocks initialization. > > Signed-off-by: Serge Semin > > --- > > Changelog v2: > - Discard '|' from the descriptions, since we don't need to preserve > the text formatting in any of them. > - Drop quotes from around the string constants. > - Fix the "clock-names" prop description to be referring the enumerated > clock-names instead of the ones from the Databook. > > Changelog v3: > - Apply usb-xhci.yaml# schema only if the controller is supposed to work > as either host or otg. > > Changelog v4: > - Apply usb-drd.yaml schema first. If the controller is configured > to work in a gadget mode only, then apply the usb.yaml schema too, > otherwise apply the usb-xhci.yaml schema. > - Discard the Rob'es Reviewed-by tag. Please review the patch one more > time. > > Changelog v5: > - Add "snps,dis-split-quirk" property to the DWC USB3 DT schema. > - Add a commit log text about the clock-related property changes. > - Make sure dr_mode exist to apply the USB-gadget-only schema. > --- > .../devicetree/bindings/usb/dwc3.txt | 128 ------- > .../devicetree/bindings/usb/snps,dwc3.yaml | 312 ++++++++++++++++++ > 2 files changed, 312 insertions(+), 128 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/usb/dwc3.txt > create mode 100644 Documentation/devicetree/bindings/usb/snps,dwc3.yaml > My bot found errors running 'make dt_binding_check' on your patch: yamllint warnings/errors: ./Documentation/devicetree/bindings/usb/snps,dwc3.yaml:55:4: [warning] wrong indentation: expected 4 but found 3 (indentation) dtschema/dtc warnings/errors: Unknown file referenced: [Errno 2] No such file or directory: '/usr/local/lib/python3.8/dist-packages/dtschema/schemas/usb/usb-drd.yaml' xargs: dt-doc-validate: exited with status 255; aborting make[1]: *** [Documentation/devicetree/bindings/Makefile:59: Documentation/devicetree/bindings/processed-schema-examples.json] Error 124 make: *** [Makefile:1364: dt_binding_check] Error 2 See https://patchwork.ozlabs.org/patch/1411582 The base for the patch is generally the last rc1. Any dependencies should be noted. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit.