Closed sslupsky closed 4 years ago
@galak could you take a stab at answering the question please?
Atmel SAM0 GPIO, in general, requires a major overhaul, and this problem should probably be fixed as part of that (at this time, pinmux-ing is not properly done in the DT, but in a hack file pinmux.c
, and this is undesirable).
@stephanosio out of interest, what does a proper DT based pinmux setup look like?
I attempted to suppress the warning by adding the following line to pre_dt_board.cmake:
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address")
but this generates a compiler error:
gen_defines.py: error: unrecognized arguments: -Wno-unique_unit_address'
Similarly,
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")
generates error:
gen_defines.py: error: unrecognized arguments: -Wno-unique_unit_address_if_enabled'
@stephanosio out of interest, what does a proper DT based pinmux setup look like?
@nzmichaelh Something like: https://github.com/zephyrproject-rtos/zephyr/blob/98bcc51b0925a92db28f127d08b842b1d609bce8/dts/arm/atmel/same70.dtsi#L241-L301
@stephanosio thanks. I'm not sure if I'll finish it, but I started a branch at https://github.com/zephyrproject-rtos/zephyr/compare/master...nzmichaelh:pinctrl
When building a project using the samd dts, an warning is generated because of a duplicate unit address in dts/arm/atmel/samd.dtsi. The samd PORT peripheral controls both the GPIO and PINMUX functions of the soc. The samd.dtsi uses the address of the PORT peripheral for both nodes which results in the duplicate address warning. Thus, the warning can be safely ignored.
I am wondering if the warning can be cleaned up somehow?
Here is the warning: