Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1568484imm; Wed, 13 Jun 2018 23:39:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLc3YvabB3x5UxzjgTNCf5l8/cfK1EnnFWbIhvuUTCssADMWMoBAFtQL+IiCL6XwS5XFaU9 X-Received: by 2002:a63:5014:: with SMTP id e20-v6mr1160329pgb.133.1528958399398; Wed, 13 Jun 2018 23:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528958399; cv=none; d=google.com; s=arc-20160816; b=wPCiyNE6jbP3EHt7GFWeSOHMAXJfLBeB7L2y1b2CuhRITvZeBbJIUH1QpHeqZxJ6fM FuqI3FdfoAWmV31hdS6djTBOMusJN2F2P7YC0UONPJiw3lKtvz+KwFp6GoAmNrfT8Yyc NhFLbdr3NjFfr12EKfqKj9a2y/WLZg7UKFeoXAUIGpK1Fxjj0Hvx7ao/+iZ8fpQM86SQ i6bKtuSUlztERFuat4jiEzpQQAVi1bm4L771klUSeO7C6qt52qJjHcvf2Sj17eXpkXGE Nt1xNYfKBJkxqgTwAjoQz0WHen+7rN7EOprdoVl2E5S6z8RGNBZaP+1YzC/4NfJaannY QQcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=6JsvM/pel5CxEAFNifBWeO2VLAyh0fiyj1XSSAjAUA0=; b=htuYSF0iIbEADHk8/xsM7CFnXsRZCSJE9DvB1yGm1Y/tLX3FnxRU6Deqh2J+juIKcH eza+cL3uoJ5BNmLxDPai3gqNlwOMtq6FniZCPRGTjyD3IodZwNo5V3y+P2B9hp9HeaDn AEjK+LF6Todvoisae0VkKsPjQ5rTh4wfThaMBYzVctsIPH2cVuzeDECxFtyujyKRxwhT +bWH9lvT1kF69iJDD1KpE4jKghn1pCoS07zH9V+lT9nGK7gKK8gCmaTXv6pzOcUFXboC +W5jfWp/tWqJvxjCNc/HOYFRANLs7GCMEPD0DOeNT4gjSvIEslq4EStZ0GvCxDEqaut/ 4CLg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1-v6si3902552pgs.441.2018.06.13.23.39.45; Wed, 13 Jun 2018 23:39:59 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752876AbeFNGiN (ORCPT + 99 others); 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"; >> +};