arm/arm64: dts: adi: use ngpios DT property for port pin count#3371
arm/arm64: dts: adi: use ngpios DT property for port pin count#3371jiez wants to merge 2 commits into
Conversation
| gpio->gpio.to_irq = adsp_gpio_to_irq; | ||
| gpio->gpio.request = gpiochip_generic_request; | ||
| gpio->gpio.free = gpiochip_generic_free; | ||
| gpio->gpio.ngpio = ADSP_PORT_NGPIO; |
There was a problem hiding this comment.
should be a different patch
3321455 to
d8427a4
Compare
LLM reviewThis series fixes incorrect GPIO pin count reporting in the ADI ADSP GPIO driver and DTS files for SC57x, SC58x, SC59x (ARM) and SC59x-64 (ARM64). The driver previously hard-coded run: 28013140183
|
Add ngpios to all GPIO port nodes in sc57x, sc58x, sc59x and sc59x-64 DTS files, correctly reflecting the actual hardware pin count for each port. Fixes: 586c060 ("gpio: Add GPIO port driver for ADSP-SC5xxx SoCs") Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Now that ngpios is specified per-port in the DTS, the hardcoded ADSP_PORT_NGPIO=16 constant and its use in probe are no longer needed. The gpio chip ngpio count is set by the core from the ngpios DT property. Fixes: 586c060 ("gpio: Add GPIO port driver for ADSP-SC5xxx SoCs") Signed-off-by: Jie Zhang <jie.zhang@analog.com>
d8427a4 to
53a4ea7
Compare
|
|
Will also be obviated by my changes in #3397 - consider dropping. |
OK. We can keep this PR open until your changes are merged. I will also need to adjust u-boot for your changes. Hopefully it will not be difficult. |
Sure thing. Maybe we can have a chat about what needs to change in u-boot? I didn't really consider it while making my changes. I assume the point is to be able to share the device trees between Linux and u-boot? |
Yes. There are one PR analogdevicesinc/u-boot#104 and one commit analogdevicesinc/u-boot@e440a37 (maybe there are several more) to make u-boot align with the current Linux DTS regarding GPIO and pinctrl. |
Add ngpios to all GPIO port nodes in sc57x, sc58x, sc59x and sc59x-64 DTS files, correctly reflecting the actual hardware pin count for each port. Modify the ADI ADSP GPIO driver accordingly.
PR Type
PR Checklist