Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1656610imm; Wed, 16 May 2018 00:47:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq1+jUl057TSbzlGgSAVFl8QMNokkar3Za4fZfY7wBeNmSUnWZ168thtyvsszcQL15U0K9e X-Received: by 2002:a62:7682:: with SMTP id r124-v6mr18666820pfc.80.1526456866021; Wed, 16 May 2018 00:47:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526456865; cv=none; d=google.com; s=arc-20160816; b=QJ1D1uw6u9eT0wTQgorC9tae2VNIn5fMyni0wq49RJpVddU0aw77rMww+djzJzBRzq MPoXEIxH+zg8387U6xVBmuWuywh/qBnK8mvyo+dunWXKNojCZ06RTBi6wr972LHy1faO lLGPEDyXGVUS7QK1iS6jsRj16KOWuogtySxe7aca9gqjtCQVueSW5EHmv7IY0UuNxbbi tMXJ6UBnlLmd+4VMOi9ZHZir2LU3HgviOZtgDY7ztJp1rPanDTZxJfUviq13E1HnqU/F zk/b1+OxJqs4MMlvYDrUDvvP70HPixK6SKs8ZMsVIU+t8Hj/yhI9JMaDYums1mTEYwXx PQYA== 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=ix2/4vV2aq1m5UxgwYYbyYZ1yaNNd1qR+R01kQetK1g=; b=qF5mhUojbnFOzSgZLjvQnnKuZ5Efs1013snFMyfWQgoNpjfR9+F7jSfQp9bY/RI3TJ /GO5dKErnhINPcDy7RbK4m/www+mCPgDBcrHyxBPeIZ41KCN9iREpeaMLT2Ml9aP5rWK VpQwcuXT/1+UNGaG7ApcBdexKENGUVQNOoBBypY93mMnz1CBNsuX/2ozTNVbg767I7qR hVm6lt+se89J+0LTY8IyLrH/1+GiV4+qNaFcmds58rwChj7CD4lTzLKWEmdmA1tdp0qy pu+ehMBPdxslfFhlXgFYUbzHxqeOU0/0RfR94xDzTtiZuWEGF0GKY1eqPigMui08NaVv YgrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=MDDCPm12; 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 w5-v6si2129688pfi.88.2018.05.16.00.47.32; Wed, 16 May 2018 00:47:45 -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=MDDCPm12; 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 S1752382AbeEPHrX (ORCPT + 99 others); Wed, 16 May 2018 03:47:23 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:45044 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751608AbeEPHrV (ORCPT ); Wed, 16 May 2018 03:47:21 -0400 Received: by mail-ot0-f196.google.com with SMTP id g7-v6so3316446otj.11 for ; Wed, 16 May 2018 00:47:21 -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=ix2/4vV2aq1m5UxgwYYbyYZ1yaNNd1qR+R01kQetK1g=; b=MDDCPm12ogqNhDJLPIo54BzRWQ6ts2trzPoMHwecvg9GaewU6wQADcG3IqDgEiQ0jl O1Wmvq3bUROOSjSqZ5ZIPXXw+SUMeArf8MsLRw9RrU0XHTvZNNaTnQkPeg/xXfdrBH8u 4Xm4Fp2KzgdlhcyDTNntzCK0/0KoY8DtVc2aEOz4ICEdvAc7ollJeAAZDGxeg5q5Kttd rrejGCMSl8eQKY7W4zZnbJHd0l0KD7sAdLZk8T7BISzoGaeiuus3aNWd4uEQ4WTtr+54 xDVc/AzAW+Fg7E8MdddM5zY9+oZhCW69CEgF2uHkwl8f91KWJpEJ8obAeQnbyKsUZT4z Y96Q== 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=ix2/4vV2aq1m5UxgwYYbyYZ1yaNNd1qR+R01kQetK1g=; b=F75y2xTL8f2KMY2TmPn3sMg7s4MXzLc6Rxsd12qaXeBMWIj8TrZU5qixha/uN29Sg1 nCGJB6S6yuCmIPRnHNPOmwTCgs8ImQtnO2avX3kTbuxRl+MYrDJwrLnrAd5Qh/bu+RNU 73eXs4OYBvWF/AG4VgiuiX9/pS7f7UQ3Hd86j1RqnFo0HGMus0dDP3BH1yJC8uDMBT0B ILaRN5Guu/mHYjOnzBs4ofDF2LgFAGOILBeMjEZ1+z7qrBayGeofYz7MOKCJn3jhAhly 299C4VvyUqbL1ErWpTQS3nPvKwT0Vx/8hz1Mho/XOB06TdStwuDYZcCGxq7XndZBypBv svzA== X-Gm-Message-State: ALKqPwcuA2nWBL0vLTnfp86VbvACxQ0OYrBCMhNeU/tP0RplKN4klzDk e4JF9Z8HRSps00awM4tTRlJVm11iEGLmdqZ5zL4CKA== X-Received: by 2002:a9d:7453:: with SMTP id p19-v6mr13996246otk.348.1526456840903; Wed, 16 May 2018 00:47:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.138.0.213 with HTTP; Wed, 16 May 2018 00:47:20 -0700 (PDT) In-Reply-To: References: <20180509172606.29387-1-david@lechnology.com> From: Bartosz Golaszewski Date: Wed, 16 May 2018 09:47:20 +0200 Message-ID: Subject: =?UTF-8?Q?Re=3A_=5BPATCH_v10_00=2F27=5D_ARM=3A_davinci=3A_convert_to_commo?= =?UTF-8?Q?n_clock_framework=E2=80=8B?= To: Adam Ford Cc: Bartosz Golaszewski , David Lechner , linux-clk , devicetree , arm-soc , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Sekhar Nori , Kevin Hilman , Linux Kernel Mailing List 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-05-16 0:44 GMT+02:00 Adam Ford : > On Tue, May 15, 2018 at 4:25 AM, Bartosz Golaszewski wrote: >> 2018-05-14 2:40 GMT+02:00 Adam Ford : >>> On Wed, May 9, 2018 at 12:25 PM, David Lechner wrote: >>>> This series converts mach-davinci to use the common clock framework. >>>> >>>> The series works like this, the first 3 patches fix some issues with the clock >>>> drivers that have already been accepted into the mainline kernel. >>>> >>>> Then, starting with "ARM: davinci: pass clock as parameter to >>>> davinci_timer_init()", we get the mach code ready for the switch by adding the >>>> code needed for the new clock drivers and adding #ifndef CONFIG_COMMON_CLK >>>> around the legacy clocks so that we can switch easily between the old and the >>>> new. >>>> >>>> "ARM: davinci: switch to common clock framework" actually flips the switch >>>> to start using the new clock drivers. Then the next 8 patches remove all >>>> of the old clock code. >>>> >>>> The final four patches add device tree clock support to the one SoC that >>>> supports it. >>>> >>>> This series has been tested on TI OMAP-L138 LCDK (both device tree and legacy >>>> board file). >>>> >>> >>> I am not sure if I did something wrong, but I attempted to build and I >>> wasn't able to boot the da850-evm.dtb your repo common-clk-v11, >>> however the legacy board file boot was OK. >>> >>> make davinci_all_defconfig ARCH=arm >>> make zImage modules da850-evm.dtb ARCH=arm CROSS_COMPILE=arm-linux- -j8 >>> >>> 3140416 bytes read in 1464 ms (2 MiB/s) >>> 20353 bytes read in 15 ms (1.3 MiB/s) >>> ## Flattened Device Tree blob at c0600000 >>> Booting using the fdt blob at 0xc0600000 >>> Loading Device Tree to c7e57000, end c7e5ef80 ... OK >>> >>> Starting kernel ... >>> >>> Uncompressing Linux... done, booting the kernel. >>> >>> (and hang) >>> >>> If you have some suggestions, I am try them as I get time. >>> >>> adam >>> >> >> Runs fine on da850-lcdk and dm365-evm. I'll test the da850-evm >> tomorrow when I'll have access to it. > > I set the bootargs to: bootargs=console=ttyS2,115200n8 > clk_ignore_unused root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait > > I enabled DEBUG_LL and EARLY_PRINTK, yet when it loads, I only get: > > ## Flattened Device Tree blob at c0600000 > Booting using the fdt blob at 0xc0600000 > Loading Device Tree to c7e57000, end c7e5ef35 ... OK > > Starting kernel ... > > Uncompressing Linux... done, booting the kernel. > > > I am doing this at my home, so I don't have a debugger for the > DA850-EVM. I am using a SOM that is an AM1808, but I vaguely remember > something about enabling a DSP clock somewhere, but I cannot seem to > find the e-mail. I know its counter intuitive that we'd need to > enable a clock that runs the DSP since it doesn't exist on the AM1808, > but I would have thought the clk_ignore_unused would have worked > around that issue. > > If someone else has a DA850-EVM or suggestions, I'm willing to try > them as I have time. > > adam Hi Adam, everything works fine for me both when booting the DTB and in legacy mode on da850-evm. I'm using the following bootargs: ip=dhcp console=ttyS2,115200n8 root=/dev/nfs rw nfsroot=,v3 nfsrootdebug Regular davinci_all_defconfig on David's common-clk-v11 branch. Best regards, Bartosz Golaszewski