From patchwork Tue May 4 10:19:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 430850 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3653108jao; Tue, 4 May 2021 03:19:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhpuVW3O07m7qS1xPa9wDSUJ361vR68hpVUXUhKe2rGXWhkzv25lVx+lcRrlVpTwr+Esj9 X-Received: by 2002:aa7:949b:0:b029:28e:b8fb:7c81 with SMTP id z27-20020aa7949b0000b029028eb8fb7c81mr6392102pfk.42.1620123584999; Tue, 04 May 2021 03:19:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620123584; cv=none; d=google.com; s=arc-20160816; b=T6+7Hjy3kh5aX2E4CQ5qTVd6e2eKKO0vtbzHhYRbF4OfhVcdraDgaPwAjT8BtZDrvc RWJNLGTHZv4Z5WR8keihQTQIkUbAjN+oKV2nsWIx4QVhjIfaqN0/ePTGEtOEiBY2rpby 1lkYdMm/OpPvvZyjuTqoEnw5oGo8JZyn7uZMYy6NoY6KLovIstruFNe96hRBczBZrz4K rKv+efVfL52ScGHMSgdNNknChvCyq5pXLF2W+a712om9sB9/t/WD2Ut9o8yUwvAmFuHV b7l4MHipCXYLboELHPUzaV6Fi8GVXrZwCVF0Zu/IEfu5PfAEmbKyi/MRzMoKsLCRYyR5 R+pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=XAhUPxTxNcQbbIvKvfzw25Jj6dy++zHmChRguXFSuUE=; b=yoV+lzo6iNwwpWOlnHl4LLB/W1RzSm4g7R87mJKY5jkCsRNjeRc4OFVujCsD5OUGVc c8e4GQRtkVBl3Xd5daKc+ocVoOMAAMO4VonB++kFqww+6xSHhNjSrEqq/t64mfoZ6m/2 J/SkTC9haZ3oYG8MayPlKWAkx3oVY1wsBVAB02oa+h2JAVNqa3RibZCOuP0Uf/ekq8Sx HzVXs6UDasizYcKffqOIWyAyrwTzO3ec/q2cNnL6RdXPj0KWclc6F4r3/4Hll+/1XQaF WiSMj8lM9UyBlh7nZAZwah2LmWuXeX5gcOg3CS63iQtVN2s9jAFgVXccHx6axf61Mrns 1xMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rK+wjiCA; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si2720213pgg.397.2021.05.04.03.19.44; Tue, 04 May 2021 03:19:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rK+wjiCA; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230169AbhEDKUi (ORCPT + 4 others); Tue, 4 May 2021 06:20:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230153AbhEDKUi (ORCPT ); Tue, 4 May 2021 06:20:38 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B79AAC061574 for ; Tue, 4 May 2021 03:19:42 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id h4so8731861wrt.12 for ; Tue, 04 May 2021 03:19:42 -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=XAhUPxTxNcQbbIvKvfzw25Jj6dy++zHmChRguXFSuUE=; b=rK+wjiCAQ8EQXDgXeeWkYRSfftNjM4d2OAXFccuy/5p9LC6MWlxq5Ecq+KCW7dSEdn VOiYK7H+FErl/x/rfdS6gFaISR/gn8U9P6jxBkDHX4cIgCoSGn8rtBNfia9KdX/DAj1M uvHMhRSu5kD7w2OyZ4i+IHs8z7CpGWnkig69Of3+vqVAACtZKty3ScCO8Y7XaFAUtPvl kDrFzdouw3oPfsTD7CMbfNUDuzbUqGDEtB1WDCmgYz+tKfk8OiMi8J1Q0RxgYrWjDL+K kTZLyB2JXw2Qf2hcMxXWlxZGBj3VB36qNo/f1miUcjHkch/cpVSYZ0KoIyN5cGpFyHu4 DWKA== 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=XAhUPxTxNcQbbIvKvfzw25Jj6dy++zHmChRguXFSuUE=; b=imNnx/mApaQf1eUprweLWbGPryixKhjgLZhO+XRzy8MNKw1aH53VbBhoCGlJWIC61p lNRC6RcZN26/3Uv/CLYGJ2ZPyCYWzjUKwT/5e9Azfh6F6Y7Fq9HtBdaZKCgoBFolq4u2 b/jeIBZsPeN6e69tHZTKQT5i2Y8m50k7d0dQkdDWkxrr97zX2EiOFhpSI2nlei67u4SO +MyTASO8PHAvDQxHZKpMMpVSx1saBt8fvMwoDjI6tsV9Kbo47UcRVxPrLXcMgtim/cCb 3FJ1ozVnXtVgJGUN3WwLc7W4VQPQr5vBdWGd2K3Xz3UlRRq1hwyFcL7qOeCDyKsrnBd/ t13Q== X-Gm-Message-State: AOAM532juhrW1OFifBv478ZJ5G4WOZYG+vd8xr87MW0JnCFp6Vpx2YZC O01Lfb2iiBf7cO0Od1h8fRs96g== X-Received: by 2002:a05:6000:1b06:: with SMTP id f6mr30280003wrz.339.1620123581323; Tue, 04 May 2021 03:19:41 -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 d5sm16293789wrv.43.2021.05.04.03.19.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 03:19:40 -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 0/7] usb: isp1760: extend support for isp1763 Date: Tue, 4 May 2021 11:19:03 +0100 Message-Id: <20210504101910.18619-1-rui.silva@linaro.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@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. 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 Rui Miguel Silva (7): usb: isp1760: move to regmap for register access 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 | 4 +- drivers/usb/isp1760/isp1760-core.c | 248 ++++- drivers/usb/isp1760/isp1760-core.h | 44 +- drivers/usb/isp1760/isp1760-hcd.c | 898 ++++++++++++------ drivers/usb/isp1760/isp1760-hcd.h | 57 +- drivers/usb/isp1760/isp1760-if.c | 41 +- drivers/usb/isp1760/isp1760-regs.h | 698 ++++++++++---- drivers/usb/isp1760/isp1760-udc.c | 240 +++-- drivers/usb/isp1760/isp1760-udc.h | 12 +- include/linux/usb/isp1760.h | 19 - 17 files changed, 1672 insertions(+), 660 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/nxp,isp1760.yaml delete mode 100644 include/linux/usb/isp1760.h -- 2.31.1