From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Subject: Re: [PATCH v2 05/22] doc: dt-binding: usb: add otg related properties Date: Mon, 15 Jun 2015 15:25:48 +0300 Message-ID: <557EC44C.4050306@cogentembedded.com> References: <20150610103737.3cc7c10d@rockdesk> <20150610134735.GB7678@shlinux2> <20150611101853.643a9334@rockdesk> <20150611082010.GA16101@shlinux2> <20150611153703.55dff608@rockdesk> <20150611141121.GC16101@shlinux2> <20150611175215.6e04d92e@rockdesk> <20150612030916.GF16101@shlinux2> <20150612113102.6aa67d5d@rockdesk> <20150615074100.GA29918@shlinux2> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150615074100.GA29918@shlinux2> Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Li Jun , Roger Quadros Cc: Rob Herring , Li Jun-B47624 , Greg Kroah-Hartman , Felipe Balbi , Chen Peter-B29397 , Linux USB List , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Rob Herring , Pawel Moll , Mark Rutland , Macpaul Lin List-Id: devicetree@vger.kernel.org Hello. On 6/15/2015 10:41 AM, Li Jun wrote: [...] > Regarding use of "xyz-disable" flags: > After more thinking this, I just realize that we can use "otg-rev" property > to handle the case of none of xyz-disable properties passed, for legacy > platforms, the new "otg-rev" not passed either, so it's a legacy platform, > if new platform does support all 3 features(SRP/HNP/ADP), the otg-rev > should be passed and also should be 2.0 or above, because ADP is > introduced in OTG 2.0(maybe that's why in current gadget driver, only > enable SRP/HNP). > > So: > 1) new platform with full otg feature support: > dr_mode = "otg"; > otg-rev = "0x0200"; If you're going to use a string value for this prop, why not let it have a natural form, "2.0"? WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html