Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964889AbcKWSG6 (ORCPT ); Wed, 23 Nov 2016 13:06:58 -0500 Received: from mail-wj0-f176.google.com ([209.85.210.176]:35524 "EHLO mail-wj0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753068AbcKWSG4 (ORCPT ); Wed, 23 Nov 2016 13:06:56 -0500 From: Axel Haslam To: gregkh@linuxfoundation.org, nsekhar@ti.com, khilman@baylibre.com, david@lechnology.com, ptitiano@baylibre.com Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Axel Haslam Subject: [PATCHv7 0/5] SB: ohci-da8xx: Add device tree support Date: Wed, 23 Nov 2016 19:06:44 +0100 Message-Id: <20161123180649.6438-1-ahaslam@baylibre.com> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2508 Lines: 65 When booting using device tree, we can not make use of platform callbacks to handle vbus and over current gpios. This series allows the ohci-da8xx driver to use a regulator instead of the platform callbacks to control vbus and adds the device tree bindings to be able to probe using DT. Once all users of the platform callbacks will be converted to use a regulator, we will be able to remove platform data completely. **DEPENDENCY**: These patches depend on a regulator patch that is merged into linux-next, but not yet on usb-next: regulator: core: Add new API to poll for error conditions https://lkml.org/lkml/2016/11/3/191 Changes from v6->v7 * remove print on over current event as the usb core already does it (David) * fix ocic mask for regulator event (David) * spelling fix and tested-by on first patch. * skip error message on probe defer from regulator (David) Changes from v5->v6 * Fix regulator over current flag check (David) * Spelling fixes and code cleanups (David) * add Ack for device tree binding Changes from v4->v5 * Append the Device tree patches to v4. * Submit only the first part of the series (no dependencies). this can be applied and merged through the usb tree. Changes from v3->v4 * separate the series into smaller series for driver and arch/arm code, to ease review and merging to different trees. Changes form v2->v3 * drop patches that have been integrated to arch/arm * drop regulator patches which will be integrated through regulator tree * use of the accepted regulator API to get over current status * better patch separation with the use of wrappers Changes from v1->v2 * Rebased and added patch to make ohci a separate driver * Use a regulator instead of handling Gpios (David Lechner) * Add an over current mode to regulator framework * Fixed regulator is able to register for and over current irq * Added patch by Alexandre to remove build warnings * Moved global variables into private hcd structure. Axel Haslam (5): USB: ohci: da8xx: use ohci priv data instead of globals USB: ohci: da8xx: Add wrappers for platform callbacks USB: ohci: da8xx: Allow a regulator to handle VBUS USB: ohci: da8xx: Add devicetree bindings USB: ohci: da8xx: Allow probing from DT .../devicetree/bindings/usb/ohci-da8xx.txt | 23 ++ drivers/usb/host/ohci-da8xx.c | 290 +++++++++++++++++---- 2 files changed, 263 insertions(+), 50 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/ohci-da8xx.txt -- 2.9.3