On Mon, May 6, 2024 at 4:45 PM Sean Anderson <sean.anderson@xxxxxxxxx> wrote: > > Then we realize that not everyone need all the modem > > control signals provided. What to do. Well this: > > > > uart0_rxtx_grp = pin_rx, pin_tx: > > uart0_modem_grp = pin_cts, pin_dts, pin_dcd; > > > > mux0: > > function = "uart0"; > > groups = "uart0_rxtx_grp"; > > > > Now the CTS, DTS, DCD pins can be reused for something > > else such as GPIO. > > > > I *know* that this breaks ABI: the driver group definitions change > > and the device tree needs to be changed too. Actually I didn't think that over, it is possible to add new groups and retain the old ones. I.e. retain uart0_grp, but additionally add and use uart0_rxtx and uart0_modem_grp and use one or the other approach. > Well, the pin groups are actually defined in the PMU firmware. Is that firmware written in such an helpful way that the groups can be extracted from the firmware then, as with SCMI? Or is it a matter of duplicating the info from the PMU in the software-defined groups. > And > frankly, I don't see the point of pin "groups" when there are not actual > pin groups at the hardware level. The pins can all be muxed > individually, so there's no point in adding artificial groups on top. > Just mux the pins like the hardware allows and everything is easy. Cuts > down on the absurd number of strings too. So are you going to switch all of Xilinx devicetrees over to using exclusively the new method (muxing individual pins)? I'm fine with one (string identified groups) which I encourage, but I let individual pin control pass as well on several occasions. What I don't want to see is a Franken-solution that mixes the two approaches, even less so on the same system. Someone is going to have to maintain the resulting mess. And this looks like exactly that. If you want to mux individual pins instead of groups and functions, by all means, but please do not mix the two approaches in the same driver, I'm just trying to save Xilinx from themselves here. Yours, Linus Walleij