From patchwork Tue Mar 1 13:20:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alvin_=C5=A0ipraga?= X-Patchwork-Id: 547487 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 280A8C4332F for ; Tue, 1 Mar 2022 13:20:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234979AbiCANVc (ORCPT ); Tue, 1 Mar 2022 08:21:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234076AbiCANVa (ORCPT ); Tue, 1 Mar 2022 08:21:30 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D6DD9BB8C for ; Tue, 1 Mar 2022 05:20:49 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id p9so20456414wra.12 for ; Tue, 01 Mar 2022 05:20:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqrs.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e9I6Gr81p9RgEFrXcG5x2Wrj3Yq74XLrak4Xgl7o68Y=; b=ByMoPlOaBOuEhwZX1OE5tsZtqDWMZ+NErAiXaCiAfUE2ntkDEiBAkPM8LpOEh1S2V2 /PjVAdl6Gy7cDH09xvE3jBHB+mRb77BfXyZtkw3VvALKL4TKo/EvAHmX4eQVHgAZPQwV vmb1Z83QwAsaHHaDM9GmJnMwx/uC0G0Xwxwao= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=e9I6Gr81p9RgEFrXcG5x2Wrj3Yq74XLrak4Xgl7o68Y=; b=Q6zIvpdU+KN17f7d1/BQqHqjROl8bQIZOp1bYRI1+L/J3U+4Re6VePJco9lYX5s96a kHe4AaECir2F/KIioLaWmeNgnLeiSLBV4ipkB+lUFL7q5eT3i7MLUI00vmu6ORR5sCIp qK0eiFz07WP0NtqQSod+fy7JdAdh6w0RU2xbAkeeQjD6V+fjzCGaOuZuoGk6xiyOUrlu 3u3n/ZYpzMBGARk5CxAHAEo721zdViuLrEl3I+cbZedfolF/5zjMK5EyLLSODD+8U8RL ZDUIp5XF/cGdYEk06OopDIc0GC9ipoorL6nbjJPTbGIuQsjNZ6xJtmFklF9Wp1EJby47 NWwA== X-Gm-Message-State: AOAM532HXmTx4GYGyq3iOaHR6TO6E/eKSqp0ZrdsflVExZA7+YiyRFUO leCRvBwk0NP0fwYZB2n9BthwLg== X-Google-Smtp-Source: ABdhPJy5JugLamchQE82Lczi++biGY20rULCNgTL2PA2mauvLrn3sAdoxDVPL+K0ZcepGPSfetXuLw== X-Received: by 2002:a5d:5302:0:b0:1ed:e1d2:f0fd with SMTP id e2-20020a5d5302000000b001ede1d2f0fdmr19971115wrv.585.1646140847860; Tue, 01 Mar 2022 05:20:47 -0800 (PST) Received: from capella.. (80.71.142.18.ipv4.parknet.dk. [80.71.142.18]) by smtp.gmail.com with ESMTPSA id i12-20020adfe48c000000b001ef6eab4c81sm13258492wrm.96.2022.03.01.05.20.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Mar 2022 05:20:47 -0800 (PST) From: =?utf-8?q?Alvin_=C5=A0ipraga?= To: =?unknown-8bit?q?Greg_Kroah-Hartman_=3Cgregkh=40linuxfoundation=2Eorg=3E?= =?unknown-8bit?q?=2C_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Heikki_Kro?= =?unknown-8bit?q?gerus_=3Cheikki=2Ekrogerus=40linux=2Eintel=2Ecom=3E=2C_=A0?= =?unknown-8bit?q?ipraga__=3Calsi=40bang-olufsen=2Edk=3E?= Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] dt-bindings: usb: add TUSB320xA Type-C port controller Date: Tue, 1 Mar 2022 14:20:05 +0100 Message-Id: <20220301132010.115258-2-alvin@pqrs.dk> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220301132010.115258-1-alvin@pqrs.dk> References: <20220301132010.115258-1-alvin@pqrs.dk> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Alvin Šipraga The TUSB320xA is a non-PD Type-C port controller managed over I2C. Signed-off-by: Alvin Šipraga --- .../devicetree/bindings/usb/ti,tusb320xa.yaml | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ti,tusb320xa.yaml diff --git a/Documentation/devicetree/bindings/usb/ti,tusb320xa.yaml b/Documentation/devicetree/bindings/usb/ti,tusb320xa.yaml new file mode 100644 index 000000000000..a93d53ddd01c --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ti,tusb320xa.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ti,tusb320xa.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TUSB320xA Type-C port controller DT bindings + +description: + The Texas Instruments TUSB320xA 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.1. + +maintainers: + - Alvin Šipraga + +properties: + compatible: + enum: + - ti,tusb320la + - ti,tusb320ha + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + patternProperties: + '^port@': + $ref: /schemas/graph.yaml#/properties/port + description: + OF graph bindings modelling any "usb-role-switch" or "accessory" mux. + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tcpc@47 { + compatible = "ti,tusb320la"; + reg = <0x47>; + interrupt-parent = <&gpio5>; + interrupts = <2 IRQ_TYPE_LEVEL_LOW>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + typec1_mux: endpoint { + remote-endpoint = <&usb_audio_mux1>; + }; + }; + + port@1 { + reg = <1>; + typec1_dr_sw: endpoint { + remote-endpoint = <&usbotg1_drd_sw>; + }; + }; + }; + }; + };