Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp301971pxx; Thu, 29 Oct 2020 03:03:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0aY1+mJaIp8F+4teUXgJ+jQaj2jrW7tmHOsJffXzyHV0Zom1VwEFZWKbj9hQk2Xk/PS8X X-Received: by 2002:a17:906:6a07:: with SMTP id o7mr3166246ejr.454.1603965832128; Thu, 29 Oct 2020 03:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603965832; cv=none; d=google.com; s=arc-20160816; b=LHhLICX5cmE0A4dJJNetiVTbG7HNH7B6q5nw8Ns+pwVptGFD3CocDTXrMQclpfekHJ TuxFnhpnHQvefogtBqinO8JRpgh5jZrKXwI2AmWzAmtL4l9Hz7JJ8q+enN9ouAcV9fsA HFs0MMXjspOC5ZNLO0Fz8LUXx9x3MbLJ99JshLk/6ieLDnQX+TNRjr+9YH4U4FkQJPRB apfvT87RbsurGKzkQvhAInuDkToBanXCADxrwJPqcZtxL2V1aBIztO6963fDviSG5jvl oZZwmtyicEaUwxCzvGsAV+IKij+fn+4Udv/RRdauhEP1jgFiJNC9oj27ma9XQqCvmJRS 4Esw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=EZEfL//m6GHcOtQjjtUzSvMdL8Qzo78tTmsoTsjvHoU=; b=Po6lwYCUZtoZrFW8PRDme5WUMQ+G5r+U2TMyMEV2BH4cdQZTI9dOarzSMxHuEuot/U kWb5vdeJsfjsHs00itXB88GwM6aChTOqy9lma46keXdwERNYOdCdb1FPg6fT1wMjYF/m ICgb75VqrPMs8UC5GVDsei0XEX0oRjxGRCM/vYPRaa11vYh32vKKPh3YhAJ99hoexra+ 8lSjGbFq4Kp+SYbeaw/eAXXyEowOTSpV1NwAmT1FUqIbpeWoC7hMpyJw8GCs+SZQEiNH EwYR5yyRP4tok0IN3qJNQTQrXTTWKov/UDNr2y2VKrsgCgZvJqWhSKWwS01x1L4vMOZa SJsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=tQl5l+CW; 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=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b22si1551687eds.561.2020.10.29.03.03.28; Thu, 29 Oct 2020 03:03:52 -0700 (PDT) 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; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=tQl5l+CW; 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=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727381AbgJ2J6y (ORCPT + 99 others); Thu, 29 Oct 2020 05:58:54 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:44094 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727262AbgJ2J6i (ORCPT ); Thu, 29 Oct 2020 05:58:38 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09T9v0g9005763; Thu, 29 Oct 2020 10:58:14 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=EZEfL//m6GHcOtQjjtUzSvMdL8Qzo78tTmsoTsjvHoU=; b=tQl5l+CWsw3SJRn8CskUg3gqBcZUBFFKBrPV1wNoR0gXpiIonUD+W/thSV8Kfra5+3iK 8gYBhe1MR1VLWfWcR/iTQEflT9qrZVFuHjKTdTgRAb6napwAKshK/ZghvBCKwkuyGWNJ t8LIN0PIpIZIPJY3oqqfFfuTew8sXL6dyhLRnQGEP1b6+nrHjCBUSD97JfYLjrfrjYeC HgugD1yjyxfcbUy31hCkq1D5wdoc7ue7hRpdziUjMyY0EvPAoIsBXgFpEb6yVHpKasr3 5WDepyvq755co62qeEuowzRZIUs0iIJdDSOZTyK4vWKrASDq7zKALTvzDEaUckEXMg4n rg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 34ccffr5tp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Oct 2020 10:58:14 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6C46C10002A; Thu, 29 Oct 2020 10:58:14 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5AF9A221F97; Thu, 29 Oct 2020 10:58:14 +0100 (CET) Received: from localhost (10.75.127.46) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 29 Oct 2020 10:58:13 +0100 From: Amelie Delaunay To: Rob Herring , Greg Kroah-Hartman , Maxime Coquelin , Alexandre Torgue , Russell King , Heikki Krogerus CC: , , , , , Amelie Delaunay , Fabrice Gasnier Subject: [RESEND PATCH v3 2/4] dt-bindings: usb: Add DT bindings for STUSB160x Type-C controller Date: Thu, 29 Oct 2020 10:58:04 +0100 Message-ID: <20201029095806.10648-3-amelie.delaunay@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201029095806.10648-1-amelie.delaunay@st.com> References: <20201029095806.10648-1-amelie.delaunay@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG7NODE3.st.com (10.75.127.21) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-10-29_03:2020-10-29,2020-10-29 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add binding documentation for the STMicroelectronics STUSB160x Type-C port controller. Signed-off-by: Amelie Delaunay --- .../devicetree/bindings/usb/st,stusb160x.yaml | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/st,stusb160x.yaml diff --git a/Documentation/devicetree/bindings/usb/st,stusb160x.yaml b/Documentation/devicetree/bindings/usb/st,stusb160x.yaml new file mode 100644 index 000000000000..12a996cd9405 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/st,stusb160x.yaml @@ -0,0 +1,85 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/usb/st,stusb160x.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: STMicroelectronics STUSB160x Type-C controller bindings + +maintainers: + - Amelie Delaunay + +properties: + compatible: + enum: + - st,stusb1600 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vdd-supply: + description: main power supply (4.1V-22V) + + vsys-supply: + description: low power supply (3.0V-5.5V) + + vconn-supply: + description: power supply (2.7V-5.5V) used to supply VConn on CC pin in + source or dual power role + + connector: + type: object + + allOf: + - $ref: ../connector/usb-connector.yaml + + properties: + compatible: + const: usb-c-connector + + power-role: true + + power-opmode: true + + required: + - compatible + +required: + - compatible + - reg + - connector + +examples: + - | + #include + i2c4 { + #address-cells = <1>; + #size-cells = <0>; + + typec: stusb1600@28 { + compatible = "st,stusb1600"; + reg = <0x28>; + vdd-supply = <&vbus_drd>; + vsys-supply = <&vdd_usb>; + interrupts = <11 IRQ_TYPE_EDGE_FALLING>; + interrupt-parent = <&gpioi>; + + typec_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + power-role = "dual"; + power-opmode = "default"; + data-role = "dual"; + + port { + typec_con_ep: endpoint { + remote-endpoint = <&usbotg_hs_ep>; + }; + }; + }; + }; + }; +... -- 2.17.1