Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6617622imm; Mon, 27 Aug 2018 20:36:58 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZxI7QC7XJSyiGOy4mggcHcyagOdfFk4gmSiz3E6yE8cHTkdrjvKfUDgI2Jl7VGxAwPlpfy X-Received: by 2002:a65:650f:: with SMTP id x15-v6mr14952449pgv.127.1535427418081; Mon, 27 Aug 2018 20:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535427418; cv=none; d=google.com; s=arc-20160816; b=TnTgIqv6ryvseSKecUHB46oJV5tSmiSY6x3qiSlOFBAGGMMuhJj0oTDimYw8QoT4vF 8IhEF6dUWfF0Lc3dOW4WTEvtiM53y+0lb0hOGCrG+1Xkvn1DfY3d9exQfTdf0OkdiljO Jk8xaRhIowsqo3hLEClqppjcDYQGIWy/xYSjjqaBGxYCWjWGS0du9GDYdeWB/VZ3VnSl yGdNY5W1yqZJuiHA/JkV43i4nlCJBOJKzCbLH82RDuK0KMIvf2Nn4fgFqL57F8Wem4Va CL42TWjpfbynrsyayB+H8b2hxvORwaVu1S06G8d2sBc2CAiXowHyXzqqtrbowzC8kfJF 8gug== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=4kAb4N3DYsg0kpMfjHWXH4X7awYUsz7B0R3j9B0RXLU=; b=GnxNJuYiYGhPgSAY6sfBIBVXIL1vhZvJkCrIN79LJMeaigWN5IeGyEhwp8zRb82wEf NdYmBl/lp8Bk/Z41Xl8gE0Qk8Q7du7WYa0Cz7KaWYFQNFdCE1QaxRnVTq12OAV/Xx3BV TyzdV427hOQwDB4lM/kwxqao85ZwwXvx90Be9H1lWDQCqqM+Ult2gS+Bz4FvohZucXnj vJbKLjSP8s+pdrpHIhPJoXML7+t2aGazwImumbZO3bSA5Q7voJkxdb241g6YSRXAdTU9 3ysjzz6ozmZ2V0z7A0nabmGhH35J04e/aRjpeYula7GGWngnpY1E3REATVJaX7Kxn4dU DDkw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l14-v6si1175547pfd.250.2018.08.27.20.36.40; Mon, 27 Aug 2018 20:36:58 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727072AbeH1HY4 (ORCPT + 99 others); Tue, 28 Aug 2018 03:24:56 -0400 Received: from mail-sz2.amlogic.com ([211.162.65.114]:19194 "EHLO mail-sz2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbeH1HY4 (ORCPT ); Tue, 28 Aug 2018 03:24:56 -0400 Received: from [10.28.16.194] (10.28.16.194) by mail-sz2.amlogic.com (10.28.11.6) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Tue, 28 Aug 2018 11:35:32 +0800 Subject: Re: [PATCH 2/2] clk: meson-g12a: Add AO Clock controller driver To: Jerome Brunet , Neil Armstrong CC: Kevin Hilman , Carlo Caione , Rob Herring , Martin Blumenstingl , Michael Turquette , Stephen Boyd , Yixun Lan , Jianxin Pan , , , , , 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> From: Jian Hu Message-ID: <977d8010-6d82-5eac-5da5-6dbe0f73971a@amlogic.com> Date: Tue, 28 Aug 2018 11:35:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <89b058a7bba26058fab95dea01155221dbb642ce.camel@baylibre.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.28.16.194] X-ClientProxiedBy: mail-sz2.amlogic.com (10.28.11.6) To mail-sz2.amlogic.com (10.28.11.6) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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?