Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751196AbdCQLHM (ORCPT ); Fri, 17 Mar 2017 07:07:12 -0400 Received: from mail-by2nam03on0088.outbound.protection.outlook.com ([104.47.42.88]:34976 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751035AbdCQLHF (ORCPT ); Fri, 17 Mar 2017 07:07:05 -0400 Authentication-Results: linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=none action=none header.from=caviumnetworks.com; Date: Fri, 17 Mar 2017 11:51:06 +0100 From: Jan Glauber To: Ulf Hansson Cc: "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , David Daney , "Steven J . Hill" , Rob Herring , Mark Rutland , "devicetree@vger.kernel.org" , David Daney Subject: Re: [PATCH v12 1/9] dt-bindings: mmc: Add Cavium SOCs MMC bindings Message-ID: <20170317105106.GC3011@hardcore> References: <20170310132507.32025-1-jglauber@cavium.com> <20170310132507.32025-2-jglauber@cavium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [46.5.205.126] X-ClientProxiedBy: VI1PR0401CA0004.eurprd04.prod.outlook.com (10.168.59.14) To CO2PR07MB2582.namprd07.prod.outlook.com (10.166.201.21) X-MS-Office365-Filtering-Correlation-Id: e5270547-c939-4ef4-9f5e-08d46d238bc4 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CO2PR07MB2582; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2582;3:ZBVdv6t/vrRrfpDS3ywL9m/AdZeGXqilsQlAjVp1i8OD1k26+bN1n2fUMet8yt09bPuhVO8qIhLvU4js++RDT0wAgtDi7+5Hy3qnSAwMjUwI7ffPg8zO0t8R/COrUSR63keK3/LjJzh6iiZ2AalcwtdMaV3Rf55X82vEwbchN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u8XmBnYRalFUe2m5gLW1AF9Lb4QzbdKQL1A/mtEf0RTnfgdbdi7RpM0vAdRtQjz/VuWSAq5iTLduwCvv/vz69XOwQjHPpwfa3182VoY01F6KdojZFm0EIIs+xD31CQWQ2RlsNYo/XsKtqYKJ+PqVAEldrJhnrdDc93+sb2w8B8OuBf2yLgW1E5CYJPakHn3ak1xY5s9muaEbimAAJVAyKSIrcKOb2wL6EVOrJoury9Z8eaK452AOimiiVhDu4Iuff5Z22t+Hhk2mEH4FwtGq8CJnsAZLdfP2Bfx2YNijO2ZJl6KvBXK4oj3AfMvq4wkvK5HjXZC19tQnVvKhTAAqEjSP9nKgh+hzqwPHA9nSwaMcfbPc73+71QSfr9EYQLRWuABybyDqgSo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123558025)(20161123564025)(6072148);SRVR:CO2PR07MB2582;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB2582; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2582;4:sWXA9EoZk4lf4O+3WRSrlFKPoHPOoAONsADZsvfak2E7uyN3uSE+JR/nh+jdp4Wx883lrXXyL3RuxemioPrCGUN5T7W4xtNemKe5kxd2vgodb3+texHrIfG6rVLeNEXVWERAN4aL1BYrMZlTtJ6biBC0JcHNGhg/tPTSUI11c08woaIM8aVoGldCi84zbhPAA2tWB1nm+7++cTECKudFoMVLh2t3/JgQMarswtaZJyyVo/Do61IDJ9PimnmwGTIylll+aDythqG/ACPCN4W4uTei3HXe4dpnw3hmxrFyu5FVmLagFiq9XFZRxBmp34/V32poUM2A0+p9XTYUUtjhXEuJh9yqlzHAhIyld592OdCmDqwhRyDZUQYLJJXLBv1al4i9qnSKcCJ23w82jks7qbo5dW8Dppzq73xQH3NiA0wrTIybvqZ1L+Y/oK3H8p6GjPbT22P8dj0riGGQxjerf2F3rYc03wV73Hjh941kIc+hWqF+8mcSgZ8RBKHcNPT6a1rSI7A8oF8RYZw1AZ7xPGThWZlW0FajzLVK1AH5N0fVZVkOxTAa1FpWZWy/TWoDuDDksfTFQpdt16K2FF6QFgzDi0N3y1kYsG0Sjy1lcNqPwS4kZs0UUEdy7M2MPTTQHK9ZaZI9flhLGrn/I7aqkGfGJJpxzwVxiQaqiZH1DfzGqZwurSoH+jBE/ISpwVqY X-Forefront-PRVS: 0249EFCB0B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39830400002)(39410400002)(39450400003)(24454002)(33716001)(23726003)(66066001)(81166006)(110136004)(8676002)(76176999)(107886003)(53936002)(575784001)(54356999)(47776003)(7736002)(6496005)(53546008)(38730400002)(4326008)(189998001)(305945005)(42186005)(4001350100001)(6246003)(3846002)(9686003)(50986999)(2950100002)(25786008)(50466002)(83506001)(1076002)(5660300001)(6666003)(6916009)(2906002)(229853002)(55016002)(42882006)(33656002)(6116002)(54906002)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR07MB2582;H:hardcore;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR07MB2582;23:zPLN8VHhk0HwFcXiuiv6MicSBACmf48vi65RgpCsT?= =?us-ascii?Q?AcmCPggQVMba0secgo9s60S1W2y/McJ8kTce2+ECDoKr9MPkUQvtH9u/Uu0m?= =?us-ascii?Q?gI2lntAlo2pIvr9OJqdVaz2mkEZ9h/rPn1lVrsbITE/kWkX/shtfj+0kEH+Z?= =?us-ascii?Q?5v6uqJ614RcIWu0cgrS4Xd1QhqfZsyFPbywuCObrjbvSmrIZSieXCgGHKmg1?= =?us-ascii?Q?e47tg7RPguEZPUSIZoGbyM3OKDeKM1xSW2MDgwDVIUxaPo+lvq9VJre1KvJB?= =?us-ascii?Q?8pAmT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z/A7zRFiVmVzDOhHUx1ZE05hkJq8sJmwf/SrINjs6KSj5w6W88wc1NaBE6Keb5G5UMWYoYWQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2017 10:51:18.0456 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2582 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4298 Lines: 111 On Fri, Mar 17, 2017 at 09:31:23AM +0100, Ulf Hansson wrote: > On 10 March 2017 at 14:24, Jan Glauber wrote: > > Add description of Cavium Octeon and ThunderX SOC device tree bindings. > > > > CC: Ulf Hansson > > CC: Rob Herring > > CC: Mark Rutland > > CC: devicetree@vger.kernel.org > > > > Signed-off-by: Jan Glauber > > Signed-off-by: David Daney > > Signed-off-by: Steven J. Hill > > Acked-by: Rob Herring > > --- > > .../devicetree/bindings/mmc/cavium-mmc.txt | 58 ++++++++++++++++++++++ > > 1 file changed, 58 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/mmc/cavium-mmc.txt > > > > diff --git a/Documentation/devicetree/bindings/mmc/cavium-mmc.txt b/Documentation/devicetree/bindings/mmc/cavium-mmc.txt > > new file mode 100644 > > index 0000000..225c2be > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/mmc/cavium-mmc.txt > > @@ -0,0 +1,58 @@ > > +* Cavium Octeon & ThunderX MMC controller > > + > > +The highspeed MMC host controller on Caviums SoCs provides an interface > > +for MMC and SD types of memory cards. > > + > > +Supported maximum speeds are the ones of the eMMC standard 4.41 as well > > +as the speed of SD standard 4.0. Only 3.3 Volt is supported. > > + > > +Required properties: > > + - compatible : should be one of: > > + cavium,octeon-6130-mmc > > + cavium,octeon-6130-mmc-slot > > + cavium,octeon-7890-mmc > > + cavium,octeon-7890-mmc-slot > > + cavium,thunder-8190-mmc > > + cavium,thunder-8190-mmc-slot > > + cavium,thunder-8390-mmc > > + cavium,thunder-8390-mmc-slot > > + - reg : mmc controller base registers > > + - clocks : phandle > > + > > +Optional properties: > > + - for cd, bus-width and additional generic mmc parameters > > + please refer to mmc.txt within this directory > > + - cavium,cmd-clk-skew : number of coprocessor clocks before sampling command > > + - cavium,dat-clk-skew : number of coprocessor clocks before sampling data > > + > > +Deprecated properties: > > +- spi-max-frequency : use max-frequency instead > > +- cavium,bus-max-width : use bus-width instead > > + > > +Examples: > > + mmc_1_4: mmc@1,4 { > > + compatible = "cavium,thunder-8390-mmc"; > > + reg = <0x0c00 0 0 0 0>; /* DEVFN = 0x0c (1:4) */ > > + #address-cells = <1>; > > + #size-cells = <0>; > > + clocks = <&sclk>; > > + > > + mmc-slot@0 { > > + compatible = "cavium,thunder-8390-mmc-slot"; > > + reg = <0>; > > Just realized that I forgotten to follow up about the details for I > think we should generally describe slots nodes in DT. > > Currently we treat a child node of a host device node, with reg=0 as > being an embedded mmc card [1] (in case it has the "mmc-card" > compatible set). > When reg is 1->7, those are reserved for SDIO function nodes [2] (as > those can be exactly 7, according to the SDIO spec). > > Let's take the above into account and consider that a slot node may > also require a its own child node as to describe an embedded mmc card > or SDIO funcs. In this context I don't think it makes sense to use SoC > specific compatibles for slot nodes, instead I suggest we use only > "mmc-slot". > > Does that makes sense? The slot compatible is currently not used, setting it to "mmc-slot" looks like good to me. --Jan > > + vmmc-supply = <&mmc_supply_3v3>; > > + max-frequency = <42000000>; > > + bus-width = <4>; > > + cap-sd-highspeed; > > + }; > > + > > + mmc-slot@1 { > > + compatible = "cavium,thunder-8390-mmc-slot"; > > + reg = <1>; > > + vmmc-supply = <&mmc_supply_3v3>; > > + max-frequency = <42000000>; > > + bus-width = <8>; > > + cap-mmc-highspeed; > > + non-removable; > > + }; > > + }; > > -- > > 2.9.0.rc0.21.g7777322 > > > > Kind regards > Uffe