Received: by 10.223.185.116 with SMTP id b49csp642203wrg; Wed, 21 Feb 2018 04:40:48 -0800 (PST) X-Google-Smtp-Source: AH8x226zg5NzeShupuEJCTEZEKwRrs2QXJjqrY615lR4OSgayZ/j8rK4EheGHhXTK/+o3akZqDEa X-Received: by 2002:a17:902:694c:: with SMTP id k12-v6mr2979846plt.133.1519216848781; Wed, 21 Feb 2018 04:40:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519216848; cv=none; d=google.com; s=arc-20160816; b=ZMbdfkO5c0bA2XrLXbW3gEnO0aOmHsyGaBv4H5QePRzyxEnITDQXFc38XFt22kdmNF d3cO3zURmov9Y2odpDDeKz4Qandm8jNAvg3gifrU5Krp47q4nJL4yzm16BSuNeueO+3/ 0frH+IHz2Uo4Ux6KPRf9uhGnX/7AxIIN24wVJLmfmcrlZh/zhBTiscEIR2bilWvuYssu s2GRo6yLDRMMqnTxUQ4b4aDjzWdfmK2Uh+H0pjE8NgIPLw8sjxDpMYm5DIyjwDzGkRyq W7agTLcvHQWHSNCrnokjzOhCZjdk6wfM8vuJ2ISQL3jQ5XmGLwScAH6ZgFBKT8Feht0L KoIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=UQUVY5uFwLwnM0lZt0clhHUuC/Bbp8UnCd0/+PdTVfE=; b=Hxg+nwWYPGqyUUu970USMmGFSZ1HqIqx/QyKtnl+QWDMhaHkmfI7ZeC5loGpXSAuit dI3/kVYD6+UblQLcrJ5rKcnXea/Awd6eLfvXc9wB9mR93NQSAgesPMEocc7tYEi6e2sY C6cvzJlBtBwKAcqJ58EYuBkP35mkBZBrk1QycEtZi8SgL/kj1GhUAcrhuk9u1azegemO 16KJIx6qv72busdMsDAHvxjt5qJRNbu7QW6v7WY3LzZvpHjC1FMyvOVHrr59kJDJYngT 8XmmJoGl1hHRjAUPLq5GHtS+r3KfcCwRwY+5/c6rydy3eXqQfTaaZ5IDwfd6y6lN87ez INJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=GKulmxV9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j8-v6si1500174plk.464.2018.02.21.04.40.34; Wed, 21 Feb 2018 04:40:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=GKulmxV9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752648AbeBUI4N (ORCPT + 99 others); Wed, 21 Feb 2018 03:56:13 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54292 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751535AbeBUI4I (ORCPT ); Wed, 21 Feb 2018 03:56:08 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180221085605euoutp011789a2c904db1cd1f82ec81e42f73f99~VS2mJjzt82475124751euoutp01E; Wed, 21 Feb 2018 08:56:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180221085605euoutp011789a2c904db1cd1f82ec81e42f73f99~VS2mJjzt82475124751euoutp01E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1519203366; bh=UQUVY5uFwLwnM0lZt0clhHUuC/Bbp8UnCd0/+PdTVfE=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=GKulmxV9zu4DjNk0IhogqgL2dMJNB0IPqPSV7k0Y6CdUREI5Xwr2FOYgxhFCAfcEe H7SaHgPGvNeW58OaHXQCClGIrj+Om8B/5KwZGS444pUFhLzRz+hLrPqs7Micm6ohj7 q1xOyW3w5oB63sPV4+uM9JIbC+g/yE07HmASEass= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180221085605eucas1p24b0c133c265ca2a805e5e3bfc582ea4a~VS2legPSB2595925959eucas1p2s; Wed, 21 Feb 2018 08:56:05 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 5F.CD.10409.4243D8A5; Wed, 21 Feb 2018 08:56:04 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180221085604eucas1p11aa066a1e106d9f9850731a5171dce8b~VS2k1fLPt0839508395eucas1p1m; Wed, 21 Feb 2018 08:56:04 +0000 (GMT) X-AuditID: cbfec7f5-b45ff700000028a9-dd-5a8d3424c60b Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id E0.07.04183.4243D8A5; Wed, 21 Feb 2018 08:56:04 +0000 (GMT) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P4H00IT3STE0I20@eusync4.samsung.com>; Wed, 21 Feb 2018 08:56:04 +0000 (GMT) From: Andrzej Hajda To: devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Cc: Andrzej Hajda , Bartlomiej Zolnierkiewicz , Marek Szyprowski , dri-devel@lists.freedesktop.org, Inki Dae , Rob Herring , Mark Rutland , Krzysztof Kozlowski , Chanwoo Choi , Archit Taneja , Laurent Pinchart , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH v4 1/6] dt-bindings: add bindings for USB physical connector Date: Wed, 21 Feb 2018 09:55:36 +0100 Message-id: <20180221085541.14556-2-a.hajda@samsung.com> X-Mailer: git-send-email 2.16.1 In-reply-to: <20180221085541.14556-1-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSa0iTURjHPXsvex2tTlPypN0YShqmpn44ZZZG4PtBwqBPg9SVL2pe27y0 6KKS4pwTMyE1qbSlMbR0XjG1mMOFipc2EwVdJGEMncTUELs5X/32O//n95zn4XAYQrJKejOp mTmcIlOeLqVFZPfw5vhp33CtLKTQHIHn3o5TuKh0hcLtNe8oPLO2ROEXpu3Mur5K4ypbJYkn JtqEWP1YJ8SGxS8UtvTV07hmYlCAG5uKCdxqmhfi1zNTAlw8YBJGQbbleQtgLRVaAfustJZi DXo1zdo0ZgHboXvIVnTqAes0HItjZKLzSVx6ah6nCL6QKErpsqwJsouO3lmtGKMKgNarDLgz CIaj744tysUS+AagVUcCz06Aqgti9xx7WzsoA6LtvAmgr80bJH/4B1CJxk64LBoGoD8ds7SL PeF15PjcR7gkAk6SaHLULnQVPGAsah1b3maGIaEf6mq95IrFEKOPZR8oftpxNLRctMPu8Cza GqjauQdBG40KPzUKeekyWthYJHj2QHZz525+BFmeaEi+QQPQyKB6t7saoAm7RcBbEWjIPLUz goD7UVX3U8K1EYJiVFoi4RUWOSaraZ6jUccrA82/SzlAujpVJfB+Cdz0wIvLVWYkc8qwTC4/ SCnPUOZmJgfdzMowgO1vMPrXvN4LBn/fMALIAOk+MQ4sl0koeZ5SlWEEiCGknmKVRCuTiJPk qrucIitBkZvOKY3AhyGlXuJ4/wcyCUyW53BpHJfNKfaqAsbduwAIghui3+v9ZyLTOE3FySAH d3EFmaQ+PfW1/dHWlNooan45JHBK5Swz2txi8ptDe9Oh24HA6brpxJz4GMX9tJ5b+f0R2SPw cIT6ClnjTJipG/55EJhmrQa974/ConthVuK2bs4vMq5hYemX99KjE42hm6Kuc9esAdqr33SH +qWkMkV+5hShUMr/AxsEiicCAwAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrELMWRmVeSWpSXmKPExsVy+t/xa7oqJr1RBpf/yVrcWneO1aKp4y2r xcYZ61ktrn95zmox/whQ7MrX92wWk+5PYLE4f34Du0XnxCXsFpseX2O1uLxrDpvFjPP7mCwW LWtltlh75C67xdLrF5ksWvceYXcQ8Fgzbw2jx+W+XiaP2R0zWT02repk87jffZzJY/OSeo++ LasYPT5vkgvgiOKySUnNySxLLdK3S+DK2Hr5C1NBk2zF+74zrA2MveJdjJwcEgImEq82bGTs YuTiEBJYwigxY8liNginkUli/eyLzCBVbAKaEn8332QDsUUEYiXenvrMDFLELHCBReL3xJns IAlhAR+JtWfeANkcHCwCqhJb1zqBhHkFLCQOdO1nhdgmL3H4TROYzSlgKfF77ySw+UJANR/O fWWfwMizgJFhFaNIamlxbnpusZFecWJucWleul5yfu4mRmDIbjv2c8sOxq53wYcYBTgYlXh4 LXR6ooRYE8uKK3MPMUpwMCuJ8FYK9UYJ8aYkVlalFuXHF5XmpBYfYpTmYFES5z1vUBklJJCe WJKanZpakFoEk2Xi4JRqYGTL+ylsH/5UYKbq+zPyrozX3bx4F+gru/XEhawUOXLEaad1uai7 /K2U7cE3bXnd0pyO2Ac3OsyvZL9opHKPRevGrBuNt2+vfcnTzr1Jy+fBSlWJ/Qms+/bdul71 9uXq+44H8tjPKtsz1f9ccOOtSd/31ENLXh3bLfdN+8HptC//VcTn+i2fE6nEUpyRaKjFXFSc CADeIyH3VQIAAA== X-CMS-MailID: 20180221085604eucas1p11aa066a1e106d9f9850731a5171dce8b X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180221085604eucas1p11aa066a1e106d9f9850731a5171dce8b X-RootMTR: 20180221085604eucas1p11aa066a1e106d9f9850731a5171dce8b References: <20180221085541.14556-1-a.hajda@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These bindings allow to describe most known standard USB connectors and it should be possible to extend it if necessary. USB connectors, beside USB can be used to route other protocols, for example UART, Audio, MHL. In such case every device passing data through the connector should have appropriate graph bindings. Signed-off-by: Andrzej Hajda --- v4: - improved 'type' description (Rob), - improved description of 2nd example (Rob). v3: - removed MHL port (samsung connector will have separate bindings), - added 2nd example for USB-C, - improved formatting. v2: - moved connector type(A,B,C) to compatible string (Rob), - renamed size property to type (Rob), - changed type description to be less confusing (Laurent), - removed vendor specific compatibles (implied by graph port number), - added requirement of connector being a child of IC (Rob), - removed max-mode (subtly suggested by Rob, it should be detected anyway by USB Controller in runtime, downside is that device is not able to report its real capabilities, maybe better would be to make it optional(?)), - assigned port numbers to data buses (Rob). Regards Andrzej --- .../bindings/connector/usb-connector.txt | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/connector/usb-connector.txt diff --git a/Documentation/devicetree/bindings/connector/usb-connector.txt b/Documentation/devicetree/bindings/connector/usb-connector.txt new file mode 100644 index 000000000000..e1463f14af38 --- /dev/null +++ b/Documentation/devicetree/bindings/connector/usb-connector.txt @@ -0,0 +1,75 @@ +USB Connector +============= + +USB connector node represents physical USB connector. It should be +a child of USB interface controller. + +Required properties: +- compatible: describes type of the connector, must be one of: + "usb-a-connector", + "usb-b-connector", + "usb-c-connector". + +Optional properties: +- label: symbolic name for the connector, +- type: size of the connector, should be specified in case of USB-A, USB-B + non-fullsize connectors: "mini", "micro". + +Required nodes: +- any data bus to the connector should be modeled using the OF graph bindings + specified in bindings/graph.txt, unless the bus is between parent node and + the connector. Since single connector can have multpile data buses every bus + has assigned OF graph port number as follows: + 0: High Speed (HS), present in all connectors, + 1: Super Speed (SS), present in SS capable connectors, + 2: Sideband use (SBU), present in USB-C. + +Examples +-------- + +1. Micro-USB connector with HS lines routed via controller (MUIC): + +muic-max77843@66 { + ... + usb_con: connector { + compatible = "usb-b-connector"; + label = "micro-USB"; + type = "micro"; + }; +}; + +2. USB-C connector attached to CC controller (s2mm005), HS lines routed +to companion PMIC (max77865), SS lines to USB3 PHY and SBU to DisplayPort. +DisplayPort video lines are routed to the connector via SS mux in USB3 PHY. + +ccic: s2mm005@33 { + ... + usb_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + usb_con_hs: endpoint { + remote-endpoint = <&max77865_usbc_hs>; + }; + }; + port@1 { + reg = <1>; + usb_con_ss: endpoint { + remote-endpoint = <&usbdrd_phy_ss>; + }; + }; + port@2 { + reg = <2>; + usb_con_sbu: endpoint { + remote-endpoint = <&dp_aux>; + }; + }; + }; + }; +}; -- 2.16.1