From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by aws-us-west-2-korg-lkml-1.web.codeaurora.org (Postfix) with ESMTP id 9FE22C433EF for ; Thu, 14 Jun 2018 06:38:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5985F208CB for ; Thu, 14 Jun 2018 06:38:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5985F208CB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752919AbeFNGiN (ORCPT ); Thu, 14 Jun 2018 02:38:13 -0400 Received: from mga11.intel.com ([192.55.52.93]:61447 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752761AbeFNGiL (ORCPT ); Thu, 14 Jun 2018 02:38:11 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jun 2018 23:38:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,222,1526367600"; d="scan'208";a="237338374" Received: from songjunw-mobl1.ger.corp.intel.com (HELO [10.226.39.15]) ([10.226.39.15]) by fmsmga006.fm.intel.com with ESMTP; 13 Jun 2018 23:38:07 -0700 Subject: Re: [PATCH 7/7] tty: serial: lantiq: Add CCF support To: Rob Herring Cc: hua.ma@linux.intel.com, yixin.zhu@linux.intel.com, chuanhua.lei@linux.intel.com, linux-mips@linux-mips.org, qi-ming.wu@intel.com, linux-clk@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, Jiri Slaby , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Mark Rutland References: <20180612054034.4969-1-songjun.wu@linux.intel.com> <20180612054034.4969-8-songjun.wu@linux.intel.com> <20180612223953.GA21621@rob-hp-laptop> From: "Wu, Songjun" Message-ID: <0c62efdb-9a23-3514-352c-a9689aacc1a5@linux.intel.com> Date: Thu, 14 Jun 2018 14:38:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20180612223953.GA21621@rob-hp-laptop> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/13/2018 6:39 AM, Rob Herring wrote: > On Tue, Jun 12, 2018 at 01:40:34PM +0800, Songjun Wu wrote: >> Previous implementation uses platform-dependent API to get the clock. >> Those functions are not available for other SoC which uses the same IP. >> The CCF (Common Clock Framework) have an abstraction based APIs >> for clock. >> Change to use CCF APIs to get clock and rate. >> So that different SoCs can use the same driver. >> Clocks and clock-names are updated in device tree binding. >> >> Signed-off-by: Songjun Wu >> >> --- >> >> .../devicetree/bindings/serial/lantiq_asc.txt | 15 +++ > Please split bindings to separate patch. Thanks. It will be split to two separate patches, one for bindings, the other for code. >> drivers/tty/serial/Kconfig | 2 +- >> drivers/tty/serial/lantiq.c | 101 +++++++++++++++++---- >> 3 files changed, 98 insertions(+), 20 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/serial/lantiq_asc.txt b/Documentation/devicetree/bindings/serial/lantiq_asc.txt >> index 3acbd309ab9d..608f0c87a4af 100644 >> --- a/Documentation/devicetree/bindings/serial/lantiq_asc.txt >> +++ b/Documentation/devicetree/bindings/serial/lantiq_asc.txt >> @@ -6,6 +6,10 @@ Required properties: >> - interrupts: the 3 (tx rx err) interrupt numbers. The interrupt specifier >> depends on the interrupt-parent interrupt controller. >> >> +Optional properties: >> +- clocks: Should contain frequency clock and gate clock >> +- clock-names: Should be "freq" and "asc" >> + >> Example: >> >> asc1: serial@e100c00 { >> @@ -14,3 +18,14 @@ asc1: serial@e100c00 { >> interrupt-parent = <&icu0>; >> interrupts = <112 113 114>; >> }; >> + >> +asc0: serial@600000 { >> + compatible = "lantiq,asc"; >> + reg = <0x600000 0x100000>; > 1MB of address space? That wastes a lot of virtual space on 32-bit > systems. Just make the size the actual used range. The size of address space will be updated to the actual used range. >> + interrupt-parent = <&gic>; >> + interrupts = , >> + , >> + ; >> + clocks = <&pll0aclk SSX4_CLK>, <&clkgate1 GATE_URT_CLK>; >> + clock-names = "freq", "asc"; >> +};