Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3973641ybp; Mon, 7 Oct 2019 00:45:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyG55VpreX5W1qObnQWvgBcnLjbJ2VebZkMWSu9h+CziSBkg4vrFt2dIGs0St4qQHZ5gR32 X-Received: by 2002:a50:9625:: with SMTP id y34mr27114805eda.72.1570434307269; Mon, 07 Oct 2019 00:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570434307; cv=none; d=google.com; s=arc-20160816; b=XlfLpUR9DxUBcVbXZrb7yo5EjdceoNjshKnjDSPdLyG5kbzfGptINVOjmNBt5K3BY1 CjfCrGTFe5maOrQEzpgyvCELjJjWcBYSWHYDNLIZFR4i68DWVuBNfeR4TI7pyUue5uHn piHIIPgdEmPtdz/i/njysiTyBh6erzyoGhZrx5hlGIwlOa1V2kKfMOLEWV94sxM7OXXS elUX4+yPd/UNWvn4tm39WaqdYGLqRPURn6E2pL/BewpHM/3eo/x59bwvGi0gVnkrY4w1 mP3bcKj3oJJrGswDZBMFKNJj8sW0fd2smkSQb/jXhtPYZ81Vdg5R0F+kS8axCld3QRXu eaCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=fBflewl09GWZ1sfMCOATM1ILmB2qVPqXtEyn/UIEg80=; b=BIj0+Hl0vcUVXKc3K7a66ODg6+HYIgalcWIulMv4AS2O3xYCcCC8zExQbwRpOTA/Ol U3bYJbcxz0DRnhkJ4+zOfa1EtWX2+b5hc8HBO5PjM90tAttJbjDF9aowBoWiSe/7HSfO g/6WaUETCSZYg+cMJAImNVK3/Jfav2zO1O2gBIgGPgsmB+mwpP35Mmh0IJyaO1Gvs56R 5fnJrowK8KvjmAy/93lN8cXxMqGu55YO79Y3PAAqSFAKPlSv3eBwUVFWGFbgarZa9tHz a53oJO6t7+E0FpZU03TK6phfYaHET2WVVo7kJWoFsMookKajsmxYXqj20tYLjtRxjC02 zmTg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si8246652edm.271.2019.10.07.00.44.43; Mon, 07 Oct 2019 00:45:07 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727312AbfJGHmV (ORCPT + 99 others); Mon, 7 Oct 2019 03:42:21 -0400 Received: from mga03.intel.com ([134.134.136.65]:38280 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726202AbfJGHmV (ORCPT ); Mon, 7 Oct 2019 03:42:21 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Oct 2019 00:42:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,265,1566889200"; d="scan'208";a="183358550" Received: from linux.intel.com ([10.54.29.200]) by orsmga007.jf.intel.com with ESMTP; 07 Oct 2019 00:42:20 -0700 Received: from [10.226.38.27] (unknown [10.226.38.27]) by linux.intel.com (Postfix) with ESMTP id 7791A5803E4; Mon, 7 Oct 2019 00:42:18 -0700 (PDT) Subject: Re: [PATCH v5 1/2] dt-bindings: phy: intel-emmc-phy: Add YAML schema for LGM eMMC PHY From: "Ramuthevar, Vadivel MuruganX" To: Rob Herring Cc: kishon@ti.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, andriy.shevchenko@intel.com, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, peter.harliman.liem@intel.com References: <20190904055344.25512-1-vadivel.muruganx.ramuthevar@linux.intel.com> <20190917142337.GA27151@bogus> <9cdc49bc-61af-5b36-6ef1-67d1f1977730@linux.intel.com> Message-ID: <3e06d22c-cd9a-d05f-b524-846bde6393b6@linux.intel.com> Date: Mon, 7 Oct 2019 15:42:17 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <9cdc49bc-61af-5b36-6ef1-67d1f1977730@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 18/9/2019 10:23 AM, Ramuthevar, Vadivel MuruganX wrote: > Hi Rob, > > Thank you for the review comments. > > On 17/9/2019 10:23 PM, Rob Herring wrote: >> On Wed, Sep 04, 2019 at 01:53:43PM +0800, Ramuthevar,Vadivel MuruganX >> wrote: >>> From: Ramuthevar Vadivel Murugan >>> >>> >>> Add a YAML schema to use the host controller driver with the >>> eMMC PHY on Intel's Lightning Mountain SoC. >>> >>> Signed-off-by: Ramuthevar Vadivel Murugan >>> >>> --- >>> changes in v5: >>>    - earlier Review-by tag given by Rob >>>    - rework done with syscon parent node. >>> >>> changes in v4: >>>    - As per Rob's review: validate 5.2 and 5.3 >>>    - drop unrelated items. >>> >>> changes in v3: >>>    - resolve 'make dt_binding_check' warnings >>> >>> changes in v2: >>>    As per Rob Herring review comments, the following updates >>>   - change GPL-2.0 -> (GPL-2.0-only OR BSD-2-Clause) >>>   - filename is the compatible string plus .yaml >>>   - LGM: Lightning Mountain >>>   - update maintainer >>>   - add intel,syscon under property list >>>   - keep one example instead of two >>> --- >>>   .../bindings/phy/intel,lgm-emmc-phy.yaml           | 69 >>> ++++++++++++++++++++++ >>>   1 file changed, 69 insertions(+) >>>   create mode 100644 >>> Documentation/devicetree/bindings/phy/intel,lgm-emmc-phy.yaml >>> >>> diff --git >>> a/Documentation/devicetree/bindings/phy/intel,lgm-emmc-phy.yaml >>> b/Documentation/devicetree/bindings/phy/intel,lgm-emmc-phy.yaml >>> new file mode 100644 >>> index 000000000000..8f6ac8b3da42 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/phy/intel,lgm-emmc-phy.yaml >>> @@ -0,0 +1,69 @@ >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/phy/intel,lgm-emmc-phy.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Intel Lightning Mountain(LGM) eMMC PHY Device Tree Bindings >>> + >>> +maintainers: >>> +  - Ramuthevar Vadivel Murugan >>> >>> + >>> +description: Bindings for eMMC PHY on Intel's Lightning Mountain >>> SoC, syscon >>> +  node is used to reference the base address of eMMC phy registers. >>> + >>> +select: >>> +  properties: >>> +    compatible: >>> +      contains: >>> +        const: intel,lgm-syscon >> This, plus... > > you mean, need to add two compatible here-itself look like below > > const: intel,lgm-syscon > const: intel,lgm-emmc-phy > > Is it right? > Shall I proceed with above compatibles if you agree upon. Thanks! With Best Regards Vadivel Murugan >>> + >>> +    reg: >>> +      maxItems: 1 >>> + >>> +  required: >>> +    - compatible >>> +    - reg >>> + >>> +properties: >>> +  "#phy-cells": >>> +    const: 0 >>> + >>> +  compatible: >>> +    contains: >>> +      const: intel,lgm-emmc-phy >> ...this should not pass validation as they contradict each other. > when  I do "make dt_binding_check" didn't throw an error,  let me > double confirm once clarified first comment. >>> + >>> +  reg: >>> +    maxItems: 1 >>> + >>> +  clocks: >>> +    maxItems: 1 >>> + >>> +  clock-names: >>> +    maxItems: 1 >>> + >>> +required: >>> +  - "#phy-cells" >>> +  - compatible >>> +  - reg >>> +  - clocks >>> +  - clock-names >>> + >>> +examples: >>> +  - | >>> +    sysconf: chiptop@e0200000 { >>> +      compatible = "intel,lgm-syscon"; >>> +      reg = <0xe0200000 0x100>; >> I'm still waiting for a complete description of what all is in this >> block. > Agree!, I will  add it. >>> + >>> +      emmc-phy: emmc-phy { >>> +        compatible = "intel,lgm-emmc-phy"; >>> +        reg = <0x00a8 0x4>, >>> +              <0x00ac 0x4>, >>> +              <0x00b0 0x4>, >>> +              <0x00b4 0x4>; >> Looks contiguous and can be a single entry: >> >> <0xa8 0x10> > Agreed, will fix it. > > Best Regards > Vadivel >>> +        clocks = <&emmc>; >>> +        clock-names = "emmcclk"; >>> +        #phy-cells = <0>; >>> +      }; >>> +    }; >>> +... >>> -- >>> 2.11.0 >>>