From patchwork Sat Oct 10 08:43:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunfeng Yun X-Patchwork-Id: 11829969 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 351191744 for ; Sat, 10 Oct 2020 08:51:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D7B6207E8 for ; Sat, 10 Oct 2020 08:51:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="GHkgiflb" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726761AbgJJIu4 (ORCPT ); Sat, 10 Oct 2020 04:50:56 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:2923 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726366AbgJJIqO (ORCPT ); Sat, 10 Oct 2020 04:46:14 -0400 X-UUID: 1ee4d5bc92554d7e958543434527e1b6-20201010 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=pCXxuHl4NEKBv1fodutwA2PDZlk+wI3nQWXYl98dgik=; b=GHkgiflbxjIw2ZVAIl3o1SJbk0qbW3kUWqzFZk7Lzib3v2moF5gggI9B01q818rZNZH+eQwY5ibyk8D0iTA4urRchg5GbWHrX/6CzuqXMn4gFN87g36zStZ1Sk9Y8cgYtPxuu0FYmQjSfKIi+81r4hrkSJUL26Qf9ywOhQpIY/c=; X-UUID: 1ee4d5bc92554d7e958543434527e1b6-20201010 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 989034769; Sat, 10 Oct 2020 16:43:16 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 10 Oct 2020 16:43:15 +0800 Received: from mtkslt301.mediatek.inc (10.21.14.114) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 10 Oct 2020 16:43:15 +0800 From: Chunfeng Yun To: Rob Herring CC: "David S . Miller" , Jakub Kicinski , Greg Kroah-Hartman , Matthias Brugger , , , , , , , Chunfeng Yun Subject: [PATCH v2 2/4] dt-bindings: usb: add properties for hard wired devices Date: Sat, 10 Oct 2020 16:43:12 +0800 Message-ID: X-Mailer: git-send-email 2.18.0 In-Reply-To: <3db52d534065dcf28e9a10b8129bea3eced0193e.1602318869.git.chunfeng.yun@mediatek.com> References: <3db52d534065dcf28e9a10b8129bea3eced0193e.1602318869.git.chunfeng.yun@mediatek.com> MIME-Version: 1.0 X-TM-SNTS-SMTP: 7F3660C5722A662249B3EB9CBC0716B5572E1DF5C225A3804D2A9E804D218B102000:8 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add some optional properties which are needed for hard wired devices Signed-off-by: Chunfeng Yun --- v2 changes suggested by Rob: 1. modify pattern to support any USB class 2. refer to usb-device.yaml instead of usb-device.txt --- .../devicetree/bindings/usb/usb-hcd.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/usb-hcd.yaml b/Documentation/devicetree/bindings/usb/usb-hcd.yaml index 7263b7f2b510..42b295afdf32 100644 --- a/Documentation/devicetree/bindings/usb/usb-hcd.yaml +++ b/Documentation/devicetree/bindings/usb/usb-hcd.yaml @@ -22,9 +22,28 @@ properties: description: Name specifier for the USB PHY + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^[a-f]+@[0-9a-f]+$": + type: object + $ref: /usb/usb-device.yaml + description: The hard wired USB devices + examples: - | usb { phys = <&usb2_phy1>, <&usb3_phy1>; phy-names = "usb"; + #address-cells = <1>; + #size-cells = <0>; + + hub@1 { + compatible = "usb5e3,610"; + reg = <1>; + }; };