From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C564C433DF for ; Wed, 12 Aug 2020 20:22:10 +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 0F0E8206DA for ; Wed, 12 Aug 2020 20:22:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JNW19fWF"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ghoiSEhj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0F0E8206DA 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+linux-arm-kernel=archiver.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:References:In-Reply-To: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:List-Owner; bh=N8JxLKe8pMAMg+V9+DIatZN+U7YCcJFhyJw6UECRaeQ=; b=JNW19fWFFNM46cnbDs5uiegjk0 884bNshosGw1U33vLYFfkfA8GjOCOhi94lTROKfWRuFOI9NpMZDWqijizLBl5nc7zkxCpVI8kGoDd i0vH4FMrN1npBCcfzDpTUkiCwEZqvqCa2xzL7C+NGOdxgTm2zWC1rwQ0xHo7U8pjlJ055lsjMV70G dyqxdzB4hcWW9x8BxOcuR8duAffdX/smv2+cUnxOaudI2kejaaccDm1RkGNIh0HrT8FtwsmRXMG1s s/wxS+SNRNBN39uC3I4Gg/shTqHCDM9YuZM3RDLLZdnl4dVZAGR8rt5DTAvQGrV3i3cL2e9MpS8v6 RPGTIVZg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k5xEz-0004DF-1R; Wed, 12 Aug 2020 20:20:53 +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 1k5xEw-0004CP-C9 for linux-arm-kernel@lists.infradead.org; Wed, 12 Aug 2020 20:20:51 +0000 Received: by mail-pl1-x643.google.com with SMTP id p1so1610901pls.4 for ; Wed, 12 Aug 2020 13:20:50 -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:in-reply-to:references; bh=o8xWeiFcuqMpOpznRWNhlTz5KRrSm7Nj77jg3nbd+YY=; b=ghoiSEhjlNenhfjUiqEhtHT9xEiKodA/KyVdxYA+q1jzK5Kq2PalXgpwTQTOSGhr/D yPthOpYAbqrYOdERbK5IGo5vahuJujvMHQGTAtAI+ANScrfvbjZVsB/R17oxaxT/R+R3 MAQDmzDLCko8fqww5DbIOW8Le0egNGZ3hIv5vq7V2VLXYXReBUXFviOcVpC4gNCpnGKk MHl7MY0Hk2gAKtqfprMa1ic+A+JCCNdB6J8aK3i/Agi2gsK4QNIg//RMKBpZ9Xs8nfUz VKqIgW5ECgpge+5NQbe8cc7yiAS1srqRlDjeqESk9+V+Azuo4Lc6WlxFXR5Hw+DuX5FG jXAw== 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:in-reply-to :references; bh=o8xWeiFcuqMpOpznRWNhlTz5KRrSm7Nj77jg3nbd+YY=; b=J46+k2Gj6UV+6ZbFWN+ILJudRxIXi4c4N+SWhFSJOlsh2ksW/2vFU/RKdLj6N6ja7/ uFYTUAi72VtCjpuSzcMuloVRLJ4dhlfftkz6WAFrQ2Dj2Ufag8bb5KI68MbZBbqgDyTK 5Rv5ZuFm5XUz+DgAJfH8fY25xh2uoqlvB7+CWSWy/DkylVctKDQseVIed3KEwL8PEl5O n18MZoiF9rbO9bPvwY6aZz0M79e3S5XNEUS0oRWpXc+MpxgCosVNBVOeh7Z2nOvHFLRd 57jLeTMefXGq/X2x4N75/UpkHgrxZRT8cRI0FnJpK48RN+uHn4WYYbVFgBdKXuM2SmvG VYpA== X-Gm-Message-State: AOAM533EvdUtRnqWltN97DdCipIdebH0iDJS6FuMhQQ+RLbkAKaPFoq6 wmLY/PhWMa6jLGLUe1C0+wo= X-Google-Smtp-Source: ABdhPJwqF3Ok8rRvsRYSx70jxMSy7K7/99FFjbKgtm+2NO2ANq7B770iVO9Ft0oaXXCmzTfNn8pAww== X-Received: by 2002:a17:90a:3aa6:: with SMTP id b35mr1699627pjc.69.1597263648730; Wed, 12 Aug 2020 13:20:48 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2020 13:20:48 -0700 (PDT) From: Al Cooper To: linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: Add support for Broadcom USB pin map driver Date: Wed, 12 Aug 2020 16:20:16 -0400 Message-Id: <20200812202018.49046-2-alcooperx@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200812202018.49046-1-alcooperx@gmail.com> References: <20200812202018.49046-1-alcooperx@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200812_162050_540759_9B98CB71 X-CRM114-Status: GOOD ( 17.70 ) 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add DT bindings for the Broadcom USB pin map driver. This driver allows some USB input and output signals to be mapped to any GPIO instead of the normal dedicated pins to/from the XHCI controller. Signed-off-by: Al Cooper --- .../bindings/usb/brcm,usb-pinmap.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/brcm,usb-pinmap.yaml diff --git a/Documentation/devicetree/bindings/usb/brcm,usb-pinmap.yaml b/Documentation/devicetree/bindings/usb/brcm,usb-pinmap.yaml new file mode 100644 index 000000000000..19cf6ad36373 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/brcm,usb-pinmap.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/brcm,usb-pinmap.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom USB pin map Controller Device Tree Bindings + +maintainers: + - Al Cooper + +properties: + compatible: + items: + - const: brcm,usb-pinmap + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + description: Must be defined if any out-gpios are specified. + + in-gpios: + description: Array of one or more GPIO pins used for input signals. + + in-names: + description: Array of input signal names, one per gpio in in-gpios. + + in-masks: + description: Array of enable and mask pairs, one per gpio in-gpios. + + out-gpios: + description: Array of one or more GPIO pins used for output signals. + + out-names: + description: Array of output signal names, one per gpio in out-gpios. + + out-masks: + description: Array of enable, value, changed and clear masks, one + per gpio in out-gpios. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + usb_pinmap: usb-pinmap@22000d0 { + compatible = "brcm,usb-pinmap"; + reg = <0x22000d0 0x4>; + in-gpios = <&gpio 18 0>, <&gpio 19 0>; + in-names = "VBUS", "PWRFLT"; + in-masks = <0x8000 0x40000 0x10000 0x80000>; + out-gpios = <&gpio 20 0>; + out-names = "PWRON"; + out-masks = <0x20000 0x800000 0x400000 0x200000>; + interrupts = <0x0 0xb2 0x4>; + }; + +... -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel