Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp613957ybe; Mon, 2 Sep 2019 06:43:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkcn4i3AAnEX2a2SmkDjpy2Xn5So5V9NBDDKOj2hsuKamDeVKEwY8Xj/Ouw4FyoMFldwoj X-Received: by 2002:a65:50c8:: with SMTP id s8mr25143056pgp.339.1567431811722; Mon, 02 Sep 2019 06:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567431811; cv=none; d=google.com; s=arc-20160816; b=ds3dSyyQJlN3i32mNbKjfHi2eV/8ZeTyVep/et1J3T8JYVjaz6mEcxfEQb98Lknl+G EHBOE3iT0NB8wcwDCFA22DjnIX+UTiaHaD8DXDzQ+wCjWvWVin8rVVcjbIqGUFbygbhG 8zJ0KT9nJ57aXKvPSSWvNaJcUK9pf9IEi/CF6YR7WgOxsNmfmeZyXL1Bc7+gSxH+bUya qyH61SpUq+/5EsbMRJ9dfxCufKGbVIjWiDeko4uIZIXuPYi/Vhj5sOUlQ0xIQQPYOKXy E79oPXPS9qmVS2k+XoshEk3ZAVWgyscte8bZ/P9QmvbU7AfvBv2UvFw8cnM6al0tVRWY nHTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=5MMBpvJ5ak+IZknDtorRR/rkjPkRZoS5gxFedreuzhc=; b=lgeHyqgYtGfpbi7WMHNupiYKX7vX35XeAP5QB27xh0pPj6HiQCh6yYCY3HNwo8hXXp BjQo+jaUpKeECrV6EhqL3BteO4Y+LIcwivuzTQKvmwE/t1SjA7hZQccTOn1x+tiDi2lK cOiy1Dt5k/lcBwfN2IZRBn8nnSpSc56GvESuFS6ow1FEHgWds1xR0wMOHvd1un9puzj9 o15GC4/B2lU49CVcXtT8Sxkl3tqwCOI79tnh8m1pcgm7MvLsA36ovyuAwOWAhmM0PDmP BfhLFYd/9uU4By+jumUiY+nmo9+E7r9oq/kfxTlYAgpBQphDEywdAjJCcfDeJCQFTLoA vUFQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m19si11312414pls.146.2019.09.02.06.43.16; Mon, 02 Sep 2019 06:43:31 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731035AbfIBNiy (ORCPT + 99 others); Mon, 2 Sep 2019 09:38:54 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:33716 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730958AbfIBNiu (ORCPT ); Mon, 2 Sep 2019 09:38:50 -0400 Received: by mail-wm1-f68.google.com with SMTP id r17so11990603wme.0; Mon, 02 Sep 2019 06:38:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=5MMBpvJ5ak+IZknDtorRR/rkjPkRZoS5gxFedreuzhc=; b=aFo869wyv57JxFWoYUcvJgDY8bCQqp8LBs2mn9pBaVKOqp6wG/S9cg7ldNe7PcQbAw w62RcRl+qQI+TYKhmcRYbvWva6VSUBODZZDTL5xeBNlqLP1pm0xVR+2dXz0e+ZDm1DQv 4mVGhZVvXD+P79/qgrYjOOs3huI/PimE4Hz9LgF4e8uSY3UPVl/Gd2yrHRQPtyWVGD6E 9nQ5bEjY6LEVYdg209yJnaBX7PfZKAo7vd5OkfLNgMPo+9pdNw9Lf2EfY2zp6tWbDDu6 tUpYD2qrDC2HqR5PRX23fDcVz9qZAOpWJBQgucvXY5DtU1TTQzOSXpF7tHYRxs3MTiOJ oVgA== X-Gm-Message-State: APjAAAVaiLq4FF1LhMoPSjscKzwa5ZafZtTx8b7MSXCE/ihD5NfnY4ty WzQjE07S5VqALRcZKMmGDQ== X-Received: by 2002:a1c:720e:: with SMTP id n14mr27039475wmc.54.1567431528402; Mon, 02 Sep 2019 06:38:48 -0700 (PDT) Received: from localhost ([212.187.182.166]) by smtp.gmail.com with ESMTPSA id 12sm11631057wmi.34.2019.09.02.06.38.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2019 06:38:47 -0700 (PDT) Date: Mon, 02 Sep 2019 14:38:47 +0100 From: Rob Herring To: "Ramuthevar,Vadivel MuruganX" 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 Subject: Re: [PATCH v2 1/2] dt-bindings: phy: intel-sdxc-phy: Add YAML schema for LGM SDXC PHY Message-ID: <20190902033716.GA18092@bogus> References: <20190828124315.48448-1-vadivel.muruganx.ramuthevar@linux.intel.com> <20190828124315.48448-2-vadivel.muruganx.ramuthevar@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190828124315.48448-2-vadivel.muruganx.ramuthevar@linux.intel.com> X-Mutt-References: <20190828124315.48448-2-vadivel.muruganx.ramuthevar@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 28, 2019 at 08:43:14PM +0800, 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 | 52 ++++++++++++++++++++++ > .../devicetree/bindings/phy/intel,syscon.yaml | 33 ++++++++++++++ > 2 files changed, 85 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/intel,lgm-sdxc-phy.yaml > create mode 100644 Documentation/devicetree/bindings/phy/intel,syscon.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..99647207b414 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/intel,lgm-sdxc-phy.yaml > @@ -0,0 +1,52 @@ > +# 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 > + > +allOf: > + - $ref: "intel,syscon.yaml" You don't need this. It should be selected and applied by the compatible string matching. > + > +description: Binding for SDXC PHY > + > +properties: > + compatible: > + const: intel,lgm-sdxc-phy > + > + intel,syscon: > + description: phandle to the sdxc through syscon > + > + 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>; Make this a child of the below node and then you don't need this. If there's a register address range associated with this, then add a reg property. > + clocks = <&sdxc>; > + clock-names = "sdxcclk"; > + #phy-cells = <0>; > + }; > + > +... > diff --git a/Documentation/devicetree/bindings/phy/intel,syscon.yaml b/Documentation/devicetree/bindings/phy/intel,syscon.yaml > new file mode 100644 > index 000000000000..d0b78805e49f > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/intel,syscon.yaml > @@ -0,0 +1,33 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/intel,syscon.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Syscon for eMMC/SDXC PHY Device Tree Bindings Nothing else in this h/w block? If there are other functions, then this should not be in bindings/phy/. > + > +maintainers: > + - Ramuthevar Vadivel Murugan > + > +properties: > + compatible: > + const: intel,syscon Needs to be more specific and reflect h/w blocks. 'syscon' is a Linux thing to some extent. > + > + reg: > + maxItems: 1 > + > + "#reset-cells": > + const: 1 > + > +required: > + - compatible > + - reg > + - "#reset-cells" > + > +examples: > + - | > + sysconf: chiptop@e0020000 { > + compatible = "intel,syscon", "syscon"; > + reg = <0xe0020000 0x100>; > + #reset-cells = <1>; > + }; > -- > 2.11.0 >