From patchwork Mon Oct 12 20:00:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Cooper X-Patchwork-Id: 11833675 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B1B631592 for ; Mon, 12 Oct 2020 20:02:16 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7AF6820878 for ; Mon, 12 Oct 2020 20:02:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BgdnqwS7"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FsCy3E1n" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7AF6820878 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=VcGW9lFyxzZWrDo0mlFu5VEAk38AXGHGxWW9HhQoj/I=; b=BgdnqwS7UqbzSE3Vag1QmlEDND 5mPDU7UfTahpyWPqQImuBgR9vzGx4drEiXRNfE5tGsJi8lVPcb1j/Ry5vwF3bL8BCSRPd9UvBr7Vv kiz3u7ozUevgNXlm6NGs1FYtZcP/r+GFhPjrssGLkGDot8CeU/5XQ9URb30/XWul0C4DWRNL48PMh Hc+n21xPypzlDrQEYLdRvD8FWoBwCI7a1QcSIgQzLxkPrIOYB3lKHEUhoZW7yywrkzOXlSki+zIYv 2ls66UHO6pbtIRvMvqaTXcxAXpJUC6r6F7g7M6jL4ompD29C40P4qL94Z6bkHOgeDvdRZAECbHNV9 BSIOAvTw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kS3zk-0006Ii-OF; Mon, 12 Oct 2020 20:00:32 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kS3zi-0006Hf-FB for linux-arm-kernel@lists.infradead.org; Mon, 12 Oct 2020 20:00:31 +0000 Received: by mail-pf1-x442.google.com with SMTP id n14so14568303pff.6 for ; Mon, 12 Oct 2020 13:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=o3Wbk4nmy56F9IkEZJ4ABSgYwO4Ym2YRvtidSEb89cY=; b=FsCy3E1nuWYY7boGvXjmaLcuYPvaPNuqoSgMs2izSqYwTNKc5/7WLBzrnK68SFJwio wXs+YdOhdtVv9TruBBIRYThnNPvexrTGBmwNmJl5iESJpTOt9JwWsadtJd/gtn7eY0qi NcEb4RJTp8/fJOvrZEKkrO0ipTtBh+/mPERnOrZmVHPV2RM79z1f5UJFq6723eh7cHch RtWiEHD993/IdIfFf/xvIcmvKH9QhiRQs/vpCKkYCBoecrskcKGDcUR1GkL40CkZbSmr GtzuXrRO5ySDC1Z8XtFMIu2oOzGModKtRljaDBOSLWtq3pWAZWd7IyF/4i0y3N9k2ozU PPJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=o3Wbk4nmy56F9IkEZJ4ABSgYwO4Ym2YRvtidSEb89cY=; b=R2DrUZpNPLyhiif0GneNlfkStJEDTbccpM3vfg9TWdjVhTKrKyDCT/dZ/RYzeGfV8Z +76I8Kgt4VOTRYfnmtZCjJjWJ3W5Xjo9mVuJM+Tb9HJReGeXtFrIoODO51XWGrfpT+GZ yw6Jmo+RaT3cmoyTmnlQ2Ezxe3svO2/8IS4+tcayBu09u05OnQziSLoVUd391+x8k/Ij CJ51FRmzoM1E/tzaMmKzwxH4RMo3mXyKIFm7I8WzXJMylfuWKQxZLnAV3kY+/KG1q9ej ur6L3PsKhu/6eGrhzC0UbvCMYNcMJ1aby/kGMeriHZQKpXzlkeu1ERKuU6AGhSNfQHAm k9ZQ== X-Gm-Message-State: AOAM531mUUd672nTZipJF+5PrU/dXLwv0Kw3BOQ7sjlL6NOWuAax7gIK 8cm+WSxSdPWpDMs0Owq4WVA= X-Google-Smtp-Source: ABdhPJxIDYig0BsxgX1Ir49T0xvRyJ+8raBmM+C1zFU2TuBwuW8ORdh5G+zn1HH5Ao1VtT6EYra3tw== X-Received: by 2002:a63:f60f:: with SMTP id m15mr13755095pgh.298.1602532825050; Mon, 12 Oct 2020 13:00:25 -0700 (PDT) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id y124sm13556909pfy.28.2020.10.12.13.00.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2020 13:00:24 -0700 (PDT) From: Al Cooper To: linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] usb: Add driver for USB signal re-mapper Date: Mon, 12 Oct 2020 16:00:05 -0400 Message-Id: <20201012200007.8862-1-alcooperx@gmail.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201012_160030_557255_CB6773F3 X-CRM114-Status: GOOD ( 17.75 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:442 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [alcooperx[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Florian Fainelli , Greg Kroah-Hartman , Al Cooper , Krzysztof Kozlowski , Rob Herring , linux-usb@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org v3 - Add MODULE_AUTHOR(), LICENSE and DESCRIPTION() so the driver can be built as a module. - Improve Kconfig default entry v2 - Move file from drivers/usb/host to drivers/usb/misc - Combine Kconfig/Makefile patch and new driver patch - Fixed bindings .yaml document based on feedback from Rob Herring - NOTE: There were suggestions to use a pinmux driver or GPIO aggregator, but I think agreement was reached that they weren't a good fit. The Broadcom 7211 has new functionality that allows some USB low speed side band signals, that go from the XHCI host controller to pins on the chip, to be remapped to use any GPIO pin instead of the limited set selectable by hardware. This can be done without changing the standard driver for the host controller. There is currently support for three USB signals, PWRON, VBUS_PRESENT and PWRFLT. This driver will allow the remapping of any of these three signals based on settings in the Device Tree node for the driver. The driver was written so that it could handle additional signals added in the future by just adding the correct properties to the DT node. Al Cooper (2): dt-bindings: Add support for Broadcom USB pin map driver usb: Add driver to allow any GPIO to be used for 7211 USB signals .../bindings/usb/brcm,usb-pinmap.yaml | 70 ++++ MAINTAINERS | 8 + drivers/usb/misc/Kconfig | 9 + drivers/usb/misc/Makefile | 1 + drivers/usb/misc/brcmstb-usb-pinmap.c | 351 ++++++++++++++++++ 5 files changed, 439 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/brcm,usb-pinmap.yaml create mode 100644 drivers/usb/misc/brcmstb-usb-pinmap.c