From patchwork Tue Jan 12 15:35:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 361214 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp468181jap; Tue, 12 Jan 2021 07:37:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzx5htDNe8j66nnOdyYx52ygQmAfNS2l4WYqV7uveqxdvO+buHj+mlWIW/IT36LnA5o029z X-Received: by 2002:a17:906:d19b:: with SMTP id c27mr3713156ejz.234.1610465845862; Tue, 12 Jan 2021 07:37:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610465845; cv=none; d=google.com; s=arc-20160816; b=wV2QsC4Ke6r/4pu/LITT0RHs3l7XoGTHLmlc91irnpiNjjB0mXk8rzEvf+TzClXI0O ZwOu5O4P1t8sRMaUbP4CcfR9UKCPPJdpFw8smOP/FqveRxrkoTwJ0Y3zqncaNm/ISr0x v/yiEJwgceuBdUgSdhfWyLPPblMs89tO1/p5Z4jxTC7YQnZnm4y3aiyIqzYGrPzxEw0H j44LRrsxN/ZI+NijMRPh5FkjclBz4NoD5ihla8O7fgmhqTL8JRlIvxzgqdU1THUitP++ w+DBo1cM3r4IKrAloB93GLSTMNHBnMq3+GgLPCnW42FJlM6VWP7eZnOc+GNOouuRYo8n tNuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=rwndpzB2NMxD4+GOuIBXubpnWUZBzuaIoFb33FQ113Y=; b=RarNqnjYeTpdvpkS7sxh5HXwMu412ZotoJKW5709tAdju6oUEQWoZEsZBlxgVD0D6G og/6u+zafR9551P5rdVycPTK0EB4du94FQEd8iSryYsd5yYWxkY/hf8u/GU1tHE8Er1R B1GtVBJonrAC7r4Ru5NTT50cA+N3mmkwbNbmum72NWG/lomW2xy3f7AqyruE2gewyix9 87CxYAwg7ZXWHCtPccAp12eDCqt4tAPbgoOGeGnuTRJYZfJFjcm7ht7lN4rIfAzy+HG+ /maKWy/JcKEKW4fWgqYj5hCO6mi8gdgnsMvM3asjkx0b7HiLWCbFxDGmkW2DZEPVxi/v i7JQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 y6si1468849edu.165.2021.01.12.07.37.25; Tue, 12 Jan 2021 07:37:25 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S2391374AbhALPgK (ORCPT + 6 others); Tue, 12 Jan 2021 10:36:10 -0500 Received: from mail-oi1-f169.google.com ([209.85.167.169]:38726 "EHLO mail-oi1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389869AbhALPgK (ORCPT ); Tue, 12 Jan 2021 10:36:10 -0500 Received: by mail-oi1-f169.google.com with SMTP id x13so2726219oic.5; Tue, 12 Jan 2021 07:35:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rwndpzB2NMxD4+GOuIBXubpnWUZBzuaIoFb33FQ113Y=; b=SiALvPp6Vdu3gFgx//b/GmdJ8EVCIivkbs3AAZVIVvFoeg4eJkJlxGyTeezVUNPBt/ rxnjpgIfj+UJmujEyJUQKHEpozqVNvgPLa4zAMD+AZwZqMUDLFSKjaks0kkIoyhOnakA Ar0f+UK2/iWwlOIAHem8NjTos6mmDEplaTgUcz33Os7g8KYUNmeWrB3eGkGfKDxngyOW Hf06NczkYlGxn3+9lK/As9/1g6RL51n5jVGP6aTISeWONk9G8d+130gRwozbAc+wU7rv XXi7G8MD8JqB6nttTrwSr0PK21cDj9GGlH5bKj4LTNqUCaihXjowa7mPCiPpHuIWz6fa K6gw== X-Gm-Message-State: AOAM532FKif/xtHFqhfJlOYB3YjWniVSYfYZ/6xfgEp33/Og+RB/GlEd zbxhABDy5CPzzR4ot76jOJsdrfKIVg== X-Received: by 2002:a54:4694:: with SMTP id k20mr2695873oic.64.1610465729069; Tue, 12 Jan 2021 07:35:29 -0800 (PST) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id i1sm708075otr.81.2021.01.12.07.35.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 07:35:28 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org Cc: Greg Kroah-Hartman , Yoshihiro Shimoda , Biju Das , linux-usb@vger.kernel.org Subject: [PATCH] dt-bindings: usb: Use OF graph schema Date: Tue, 12 Jan 2021 09:35:27 -0600 Message-Id: <20210112153527.391232-1-robh@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Now that we have a graph schema, rework the USB related schemas to use it. Mostly this is adding a reference to graph.yaml and dropping duplicate parts from schemas. Cc: Greg Kroah-Hartman Cc: Yoshihiro Shimoda Cc: Biju Das Cc: linux-usb@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/usb/renesas,usb3-peri.yaml | 7 ++++--- Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) -- 2.27.0 Reviewed-by: Greg Kroah-Hartman Reviewed-by: Biju Das Reviewed-by: Yoshihiro Shimoda diff --git a/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml b/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml index 929a3f413b44..9fcf54b10b07 100644 --- a/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml +++ b/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml @@ -54,18 +54,19 @@ properties: description: phandle of a companion. ports: + $ref: /schemas/graph.yaml#/properties/ports description: | any connector to the data bus of this controller should be modelled using the OF graph bindings specified, if the "usb-role-switch" property is used. - type: object + properties: port@0: - type: object + $ref: /schemas/graph.yaml#/properties/port description: High Speed (HS) data bus. port@1: - type: object + $ref: /schemas/graph.yaml#/properties/port description: Super Speed (SS) data bus. required: diff --git a/Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml b/Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml index 52ceb07294a3..b86bf6bc9cd6 100644 --- a/Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml +++ b/Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml @@ -26,17 +26,17 @@ properties: maxItems: 1 ports: + $ref: /schemas/graph.yaml#/properties/ports description: OF graph bindings (specified in bindings/graph.txt) that model SS data bus to the SS capable connector. - type: object + properties: port@0: - type: object + $ref: /schemas/graph.yaml#/properties/port description: Super Speed (SS) MUX inputs connected to SS capable connector. - $ref: /connector/usb-connector.yaml#/properties/ports/properties/port@1 port@1: - type: object + $ref: /schemas/graph.yaml#/properties/port description: Output of 2:1 MUX connected to Super Speed (SS) data bus. required: