Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033182AbbKEPmj (ORCPT ); Thu, 5 Nov 2015 10:42:39 -0500 Received: from mail-yk0-f181.google.com ([209.85.160.181]:34043 "EHLO mail-yk0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030685AbbKEPmh (ORCPT ); Thu, 5 Nov 2015 10:42:37 -0500 MIME-Version: 1.0 X-Originating-IP: [181.120.163.21] In-Reply-To: <20151105151559.GA16666@lunn.ch> References: <563B3749.50701@free.fr> <20151105151559.GA16666@lunn.ch> Date: Thu, 5 Nov 2015 12:42:33 -0300 Message-ID: Subject: Re: Grafting old platform drivers onto a new DT kernel From: Javier Martinez Canillas To: Andrew Lunn Cc: Mason , LKML , Linux ARM Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1079 Lines: 25 Hello, On Thu, Nov 5, 2015 at 12:15 PM, Andrew Lunn wrote: >> Since I don't have time to rewrite the drivers at the moment, I'm wondering >> if it's possible to "graft" old drivers (they're using the platform API, no >> trace of DT support) onto my small base? > > Platform drivers are still usable with DT systems. We used that fact > when converting platform based machines over to DT, one driver at a > time. Look in the git history for kirkwood devices. e.g. somewhere > around v3.7, arch/arm/mach-kirkwood. board-dt.c, and the various > board-*.c files, and the DT files in the usual place. > OMAP did the same and still some boards use platform data and manually register platform devices from board code. Take a look to arch/arm/mach-omap2/pdata-quirks.c to see how that is being done. Best regards, Javier -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/