From patchwork Wed Aug 12 20:20:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Cooper X-Patchwork-Id: 11711315 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 0E05F13B1 for ; Wed, 12 Aug 2020 20:21:08 +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 D7755206DA for ; Wed, 12 Aug 2020 20:21:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="el6alITY"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="uuGt8bIY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D7755206DA 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=G7Rp1Hg2Su/LqzbOgKr4PGuByf5AfelGGdSMPzvK0Fs=; b=el6alITYrs+dGpKd19SD7LgR64 WaY/5NL6mA3x2aIZbqPSGQ8gEjhW4pRESkGC/Xkv1bhTUxsZ2o80T1Th3zsKPxBBozpx7wUdJHnVG pqnnXLfbcKrSHWKsli0CK4gxc93q47uthP29slfeml1MEMwHXvpIC8Gf3poKxBr9Wxg2hB9cafD29 hL0f7tRV3JchX44MnhGCRnH/FQzHGXCthe7NnftF+Xsn7VtnVmHiDZT8VouUthvxfwua9/2AEb9e+ ViD8LzEM5zlG5VIMM9R1tGr3HiLkNgEcXpZ7QD5YDQzsM9WG42Sm5uRS8BqdDWfBuzQH/Y5X3qHaV Zl06nrMQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k5xEw-0004CV-Pb; Wed, 12 Aug 2020 20:20:50 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k5xEt-0004BY-Mx for linux-arm-kernel@lists.infradead.org; Wed, 12 Aug 2020 20:20:48 +0000 Received: by mail-pl1-x643.google.com with SMTP id g7so471587plq.1 for ; Wed, 12 Aug 2020 13:20:45 -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=IeO2QX7jX5HpTExQro6Oxo9pVZ7dXOVfRlcfZocSNUA=; b=uuGt8bIYTXENPkcGTC/MKsQN6zvk0hjl3gOq4bm9hxP6xc1EFnrxPmD4rltKQYT6QP 5HHSlX2LxDGP3P/bZoglmL0XCsWyLhmJx2UF2H/GqSEBiPMtWU3blCLJ/VAQKr4GntWe ykSznhrG9+l4AEz7abkEAhPDPt1Hk3Kydsb05hQKCmr866aLNYMbvSkw6Umt+ycXEi5W zVVuYx3YKDeHtdQaT+JVP2dJpsZxuTeWnNxxNjjdnCvE4vGveI2uy8p2KnW+xUwfW0PR sPH30ZlMow4L9IV0XGv3sJ9nD5Kfs9kmeVgz1toBr7KnfXMVplzZOSI+L+QMDXd1avWI 42mg== 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=IeO2QX7jX5HpTExQro6Oxo9pVZ7dXOVfRlcfZocSNUA=; b=FxoIAvDwBB+dYfVidIvzmlx3LINeCeub7zrkRVvXRyUjCbFopzdr9QkDwQ4cEiksUH b9jKxi1FsFWKCZ5OS8s+SYQv8rrOB2UWkMHxuzS4utlPTjm9G5Hjd8XHWCRZaM8mC+Ei ViiqCXw6eumRO9fx9fnD0xIof774fmCEgTno4hmGRtxXpAAW3Um8gsHb36NA/j4ybMHE cICWsD7fVVZRL5vCAoijnrFA4WQ+VmtWjf3eFavrMyGRac6WLGjWxoWUbsyvvQ5PO0+d B/J1ONVZGcRCd+lS5St/nbtsyNg+4ELJxFmKxB0TCIgUsdTZHV4KEqhZ7In8XnU8ACZk je2Q== X-Gm-Message-State: AOAM533MYyojRKhuRukwdIa4UzB8CnUNPbThqDJy34kX9WK31esAVi0F cYNwpu4oCw7qJ6lLvkJQ7XA= X-Google-Smtp-Source: ABdhPJxwtx6DE4giBh/lTEgKbmIrZMP/Ul3scI0f2XYaq7kX2E6u67YaYVesBjVrYva0qVCwaujJ5A== X-Received: by 2002:a17:902:8e89:: with SMTP id bg9mr1025458plb.126.1597263644151; Wed, 12 Aug 2020 13:20:44 -0700 (PDT) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id 75sm3292999pfx.187.2020.08.12.13.20.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2020 13:20:43 -0700 (PDT) From: Al Cooper To: linux-kernel@vger.kernel.org Subject: [PATCH 0/3] usb: Add driver for USB signal re-mapper Date: Wed, 12 Aug 2020 16:20:15 -0400 Message-Id: <20200812202018.49046-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-20200812_162047_766162_58E51030 X-CRM114-Status: GOOD ( 14.93 ) 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:643 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [alcooperx[at]gmail.com] -0.0 SPF_PASS SPF: sender matches 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 , 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 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 (3): dt-bindings: Add support for Broadcom USB pin map driver usb: Add driver to allow any GPIO to be used for 7211 USB signals usb: Add Kconfig and Makefile changes to build brcmstb-usb-pinmap .../bindings/usb/brcm,usb-pinmap.yaml | 63 ++++ MAINTAINERS | 8 + drivers/usb/host/Kconfig | 4 + drivers/usb/host/Makefile | 1 + drivers/usb/host/brcmstb-usb-pinmap.c | 348 ++++++++++++++++++ 5 files changed, 424 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/brcm,usb-pinmap.yaml create mode 100644 drivers/usb/host/brcmstb-usb-pinmap.c