Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1629000pxp; Sun, 6 Mar 2022 21:31:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJygYv8NZSzEIjIPg7jVpXM6I8n2WZgHc1cNBm9tUJpRU2ofbG4pkHepkZSsZtlrK6KodKiI X-Received: by 2002:a17:907:7fa2:b0:6d8:2397:42 with SMTP id qk34-20020a1709077fa200b006d823970042mr7919813ejc.218.1646631086584; Sun, 06 Mar 2022 21:31:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646631086; cv=none; d=google.com; s=arc-20160816; b=rS3lDOeg/A89o830YLJSfcq6If7iPeLwJm+C9l+XYpg3ejb8Pplgzv9AP2xB/CZI3g LKg0JXtUn3MKb5uMT1oQVVcFVzjpBfg978oM0qHrYGdTtWvdLgmCWuzqlQs7ll/LwSqW g7h1LrN0gGTNOrYrEPbDP9AfWVYrjpQ5PWzJaqSmCdmh56ZONxPEeK4ICM3g60qVa3cM 6kXCF1Xvrskjb4be4jTxyHNyx2+/Jqt8FOExvfJHlq2+RIXOwXa9WPPLu7Wl4pibD3wq as+7S6gsvnE1pJ73FFPo3G1CJrc8IDGpL1RnKborGtr2Rd2AEyWgeFtq6VTNFTm+pRMQ tZaA== 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=we3sNOOWMP//sAiq5vC6Ir4YyalDonStuZLXuyqjnSU=; b=InPEGKD8wINMTIO2Jmy1MRbqTu5CzCPLHQ7lZLFP6OtODp4LArUWyjLw5YRBFdvdTb kDYFMfJ3b/MG7rW32GAYsP4iancc9FwPMceOebEVbi+eKU59RnkvWUVqIpNdOLldA0BI zSFtWaLLF6r3Ya32P/ZGfAh2jG3U16vOH66dEkjFcQvsBEVPY8YkifovOFXCCfgVyHT8 TepimpXEUE4QWCazRF/DjyzALML1Vl52tlaFoLaFWHM3FN2c1k07ltZiofhVPZFIRA2c vYPGs+4Td5OiLsJe8Ia9jx9RiSrE4fs794IIw72qUPQgDiysoTTHfpjpE1B9AudQppBM gr7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LIBkUsc+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k6-20020a170906054600b006a79e13f94esi6928395eja.294.2022.03.06.21.31.04; Sun, 06 Mar 2022 21:31:26 -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=@linaro.org header.s=google header.b=LIBkUsc+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235143AbiCGDkJ (ORCPT + 99 others); Sun, 6 Mar 2022 22:40:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235108AbiCGDjy (ORCPT ); Sun, 6 Mar 2022 22:39:54 -0500 Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E69252B17 for ; Sun, 6 Mar 2022 19:39:00 -0800 (PST) Received: by mail-ot1-x331.google.com with SMTP id j9-20020a9d7d89000000b005ad5525ba09so12044945otn.10 for ; Sun, 06 Mar 2022 19:39:00 -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=we3sNOOWMP//sAiq5vC6Ir4YyalDonStuZLXuyqjnSU=; b=LIBkUsc+OwxWZRwEnz24ZoTVyUKp3VL1Zd5qhmOQB3W5IL6onrg0ehThFolA4xfwoy /lR1hqSuanNcS5oIBpssotYpTvQceBHlnVdxek2gMA9NCgzNDzy30/4Y0vQGgkX5edCD rif+AzUawUjL2QK3arFwSaeZfePL5rYksUNfidxJT5oOCUK62k0Q6RrwLVISNT0TYkqT aaxGl8OGuv4Gle5aa5qZsYMFHBZNsx4FwSu9bHXRttQe5DA4+DnDHoXt67RAHQFE4KjR m35Av770vhP3zLIc83gdBarmJx6i0kBJ9Z3xeRHj3+Svh/91PZvDv7tNharFkMfHyr+5 HAKA== 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=we3sNOOWMP//sAiq5vC6Ir4YyalDonStuZLXuyqjnSU=; b=feU8J8QrjrvUksl73ZLPBsSK7Oe1nsZTFvE+A4Qsz9q5jMVXWOc7g1d5WYPhsTe12j 7F8CDayi2sB8P0WI4nRUL5vaPrEiHMiSOE6V96qpKIhkz0rLKNS6I4q0cFlbdcscWnYk 2DCOBWcUESZahDd1A4Zq/2MXJpy+Feq5CyHHQJ9XRDADfBls5ieOSPotY6L2FMyYG4kz Kg4FhsxZqGq/lpO61/mP78LwtMNO3OpgvqTO5czb2it8PAkgeAP+Ek1Nhcp9qn75RIk/ s0RhmUoN3osyhqrZTTtLvWxNMal1d5lEsZGUfJNJKZsmkWDNqbux1L0yx+wJAr07iyEz kqIw== X-Gm-Message-State: AOAM530EeOVJNZz25XN+iFHs3XKUplkUwo1Ym+ytq9pIRo9ew8dmo+46 Tyytk4vutUDsMxKBQKM7EY5kUw== X-Received: by 2002:a9d:8f6:0:b0:5b2:2a34:adff with SMTP id 109-20020a9d08f6000000b005b22a34adffmr3326100otf.237.1646624339718; Sun, 06 Mar 2022 19:38:59 -0800 (PST) Received: from ripper.. ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id o2-20020a05687072c200b000d9ae3e1fabsm5005172oak.12.2022.03.06.19.38.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Mar 2022 19:38:59 -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 , Rob Herring Subject: [PATCH v4 6/7] dt-bindings: usb: Add binding for fcs,fsa4480 Date: Sun, 6 Mar 2022 19:40:39 -0800 Message-Id: <20220307034040.1111107-6-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220307034040.1111107-1-bjorn.andersson@linaro.org> References: <20220307034040.1111107-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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. Reviewed-by: Rob Herring Signed-off-by: Bjorn Andersson --- Changes since v3: - None Changes since v2: - Picked up Rob's reviewed-by 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