From patchwork Fri Feb 18 16:15:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 543852 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 5CAA5C433F5 for ; Fri, 18 Feb 2022 16:15:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236950AbiBRQPw (ORCPT ); Fri, 18 Feb 2022 11:15:52 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237573AbiBRQPs (ORCPT ); Fri, 18 Feb 2022 11:15:48 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD29A2B2FC2 for ; Fri, 18 Feb 2022 08:15:31 -0800 (PST) Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id B06F940300 for ; Fri, 18 Feb 2022 16:15:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1645200927; bh=zU8PHhdXJ/Ueh121b9Q6oYq5mxpNaWQJcLKghCGJuJg=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=M12UUrx2HT3nJUtjmqoggHUbECHNBS82JtAWNw3fzVlA4nCnihIG9D84gJTEbve+B +xvTj7j7TkA+I0cnrJcrtnd2KqO0b8/25c/4gdS/o0pBbhPJIimeqMo7oApxKtI49o fXCatzU9romxxGuxxTrKCt5COkWkjT43ypCij9Ug76/7BSHtKFRa9bdVeRtVxGtYL3 Jh8Bt1qqtldmZQALAMxo7t6opcfcg8MYbRcKAFO28e79EITaIwWAebPEBHxpmXhALD YoYTTYBWewTgRpjjKftdspggXvQw1wudiUpGiFhOnHV4BJfGwYFYBqznXCnv0BC9x3 TLZ9NG5jgkbzg== Received: by mail-ed1-f72.google.com with SMTP id r11-20020a508d8b000000b00410a4fa4768so5741507edh.9 for ; Fri, 18 Feb 2022 08:15:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zU8PHhdXJ/Ueh121b9Q6oYq5mxpNaWQJcLKghCGJuJg=; b=wo1AavsBhIGdxVovX+MlNZA74VgR6LTIf2iOjmT3QbzYh7FdJVYvvCULsRrswk5syS SgGo/YKKb1UqYYmrY4OwYggWAKihymp610jhoqBTDQ0592HLbuP1noslkSWKgfX2VKqa 0ayfCERd+OvCfxrd2mK3fDXMqEq4PRR5A571YdIVCk2a3B7rF0OV5WzLr7HTLMMXOn+k ooO2aqHHtm3Me4fD3h7OUpCs3tHgFSCYJ8zJjK5ytrOGDoT+VihWqNmQl9c7o5/rAAYn vbao89bNOG6JniV3kdXzJFIJHqr9ABWHf6B9cMRUuVYgAEQ8hBijRb1HmSBdfR8jazG1 DPgg== X-Gm-Message-State: AOAM530KnoVBa+XU4TEdLWFzhbnHHTF+09wonHMzk50ZLPBJGhSxXd1H IupHipwz9RRdZpRE5XdLNR5vB3v7w2z2zAbitZBf6kkU9hpZDfsowi8LmTaq1RXSEfm8eHZgyYy M42yY12B/Ou2DbdCuJv+snSHeT2/9al+7Sg/T7oU= X-Received: by 2002:a17:906:2ad3:b0:6ce:3662:8d68 with SMTP id m19-20020a1709062ad300b006ce36628d68mr7033231eje.71.1645200927399; Fri, 18 Feb 2022 08:15:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/wkrF7krrpsgkdvOicdEcCrW3UqlmOyhO7J1hrmzKSDRnQT9+nScW8jsxPc1cVoroQAhx+A== X-Received: by 2002:a17:906:2ad3:b0:6ce:3662:8d68 with SMTP id m19-20020a1709062ad300b006ce36628d68mr7033218eje.71.1645200927228; Fri, 18 Feb 2022 08:15:27 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-181-108.adslplus.ch. [188.155.181.108]) by smtp.gmail.com with ESMTPSA id y21sm2325572ejq.185.2022.02.18.08.15.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 08:15:26 -0800 (PST) From: Krzysztof Kozlowski To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Dinh Nguyen , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] dt-bindings: usb: dwc2: add iommus Date: Fri, 18 Feb 2022 17:15:20 +0100 Message-Id: <20220218161522.52044-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220218161522.52044-1-krzysztof.kozlowski@canonical.com> References: <20220218161522.52044-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The DWC2 node might use IOMMU (e.g. Altera Stratix10), so add "iommus" property. This fixes warnings like: arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dt.yaml: usb@ffb40000: 'iommus' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Documentation/devicetree/bindings/usb/dwc2.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/dwc2.yaml b/Documentation/devicetree/bindings/usb/dwc2.yaml index 048e352c531a..1ba96706bbcb 100644 --- a/Documentation/devicetree/bindings/usb/dwc2.yaml +++ b/Documentation/devicetree/bindings/usb/dwc2.yaml @@ -68,6 +68,9 @@ properties: items: - const: otg + iommus: + maxItems: 1 + resets: items: - description: common reset From patchwork Fri Feb 18 16:15:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 543851 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 A9F17C4332F for ; Fri, 18 Feb 2022 16:15:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237571AbiBRQPx (ORCPT ); Fri, 18 Feb 2022 11:15:53 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237580AbiBRQPt (ORCPT ); Fri, 18 Feb 2022 11:15:49 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02C6B294FDF for ; Fri, 18 Feb 2022 08:15:33 -0800 (PST) Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 7A173405B3 for ; Fri, 18 Feb 2022 16:15:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1645200929; bh=Fdez1AmqlsBKbf0sdm0whcYqGiEOg3dPughdxsguAXI=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=NXI4erxcLg4wnIgsuHh0kFmU5I2lWf8FCMhIVgrGw8TBrb6T5DFUUGDfwyW5M5+oz ULtAfAVKWlILygLKj5zQ4L+10h8RgQHxNRWrNgWmKo3ov1kfoJV6hLULvMk6ZEWP9v ttra0hLl1n/I+E/GUF/TEDoheWpD7u1PluBhd08q9wh34/o5fLQaw64QKKXWuAzx9i 0GmIkW56z8e1ADl40PeWqlO+XfNqCLNIWW8PP9bdjeA9yvA5rPXHQ6aJ47+Bxh2d/Y iq5PFOXIDK480EasAOcBLII3u12EhylNxRid+p8YC5fTIv7I6ejS9Uzq6PoGiSOBMh A+TOvXSYo/awA== Received: by mail-ed1-f71.google.com with SMTP id r9-20020a05640251c900b00412d54ea618so118644edd.3 for ; Fri, 18 Feb 2022 08:15:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Fdez1AmqlsBKbf0sdm0whcYqGiEOg3dPughdxsguAXI=; b=D5wM//D8T6Ce0sLkOpfOlDTU6mXS2yrtk6CBrHtD6X877d5k8fnayK+oTIPeV3UAJ5 WJtpH2Q6DSKFxKw9pKAbPNzlcQEAk6BVzO6F9Yhp4NgdRLTRESqZGbQ/ZyV5nqqdbrls PKqQX0qzeqbjmQq0wSLdk5Ah4kAQMoigvyOcVSzQ9bJ6n6pcR/ArjiK+d4LpSX83yrzT K3xezhDU41AnhHkKMcBa9JZI4d9GZDoG7lfPOfbJIIWgjCA1bNp7CTM3bHP5qRtuZfHy FTwtbemxQMWa9N0h5c+NVHHV4rIX+Iq5CrqD+1Yv1HQJx7e3S4BHLGXfw2LQ/Gt89RqJ AXeA== X-Gm-Message-State: AOAM533VM1NVVtd9WFQdcn+H9DB4t0sA5qsXgowo5UCh7OFAvbaGynP6 sxV1xp/gdLLzrYsgFAKZ/hNVkZwcVkjLgRrJcq7slIFdBVpPVoDKuY0LXQq1Vg5jQ7IoERTHPHd gG4K+aNSNCJ37b+4hKlQrt/gU+7pIccQq5Rm9uas= X-Received: by 2002:a17:907:7053:b0:6a6:b835:dbd3 with SMTP id ws19-20020a170907705300b006a6b835dbd3mr6755940ejb.190.1645200928925; Fri, 18 Feb 2022 08:15:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxif3aG4j6jnGHwS6RzVrgD+2IJjpK+S4H+3CmJ2oLVH02iXXbrxboKEJzUTsWoN3HnciK9Tg== X-Received: by 2002:a17:907:7053:b0:6a6:b835:dbd3 with SMTP id ws19-20020a170907705300b006a6b835dbd3mr6755917ejb.190.1645200928644; Fri, 18 Feb 2022 08:15:28 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-181-108.adslplus.ch. [188.155.181.108]) by smtp.gmail.com with ESMTPSA id y21sm2325572ejq.185.2022.02.18.08.15.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 08:15:28 -0800 (PST) From: Krzysztof Kozlowski To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Dinh Nguyen , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] dt-bindings: usb: dwc2: add disable-over-current Date: Fri, 18 Feb 2022 17:15:21 +0100 Message-Id: <20220218161522.52044-3-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220218161522.52044-1-krzysztof.kozlowski@canonical.com> References: <20220218161522.52044-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The driver parses disable-over-current protection and some implementations use it (e.g. Altera Stratix10), so document it in the bindings. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/usb/dwc2.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/dwc2.yaml b/Documentation/devicetree/bindings/usb/dwc2.yaml index 1ba96706bbcb..1addab83f4fd 100644 --- a/Documentation/devicetree/bindings/usb/dwc2.yaml +++ b/Documentation/devicetree/bindings/usb/dwc2.yaml @@ -68,6 +68,10 @@ properties: items: - const: otg + disable-over-current: + type: boolean + description: whether to disable detection of over-current condition. + iommus: maxItems: 1