From patchwork Wed Aug 10 20:47:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 596489 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 7B596C3F6B0 for ; Wed, 10 Aug 2022 20:45:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233090AbiHJUpR (ORCPT ); Wed, 10 Aug 2022 16:45:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232579AbiHJUpP (ORCPT ); Wed, 10 Aug 2022 16:45:15 -0400 Received: from mail-oa1-x29.google.com (mail-oa1-x29.google.com [IPv6:2001:4860:4864:20::29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70F0F15702 for ; Wed, 10 Aug 2022 13:45:14 -0700 (PDT) Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-10ea9ef5838so19225910fac.3 for ; Wed, 10 Aug 2022 13:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=/Tb8rXUIwGiSR5Mp63C1iN3z6zJu5WryqQsj3M2SVRg=; b=Q9AFEMh19+uvchGr3kAscMNtmOvF3UcLNJrpS8Q5hLvtT/YdMM7ENd6DjjRLHuvNOL 0LMyVuT3q9mnbUQmzJ0zoQEoLfE8fdc61WnbEU7OQKKAuNnUQ1HuAPVEdrrM3sSChHWt hs7JdP5X2s0YvHaULZr82zbLpXfmRkWxil55IzHvFdGh1ltbsfcacSD8NPJdoWoar2gj e4C1Nb58hBOKtfpe+R6GcRS8IbS8+W6xgTvExAM/GLzGFMVIEOMrRXIfe8kz+INtxoeZ LuJJKLxYT+R6QHeOBSLeSu6xSmTV7XF/sRCi77BXAZdJBqaX59TLEmb+RhNL3Vx4ZsfO FjPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=/Tb8rXUIwGiSR5Mp63C1iN3z6zJu5WryqQsj3M2SVRg=; b=gWzutD8dbD+eC2aIZ5if+skUdmhiljY1LQd4cV4ij2LjJP+avjQfQfpSGYEh/3E8Mb /mR7V3Xl1yvyGt1nVS9dRY+V8aO82IGKEXL7bBCBlj7aFfiKUW783380m1zvxWUwQCnN d5mSbAMdDsk5jyvdSDEUEFZqMuWfuVQHOlP66kHcGKGEqHvUQ7+lEmbx9FwulU4RMjNB z1bmY2MHh+ELzZoSWl2prGyPHVtVGCbg0kQnp/veMTd0UBIzy+RlC6kWKahvfSAYY9tm E3990c+oj7qIE1u6G2f1hfTiJdCRHAIzGGUWvBz7yfVGH8v4vCtebCWisJW38rvibN50 6btw== X-Gm-Message-State: ACgBeo17LWRZrbHu45kPL22JV9Whxs97t183HetNaVZQjxs/dX6oihbq 1s8AkY1hhY3Q6T8Hyak0UrA1Bg== X-Google-Smtp-Source: AA6agR5KR+MQJmPIBH24l2i6zKt8CyhlzpT30Va14Lpv2RPY+mSG77c/ZvfnJUnOTLxhLbdj4GJIHw== X-Received: by 2002:a05:6870:a181:b0:116:da6b:b3b9 with SMTP id a1-20020a056870a18100b00116da6bb3b9mr1418910oaf.179.1660164313523; Wed, 10 Aug 2022 13:45:13 -0700 (PDT) Received: from ripper.. (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id f12-20020a056870548c00b000f2455e26acsm3968218oan.48.2022.08.10.13.45.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 13:45:12 -0700 (PDT) From: Bjorn Andersson To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Heikki Krogerus Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 0/2] usb: typec: mux: GPIO-based SBU mux Date: Wed, 10 Aug 2022 13:47:48 -0700 Message-Id: <20220810204750.3672362-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org A design found in various Qualcomm boards is to use a USB switch, controlled through a pair of GPIO lines to connect, disconnect and switch the orientation of the SBU lines in USB Type-C applications. This series introduces a generic GPIO-driver for handling these designs. Bjorn Andersson (2): dt-bindings: usb: Introduce GPIO-based SBU mux usb: typec: mux: Introduce GPIO-based SBU mux .../devicetree/bindings/usb/gpio-sbu-mux.yaml | 77 ++++++++ drivers/usb/typec/mux/Kconfig | 6 + drivers/usb/typec/mux/Makefile | 1 + drivers/usb/typec/mux/gpio-sbu-mux.c | 171 ++++++++++++++++++ 4 files changed, 255 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml create mode 100644 drivers/usb/typec/mux/gpio-sbu-mux.c