{"action":"created","issue":{"url":"https://api.github.com/repos/Xilinx/linux-xlnx/issues/59","labels_url":"https://api.github.com/repos/Xilinx/linux-xlnx/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/Xilinx/linux-xlnx/issues/59/comments","events_url":"https://api.github.com/repos/Xilinx/linux-xlnx/issues/59/events","html_url":"https://github.com/Xilinx/linux-xlnx/issues/59","id":95405063,"number":59,"title":"master and zync-soc hangs when using GPIO","user":{"login":"finomen","id":149399,"avatar_url":"https://avatars.githubusercontent.com/u/149399?v=3","gravatar_id":"","url":"https://api.github.com/users/finomen","html_url":"https://github.com/finomen","followers_url":"https://api.github.com/users/finomen/followers","following_url":"https://api.github.com/users/finomen/following{/other_user}","gists_url":"https://api.github.com/users/finomen/gists{/gist_id}","starred_url":"https://api.github.com/users/finomen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finomen/subscriptions","organizations_url":"https://api.github.com/users/finomen/orgs","repos_url":"https://api.github.com/users/finomen/repos","events_url":"https://api.github.com/users/finomen/events{/privacy}","received_events_url":"https://api.github.com/users/finomen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-16T10:35:33Z","updated_at":"2015-07-20T12:46:32Z","closed_at":"2015-07-20T12:46:32Z","body":"I tried both master and zync-soc branches.\r\nIn devicetree I have four gpios like this\r\naxi_gpio_1: gpio@41240000 {\r\n\t\t\t#gpio-cells = <2>;\r\n\t\t\tcompatible = \"xlnx,xps-gpio-1.00.a\";\r\n\t\t\tgpio-controller ;\r\n\t\t\tinterrupt-parent = <&intc>;\r\n\t\t\tinterrupts = <0 31 4>;\r\n\t\t\treg = <0x41240000 0x10000>;\r\n\t\t\txlnx,all-inputs = <0x0>;\r\n\t\t\txlnx,all-inputs-2 = <0x0>;\r\n\t\t\txlnx,all-outputs = <0x1>;\r\n\t\t\txlnx,all-outputs-2 = <0x0>;\r\n\t\t\txlnx,dout-default = <0x41240000>;\r\n\t\t\txlnx,dout-default-2 = <0x00000000>;\r\n\t\t\txlnx,gpio-width = <0x1>;\r\n\t\t\txlnx,gpio2-width = <0x20>;\r\n\t\t\txlnx,interrupt-present = <0x1>;\r\n\t\t\txlnx,is-dual = <0x0>;\r\n\t\t\txlnx,tri-default = <0x4124FFFF>;\r\n\t\t\txlnx,tri-default-2 = <0xFFFFFFFF>;\r\n\t\t};\r\nIn vivado they connected to FPGA (interconnect). When I reading GPIO value or changing direction through sysfs or from my kernel module system hangs.\r\n\r\nWith old (3.0.9) kernel and xps project all works fine. If I execute simple code, that executes Xil_In32/Xil_Out32 GPIO's works fine. \r\n\r\nIn old devicetree GPIOs looks like\r\naxi_gpio_0: gpio@41240000 {\r\n\t\t\t#gpio-cells = <0x2>;\r\n\t\t\tcompatible = \"xlnx,axi-gpio-1.01.b\", \"xlnx,xps-gpio-1.00.a\";\r\n\t\t\tgpio-controller;\r\n\t\t\treg = <0x41240000 0x10000>;\r\n\t\t\txlnx,all-inputs = <0x0>;\r\n\t\t\txlnx,all-inputs-2 = <0x0>;\r\n\t\t\txlnx,dout-default = <0x0>;\r\n\t\t\txlnx,dout-default-2 = <0x0>;\r\n\t\t\txlnx,gpio-width = <0x1>;\r\n\t\t\txlnx,gpio2-width = <0x20>;\r\n\t\t\txlnx,instance = \"axi_gpio_0\";\r\n\t\t\txlnx,interrupt-present = <0x1>;\r\n\t\t\txlnx,is-dual = <0x0>;\r\n\t\t\txlnx,tri-default = <0xffffffff>;\r\n\t\t\txlnx,tri-default-2 = <0xffffffff>;\r\n\t\t};\r\n\r\nAlthough old kernel use numbers 252-254 for GPIO, but 4..0/4.1 kernel use 1020-1023."},"comment":{"url":"https://api.github.com/repos/Xilinx/linux-xlnx/issues/comments/122872798","html_url":"https://github.com/Xilinx/linux-xlnx/issues/59#issuecomment-122872798","issue_url":"https://api.github.com/repos/Xilinx/linux-xlnx/issues/59","id":122872798,"user":{"login":"michalsimek","id":4162584,"avatar_url":"https://avatars.githubusercontent.com/u/4162584?v=3","gravatar_id":"","url":"https://api.github.com/users/michalsimek","html_url":"https://github.com/michalsimek","followers_url":"https://api.github.com/users/michalsimek/followers","following_url":"https://api.github.com/users/michalsimek/following{/other_user}","gists_url":"https://api.github.com/users/michalsimek/gists{/gist_id}","starred_url":"https://api.github.com/users/michalsimek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalsimek/subscriptions","organizations_url":"https://api.github.com/users/michalsimek/orgs","repos_url":"https://api.github.com/users/michalsimek/repos","events_url":"https://api.github.com/users/michalsimek/events{/privacy}","received_events_url":"https://api.github.com/users/michalsimek/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T12:46:32Z","updated_at":"2015-07-20T12:46:32Z","body":"There is new code in mailine for xilinx gpio without irq support. In xilinx tree we do use older code with irq support. Kernel version, information about your testcase are needed. Also please use xilinx forums."}}