Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp88840pxb; Mon, 7 Feb 2022 07:01:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxefiCnN6wMmUBPqFN3ig1DZKwkxJ5jxShDYs31O1t8+J3ZDewCQguvaElnhxlz+k6Ko5JO X-Received: by 2002:a17:90b:143:: with SMTP id em3mr55833pjb.29.1644246107132; Mon, 07 Feb 2022 07:01:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644246107; cv=none; d=google.com; s=arc-20160816; b=W2b8B6P/j1x5x/r4hxSvBK0+aBP2/yPxQIICKwX0F0LotINUiPOqJUpwro/Fak63wV K8PVAs3wCr982LLImDqk4f1Mq7bjb0SG7jUZwClCRCCLJTFuBB8DNSzq2VtzAXB3l2Kq vIcuUKJjmeebxHDd8d7hOco6Iguiq2mrUFZpI7ztW2hHW4InbyDmMCfW0K/pK45zxeej 8HYvRstH1K7gRnBLz2YOCXBIO4i3d55knnZXCp9HnaENRT1CHkqDHsr5hlOsWsbhu8hz Fjq9kCwh95EUXSg+/7LgQqv3haimE8kKXgjY2CygLoRXjwE+uMcGc/ODuO39Qm9v8+hq j+hg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=3hRGNS3D1z63G2ajvlDFboK3XqiYELgqUzQ/+Bh6bEY=; b=vspoPLUYhT3TfY4RvijjHLOP/mwbEWztjJvwszX1TY1aNWT3PEj2tsN6vwwLTTtMbf zjzMFOOLEmUfq6Igeg2C98Vbfl63GyZitjxRDjpsyrk6FfUME1hspDqyI23XIlu2Auri Kv30Tl5C+LG5w3OGtOpsh1QD2yWxf7FfIAkEvtUnL73/muOlIBeFmX1arFZROQC+kQfF lfFFSD+jYdhqvhl3LJ40CndRuINJj4K5cqHVuAbBLT6FiuI0seeS1+8nsqY7NHeHfZzw FXyf5SDsdc8CzgRmBKxvO3D2u1faGIEUWM2P23ZXCaRBN7I6N1Ezs8Bvh/6yMnQRDwmf U3TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=amwvW9SO; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=TOTUiEbR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot5si10901781pjb.88.2022.02.07.07.01.33; Mon, 07 Feb 2022 07:01:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=amwvW9SO; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=TOTUiEbR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347887AbiBBWT5 (ORCPT + 99 others); Wed, 2 Feb 2022 17:19:57 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:57437 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347847AbiBBWTx (ORCPT ); Wed, 2 Feb 2022 17:19:53 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B61F15C01B9; Wed, 2 Feb 2022 17:19:52 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 02 Feb 2022 17:19:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; bh=3hRGNS3D1z63G2ajvlDFboK3XqiYEL gqUzQ/+Bh6bEY=; b=amwvW9SO2Lj9YFJ6pQOfOiOBrzM9yh5FhdxN6PEiAWw51E 2pt0m7X4HgponL9fur2l74p2whWFdAuv/LLGB+97JWPtD7mIUs2fDXPvbWFTbMLw VDWhPzAhG0Uk6jwZs7p5NvOO/B2bkRoA0urLDwJRS7ZS0mAL2Ih6G7f1U+ysrIeC 4yE5HXG9D96RKIC5+En41qvOu5SbkP++Aec0VCVHD+urAwisr+doG6oMzOB+BKxS slPRxRrLtchYMA/Kkw1RAS4KjaF0FuX9XV2MyphfbLNcMnlAwao7/69FLGrREJHT ymmZ6D36fn9S6q3biXDEt25W1lCTOhayHG1RJEcg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=3hRGNS 3D1z63G2ajvlDFboK3XqiYELgqUzQ/+Bh6bEY=; b=TOTUiEbRPsIAwrjhmYbDVb /FSnQ8I7Dh/pK88pzq3in/MH1wk93oSXfSjoHrZfTE09/3WtkT4GqsrdBuOEUjq2 /iq0+isY2Mx9BvNJOrMhpf6/WHxnTmQefFDG0QYQSAQMfDNbhBzGZZ5xxuxBR/f6 OIK6Q8uMghtehkIdF4IqEBlzJYR0WUV8d5K3Dq8l267LNhRyYeEoSrz/l2UYhDo5 9o5S19+2sn49jbyxQ8F8JHcbkvbLcPmLXtZ3Qfhl5quxPF/aKrvwkHS9fk/g60bt gWGlS2lxqtwZGcgGpa3y3fmYLS+Bo8MepZiK6VbBi+gvnE1fy2sKdA7LwD+DQIAA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrgeehgdduiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeelueelgeettdfggfeuffevkefhuddtteeigfevhfdtffdtjefgteeg leeggedvudenucffohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhho lhhlrghnugdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Feb 2022 17:19:52 -0500 (EST) From: Samuel Holland To: Heikki Krogerus , Guenter Roeck , Greg Kroah-Hartman , Rob Herring , devicetree@vger.kernel.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Samuel Holland Subject: [PATCH v2 2/4] dt-bindings: usb: Add WUSB3801 Type-C Port Controller Date: Wed, 2 Feb 2022 16:19:45 -0600 Message-Id: <20220202221948.5690-3-samuel@sholland.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220202221948.5690-1-samuel@sholland.org> References: <20220202221948.5690-1-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add devicetree support for the Will Semiconductor WUSB3801. This is a basic non-PD Type-C port controller. Signed-off-by: Samuel Holland --- (no changes since v1) .../bindings/usb/willsemi,wusb3801.yaml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/willsemi,wusb3801.yaml diff --git a/Documentation/devicetree/bindings/usb/willsemi,wusb3801.yaml b/Documentation/devicetree/bindings/usb/willsemi,wusb3801.yaml new file mode 100644 index 000000000000..c2b2243c7892 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/willsemi,wusb3801.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/willsemi,wusb3801.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: WUSB3801 Type-C port controller DT bindings + +description: + The Will Semiconductor WUSB3801 is a USB Type-C port controller which + supports role and plug orientation detection using the CC pins. It is + compatible with the USB Type-C Cable and Connector Specification v1.2. + +maintainers: + - Samuel Holland + +properties: + compatible: + enum: + - willsemi,wusb3801 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + connector: + type: object + $ref: ../connector/usb-connector.yaml# + description: + The managed USB Type-C connector. Since WUSB3801 does not support + Power Delivery, the node should have the "pd-disable" property. + + properties: + compatible: + const: usb-c-connector + + required: + - pd-disable + +required: + - compatible + - reg + - interrupts + - connector + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tcpc@60 { + compatible = "willsemi,wusb3801"; + reg = <0x60>; + interrupt-parent = <&gpio0>; + interrupts = <4 IRQ_TYPE_LEVEL_LOW>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C"; + vbus-supply = <&otg_switch>; + power-role = "dual"; + try-power-role = "sink"; + data-role = "dual"; + typec-power-opmode = "default"; + pd-disable; + }; + }; + }; -- 2.33.1