zmk icon indicating copy to clipboard operation
zmk copied to clipboard

docs: Added a page on pin control for ZMK

Open nmunnich opened this issue 1 year ago • 3 comments

Should be fine aside from the part which I noted as needing to be tested. I think this is a worthwhile addition, as trying to piece things together from Zephyr's docs and examples can be very difficult, and an increasing number of designers are using features that make use of pin control.

nmunnich avatar Sep 26 '24 16:09 nmunnich

Pinctrl master bindings can be outside of zephyr in the HAL, as I discovered when looking for bindings for the teensy and the samd21. It may be worth noting that in an info box in case someone is trying to find the available bindings for their specific MCU?

https://github.com/zephyrproject-rtos/hal_atmel/blob/master/include%2Fdt-bindings%2Fpinctrl%2Fsamd21-da1eXabcd-pinctrl.h

https://github.com/zephyrproject-rtos/hal_nxp/blob/master/dts%2Fnxp%2Fnxp_imx%2Frt%2Fmimxrt1061xvn5b-pinctrl.dtsi

ReFil avatar Sep 26 '24 16:09 ReFil

Pinctrl master bindings can be outside of zephyr in the HAL, as I discovered when looking for bindings for the teensy and the samd21. It may be worth noting that in an info box in case someone is trying to find the available bindings for their specific MCU?

Good shout, added

nmunnich avatar Sep 26 '24 16:09 nmunnich

here's a reminder, documentation or a mention on the required property clock in pio0_spi is missing :3

eldritch-elder avatar Oct 20 '24 13:10 eldritch-elder

Did some adjustments, should have fixed all the topics raised in the process. Also added a bunch more examples at the bottom of the page, felt they would be a useful reference for people.

nmunnich avatar Oct 22 '24 22:10 nmunnich