From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932419AbbBPP4f (ORCPT ); Mon, 16 Feb 2015 10:56:35 -0500 Received: from smarthost.TechFak.Uni-Bielefeld.DE ([129.70.137.17]:43191 "EHLO smarthost.TechFak.Uni-Bielefeld.DE" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755839AbbBPPtI (ORCPT ); Mon, 16 Feb 2015 10:49:08 -0500 From: Robert ABEL To: khilman@deeprootsystems.com, tony@atomide.com, linux@arm.linux.org.uk, linux-omap@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Robert ABEL Subject: [PATCH 0/4] ARM OMAP2+ GPMC: various fixes and bus children Date: Mon, 16 Feb 2015 16:48:57 +0100 Message-Id: <1424101741-24152-1-git-send-email-rabel@cit-ec.uni-bielefeld.de> X-Mailer: git-send-email 2.3.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I found a few more bugs in the GPMC driver. The first three patches should be self-explanatory: *debug output was unaligned --> align it *GPMCFCLKDIVIDER is used in all use cases --> always program it *WAITMONITORINGTIME was computed in FCLK ticks instead of CLK ticks --> compute in CLK ticks The last patch adds bus children to the GPMC. Currently, the GPMC driver only supports direct children, which means one child with unique settings per CS region. This patch adds explicit code inside the GPMC driver to probe for busses and instantiate their children. (As opposed to adding the GPMC to of_default_bus_match_table so it would be matched when the DT is first populated.) GPMC properties apply to busses as well as direct children and map to whole CS regions. Example: &gpmc { ranges = ; my_bus: nor@0,0x0000 { /* CS0; offset 0x0000 */ compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; ranges = ; reg = ; bank-width = <2>; /* GPMC_DEVWIDTH_16BIT */ gpmc,sync-read; gpmc,sync-write; gpmc,sync-clk-ps = ...; ... etc. ... reg-io-width = <2>; my_subdev0: subdev@0x0000 { /* address 0x0000 */ compatible = "my,driver0"; reg = ; }; ... etc. ... my_subdevN: subdev@0x8000 { /* address 0x8000 */ compatible = "my,driverN"; reg = ; }; }; }; Robert ABEL (4): ARM OMAP2+ GPMC: fix debug output alignment ARM OMAP2+ GPMC: always program GPMCFCLKDIVIDER ARM OMAP2+ GPMC: fix WAITMONITORINGTIME divider bug ARM OMAP2+ GPMC: add bus children arch/arm/mach-omap2/gpmc.c | 105 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 81 insertions(+), 24 deletions(-) -- 2.3.0