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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,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 7C9C9C433ED for ; Wed, 12 May 2021 09:05:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3916961403 for ; Wed, 12 May 2021 09:05:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230216AbhELJGq (ORCPT ); Wed, 12 May 2021 05:06:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230310AbhELJGp (ORCPT ); Wed, 12 May 2021 05:06:45 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 704B0C061574 for ; Wed, 12 May 2021 02:05:36 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id l18-20020a1ced120000b029014c1adff1edso257965wmh.4 for ; Wed, 12 May 2021 02:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gO8AvgLl9HFwqndaKVktinmxN0+f5bMhA1/IrCpeuLw=; b=gweUI3Z2x56LzGv1EiyZDz1pOcoKiLp+yk0pZUBekX7/Ph8skI6t9mdUQzIfKljBPG 5sO4UffjhQNkqVu8CRfqTF4FEjy4mHIY5xc6WhmmQRY1ETeKuuHalaG6ZBqcF2sm1Ck1 t2SBbIT7PGZU+f5A/OmV8E/neWXFbtrUM2dVYRtztS7R0oIJkcvkTpnu/nvKw9Z7jOlO gJ3J3cxqfbEQlTpAOmH2awIRlmZ54Tb2cuWJ65kDZ3LrQ6J+cDjwxI4Ub13C+A+xvAEg 2WPYvASGem8WfgZb85o3MfckQyfXFgmHRh9sMtFMB9ge97z3aMSz6twlhXNVRS0Z8VZ+ PrqA== 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:mime-version :content-transfer-encoding; bh=gO8AvgLl9HFwqndaKVktinmxN0+f5bMhA1/IrCpeuLw=; b=XmCLR/FyrPKbwAnmBezd3B6kCN1qRFAL1BWNwfw1E/EOdBh8EmAkk+cAk6GN4FG8AU idgkKFJKuZNHDDmGfD4jpE90vpR9oyn4N4U0zZeixpwm3QENRDdM6U8Gb3XLdJD+eO7D AUlGR8afEW6j4W/EPaj/Joo0QGsEvDK0+6ddfpW5ZOmiW6X8t/ch55ceQwcJuZbO8suC SP3h4YawpF4eVL3kSdy1KZGVIqmBL7F6Sz2TfdO83CKXZLsNVRAZUV7FYa8IOvLXYG82 F3+6H7eOZYq30KsTpJazGDqWE+AvrQx1xXCk2b5aj+dRZV2Vhf3inXaMkZ8dyQ4eTxCu 1OGQ== X-Gm-Message-State: AOAM5322FFnBJuc5Q7hIsDPZu+cZ6sYFz6jooBjZT9mPiH9MhoqY0lxR Rk6vo40ClxtMzGqmMe7BH4W7Ag== X-Google-Smtp-Source: ABdhPJzHQuhFKWa14c7exMsNKVRS7mqH1vtZ1y2BqjqBQQcMjuP0/1Lgcs+jSL1/QNer7tKSMcB5uw== X-Received: by 2002:a7b:c94b:: with SMTP id i11mr26255290wml.120.1620810335099; Wed, 12 May 2021 02:05:35 -0700 (PDT) Received: from arch-thunder.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id v20sm26679451wmj.15.2021.05.12.02.05.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 02:05:34 -0700 (PDT) From: Rui Miguel Silva To: Greg Kroah-Hartman , Sebastian Siewior , Laurent Pinchart , Rob Herring Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, Rui Miguel Silva Subject: [PATCH v3 0/9] usb: isp1760: extend support for isp1763 Date: Wed, 12 May 2021 10:05:20 +0100 Message-Id: <20210512090529.2283637-1-rui.silva@linaro.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Arm MPS3 FPGA prototyping board [0] have an isp1763 [1] as USB controller. There is already support for the isp1760 and isp1761 in tree, this series extend the support also for the isp1763. Move register access using regmap, remove some platform data and code, refactor the mempool, use dr_mode to align to existing bindings, then add the support for isp1763 host mode, add bindings files that did not existed and at the end add also support for peripheral mode for isp1763. @Laurent and @Sebastian, I add both of you in the bindings files as maintainers (it is a mandatory field)since you were the ones which contributed with the initial code and peripheral code, let me know if you are ok with it. If yes I may send a follow up to add also entries in MAINTAINERS file that it is also missing. v2 [3] -> v3: kernel test bot: - add select REGMAP_MMIO v1 [2] -> v2: kernel test robot: - add two patches (1/9 and 3/9) to fix dozens of pre-existing sparse warnings so that this series does not introduce new ones. No sparse warning left. - fix duplication of regmap fields Laurent: - move initializers from .h to .c - change interrupt registers setup from field to one shot register setting (did not change hcd hw mode init because I think it did not make the difference and even avoid artifact around setting twice the register) Rob test bot: - fix suffix at compatible string to clean up warning in bindings Cheers, Rui [0]: https://developer.arm.com/tools-and-software/development-boards/fpga-prototyping-boards/mps3 [1]: https://media.digikey.com/pdf/Data%20Sheets/ST%20Ericsson%20PDFs/ISP1763A.pdf [2]: https://lore.kernel.org/linux-devicetree/20210504101910.18619-1-rui.silva@linaro.org/ [3]: https://lore.kernel.org/linux-usb/20210511085101.2081399-1-rui.silva@linaro.org/ Rui Miguel Silva (9): usb: isp1760: fix strict typechecking usb: isp1760: move to regmap for register access usb: isp1760: use relaxed primitives usb: isp1760: remove platform data struct and code usb: isp1760: hcd: refactor mempool config and setup usb: isp1760: use dr_mode binding usb: isp1760: add support for isp1763 dt-bindings: usb: nxp,isp1760: add bindings usb: isp1763: add peripheral mode .../devicetree/bindings/usb/nxp,isp1760.yaml | 59 + arch/arm/boot/dts/arm-realview-eb.dtsi | 2 +- arch/arm/boot/dts/arm-realview-pb1176.dts | 2 +- arch/arm/boot/dts/arm-realview-pb11mp.dts | 2 +- arch/arm/boot/dts/arm-realview-pbx.dtsi | 2 +- arch/arm/boot/dts/vexpress-v2m-rs1.dtsi | 2 +- arch/arm/boot/dts/vexpress-v2m.dtsi | 2 +- drivers/usb/isp1760/Kconfig | 5 +- drivers/usb/isp1760/isp1760-core.c | 513 ++++++++- drivers/usb/isp1760/isp1760-core.h | 44 +- drivers/usb/isp1760/isp1760-hcd.c | 1021 ++++++++++++----- drivers/usb/isp1760/isp1760-hcd.h | 57 +- drivers/usb/isp1760/isp1760-if.c | 41 +- drivers/usb/isp1760/isp1760-regs.h | 435 ++++--- drivers/usb/isp1760/isp1760-udc.c | 250 ++-- drivers/usb/isp1760/isp1760-udc.h | 13 +- include/linux/usb/isp1760.h | 19 - 17 files changed, 1759 insertions(+), 710 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/nxp,isp1760.yaml delete mode 100644 include/linux/usb/isp1760.h -- 2.31.1