Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp32482rwb; Wed, 10 Aug 2022 14:15:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR5XOxF8Rrvwl8NkXdH27oFzlorbaSfmK6D6ZkcIgsd1LQBuXEMoqkqKJ4GkuIcvU8BzcY41 X-Received: by 2002:a17:907:a06b:b0:730:9496:4f63 with SMTP id ia11-20020a170907a06b00b0073094964f63mr21472205ejc.238.1660166130562; Wed, 10 Aug 2022 14:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660166130; cv=none; d=google.com; s=arc-20160816; b=pgmPON2yXI+yMUFp9DbSYgf54a2oUIUJCtwMwhzgbbTlv/QAztXuw2gXU5KKfknzXR /nk8oW8Pgpm2t+sFh6YUV/dSXhDaK1mHEAr2hR9buJX17Gs0o9aGHR/1431pLnqAh81H /gLTwZXA+ccn397sW0+8vX49YD98uB+g0zQAww8OVprYF7xeAn8v3dbONsk+y4G7idls lq5lKLPGmkDmJ5M7f5d5IKPxJNydhpOzFX+7rWefrEQtXT6kYPc11VBK9Odm+1NEUWvp lNcETpndoEn2cfMZ9cAMs7DEpE2H8s6tbI57M6WNtuxIKyIMqMTP19gswCdrfqYvb/qo 1oZw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=/Tb8rXUIwGiSR5Mp63C1iN3z6zJu5WryqQsj3M2SVRg=; b=SLGrh8GODJaPOKk5I1NSe5lEObDJj7N3VYMtSep2CuJHdebHft/btv+m70ycbxSs91 2liB78ABddgt2yC729is5JYJNNP+/qAGKKxemksu1W0aDX9es7/WWQ/eqbsAij9JZpyU ZTf6MLvyei86ehfzGxIjbZX8npg/J5pPIcqrj5vG8Tl+zD0Vh3+cO/Iw+awq43PEWxRJ iKPff6U6xH9L5PQ6KHyvTvvaHjHpjozXUWx/Jg/mWFh5Axo6soiKDhVO3Ciqm5OB0yjG RbBwQTVHZ1kZ2BpReNctp29yzu1VnhsabwJVx2k28dIMiiCT9qMLvvR0Hvpjdr0CdVcK R2cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q9AFEMh1; 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 t17-20020a508d51000000b0043d2ff128cfsi11509447edt.286.2022.08.10.14.15.01; Wed, 10 Aug 2022 14:15:30 -0700 (PDT) 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=Q9AFEMh1; 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 S233400AbiHJUpS (ORCPT + 99 others); Wed, 10 Aug 2022 16:45:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbiHJUpP (ORCPT ); Wed, 10 Aug 2022 16:45:15 -0400 Received: from mail-oa1-x2c.google.com (mail-oa1-x2c.google.com [IPv6:2001:4860:4864:20::2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23BD912778 for ; Wed, 10 Aug 2022 13:45:14 -0700 (PDT) Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-10e615a36b0so19249430fac.1 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=S6mxqWkK3HaEJwohm0+13ZZOLHgQQWw+pIigT4Zy0OzDsFgOz6lm7oI5Q/dkCF4mcX uFNmeey+hH/iYLogqu/nr095RVSiD3hImDLpiGORR73lB6rdsRuz7Kbqh+6OrxFGUv40 wU34JXjinY2FdtEYH36ZT8+t3K/w3z2WUsLH2VDyQMRLDA3bk24ZXCjDo3Xv++tQCBEY z/78XKamIjSV2er7Meug9JUKN3Cn78VhoFaZv3xKngIyWqhDhwSA5erPHVAMcQRual9R oMKcYb5g/rPThc0KlMVbmC7fZhjkIYi7P+xiFLTP2v/wxa4FW05OpRjsLSaiCOMWlDO1 83cw== X-Gm-Message-State: ACgBeo3wxUy0F3eQu4LxCVHP43SG8iPB8YkHjlmY/uxY4zuT2m2WdN29 vNEJ3TbTZaTFdSfBF90h9IB8gA== 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 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=ham 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 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 -- 2.35.1