Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1972146imm; Sun, 15 Jul 2018 22:59:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe8e2BDt/WYhHeCJr97F168rSs2u/ATt4kE4zZf+l91/7vUcWBVMi/CDuq3DbbBxZWD09Kh X-Received: by 2002:a63:2644:: with SMTP id m65-v6mr14195204pgm.371.1531720796913; Sun, 15 Jul 2018 22:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531720796; cv=none; d=google.com; s=arc-20160816; b=pLMtN1k2aTS8UlYbdfac9Q4SDzQK2VcCFyVbulJJ5tBGXhIvLmjZqdg7+bfXlTY/3T KLaNURYSrl3Odiu9QIQyJgPS1b51+wM9zu4cuCvkOkGdw+3suxvOXunD9TAy3AF3MpYV xhYaFrq+0UEtPlJ1BleWiR2lKOF8TreK3ydQs/Ju+JZvvsSJCTl2djXpx3/NQC2nx+qp yrF2aEo4LmrJR5StZi/Uogd3F0Tjanvi07PGVS+8qJkJKZ8utyM68CaiDzKXnteYGAe1 chA/sVllH3KO49lnOA8QQmc1JeQYY7GbgxenuvP6FmXKOn5IYHMx7z9JpuQiVEgtt4Wx XD0A== 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=X9gvfNmVtjYLiYDpYoDn2fhQ6Dhk9uwLlleU4vGfvas=; b=0b0Q++eC649vMJvLqrkvXHCTrGFLUT4epWuaDbSjp4soTyyrvqBdyYICW45aXMJNp/ 1FfG01e4xKah6HYgfG+gN/hCzi5x9f3GCMGY7kQCPSWgJAwNcisiEvVJMiJ34etY2kkD /537y/YtgvKTXgKLEol7qFelueAPl1OqqX+7P9JSrldljvaVPtuSwzjsDAnMIVD9hRAD 4oZg1OTvnH8fb7VdDT/M5cICVwpsb/EoEW3YwBASKNLj9wRliGEHjsSapoWCVjgGPCCa 8zsAM+jlG5d3BycKd1WmXVWAHZNFbHwkG9G4j4pIAopgTfrHRFilH9W/s41zObuVCCjv zZQA== 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 x62-v6si27816882pfa.80.2018.07.15.22.59.42; Sun, 15 Jul 2018 22:59:56 -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 S1728413AbeGPGYt (ORCPT + 99 others); Mon, 16 Jul 2018 02:24:49 -0400 Received: from mail-sz2.amlogic.com ([211.162.65.114]:52038 "EHLO mail-sz2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727402AbeGPGYr (ORCPT ); Mon, 16 Jul 2018 02:24:47 -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; Mon, 16 Jul 2018 13:59:01 +0800 Subject: Re: [PATCH 3/3] clk: meson-g12a: Add EE Clock controller driver To: Jerome Brunet , Yixun Lan , Martin Blumenstingl CC: Neil Armstrong , , , , , , , , , , , , , , Rob Herring References: <1531134767-29927-1-git-send-email-jian.hu@amlogic.com> <1531134767-29927-4-git-send-email-jian.hu@amlogic.com> <1531216472.2708.71.camel@baylibre.com> <454887b2-6d29-4fe9-ee34-400363671746@amlogic.com> <1531316752.2708.113.camel@baylibre.com> From: Jian Hu Message-ID: Date: Mon, 16 Jul 2018 13:58:58 +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: <1531316752.2708.113.camel@baylibre.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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/7/11 21:45, Jerome Brunet wrote: > On Wed, 2018-07-11 at 21:41 +0800, Jian Hu wrote: >>>>>> +static struct clk_regmap g12a_mpll0 = { >>>>>> + .data = &(struct clk_regmap_gate_data){ >>>>>> + .offset = HHI_MPLL_CNTL1, >>>>>> + .bit_idx = 31, >>>>>> + }, >>>>>> + .hw.init = &(struct clk_init_data){ >>>>>> + .name = "mpll0", >>>>>> + .ops = &clk_regmap_gate_ops, >>>>>> + .parent_names = (const char *[]){ "mpll0_div" }, >>>>>> + .num_parents = 1, >>>>>> + .flags = CLK_SET_RATE_PARENT, >>>>>> + }, >>>>>> +}; >>> >>> The previous had a predivider (1 or 2) in front of these mpll. Even if the >>> predivider is usually set to be a passthrough, it is better to model the tree >>> correctly. >>> >>> Is this SoC any different ? >>> >> >> I am not sure the difference, I will confirm with IC design guys. > > I suggest that you have a look at the (upstream) axg and gxbb clock driver for > this > > Same goes for the fdiv gates. > > Last, please trim your replies a bit. It will make easier to see what you are > replying to. > > . > I have confirmed with IC design guys, axg and gxbb clock driver have a prediver in frount of these mpll, according to the Spec, we can get the prediver function in HHI_MPLL_CNTL5 bit12, the G12A SoC have not the prediver function.