Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7175387imu; Tue, 22 Jan 2019 01:28:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN4Mg1osf0RY1C1Vm8QKl/yqGXAO3Ka8G520pWOLTSqS80CrtNEPS03mm4kV4owrMaEQ4TL5 X-Received: by 2002:a62:13c3:: with SMTP id 64mr32873102pft.93.1548149327412; Tue, 22 Jan 2019 01:28:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548149327; cv=none; d=google.com; s=arc-20160816; b=spQJI122V5q5UzIGELfiVj2iRlqJ0vVvtHoiFt5CqI51xuVDNZ9oFDQBWsCnJY+4QF TvVxYqQbTJIGXGKjEVw3xI1PgFWLWOAPQonuicB7Jw44nNlgWAom0b6kkBjsFyIpPgCR GI7HntYqZ+8i+OxIIBqr7AmeQouVOmwn8fH9+16uLE8FWRONovUBk53hTjNpxDgm6quz rPAb9H9wXcsQOUpvBe9cRcS0D7WCMtlrnEG80hkGTYsQNwRVICnLePnR/LrcVu4peCYc p6iatD2IfIgRru8uVpQFR1mbzW3blQiq96Z2Rm76TenLA+hPuXJHw7ur2so/51CBgBnK qDNw== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=cCrh+YVCx19BBdNeVg2dvCiCwiOMhaRj8KLLP1LDVlo=; b=Jud7y0kr2ahnoZaMCs0yfYx5ZVc3iiUkvPOB8xd//DU1rdJAO0GJpITqO3vHdjidPN kpnzCHuWMAQd+cNY+Tj8Nfv05QeTPQ45rEAnr3YHtNNKLoEKHHQLkN5r5F1YnwiVRPU6 HIKxQ4w6U11V3+db+jEXChnY+OVWqArxLPEllONkkD49yeemf0kxN62fjBTjvT1yncA5 f/HH0Q/SGGB7dPLgU8rn2KSGQr3eJjGJ50wE3D3eU/d2iJ6/ED75mZJtlNq3ps9kUqmo slTO5IOadbHfQxv41wJ9mNQpwafyElAnLvMTQ82UnipLkPmwHEPPS44uCIW1WMQ8mZth Ye+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=yq5cItPK; 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 193si10265589pgc.220.2019.01.22.01.28.31; Tue, 22 Jan 2019 01:28:47 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=yq5cItPK; 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 S1727948AbfAVJ1X (ORCPT + 99 others); Tue, 22 Jan 2019 04:27:23 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33135 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727721AbfAVJ1X (ORCPT ); Tue, 22 Jan 2019 04:27:23 -0500 Received: by mail-wr1-f66.google.com with SMTP id c14so26506621wrr.0 for ; Tue, 22 Jan 2019 01:27:21 -0800 (PST) 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 :user-agent:mime-version:content-transfer-encoding; bh=cCrh+YVCx19BBdNeVg2dvCiCwiOMhaRj8KLLP1LDVlo=; b=yq5cItPKxIiEzJNtwONqID9UHnBdJme1bbcLuLE+Kp9q8t7aU7LgALgLHG0TlCZIvV QUzw9U/Afu1EAxgoMpfVAXlrMbNbSzA4V8YsMl2Jygxkhh1NTdc5mqFVdgHi1NDi8Ap/ BRYaCO2+PtN+gUNk4lauEucshHw5YkxKeUgpnVbnvoHrltGT8O960GhIv455Dxkr/Wpq 8zqLkgbH4cGToDug7zbDIhEhRT4OohO+uuNM0UryAs4qq/c6eiQDM+hIDZc10v/jApdp Jugjh0/TvrSHnTXzetMz+sYFIdes+UrNM+Nv/noB3HTcs9Dt7Hj+lFv0fc7ZN0zgdfZT B4gw== 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:user-agent:mime-version:content-transfer-encoding; bh=cCrh+YVCx19BBdNeVg2dvCiCwiOMhaRj8KLLP1LDVlo=; b=Uo3hlYgxGMo+AlffuiNbv+W+WsuoCsttDS7CJFc8p9NVCdD/2deiDLO4sgYA4OSmld 9WQpq9PHuOXmH7jxlCmiHlUGgJ5lXJxF6dMJk6lLuVhqekwVVGm9gtxmsYRygiYQvJoZ Lr2kJEfc1af7isBjBsbMbi0Q1m0uinmWxoLAU/mJKSOGERO6LX2eC9flVl5ezlF9DPDt yItYCDdREFXLnityL2oQXt6fgTxPH4BjdXUb5Ky7T+eGEp1eDu+47D204Qmv1rI2WgJ4 LsUUsjgQuGHGvqZ7ufGsLaR1wN13s65veiR+JnM3RqiL7PbxUQ0MMEeTONeqELaqUeS7 hUrg== X-Gm-Message-State: AJcUuke1L2AjsPTI2NJC4X+4USukXkejXT5ex8zSVKslyJl4GGeX6tAg A6BPAJkbSWeXNwjCarnyW/zqkw== X-Received: by 2002:a5d:6889:: with SMTP id h9mr31474975wru.222.1548149241112; Tue, 22 Jan 2019 01:27:21 -0800 (PST) Received: from boomer.baylibre.com ([2a01:e34:eeb6:4690:106b:bae3:31ed:7561]) by smtp.gmail.com with ESMTPSA id y145sm38786336wmd.30.2019.01.22.01.27.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Jan 2019 01:27:20 -0800 (PST) Message-ID: <8d9b2f76823396c9caad15943d564e147c06193d.camel@baylibre.com> Subject: Re: [PATCH v9 3/4] clk: meson: add DT documentation for emmc clock controller From: Jerome Brunet To: Jianxin Pan , Neil Armstrong Cc: Yixun Lan , Kevin Hilman , Carlo Caione , Michael Turquette , Stephen Boyd , Rob Herring , Miquel Raynal , Boris Brezillon , Martin Blumenstingl , Liang Yang , Jian Hu , Qiufang Dai , Hanjie Lin , Victor Wan , linux-clk@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Tue, 22 Jan 2019 10:27:17 +0100 In-Reply-To: <1546955444-7549-4-git-send-email-jianxin.pan@amlogic.com> References: <1546955444-7549-1-git-send-email-jianxin.pan@amlogic.com> <1546955444-7549-4-git-send-email-jianxin.pan@amlogic.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.4 (3.30.4-1.fc29) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-01-08 at 21:50 +0800, Jianxin Pan wrote: > From: Yixun Lan > > Document the MMC sub clock controller driver, the potential consumer > of this driver is MMC or NAND. Also add four clock bindings IDs which > provided by this driver. > > Reviewed-by: Rob Herring > Signed-off-by: Yixun Lan > Signed-off-by: Jianxin Pan > --- > .../devicetree/bindings/clock/amlogic,mmc-clkc.txt | 39 > ++++++++++++++++++++++ > include/dt-bindings/clock/amlogic,mmc-clkc.h | 17 ++++++++++ > 2 files changed, 56 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/amlogic,mmc- > clkc.txt > create mode 100644 include/dt-bindings/clock/amlogic,mmc-clkc.h > > diff --git a/Documentation/devicetree/bindings/clock/amlogic,mmc-clkc.txt > b/Documentation/devicetree/bindings/clock/amlogic,mmc-clkc.txt > new file mode 100644 > index 0000000..0f518e6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/amlogic,mmc-clkc.txt > @@ -0,0 +1,39 @@ > +* Amlogic MMC Sub Clock Controller Driver > + > +The Amlogic MMC clock controller generates and supplies clock to support > +MMC and NAND controller > + > +Required Properties: > + > +- compatible: should be: > + "amlogic,gx-mmc-clkc" > + "amlogic,axg-mmc-clkc" nitpick, missing is something to tell that only one is required, not both for example `should be one of the following` > + > +- #clock-cells: should be 1. > +- clocks: phandles to clocks corresponding to the clock-names property > +- clock-names: list of parent clock names > + - "clkin0", "clkin1" > + > +- reg: address of emmc sub clock register > + > +Example: Clock controller node: > + > +sd_mmc_c_clkc: clock-controller@7000 { > + compatible = "amlogic,axg-mmc-clkc", "syscon"; > + reg = <0x0 0x7000 0x0 0x4>; > + #clock-cells = <1>; > + > + clock-names = "clkin0", "clkin1"; > + clocks = <&clkc CLKID_SD_MMC_C_CLK0>, > + <&clkc CLKID_FCLK_DIV2>; > +}; > + > +sd_emmc_b_clkc: clock-controller@5000 { > + compatible = "amlogic,axg-mmc-clkc", "syscon"; > + reg = <0x0 0x5000 0x0 0x4>; > + > + #clock-cells = <1>; > + clock-names = "clkin0", "clkin1"; > + clocks = <&clkc CLKID_SD_EMMC_B_CLK0>, > + <&clkc CLKID_FCLK_DIV2>; > +}; > diff --git a/include/dt-bindings/clock/amlogic,mmc-clkc.h b/include/dt- > bindings/clock/amlogic,mmc-clkc.h > new file mode 100644 > index 0000000..34a3c56 > --- /dev/null > +++ b/include/dt-bindings/clock/amlogic,mmc-clkc.h > @@ -0,0 +1,17 @@ > +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ > +/* > + * Meson MMC sub clock tree IDs > + * > + * Copyright (c) 2018 Amlogic, Inc. All rights reserved. > + * Author: Yixun Lan > + */ > + > +#ifndef __MMC_CLKC_H > +#define __MMC_CLKC_H > + > +#define CLKID_MMC_DIV 0 > +#define CLKID_MMC_PHASE_CORE 1 > +#define CLKID_MMC_PHASE_TX 2 > +#define CLKID_MMC_PHASE_RX 3 > + > +#endif