Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp339720imm; Tue, 15 May 2018 02:27:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZonsnmO5pIkfdTLNpvLVa10rhq+QlgeOIZPfTCbFUoMUjLsfWIu/RUB2vkKADhM8KXrpRHC X-Received: by 2002:a62:d286:: with SMTP id c128-v6mr14406476pfg.240.1526376431471; Tue, 15 May 2018 02:27:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526376431; cv=none; d=google.com; s=arc-20160816; b=hqp08HoSMIIuy+HMSGo9XxJBbhBYs/aA4k+Lg2SDf60Wmki1BEvvs8JyyZZuvOQHGs IUBVgVCo34XHhZOe/FdclHNhJdgsQujgiaJ6yZIlFRXTYRsSYF8lAtMNH+tiKZCX3BHc kGmHe5SP6nu6gDgRqNX4/CLTUPSktiFNxKRgZtlgd0VV1nFOM5qJOt1e0KdfLM3YjBU6 NFoGbboPRczTw0BbEGwmCdmHMgdsYL74t5BW+DUURmJQ5lsHlKi01hMjfwpQWI4CeuL9 96T5q8Bysmt4SCsyjG53VfdoSvPK3hlz8dvC2zlqSpbS/2OO23psndYdN/lYwY6vNI8y Qrfg== 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=C4rfpuL9jw9htZg8uBZe2MaM+mhxNHPrIDEk0bg7xbk=; b=qyBKqUM+/kaALUeBF2CZsphCAzuacu9OXthaEpphYWwes6sO5Hqlr70FBkPWhz/m1Q mmoUIVLPTCPqcmt7Cd91K24l2Zb4twmYNxZjNU3YwI8GzLbn8l78Z34uprQsXpZUU7EL hJ1rpGCRM32sLOOEDOBjdKfKOZyHKmVxZzVwess3kHTEUp8GLCW8k6rUA+jen1fwSp1X oYwiDfaUNWiq2XmMYCxk8ItwvEWU2BukjLExVYd8GEOsZ3NsK4YsjgbtxjsyAAhIb2+j vo6gwiJ3GR0Dn87Ic3HbXNGv3Lu+y3RhsYZr00PK/5HURtuDC4TXKLHaFcNt1JtKUNsF y1ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=G5JND75B; 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 r59-v6si11093831plb.187.2018.05.15.02.26.56; Tue, 15 May 2018 02:27:11 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=G5JND75B; 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 S1752595AbeEOJZm (ORCPT + 99 others); Tue, 15 May 2018 05:25:42 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:54701 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752390AbeEOJZj (ORCPT ); Tue, 15 May 2018 05:25:39 -0400 Received: by mail-it0-f65.google.com with SMTP id z6-v6so17443230iti.4 for ; Tue, 15 May 2018 02:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=C4rfpuL9jw9htZg8uBZe2MaM+mhxNHPrIDEk0bg7xbk=; b=G5JND75Bl49AMfupRBbWODYFgpSrOEr+TAxHHDC2FHRG8u2WhdBWXvnmy4p8gjNQ+7 uVRe1RDcvnjtqsvYBNt60B7ZS1wHme+JosEOTj2Az5qYwBZ4ogbMhz9RWyq1Shye+vBb Nz777wVo+p1UmYw8F1kEDUAMUSs7zO+6UOrV8tYw4KM8DPpgYxP31zSNhEIzqvZrqeWx 9q11kt27xw/wbDVAbMG4iOVbeivfU2XYDFtS6xIEhf/bW6ZtmOLysQuDUe5r9/iZYfM8 1QrTvZiMbqK1VPHcOV/VLgRhl7Xb47DpKZP9qHXMmii4HA+EL+VZzBTXoK2XNzI3fTsp mDlA== 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=C4rfpuL9jw9htZg8uBZe2MaM+mhxNHPrIDEk0bg7xbk=; b=Tt6ktJH4qLYbDZn+BY2Uq8Cb0RH6fKwOHw5xo9Ocd8zWCKtr74Y1Q6zUZvtcHlY2di YoSlvotnkZDyFm8jEyJStqNbbQo/bcQxKWXcs1mDbhor7GkzkJAvDSMgPtfOdEQW9ZGJ WmZUcpeza7M7K5ODWb7qKpuuo5B6A8pMgVgZoKPnZwBONdsSW4qwAUaihS8GF9gfzCXw K2G0bNRSA/4BnCY6SZEJyfpwEk0r11/iBziJryZR5JLUFG2hnQIulaTZ+b29QpXI+Op5 F9KsW9eH1tEOCuEW5gxlDbooA8e1xBBKXhz9RMvlXpQ7zGXffWfhZBvfB4AWNbHYNZWi zBpQ== X-Gm-Message-State: ALKqPwerMidqzrivML3uuY95SpXVKp7BS91gJ8DPUVSrCSPQeYQ3261v V6PyVbD1PLOAIT36qKbmKgQbfhFE5TfnA+TAQXUOxA== X-Received: by 2002:a24:b310:: with SMTP id e16-v6mr13821972itf.58.1526376338729; Tue, 15 May 2018 02:25:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.181.1 with HTTP; Tue, 15 May 2018 02:25:38 -0700 (PDT) In-Reply-To: References: <20180509172606.29387-1-david@lechnology.com> From: Bartosz Golaszewski Date: Tue, 15 May 2018 11:25:38 +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: David Lechner , linux-clk , devicetree , arm-soc , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Sekhar Nori , Kevin Hilman , Bartosz Golaszewski , 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-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. Bart