From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754003AbdHWNH6 (ORCPT ); Wed, 23 Aug 2017 09:07:58 -0400 Received: from mail-qk0-f179.google.com ([209.85.220.179]:38466 "EHLO mail-qk0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753954AbdHWNH4 (ORCPT ); Wed, 23 Aug 2017 09:07:56 -0400 MIME-Version: 1.0 In-Reply-To: <20170823054246.23927-1-kishon@ti.com> References: <20170821142132.GH6008@atomide.com> <20170823054246.23927-1-kishon@ti.com> From: Ulf Hansson Date: Wed, 23 Aug 2017 15:07:54 +0200 Message-ID: Subject: Re: [PATCH v3 3/5] dt-bindings: sdhci-omap: Add bindings for the sdhci-omap controller To: Kishon Vijay Abraham I Cc: Adrian Hunter , Rob Herring , Tony Lindgren , Sekhar Nori , Russell King , Ravikumar Kattekola , "linux-mmc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , linux-omap , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23 August 2017 at 07:42, Kishon Vijay Abraham I wrote: > Add binding for the TI's sdhci-omap controller. This now includes only > a subset of properties documented in ti-omap-hsmmc.txt but will eventually > include all the properties. > > Signed-off-by: Kishon Vijay Abraham I > --- > Changes from v2: > *) Fixed example to use the updated compatible > > Changes from v1: > *) Create a new sdhci-omap.txt document for TI's sdhci-omap controller instead > of using the ti-omap-hsmmc.txt as suggested by Tony > .../devicetree/bindings/mmc/sdhci-omap.txt | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-omap.txt > > diff --git a/Documentation/devicetree/bindings/mmc/sdhci-omap.txt b/Documentation/devicetree/bindings/mmc/sdhci-omap.txt > new file mode 100644 > index 000000000000..139695ad2d58 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mmc/sdhci-omap.txt > @@ -0,0 +1,22 @@ > +* TI OMAP SDHCI Controller > + > +Refer to mmc.txt for standard MMC bindings. > + > +Required properties: > +- compatible: Should be "ti,dra7-sdhci" for DRA7 and DRA72 controllers > +- ti,hwmods: Must be "mmc", is controller instance starting 1 > + > +Optional properties: > +- ti,dual-volt: boolean, supports dual voltage cards > +- ti,non-removable: non-removable slot (like eMMC) > + > +Example: > + mmc1: mmc@0x4809c000 { > + compatible = "ti,dra7-sdhci"; > + reg = <0x4809c000 0x400>; > + ti,hwmods = "mmc1"; > + ti,dual-volt; > + bus-width = <4>; > + vmmc-supply = <&vmmc>; /* phandle to regulator node */ > + ti,non-removable; > + }; > -- > 2.11.0 > I am wondering a bit on the long term plan here. Ideally at some point in future, we would like to remove the old omap_hsmmc driver, but from compatible string point of view, that means we first needs to deprecate the old ones for a while. Right? That said, what is then the reason to why we should bring over the existing omap_hsmmc bindings to the sdhci-omap bindings? For example, "ti,dual-volt" can likely be replaced with something better that already exists (either a common mmc binding or an sdhci binding). For "ti,non-removable", we already have a common mmc binding "non-removable" for this. Kind regards Uffe From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Hansson Subject: Re: [PATCH v3 3/5] dt-bindings: sdhci-omap: Add bindings for the sdhci-omap controller Date: Wed, 23 Aug 2017 15:07:54 +0200 Message-ID: References: <20170821142132.GH6008@atomide.com> <20170823054246.23927-1-kishon@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <20170823054246.23927-1-kishon-l0cyMroinI0@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Kishon Vijay Abraham I Cc: Adrian Hunter , Rob Herring , Tony Lindgren , Sekhar Nori , Russell King , Ravikumar Kattekola , "linux-mmc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , linux-omap , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" List-Id: devicetree@vger.kernel.org On 23 August 2017 at 07:42, Kishon Vijay Abraham I wrote: > Add binding for the TI's sdhci-omap controller. This now includes only > a subset of properties documented in ti-omap-hsmmc.txt but will eventually > include all the properties. > > Signed-off-by: Kishon Vijay Abraham I > --- > Changes from v2: > *) Fixed example to use the updated compatible > > Changes from v1: > *) Create a new sdhci-omap.txt document for TI's sdhci-omap controller instead > of using the ti-omap-hsmmc.txt as suggested by Tony > .../devicetree/bindings/mmc/sdhci-omap.txt | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-omap.txt > > diff --git a/Documentation/devicetree/bindings/mmc/sdhci-omap.txt b/Documentation/devicetree/bindings/mmc/sdhci-omap.txt > new file mode 100644 > index 000000000000..139695ad2d58 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mmc/sdhci-omap.txt > @@ -0,0 +1,22 @@ > +* TI OMAP SDHCI Controller > + > +Refer to mmc.txt for standard MMC bindings. > + > +Required properties: > +- compatible: Should be "ti,dra7-sdhci" for DRA7 and DRA72 controllers > +- ti,hwmods: Must be "mmc", is controller instance starting 1 > + > +Optional properties: > +- ti,dual-volt: boolean, supports dual voltage cards > +- ti,non-removable: non-removable slot (like eMMC) > + > +Example: > + mmc1: mmc@0x4809c000 { > + compatible = "ti,dra7-sdhci"; > + reg = <0x4809c000 0x400>; > + ti,hwmods = "mmc1"; > + ti,dual-volt; > + bus-width = <4>; > + vmmc-supply = <&vmmc>; /* phandle to regulator node */ > + ti,non-removable; > + }; > -- > 2.11.0 > I am wondering a bit on the long term plan here. Ideally at some point in future, we would like to remove the old omap_hsmmc driver, but from compatible string point of view, that means we first needs to deprecate the old ones for a while. Right? That said, what is then the reason to why we should bring over the existing omap_hsmmc bindings to the sdhci-omap bindings? For example, "ti,dual-volt" can likely be replaced with something better that already exists (either a common mmc binding or an sdhci binding). For "ti,non-removable", we already have a common mmc binding "non-removable" for this. Kind regards Uffe -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: ulf.hansson@linaro.org (Ulf Hansson) Date: Wed, 23 Aug 2017 15:07:54 +0200 Subject: [PATCH v3 3/5] dt-bindings: sdhci-omap: Add bindings for the sdhci-omap controller In-Reply-To: <20170823054246.23927-1-kishon@ti.com> References: <20170821142132.GH6008@atomide.com> <20170823054246.23927-1-kishon@ti.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 23 August 2017 at 07:42, Kishon Vijay Abraham I wrote: > Add binding for the TI's sdhci-omap controller. This now includes only > a subset of properties documented in ti-omap-hsmmc.txt but will eventually > include all the properties. > > Signed-off-by: Kishon Vijay Abraham I > --- > Changes from v2: > *) Fixed example to use the updated compatible > > Changes from v1: > *) Create a new sdhci-omap.txt document for TI's sdhci-omap controller instead > of using the ti-omap-hsmmc.txt as suggested by Tony > .../devicetree/bindings/mmc/sdhci-omap.txt | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-omap.txt > > diff --git a/Documentation/devicetree/bindings/mmc/sdhci-omap.txt b/Documentation/devicetree/bindings/mmc/sdhci-omap.txt > new file mode 100644 > index 000000000000..139695ad2d58 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mmc/sdhci-omap.txt > @@ -0,0 +1,22 @@ > +* TI OMAP SDHCI Controller > + > +Refer to mmc.txt for standard MMC bindings. > + > +Required properties: > +- compatible: Should be "ti,dra7-sdhci" for DRA7 and DRA72 controllers > +- ti,hwmods: Must be "mmc", is controller instance starting 1 > + > +Optional properties: > +- ti,dual-volt: boolean, supports dual voltage cards > +- ti,non-removable: non-removable slot (like eMMC) > + > +Example: > + mmc1: mmc at 0x4809c000 { > + compatible = "ti,dra7-sdhci"; > + reg = <0x4809c000 0x400>; > + ti,hwmods = "mmc1"; > + ti,dual-volt; > + bus-width = <4>; > + vmmc-supply = <&vmmc>; /* phandle to regulator node */ > + ti,non-removable; > + }; > -- > 2.11.0 > I am wondering a bit on the long term plan here. Ideally at some point in future, we would like to remove the old omap_hsmmc driver, but from compatible string point of view, that means we first needs to deprecate the old ones for a while. Right? That said, what is then the reason to why we should bring over the existing omap_hsmmc bindings to the sdhci-omap bindings? For example, "ti,dual-volt" can likely be replaced with something better that already exists (either a common mmc binding or an sdhci binding). For "ti,non-removable", we already have a common mmc binding "non-removable" for this. Kind regards Uffe