From patchwork Tue Mar 1 13:20:06 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: 547759 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 CD49CC433F5 for ; Tue, 1 Mar 2022 13:20:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234985AbiCANVe (ORCPT ); Tue, 1 Mar 2022 08:21:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234977AbiCANVc (ORCPT ); Tue, 1 Mar 2022 08:21:32 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B00099BB83 for ; Tue, 1 Mar 2022 05:20:51 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id b5so20545989wrr.2 for ; Tue, 01 Mar 2022 05:20:51 -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=EX7x1WLeV89mTenKTRjKxeZqDFfAAfBdLkab9/KTRFU=; b=TmkG97zcvctztj0cYcA9OROjVUsaem9cmT+XGazETkehN80XgxzmgoH4MbJrE+tUHp 4VoyO1s9D1FJeM6R7rKRnw3RgRitb7Hs098qcWx7CAWrHbWh6p+dBRJC+sNzST1Xl4XL 650FV+qHUHteM3HY/ct40vL1L/XJmIcmYvlfM= 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=EX7x1WLeV89mTenKTRjKxeZqDFfAAfBdLkab9/KTRFU=; b=eVHoclOldfd9kYXrEcX+z/MraGGukU1RbV/oQAZyANyM8uJtL44v/EGVw3sjS1tSty yYjElzWuZf4jWVg5REIKW8i73wbafntn+rMwKyF1w3X5tpHNOqT//U+eFck6Pmz6vU99 gK+PZlgEDa0SkccGNzf9e2KYPbOBmsu0KqxC/ESqZezL5gXIENS+Jlq6ujyj0bkBaQ0p bPS6VzfDh6wXOi9BOpyMy+I4V5J/Omxi5gXLxIOcMXeF+FKMu11ybJKQIDW+F12pjIM1 GsSjswNfghw6BXVKhOgaSKGya2gj6OmniI/WbEOcInaKQeyNLE03q+lmTUiOUkM4slEd oquQ== X-Gm-Message-State: AOAM530rAUAt1OSxL7qZ5EJ43/QkaKLK/J3absJRmhW3KYxwVZROFxs/ 47NWwUjOfW4tTckphK4jKcluRQ== X-Google-Smtp-Source: ABdhPJwRE/3HFFsGWfsejA9PpDzCYob2PkUibpYrTch3RhB8qmtJNFi8JLnGsmSI6SBkT62DuIpF5w== X-Received: by 2002:a5d:4a8b:0:b0:1ef:9566:71c4 with SMTP id o11-20020a5d4a8b000000b001ef956671c4mr9769298wrq.400.1646140850254; Tue, 01 Mar 2022 05:20:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Mar 2022 05:20:49 -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 2/4] dt-bindings: usb: add TS5USBA224 USB/Audio switch mux Date: Tue, 1 Mar 2022 14:20:06 +0100 Message-Id: <20220301132010.115258-3-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 TS5USBA224 is a USB High Speed/Audio switch mux IC controlled via GPIO. It is typically composed with a Type-C port controller with Audio Accessory mode detection. Signed-off-by: Alvin Šipraga --- .../bindings/usb/ti,ts5usba224.yaml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ti,ts5usba224.yaml diff --git a/Documentation/devicetree/bindings/usb/ti,ts5usba224.yaml b/Documentation/devicetree/bindings/usb/ti,ts5usba224.yaml new file mode 100644 index 000000000000..0a488b961906 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ti,ts5usba224.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ti,ts5usba224.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TS5USBA224 USB 2.0 High Speed and Audio mux DT bindings + +description: + The Texas Instruments TS5USBA224 is a double-pole, double throw + (DPDT) multiplexer that includes a low-distortion audio switch and a + USB 2.0 High Speed switch in the same package. + +maintainers: + - Alvin Šipraga + +properties: + compatible: + enum: + - ti,ts5usba224 + + asel-gpio: + description: Output GPIO for A_SEL signal + maxItems: 1 + + accessory: + type: boolean + description: + Indicates that this is an Accessory Mode mux. + + port: + $ref: /schemas/graph.yaml#/properties/port + description: + OF graph bindings modelling a Type-C port controller. + +required: + - compatible + - asel-gpio + - accessory + - port + +additionalProperties: false + +examples: + - | + usbaudiomux@0 { + compatible = "ti,ts5usba224"; + asel-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; + accessory; + + port { + usb_audio_mux1: endpoint { + remote-endpoint = <&typec1_mux>; + }; + }; + };