Re: [PATCH dt-schema] schemas: i2c: add optional GPIO binding for SMBALERT# line

Wolfram Sang <[email protected]>
Newsgroups org.kernel.vger.devicetree-spec,org.kernel.vger.linux-i2c,org.kernel.vger.linux-renesas-soc
Message-ID <ZvqEbMHgbNymNUYJ@shikoro>
> > I had this originally in my RFC[1]. I got convinced by Geert's arguments
> > because the DT snippet in the board DTS looked kinda ugly. The board
> > needs to override the DTSI of the SoC to replace "interrupts" with
> > "interrupts-extended":
> > 
> > ===
> > 
> >  &i2c3	{
> >  	pinctrl-0 = <&i2c3_pins>;
> >  	pinctrl-names = "i2c-pwr";
> > +
> > +	/delete-property/ interrupts;
> > +	interrupts-extended = <&gic GIC_SPI 290 IRQ_TYPE_LEVEL_HIGH>, <&gpio1 26 IRQ_TYPE_EDGE_FALLING>;
> > +	interrupt-names = "main", "smbus_alert";
> > +
> > +	smbus;
> >  };
> > 
> > ===
> 
> I guess my questions here are: is this proper? Is there a better way to
> describe it? Is using interrupts still the way to go?

Hi Rob,

do you still prefer "interrupts" over "smbalert-gpios" given the above
snippet?

Thanks,

   Wolfram
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmb6hGgACgkQFA3kzBSg
KbZQRxAAisaHk/3B+ojhVo3LMlr6I4s7403zjpBZFdZxs8v5qX4Z0oR0aoyKRlfo
A6Nmv0jfGk2vgSJQdmcT/hatWYvFKofHT9JKWREIPIIwW60l1m1osnxPHC9WGOnT
6peA7Ktvmw7JYmkOoxB4rhaGXvFxj3HIbD+bKi+gRrGROdHlx0otxfISZfhArbUW
4TaWwWqWbFFq53Q9aLHjoaHgMqkSWddjotD43DcGBwlmXy2l1M+hUr3L2GcHcLFZ
DxXjpG15pkQSWZ4XGLTbVsXEquSOf6bkIEyUmzSFHJG4pPgYyLiKf65fXtMJOJ2B
+xy0VQmlJ49ajxxdidflCFZI1GqJAnqzS/IzthSCO+v1/F/A54QdntM8zJIn3V1C
eUkcqBdLAdm213WnR5pYdrUj1TiuPXShHPLKWZsdIGcgH0600yMTJjb/4yGJYsAM
Fy7WmENQy9L/TobeBT9E+0pU391ro3Mhl+Am2hRWUvK40ryQc1AKfpVHs0m6UMoW
uZzZpp8OBlcCAfbXfMBtXB3WbM6tCwHwlmJ1ez1iFDRDGkV2vWw7nPkyIdc8wfy3
MIvxiqu4CAYz4NNUrsK3dXPQKjGnmtJND7evNDCIh8iSFLiYzggUpTGwkO6kiICf
rLcUUUV7dxZKMahqzLtVmn7BgWosHPmyIqWMhJwtC9leG2FYN2w=
=l1v0
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.