Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp493719imm; Fri, 14 Sep 2018 01:35:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbdJ522ZZres0xMWwoRF8gCgYhZUEd/7YMyu4jSnUZY4Bfdcz0U9cImvG4IQreIrHTYay18 X-Received: by 2002:a17:902:b7c3:: with SMTP id v3-v6mr11076898plz.238.1536914131336; Fri, 14 Sep 2018 01:35:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536914131; cv=none; d=google.com; s=arc-20160816; b=fZ8QskwSDfxzxiDkNLVSa/GWjWVemHYVbGT6M/bLD1AfmsCiKkorlxOAc/8VaCL+V9 z3BRDwO9njh0mdXwbDpBNer20YrfLQJuxJU5k/4GB2XZylZ0gXPezeqJtgJyOx7kItDz M7nhaBY/aZ/A8r25WIi5CVUbi2PKnS9F0SO8F1D2oN/xz7tSvQ9Ius9KzIykGp6whx3v Dai8/aQYB6pus1M7OeAySZ2twDUNMs0+/25+cvu5S5SvYdd4X3w91Pr+mW/VJt0cQf/k H1UHe3IiHLyyCw5N5If222+i4DXaD8que1sfECbsbQkHOHRzCN/Pjj/qWu55N87xxsQ7 otSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=dQhaPjYqWaqAejgvdTvRL+ZVVdq++l2SgN73yGLHxlw=; b=QWds3MjiTv2H+v4QKAwQWWRrPiiWT7r3AsoNU8MxfpHei/fCkefkPURk/KEMd6044w nMB/XrR4NZ3qs0bbil7/dSdRFtBKL59TyIQPwLDcq4si8NiOvNuaTf11WO0a2Is6z+GF Cr3uoYKyewHGV9bNcU3He7xq5cjo0qEpDueLPH0VgtEAYsTV0KbeSG7GPcVcned+NhG0 b9En1dAVK8UjNVAIPqCGBsmjafYrt0epOC4zrAHOspFZ12VzIz+1KIey/PiS3u0lmnw4 PVKC8tdZtxtUhsxnbsXtf9dLn5m/Xccj98PqPs+e7V3qiMu5+zphWh/8icSKWRbYxz+3 UBOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Ju23o8fn; 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 g12-v6si6082584pgk.636.2018.09.14.01.35.16; Fri, 14 Sep 2018 01:35:31 -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=Ju23o8fn; 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 S1728237AbeINNrE (ORCPT + 99 others); Fri, 14 Sep 2018 09:47:04 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36794 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728208AbeINNrD (ORCPT ); Fri, 14 Sep 2018 09:47:03 -0400 Received: by mail-wm1-f65.google.com with SMTP id j192-v6so1108216wmj.1 for ; Fri, 14 Sep 2018 01:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=dQhaPjYqWaqAejgvdTvRL+ZVVdq++l2SgN73yGLHxlw=; b=Ju23o8fnXnMZpUFovGaVG10cBGifZYYKteEtljlUcXktCxQUqqJ4gNVYko9mCfzlcD xG2ezMwcxRyVfYZ2mpO7w608HZoFyS+2ybhr9NbSRNcsDUlCJs0YriDX6KVcXc+1fEDO pXE24m6VVJLk2CVv3tsnIoLqh08XauS7woll5WaYRg/y6ksI8SdkDjQV0KnrVkODW97A 8RyL7mLdC9SZu3xLZIWt95NrFFM7XrNy3yQjLKk52HoDi2iI05HvDAiViYhSAXHzql7W B9kmUjEclofkUumLHTrC649XAop1Z9z673t+bpDgqFtbPTeuZXtPF222Jrd7A4IqH4cX 2cEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=dQhaPjYqWaqAejgvdTvRL+ZVVdq++l2SgN73yGLHxlw=; b=kFYqZT/mtHopj8I1QJgywyaUm5nuEwq6TvnPJxD6KcSVMctbt1/HEySyY+U48n47CW zJNrbiAvlI4ssZbOnYrzG/A6er0omInAfwJSB+iaJ5f7cQ10a8+OjZpTlZqKrQLB5stf Iq0xcQr9GJSgT5LcHJF713YtD90jtU/MJRVyXF+C6bJwQSQkh7bFGdIbs9qHE254iLaH JspTc0KKrRf0/pB/z5huZ9+/bWtO91vpRvMqtDvewFqZyVnorYbU1TlzcbRMhHFyByf0 z68vXpQ+/bPcOhrTO8p//Pf+QMCtJm+QhW5gJe+Zh2KvkaDXhDE/DNFCVE9Xj+33CrmX Msjw== X-Gm-Message-State: APzg51CacOws2maslh7je4gS9ZkoRTYbKX5juJtD3YIMKeDoL5gCqfZS ncFnX9PadosSk2rq9xZoQAiErQ== X-Received: by 2002:a1c:ce0b:: with SMTP id e11-v6mr1432144wmg.47.1536914016832; Fri, 14 Sep 2018 01:33:36 -0700 (PDT) Received: from boomer (uluru.liltaz.com. [163.172.81.188]) by smtp.gmail.com with ESMTPSA id z101-v6sm10397717wrb.55.2018.09.14.01.33.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Sep 2018 01:33:36 -0700 (PDT) Message-ID: <6f12fc39c52adaaf63cb99cefe0809a52606c3a8.camel@baylibre.com> Subject: Re: [PATCH 2/2] clk: meson-g12a: Add AO Clock controller driver From: Jerome Brunet To: Jian Hu , Neil Armstrong Cc: Kevin Hilman , Carlo Caione , Rob Herring , Martin Blumenstingl , Michael Turquette , Stephen Boyd , Yixun Lan , Jianxin Pan , linux-clk@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Date: Fri, 14 Sep 2018 10:33:35 +0200 In-Reply-To: <977d8010-6d82-5eac-5da5-6dbe0f73971a@amlogic.com> References: <1533894868-85815-1-git-send-email-jian.hu@amlogic.com> <1533894868-85815-3-git-send-email-jian.hu@amlogic.com> <6c855dc62fe6ed1a01216bd708d401a280f8762c.camel@baylibre.com> <89b058a7bba26058fab95dea01155221dbb642ce.camel@baylibre.com> <977d8010-6d82-5eac-5da5-6dbe0f73971a@amlogic.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-08-28 at 11:35 +0800, Jian Hu wrote: > Hi: Jerome > > On 2018/8/27 21:07, Jerome Brunet wrote: > > On Fri, 2018-08-24 at 21:34 +0800, Jian Hu wrote: > > > > > > > > > > I am confued about aoclk81's parent clocks. > > > > > > I can not get the example of axg audio clock driver, Could you provide > > > the link? Had it merged into clk-meson.git? > > > > Yes and mainline as well : drivers/clk/meson/axg-audio.c > > > > Basically this driver is creating bypass input clocks (audio_pclk, mst_in[0-9], > > etc...) . > > > > This allows to collect input clocks from DT (like any consumer should) will > > keeping constant in the controller clock tree. > > > > > From what I've seen of your controller drivers, the EE controller should have > > > > one input, the AO should have 3. > > > > > > > > . > > > > I still can not get the example meaning in axg audio driver. here is one specific example: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/clk/meson/axg-audio.c?h=v4.19-rc1#n785 > > In 26 page of A113D_Datasheet V0.7 20170725-Baylibre.pdf,We can see the > aoclk81 has two parents. clk81 and ao_slow_clk. I can not get 3 parents. > > clk81|\ > -------| \ aoclk81 > src0 |\ | |------------------- > -----| \ ao_slow_clk | | > | |---------------------| / > -----| / |/ > src1|/ > > > src0 is from xtal, if can generate 32k clock, but it is never used. > src1 is from gpio clock, It is never used. If necessary, the ao_slow_clk > maybe described. > > So why aoclk81 has 3 parents? I never said that. I said your clock controller driver should have 3 input clocks. These clock are the one used by the controller but not produced by it: for the AO controller xtal, ao_xtal, and ee controller clk81.