Re: [PATCH 1/2] dt-bindings: pinctrl: airoha: Add EN7581 pinctrl controller
From: Benjamin Larsson <hidden>
Date: 2024-08-18 12:48:10
Also in:
linux-devicetree, linux-gpio, linux-mediatek
On 17/08/2024 23:39, Andrew Lunn wrote:
How messy are the GPIO and PWM registers? Are there N blocks of
independent GPIO registers? and M blocks of independent PWM registers?
By that, does one block of GPIO registers contain all you need for one
GPIO controller? One block of PWM registers give you all you need for
one PWM controller? Or are the registers for one GPIO controller
scattered all over the place?
Could you point at a public datasheet?
AndrewHi, per my understanding there is no public datasheet/register reference manual. But here is the division of regions of the registers in the gpio block and how it is currently divided between the drivers (according to my current understanding). 1FBF0200, gpio/pinctrl 1FBF0204, gpio/pinctrl 1FBF0208, gpio/pinctrl 1FBF020C, gpio/pinctrl 1FBF0210, gpio/pinctrl 1FBF0214, gpio/pinctrl 1FBF0218, unclaimed 1FBF021C, pwm 1FBF0220, gpio/pinctrl 1FBF0224, pwm 1FBF0228, pwm 1FBF022C, pwm 1FBF0230, pwm 1FBF0234, pwm 1FBF0238, unclaimed 1FBF023C, pwm 1FBF0240, pwm 1FBF0244, pwm 1FBF0248, pwm 1FBF024C, pwm 1FBF0250, pwm 1FBF0254, pwm 1FBF0258, pwm 1FBF025C, pwm 1FBF0260, gpio/pinctrl 1FBF0264, gpio/pinctrl 1FBF0268, gpio/pinctrl 1FBF0270, gpio/pinctrl 1FBF0278, gpio/pinctrl 1FBF027C, gpio/pinctrl 1FBF0280, gpio/pinctrl 1FBF0284, gpio/pinctrl 1FBF0288, gpio/pinctrl 1FBF028C, gpio/pinctrl 1FBF0290, gpio/pinctrl 1FBF0294, gpio/pinctrl 1FBF0298, pwm 1FBF029C, pwm 1FBF02A0, unclaimed 1FBF02A4, unclaimed 1FBF02A8, unclaimed 1FBF02AC, unclaimed 1FBF02B0, unclaimed 1FBF02B4, unclaimed 1FBF02B8, unclaimed 1FBF02BC, pwm (but currently unclaimed) The gpio functions are split in 2x32bit register banks. The pin-io and interrupt support for these are split amongst the regions. MvH Benjamin Larsson