There is no need in any fixes to have the Baikal-T1 SoC DW GPIO controllerssupported by the kernel DW APB GPIO driver. It works for them just fine withno modifications. But still there is a room for optimizations there.

First of all as it tends to be traditional for all Baikal-T1 SoC relatedpatchset we replaced the legacy plain text-based dt-binding file withyaml-based one. Baikal-T1 DW GPIO port A supports a debounce functionality,but in order to use it the corresponding reference clock must be enabled.We added support of that clock in the driver and made sure the dt-bindingshad its declaration. In addition seeing both APB and debounce referenceclocks are optional, we replaced the standard devm_clk_get() usage withthe function of optional clocks acquisition.

This patchset is rebased and tested on the mainline Linux kernel 5.6-rc4:commit 98d54f81e36b ("Linux 5.6-rc4").