Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp767135ybl; Wed, 28 Aug 2019 05:09:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoU5K3Exj7n/A6cyJb3Z6l8+i7yXgh1mu/zNnrN9dGYYTsLRk6YCMdWOxzyG4wTuo077qo X-Received: by 2002:a62:f24b:: with SMTP id y11mr4358268pfl.0.1566994146145; Wed, 28 Aug 2019 05:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566994146; cv=none; d=google.com; s=arc-20160816; b=KyO0Wi0IWqm6TK0r7TlObuwhh3PsVLaBlDmhkIzZ25aKpul5YGG5uGmX4kSM0YgnDX rC0GAwEhQyG2A8+eN9B5S7JKUvoRdqnzHb/1AME5/MHHxCs7cuUwK46ModxanaWgSwI4 rJ28Dxx8KwUJU57QUrxz/3Q9Klj80uUZBzk5SLknUjnEBPN+OnpFONeSi6VsZ4cZEYE+ PcxMXI2urA2cLly/q2q9vScP7DPWbOyuAL+tz0Xr7CpalxWprTzdLhRy0ExBv54ZkLn8 9wko0gXBIysLmckocDiLcNTNiLV9htP5jodOdpf3idEAa0ciDvvCnoZFqicOa2clXhDz njnw== 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:from:references:cc:to:subject; bh=tS0cXubL2g+W+UiUJFIjLghuAVrNxa0CrkM1LOmDP7U=; b=0ky3AzUJnzWtFN5X+PsL0sl5VfFIjMbOb3mr/XORW91kon48+e5sWKZGPLgVN3Kf2j oZQk8cZd9yv18h2sEqVMaiTnNZCnAO0pt42G1I8sZmB4TDrvwZ5VHRHNFQfjEJ6Ic0U+ aQMgX0u4+x4Lkx1nMNCXIbHcwPNP9jmfTir2RQixipUDqWRapxoT8HQNCpzo9efjDQs2 CzOptGjQm4xVGGS7erkIVy4xKrYANP59YievG2v1EYi6PjULLwk+L6TRdUiF12t2X5bq mDebKDrRz7uA7X4EwWZAZkq8pU0j4c21ca7Y/gRc4HU2l1j44boea9z7fC/eIdRm/nux rb9g== 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 be12si1781577plb.307.2019.08.28.05.08.46; Wed, 28 Aug 2019 05:09:06 -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 S1726407AbfH1MHr (ORCPT + 99 others); Wed, 28 Aug 2019 08:07:47 -0400 Received: from mga09.intel.com ([134.134.136.24]:60816 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725991AbfH1MHr (ORCPT ); Wed, 28 Aug 2019 08:07:47 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Aug 2019 05:07:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,441,1559545200"; d="scan'208";a="332142468" Received: from linux.intel.com ([10.54.29.200]) by orsmga004.jf.intel.com with ESMTP; 28 Aug 2019 05:07:46 -0700 Received: from [10.255.185.142] (unknown [10.255.185.142]) by linux.intel.com (Postfix) with ESMTP id CD9DE580107; Wed, 28 Aug 2019 05:07:43 -0700 (PDT) Subject: Re: [PATCH v1 1/2] dt-bindings: phy: intel-sdxc-phy: Add YAML schema for LGM SDXC PHY To: Rob Herring Cc: Kishon Vijay Abraham I , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, Andy Shevchenko , cheol.yong.kim@intel.com, qi-ming.wu@intel.com, peter.harliman.liem@intel.com References: <20190827082652.43840-1-vadivel.muruganx.ramuthevar@linux.intel.com> <20190827082652.43840-2-vadivel.muruganx.ramuthevar@linux.intel.com> <2a915595-be5f-83f4-34e8-34d667875cc2@linux.intel.com> From: "Ramuthevar, Vadivel MuruganX" Message-ID: <7d076a6f-b761-4968-2280-837630db309d@linux.intel.com> Date: Wed, 28 Aug 2019 20:07:42 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: 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, Thank you for the review comments. On 28/8/2019 7:39 PM, Rob Herring wrote: > On Tue, Aug 27, 2019 at 10:47 PM Ramuthevar, Vadivel MuruganX > wrote: >> Hi Rob, >> >> On 27/8/2019 8:39 PM, Rob Herring wrote: >>> On Tue, Aug 27, 2019 at 3:27 AM Ramuthevar,Vadivel MuruganX >>> wrote: >>>> From: Ramuthevar Vadivel Murugan >>>> >>>> Add a YAML schema to use the host controller driver with the >>>> SDXC PHY on Intel's Lightning Mountain SoC. >>>> >>>> Signed-off-by: Ramuthevar Vadivel Murugan >>>> --- >>>> .../bindings/phy/intel,lgm-sdxc-phy.yaml | 50 ++++++++++++++++++++++ >>>> 1 file changed, 50 insertions(+) >>>> create mode 100644 Documentation/devicetree/bindings/phy/intel,lgm-sdxc-phy.yaml >>>> >>>> diff --git a/Documentation/devicetree/bindings/phy/intel,lgm-sdxc-phy.yaml b/Documentation/devicetree/bindings/phy/intel,lgm-sdxc-phy.yaml >>>> new file mode 100644 >>>> index 000000000000..be05020880bf >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/phy/intel,lgm-sdxc-phy.yaml >>>> @@ -0,0 +1,50 @@ >>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>>> +%YAML 1.2 >>>> +--- >>>> +$id: http://devicetree.org/schemas/phy/intel,lgm-sdxc-phy.yaml# >>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>> + >>>> +title: Intel Lightning Mountain(LGM) SDXC PHY Device Tree Bindings >>>> + >>>> +maintainers: >>>> + - Ramuthevar Vadivel Murugan >>>> + >>>> +description: Binding for SDXC PHY >>>> + >>>> +properties: >>>> + compatible: >>>> + const: intel,lgm-sdxc-phy >>>> + >>>> + intel,syscon: >>>> + description: phandle to the sdxc through syscon >>>> + $ref: '/schemas/types.yaml#/definitions/phandle' >>>> + >>>> + clocks: >>>> + maxItems: 1 >>>> + >>>> + clock-names: >>>> + maxItems: 1 >>>> + >>>> + "#phy-cells": >>>> + const: 0 >>>> + >>>> +required: >>>> + - "#phy-cells" >>>> + - compatible >>>> + - intel,syscon >>>> + - clocks >>>> + - clock-names >>>> + >>>> +additionalProperties: false >>>> + >>>> +examples: >>>> + - | >>>> + sdxc_phy: sdxc_phy { >>>> + compatible = "intel,lgm-sdxc-phy"; >>>> + intel,syscon = <&sysconf>; >>> Rather than a phandle, can this be a child node of sysconf? You need a >>> binding for sysconf first anyways. >> intel,syscon is phandle, emmc_phy is not child node of sysconf, access >> emmc_phy >> register over sysconf so made as reference here. > How do you access the emmc_phy registers? They are part of the sysconf > address space or the sysconf provides some sort of indirect register > access? In case of the former, then emmc_phy should be a child node. > That's actually fairly common. Agreed!, you are correct. I have created two files one for syscon and other one is for emmc-phy Documentation/devicetree/bindings/phy/intel,syscon.yaml Documentation/devicetree/bindings/phy/intel,lgm-sdxc-phy.yaml As you said earlier mail, first syscon bindings to be there, sending the patch as well. Regards Vadivel > Rob >