Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1686807pxb; Wed, 9 Feb 2022 02:11:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5TkvlA2hxfM/kEgrxlBkB2wtOzwMhyxDDE1qXVH4qvoA1vE9Xx722ynIOEGT0F6hGO+cZ X-Received: by 2002:a63:3ecf:: with SMTP id l198mr1279616pga.404.1644401483934; Wed, 09 Feb 2022 02:11:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644401483; cv=none; d=google.com; s=arc-20160816; b=E0iwZ6K2h5Y1wCAfA61d0KkVBUHbYrpHHNDWQQLvLcSpRelvaoWylANRjsBDfnvJjG Em8jQOHBT+GAzRfRn5yIfC32nvCC0VjQ1S5CVYKxBbX7k21lboPl+mx8CMyYMmQ0/AmJ 2ptnLvEYoOUvDbh6ePC58+yaaCsxG6Gk9six3w+PlCGjzBMevQ34hefws35qkGlC4BUj CoPgn8oJ1kA8wAGygXecrz4EW/WGDFjZpYTNm21r8ij8YU3FBnfQX95gv6a6JqqKs/XO 1lUs2FyNK2P0uXxW2YIfX+JLv11/T83Hy/p3/+h2pmeTdJswoizdoSiQKiZBv8zZ9eNt 2sNA== 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; bh=OTRVq8PpVu//vt/IgzSV5+XNtw1vJPrl7jfHJ1N1q2k=; b=nZYtA7/WJNYnyTIL+buS2H6WqOs1SGp1lhqA/Z6ywT4YvTSmdbR1ia1RkNkaKZAbOt /4Eii2KCuNFFa1DpuNTNtAw7NWalBc5bBoWWse/rdQUJydUP00I3zHs4Rd8xSwYtVzIN C2Jag11T0Rn4U3sbMBTpUX86ew8uQ1db+7/4n8lE9YgN3ySWKGm82HyHQ1S8E9ijPxu6 oHISVbliyHVZ2HKkbTTLSoYIi0rJQaGH2eAYXLGx8SYUZFainqyE1SaoG1AUyOKtZS8E WMzD67amEqmMvHRH+CRgoCXvxsSjIZqdXQLMiDlT+yErRiK904JoVrNlZ2Mbb4H9KguA I3ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CQzvhJ6+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g9si12680685plo.220.2022.02.09.02.11.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 02:11:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CQzvhJ6+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A1E96E0888C9; Wed, 9 Feb 2022 01:15:36 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346333AbiBHDR5 (ORCPT + 99 others); Mon, 7 Feb 2022 22:17:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346343AbiBHDRf (ORCPT ); Mon, 7 Feb 2022 22:17:35 -0500 Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 584E6C0401E6 for ; Mon, 7 Feb 2022 19:17:31 -0800 (PST) Received: by mail-oo1-xc35.google.com with SMTP id k13-20020a4a948d000000b003172f2f6bdfso10739935ooi.1 for ; Mon, 07 Feb 2022 19:17:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OTRVq8PpVu//vt/IgzSV5+XNtw1vJPrl7jfHJ1N1q2k=; b=CQzvhJ6+adAFGsOiX5Pabvae50+/HQzV8PZdM3khyC1ZKPPCo8onTNmo9XXHCIM/HF 1iU8vR/mBQ/wKLKl8Ghdnj/GBXAkdfAKRx/txUqyCaEsqN9nLSSsVN/EzX2CAgFBy8HB KHr73C8YAj+cH7aJFLMbV/0N0840/wexW+/KsPUQTwCLvpBZpRyHCr7qKqAV8asMKMjU xjmtBp3tyVO1EMZy3ALxJQGNuncGQItLEJu0P87Xre5qbbnlR6n1ud0hI9vcBSvdc05J p352wrsJB6RpQUMWL9at9BGeew5zrPj+9TesT7eAAfyvsSSCBJN8uNspU7sXHs0G1/5l QrlQ== 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=OTRVq8PpVu//vt/IgzSV5+XNtw1vJPrl7jfHJ1N1q2k=; b=hff4xqFDkd2ej81LuFaVMXZj44RmQdEPr5ilJRJYyfUHCJFk5VxYGnnSJtM1aqhwXi 1OrMgOipqTopYsOzcM/Jy/4Mm4TRLlOHqBzE9iBhKc/7UimvqkU3NKwNuwJvxI9meR7N rRUJc6763SRlSf5WmdJKJa+cX14jNb383ban4mUrALtXff+97PkUFzdAQHNxviuTAVIm wnzzpTMJxzRRszkhgorqJztwiRmeARc9ppEDuGOoUw3HeoL2NNXGXAnssd765VULl+w3 Qkr/v51V9OBKOn4PZtg4GBOBWkFPvK1yzrhmNh4ENGqn/ROeHW0JDXWlNF7+H2vVxmlZ +AYg== X-Gm-Message-State: AOAM530Wm4Uw44TI1e14J+Jz1ZWEnEm+nv5tQqgfEMtOARtsH0Nvc8Yk vzCwFVAzO6YAlpkmeB8a2tLsgA== X-Received: by 2002:a05:6870:9511:: with SMTP id u17mr684972oal.300.1644290250381; Mon, 07 Feb 2022 19:17:30 -0800 (PST) Received: from ripper.. ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id k3sm4763873otl.41.2022.02.07.19.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 19:17:29 -0800 (PST) From: Bjorn Andersson To: Rob Herring , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , "Rafael J. Wysocki" , Hans de Goede Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Dmitry Baryshkov Subject: [PATCH v2 5/6] dt-bindings: usb: Add binding for fcs,fsa4480 Date: Mon, 7 Feb 2022 19:19:43 -0800 Message-Id: <20220208031944.3444-6-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220208031944.3444-1-bjorn.andersson@linaro.org> References: <20220208031944.3444-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Fairchild/ON Semiconductor FSA4480 Analog Audio switch is used in USB Type-C configurations for muxing analog audio onto the USB connector, and as such used to control the SBU signals for altmodes such as DisplayPort. Add a binding for this hardware block. Signed-off-by: Bjorn Andersson --- Changes since v1: - None .../devicetree/bindings/usb/fcs,fsa4480.yaml | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml diff --git a/Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml b/Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml new file mode 100644 index 000000000000..9473f26b0621 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/usb/fcs,fsa4480.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: ON Semiconductor Analog Audio Switch + +maintainers: + - Bjorn Andersson + +properties: + compatible: + enum: + - fcs,fsa4480 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vcc-supply: + description: power supply (2.7V-5.5V) + + mode-switch: + description: Flag the port as possible handle of altmode switching + type: boolean + + orientation-switch: + description: Flag the port as possible handler of orientation switching + type: boolean + + port: + $ref: /schemas/graph.yaml#/properties/port + description: + A port node to link the FSA4480 to a TypeC controller for the purpose of + handling altmode muxing and orientation switching. + +required: + - compatible + - reg + - port + +additionalProperties: false + +examples: + - | + #include + i2c13 { + #address-cells = <1>; + #size-cells = <0>; + + fsa4480@42 { + compatible = "fcs,fsa4480"; + reg = <0x42>; + + interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>; + + vcc-supply = <&vreg_bob>; + + mode-switch; + orientation-switch; + + port { + fsa4480_ept: endpoint { + remote-endpoint = <&typec_controller>; + }; + }; + }; + }; +... -- 2.33.1