1*4882a593SmuzhiyunKeystone 2 DSP GPIO controller bindings 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunHOST OS userland running on ARM can send interrupts to DSP cores using 4*4882a593Smuzhiyunthe DSP GPIO controller IP. It provides 28 IRQ signals per each DSP core. 5*4882a593SmuzhiyunThis is one of the component used by the IPC mechanism used on Keystone SOCs. 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunFor example TCI6638K2K SoC has 8 DSP GPIO controllers: 8*4882a593Smuzhiyun - 8 for C66x CorePacx CPUs 0-7 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunKeystone 2 DSP GPIO controller has specific features: 11*4882a593Smuzhiyun- each GPIO can be configured only as output pin; 12*4882a593Smuzhiyun- setting GPIO value to 1 causes IRQ generation on target DSP core; 13*4882a593Smuzhiyun- reading pin value returns 0 - if IRQ was handled or 1 - IRQ is still 14*4882a593Smuzhiyun pending. 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunRequired Properties: 17*4882a593Smuzhiyun- compatible: should be "ti,keystone-dsp-gpio" 18*4882a593Smuzhiyun- ti,syscon-dev: phandle/offset pair. The phandle to syscon used to 19*4882a593Smuzhiyun access device state control registers and the offset of device's specific 20*4882a593Smuzhiyun registers within device state control registers range. 21*4882a593Smuzhiyun- gpio-controller: Marks the device node as a gpio controller. 22*4882a593Smuzhiyun- #gpio-cells: Should be 2. 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunPlease refer to gpio.txt in this directory for details of the common GPIO 25*4882a593Smuzhiyunbindings used by client devices. 26*4882a593Smuzhiyun 27*4882a593SmuzhiyunExample: 28*4882a593Smuzhiyun dspgpio0: keystone_dsp_gpio@2620240 { 29*4882a593Smuzhiyun compatible = "ti,keystone-dsp-gpio"; 30*4882a593Smuzhiyun ti,syscon-dev = <&devctrl 0x240>; 31*4882a593Smuzhiyun gpio-controller; 32*4882a593Smuzhiyun #gpio-cells = <2>; 33*4882a593Smuzhiyun }; 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun dsp0: dsp0 { 36*4882a593Smuzhiyun compatible = "linux,rproc-user"; 37*4882a593Smuzhiyun ... 38*4882a593Smuzhiyun kick-gpio = <&dspgpio0 27>; 39*4882a593Smuzhiyun }; 40