[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 5/6] hw/gpio/aspeed: Add AST2700 support
From: |
Andrew Jeffery |
Subject: |
Re: [PATCH v3 5/6] hw/gpio/aspeed: Add AST2700 support |
Date: |
Fri, 27 Sep 2024 11:49:52 +0930 |
User-agent: |
Evolution 3.46.4-2 |
On Thu, 2024-09-26 at 15:45 +0800, Jamin Lin wrote:
> AST2700 integrates two set of Parallel GPIO Controller
> with maximum 212 control pins, which are 27 groups.
> (H, exclude pin: H7 H6 H5 H4)
>
> In the previous design of ASPEED SOCs,
> one register is used for setting one function for one set which are 32 pins
> and 4 groups.
> ex: GPIO000 is used for setting data value for GPIO A, B, C and D in AST2600.
> ex: GPIO004 is used for setting direction for GPIO A, B, C and D in AST2600.
>
> However, the register set have a significant change since AST2700.
> Each GPIO pin has their own individual control register. In other words,
> users are able to
> set one GPIO pin’s direction, interrupt enable, input mask and so on
> in the same one register.
>
> Currently, aspeed_gpio_read/aspeed_gpio_write callback functions
> are not compatible AST2700.
> Introduce new aspeed_gpio_2700_read/aspeed_gpio_2700_write callback functions
> and aspeed_gpio_2700_ops memory region operation for AST2700.
> Introduce a new ast2700 class to support AST2700.
>
> Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Some of the wrapping in the commit message could be improved, but
otherwise:
Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au>
- [PATCH v3 1/6] hw/gpio/aspeed: Fix coding style, (continued)
- [PATCH v3 1/6] hw/gpio/aspeed: Fix coding style, Jamin Lin, 2024/09/26
- [PATCH v3 2/6] hw/gpio/aspeed: Support to set the different memory size, Jamin Lin, 2024/09/26
- [PATCH v3 3/6] hw/gpio/aspeed: Support different memory region ops, Jamin Lin, 2024/09/26
- [PATCH v3 4/6] hw/gpio/aspeed: Fix clear incorrect interrupt status for GPIO index mode, Jamin Lin, 2024/09/26
- [PATCH v3 5/6] hw/gpio/aspeed: Add AST2700 support, Jamin Lin, 2024/09/26
- Re: [PATCH v3 5/6] hw/gpio/aspeed: Add AST2700 support,
Andrew Jeffery <=
- [PATCH v3 6/6] aspeed/soc: Support GPIO for AST2700, Jamin Lin, 2024/09/26
- Re: [PATCH v3 0/6] Support GPIO for AST2700, Cédric Le Goater, 2024/09/26