Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1839211imd; Sun, 4 Nov 2018 10:32:14 -0800 (PST) X-Google-Smtp-Source: AJdET5eI3RlncaxZpEU9ju6fm/Mv2jRSLg1669lBdtDcicCMNM8nTLzRL5jnXiNZP903pu5RjRmC X-Received: by 2002:a17:902:f83:: with SMTP id 3-v6mr19511507plz.254.1541356334539; Sun, 04 Nov 2018 10:32:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541356334; cv=none; d=google.com; s=arc-20160816; b=ltEJi+37iBlibBSj9iT90UYqypda46Tg1RFLl9769AohaJE8k1QBcediRHPM5WR2RI oHQ/1Eu8tvozLmUg8g9KLqf8NjS6PByw0US5sQOW1OP3i9oLmR0bmCUvPg0GidI9g91d cIfgvCs7Q3zRkTHOxkT5OdKe1rbIBIa8jr1Wx8DdNYqMDNiv1PyV05d4Y5A59KdytOxn XID0oFMrbqKbMtb3KxmcfVGoOt31ev00KO6k/ZBUEkUJgSRwn9UudeOqWE+MDwBG7dPT qs0va9+BU+D5rdybSOh0J0MCwXhQ0Dsma+aVJakswNAfIYvbA7JlK9mGDU5Slue44ywY LMPw== 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; bh=B/0n2mdrpwXAloPbBaMwZD+VwskAMkdHK1j64yBBk4k=; b=XWxmikN40Sihno5/IjPudOEVWW+AicLZsocCX4JO/mzRYFPXsRmDdsDn8w+oqycLwb vr1KQAyuNdmWf4q0GCgNwRjlCcVecdhVBaJdbpZoK/IlvyBP3CbMouBCoEGAbIXJJEiW 2OkCWM2ohWNzpB9KC95iL7Oqanjs6gZt1VhiKU5Mbt1dRx7W9ywPx/viU4qG9QQGVxV7 O/zY2j3re0THVzTHWZ4GwT85SVgpkmzYH2otvBJwM35uI/5/swihjBcEMObw13Ro4FcF e2ew1Nr5vROy0ZOjE13EXMUHmNUvyzd3o0i/20VErN9P79Pnw99ki1e0V5uIx/VWyUPw 3ubg== 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 d18si1429363pgm.212.2018.11.04.10.32.00; Sun, 04 Nov 2018 10:32:14 -0800 (PST) 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 S1730578AbeKEAzW (ORCPT + 99 others); Sun, 4 Nov 2018 19:55:22 -0500 Received: from mail-sh2.amlogic.com ([58.32.228.45]:16198 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730531AbeKEAzW (ORCPT ); Sun, 4 Nov 2018 19:55:22 -0500 Received: from [192.168.0.111] (223.167.21.242) by mail-sh2.amlogic.com (10.18.11.6) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Sun, 4 Nov 2018 23:39:51 +0800 Subject: Re: [PATCH v5 2/3] clk: meson: add DT documentation for emmc clock controller To: Stephen Boyd , Jerome Brunet , Yixun Lan CC: Neil Armstrong , Rob Herring , Hanjie Lin , Victor Wan , Kevin Hilman , Michael Turquette , Yixun Lan , , Boris Brezillon , Liang Yang , Jian Hu , Miquel Raynal , Carlo Caione , , Martin Blumenstingl , , , Qiufang Dai References: <1539839245-13793-1-git-send-email-jianxin.pan@amlogic.com> <1539839245-13793-3-git-send-email-jianxin.pan@amlogic.com> <20181024145513.GA6647@ofant> <154130064120.88331.5081431734592584205@swboyd.mtv.corp.google.com> From: Jianxin Pan Message-ID: Date: Sun, 4 Nov 2018 23:39:44 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <154130064120.88331.5081431734592584205@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [223.167.21.242] X-ClientProxiedBy: mail-sh2.amlogic.com (10.18.11.6) To mail-sh2.amlogic.com (10.18.11.6) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, Thank you for the review. On 2018/11/4 11:04, Stephen Boyd wrote: > Quoting Yixun Lan (2018-10-25 00:29:15) >> yes, I think the documentation need to be fixed >> >> for the final solution, we decide to make 'mmc-clkc' an independent node >> instead of being a sub-node of 'mmc', so both of them may exist in parallel.. >> >> the DT part may like this: >> >> sd_emmc_c_clkc: clock-controller@7000 { >> compatible = "amlogic,axg-mmc-clkc", "syscon"; >> reg = <0x0 0x7000 0x0 0x4>; >> ... >> }; >> >> sd_emmc_c: mmc@7000 { >> compatible = "amlogic,axg-mmc"; >> reg = <0x0 0x7000 0x0 0x800>; >> ... >> }; > > That's improper usage of DT. We don't want two devices at the same > register offset. sd_emmc_c_clkc is shared by nand and sd_emmc_c controller, and this clock is part of the MMC controller's register space. The idea of adding the clock-controller@7000is introduced during the discussion in the NAND driver mainline effort: https://lkml.kernel.org/r/20180628090034.0637a062@xps13 > > . >