From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Reichel Subject: Re: [RFCv1 2/4] mfd: twl4030-madc: Add DT support and convert to IIO framework Date: Sun, 16 Feb 2014 10:02:39 +0100 Message-ID: <20140216090238.GA9066@earth.universe> References: <20140214174040.GB26969@earth.universe> <1392403586-30540-1-git-send-email-sre@debian.org> <1392403586-30540-2-git-send-email-sre@debian.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-iio-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Belisko Marek Cc: Jonathan Cameron , Lee Jones , Samuel Ortiz , Lars-Peter Clausen , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Grant Likely , LKML , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Marek, On Sat, Feb 15, 2014 at 02:31:41PM +0100, Belisko Marek wrote: > > /* > > * Phoenix provides 2 interrupt lines. The first one is connected to > > * the OMAP. The other one can be connected to the other processor such > > * as modem. Hence two separate ISR and IMR registers. > > */ > > - madc->imr = (pdata->irq_line == 1) ? > > + if (pdata) > > + madc->use_second_irq = pdata->irq_line != 1; > > + else > > + madc->use_second_irq = false; > > Can we add some property to use second IRQ also in DT? Sure, a boolean property like this could be added: ti,system-uses-second-madc-irq; I did not add support for it initially, since I could not find any board in the mainline kernel with this setup. If such a board is added at some later point the driver can be extended easily. -- Sebastian --SUOF0GtieIMvvwua Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJTAH6uAAoJENju1/PIO/qaQm0P/1RmmaLyDoooZPnL95GpfOdR stcpRhg01JGctEp5sFB+q8dYd+SxqCB3/Kk+m7I5PfzgMx+jsrnr0e+lDl3cbjeE H3yvcfQiKa2AbdMscN6/uq7ju+7rxIQcRFUFq5vKFzwswGnPs373nb10rb9/I44B AcK99HcgTK376Q+1KuMjOCzFuvu3khpj8HX2uwsciZ/LJvYIl3Nu1NqPSZVyS2JH mJXluIIt0Y5HWtydvSyzF7YXBmITfN6Y9i0CMtzgFStAuMstot7BJ31edNilesma uA3b9YSyWm9JE/1g2NYfWD1VymAB62K/5onDwot11IzfI4tWUcxwBejpEVJvRY6r /WhPwqfXblreUqTPbgYxj1qlbB1l1klZxajUxeuddg1L9632zCiH+cgf9XEwzN1D 1JwWXOvApKOUKxx1D9HIljx6SSAR+fRph/q5kYoTD8EooxdrDZBmpClxkKpJsy+A gZH6n10pc6uaw7IPFmoSyEV2533PGWEtHxaU+ipo8+IKF73v594E4NdjN37pssGY dqk1tceSzaR3Kb2T65Jv32nzqbAz1zphyp/+atWCE8PbdC8YwPRToH9/2giTcRwB hlxsFJu6NxSEjzpRwaDBmtURdCSJGVu8ptBoxd2RPGBKl3ZcgaJk2AEtVe8wyrkJ WaIoYgsKXv9fxIK2Hiao =yLlO -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--