Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4083135imm; Mon, 25 Jun 2018 09:25:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKcy3rU3HQ184nGXMzgAirhWvYqTaTIkk+sTrLvHDzTIjb3ESj1SrWUT90hpayevlPy56Iu X-Received: by 2002:a17:902:a3:: with SMTP id a32-v6mr13339685pla.62.1529943926313; Mon, 25 Jun 2018 09:25:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529943926; cv=none; d=google.com; s=arc-20160816; b=Edq6bQPgS9mzbTJdM43FTJD+3aNcfILykc2gyFL5+iMA3gAbADb5g/NjHCUESuxFqj aCBxiqx7VPooJf4R/20/hEoBXDqsPvKYPy6hktquxA4++GtFwhWECYWFP+p3c/nCXGFZ ZcmstaFUIY1dscQCNy/5wXZGUqc4cNrAtfzxc7r2wGPgoyya7UAZpl/KC2knKiRRFcRn xWX8MrEbPjvEGfNUuth4Dtg6b4BHP6imJbQPCnT5oHcCH1IcKWIzhnKENEdOq8oj5FMR WZRtlWe9ADgacwuOi2LT5Rd6pbeUlt1zrcnCZGRu1Jpntr68f12dlhZoN0Cgt+f0/70B 7mdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=nSJdkIHoSZPbWDl725TldO+8C/CZaIidvzHbVqbgSOc=; b=sVhqDIhOdqnON+3qCJ2ODzXepPnx2GrGxdWERTpMWhIlxPME8RVKjxP4A1q1vOgS4u gnsVNTqPRn3sfBLp5K6WQ9SpFYg/lcG34LB9ySUMuFkEuzwyy8/ko6tB6FmybJI0Xy0h yGFEwAWbU8Vu/LI1IQt6sWjoiAYVPoIq1Xt3/gEEN4KvBwyW3EBqna/XepWnztGoyuYd EG5kZ8RZyUy0CnbyQCUYdEBXyH7fop7OeoZfDnZjhMWPaJlUa2aOtpK7BYg9S8zj5Qhk IP2+EkSDG8TDHboeylJvXp0HiyE5GnK/QnKsjusvLY+/stRknYlRTw67xFdWVmnv7RkK qrPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=uIrEjdny; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9-v6si5767060plp.166.2018.06.25.09.25.11; Mon, 25 Jun 2018 09:25:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=uIrEjdny; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933423AbeFYQXg (ORCPT + 99 others); Mon, 25 Jun 2018 12:23:36 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:36941 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752286AbeFYQXd (ORCPT ); Mon, 25 Jun 2018 12:23:33 -0400 Received: by mail-ot0-f195.google.com with SMTP id u6-v6so7527807otk.4 for ; Mon, 25 Jun 2018 09:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nSJdkIHoSZPbWDl725TldO+8C/CZaIidvzHbVqbgSOc=; b=uIrEjdny1bPa6duSbjH8UADJBsJDXj6KStaR5+elaLn/IpJdutrQVpcUquLKYkNpo6 PBSmCvdoQGaGGfpGBDAL96oy6kUFhxJhi2SgQi82LMih662EyCitMmAe1vVzl7y9f6pl 3AI2LcJdZ/t8cWl63kpcU9stEJp7iWi87gnToR0/2HQSv+DCIl6PldzxHKEKKxBQAtdq Vf7hvKBW4Ut0aYjGQeflp4dvmqsCr8LJX5lVJfinyoWG25mAEBN/1RzTIR/6u35CPK8s hOy43bZnI6xIhs4xht1mVio0uV0wvIjc4tG839wavfC1w7GDjyRcB+giyeK45WMMhWLy t07w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nSJdkIHoSZPbWDl725TldO+8C/CZaIidvzHbVqbgSOc=; b=RHNePLETu9wGkVKmpyli05RGd1phJ87yorCJ7gIsDVTDQZW/+085/zH1rvBppt+FHL a4/1eQqvSPVZGZz4073HYbQ6mKro95jAfYnaknizJueRsK5o8BQlbUh9+npEMdvogMO4 cC/RH/WOchSsqIpyjm9TaKjgK6hfiYdfsetaKWi3LBKzq4c6KTZAMkSYUF4xgjiCdAGL Yfg1xesvsyZw/LeluD6NURHOBTPm3iV+MOuRupZl3HuKB5zkb8c1g5TbLQ2D3kgbKsTA CIoxo+T4JDSGE+4YlVvOGpXElyDmpFBc5EqlnDe8FYrYxYH28pICfjZ5qwsqG5frOUxf LT3Q== X-Gm-Message-State: APt69E11gqYiyZE+eKaS4CffLELToNIeU+gkalXYfuAiOJN1o+iXr76A AiBp+VDlhr1zqp6PxPFh2ArxcSxKyZpQ0ZGvHj/8Ew== X-Received: by 2002:a9d:5a99:: with SMTP id w25-v6mr7536609oth.130.1529943812622; Mon, 25 Jun 2018 09:23:32 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:2c15:0:0:0:0:0 with HTTP; Mon, 25 Jun 2018 09:23:32 -0700 (PDT) In-Reply-To: <0e4bc2fb-15fc-6422-a4a3-0918adf0b1b3@lechnology.com> References: <20180625152920.11549-1-brgl@bgdev.pl> <20180625152920.11549-7-brgl@bgdev.pl> <0e4bc2fb-15fc-6422-a4a3-0918adf0b1b3@lechnology.com> From: Bartosz Golaszewski Date: Mon, 25 Jun 2018 18:23:32 +0200 Message-ID: Subject: Re: [PATCH 6/9] ARM: davinci: da830-evm: use aemif platform driver To: David Lechner Cc: Bartosz Golaszewski , Sekhar Nori , Kevin Hilman , Russell King , Michael Turquette , Stephen Boyd , arm-soc , LKML , linux-clk Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-06-25 18:20 GMT+02:00 David Lechner : > On 06/25/2018 10:29 AM, Bartosz Golaszewski wrote: >> >> From: Bartosz Golaszewski >> >> We now support board files in the aemif driver. Register a platform >> device instead of using the handcrafted API in da830-evm. >> >> Signed-off-by: Bartosz Golaszewski >> --- >> arch/arm/mach-davinci/board-da830-evm.c | 56 +++++++++++++++++++------ >> 1 file changed, 44 insertions(+), 12 deletions(-) >> >> diff --git a/arch/arm/mach-davinci/board-da830-evm.c >> b/arch/arm/mach-davinci/board-da830-evm.c >> index b2470141dba3..666db3cee08a 100644 >> --- a/arch/arm/mach-davinci/board-da830-evm.c >> +++ b/arch/arm/mach-davinci/board-da830-evm.c >> @@ -28,6 +28,7 @@ >> #include >> #include >> #include >> +#include >> #include >> #include >> @@ -333,14 +334,48 @@ static struct resource da830_evm_nand_resources[] = >> { >> }, >> }; >> -static struct platform_device da830_evm_nand_device = { >> - .name = "davinci_nand", >> - .id = 1, >> - .dev = { >> - .platform_data = &da830_evm_nand_pdata, >> +static struct platform_device da830_evm_aemif_devices[] = { >> + { >> + .name = "davinci_nand", >> + .id = 1, > > > Actually, now that I've thought about it some more. It probably > makes more sense to make all of the "davinci_nand" devices in this > series use id = -1 since there is only one per board. It looks like > da850 is the only one that has a lookup for "davinic_nand.0" already. > > I think that we are going to have to add clock lookups for the > "davinci_nand" devices as well. Although the driver doesn't do > clk_get() explicitly, I think some function it calls does get a > clock. I remember that we had to add a clock-ranges property to > device tree to get the davinci_nand driver working, which is why > I think we are going to need a clock lookup for these devices > as well. > Seems like ever since commit a8e3923ab571 ("mtd: rawnand: davinci: don't acquire and enable clock") we no longer need to worry about the clock entries for nand. Thanks, Bart