Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1124833pxb; Fri, 6 Nov 2020 01:22:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMMjaKzdj0diijBf5k0CRrAPH8ul1R+t/3DS0MGpKABd2dj5xIbOtKXj6Hwc0dXpJ11/xv X-Received: by 2002:a17:906:b043:: with SMTP id bj3mr1063539ejb.543.1604654579366; Fri, 06 Nov 2020 01:22:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604654579; cv=none; d=google.com; s=arc-20160816; b=nofEwFNsVrdNxERK45bvh5A9C/uY5wp2SR0UdBmR97ZdqoaCJCrQOlzAoIgCIomy4g pfnB6gR3mYupG+DXBl5xIhPjOF1EOeZINcbf4NIJRyF4K3FqrLcoBFOl6MdZObqjWZNt o/LKbG+pt/6FpsNn/7gb0EFJsRCemFXRVJmEzYT5aLo6azF8FUqHZ7FRzVVxGifN1bhz 8ztVBRWv1m8QCcVrJjaMe9r4HaSpEM6l92LssPd4kEFJ9C5VzAw/ZbF1QPiZ9pL2kVMS 0WxuctMn/kP2nSgLBlYVpaghaC8VnoDtTBrji2ywwPIlvtgYH52gpQXfJu8DFZlKtO7q Cpbw== 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=6qq/quNVzbBGlASaodU021u7lBejVGsfqPJlwc9JOcI=; b=FBuc0v/qGC7pMnTKlBm7oq0F2I07k2t0F2p1npuMU6BaAjcGeo1sU5NuEVAmTleuPJ 3iDi//ppQY+F1Bmw995oeCawhvUffWiMWXUjNn6MH1WAQRrUU3hyL3IcTtTrS57ZFre4 udW+J6yOXE/xH4X8qdgp97HoCCEdWKvmrrTn+txheVpJGgfwXmvVkOE3F6ADa/bfdXYR yoGS+pW/vRpZ1cmG7nmV9Cb92DyCbWeepllkJtRrRg7GYB6YGg0KkpZbs0nmqCkNXbVu LbQ2I7FF3og1qEgb3zefvY/+b7ZAb6bXa9gdo5KlFEEQ658L/vFLlWUu9yyUu3s9GruF KsXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=euEg+Yvy; 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 h60si531379edd.117.2020.11.06.01.22.36; Fri, 06 Nov 2020 01:22:59 -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; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=euEg+Yvy; 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 S1726723AbgKFJTu (ORCPT + 99 others); Fri, 6 Nov 2020 04:19:50 -0500 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:58115 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726010AbgKFJTb (ORCPT ); Fri, 6 Nov 2020 04:19:31 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0A6984US008664; Fri, 6 Nov 2020 10:19:10 +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=6qq/quNVzbBGlASaodU021u7lBejVGsfqPJlwc9JOcI=; b=euEg+Yvyqqg6lWYfcWv2ryupYlJKtPQJHMMQseV9aFHFzWfUM+w2Jv7ja2CJSRx5bGZD 1WmIe2EYxow+rpxqgpiG5LpQXkHn9D3WOFZ9YPmOfH1Zbvno64GopgfN8Zp0cKE0q46r qoplgLjC307ShZcj/udeaJCOg4yDzp/ddKOkjw83266NLE67vfezhsIOUZ87Q+Sd6UBl u4SdJLXl9yORNjLHM3nvxmtWLUUXmSbInCm11CiyjMPU1EFpidexO/Xd1+JwkN/ez0fT cYWXTaD+VsYcix/aVmErslH9cKLV1hz2Po684dCImxr2S/MP5W55zVuhky7MqJGW/F0L 3w== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 34gyw1uws6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 06 Nov 2020 10:19:10 +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 E0A6C100034; Fri, 6 Nov 2020 10:19:09 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D1D92233E9D; Fri, 6 Nov 2020 10:19:09 +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; Fri, 6 Nov 2020 10:19:09 +0100 From: Amelie Delaunay To: Rob Herring , Greg Kroah-Hartman , Maxime Coquelin , Alexandre Torgue , Russell King , Heikki Krogerus , Badhri Jagan Sridharan , Jun Li CC: , , , , , Amelie Delaunay , Fabrice Gasnier Subject: [PATCH v4 2/5] dt-bindings: usb: Add DT bindings for STUSB160x Type-C controller Date: Fri, 6 Nov 2020 10:18:51 +0100 Message-ID: <20201106091854.14958-3-amelie.delaunay@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201106091854.14958-1-amelie.delaunay@st.com> References: <20201106091854.14958-1-amelie.delaunay@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG4NODE2.st.com (10.75.127.11) 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-11-06_03:2020-11-05,2020-11-06 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..882450571db6 --- /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 + + typec-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"; + data-role = "dual"; + typec-power-opmode = "default"; + + port { + typec_con_ep: endpoint { + remote-endpoint = <&usbotg_hs_ep>; + }; + }; + }; + }; + }; +... -- 2.17.1