From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hongzhou Yang Subject: Re: [PATCH 6/6] pinctrl: mt8173: set GPIO16 to usb iddig mode Date: Wed, 11 May 2016 19:09:02 -0700 Message-ID: <1463018942.1608.5.camel@mussux00> References: <1462868614-20602-1-git-send-email-chunfeng.yun@mediatek.com> <1462868614-20602-7-git-send-email-chunfeng.yun@mediatek.com> <1462991546.11623.3.camel@mussux00> <1463017282.11651.82.camel@mhfsdcap03> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1463017282.11651.82.camel@mhfsdcap03> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: chunfeng yun Cc: Linus Walleij , Maoguang Meng , Yingjoe Chen , Greg Kroah-Hartman , Felipe Balbi , Mathias Nyman , Alan Stern , Rob Herring , Mark Rutland , Ian Campbell , Matthias Brugger , Sergei Shtylyov , Pawel Moll , Kumar Gala , Sascha Hauer , Biao Huang , "linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XcXa4x6EXUF0@public.gmane.org List-Id: linux-gpio@vger.kernel.org On Thu, 2016-05-12 at 09:41 +0800, chunfeng yun wrote: > Hi, > > On Wed, 2016-05-11 at 11:32 -0700, Hongzhou Yang wrote: > > On Wed, 2016-05-11 at 13:56 +0200, Linus Walleij wrote: > > > On Tue, May 10, 2016 at 10:23 AM, Chunfeng Yun > > > wrote: > > > > > > > the default mode of GPIO16 pin is gpio, when set EINT16 to > > > > IRQ_TYPE_LEVEL_HIGH, no interrupt is triggered, it can be > > > > fixed when set its default mode as usb iddig. > > > > > > > > Signed-off-by: Chunfeng Yun > > > > > > > Chunfeng, GPIO16 can be used as EINT16 mode, but the pinmux should be 0. > > If you want to set its default mode to iddig, you should set it in dts. > > > I set it in DTS, but it didn't work, because when usb driver requested > IRQ, pinmux was switched back to default mode set by > MTK_EINT_FUNCTION(). > After confirmed, there are something wrong with data sheet and pinmux table, and GPIO16 can only receive interrupt by mode 1. So Acked-by: Hongzhou Yang Yours, Hongzhou -- 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