[PATCH v2 linux dev-5.3 2/4] ARM: aspeed-g6: lpc: add compatible strings

Eddie James eajames at linux.vnet.ibm.com
Fri Sep 20 02:26:30 AEST 2019


On 9/19/19 10:23 AM, Brad Bishop wrote:
> Assume the AST2600 SoC contains the same LPC devices as the AST2500.


Reviewed-by: Eddie James <eajames at linux.ibm.com>


>
> Signed-off-by: Brad Bishop <bradleyb at fuzziesquirrel.com>
> ---
> v2:
>    - removed DT binding documentation changes
> ---
>   drivers/char/ipmi/bt-bmc.c            | 1 +
>   drivers/char/ipmi/kcs_bmc_aspeed.c    | 1 +
>   drivers/reset/reset-simple.c          | 1 +
>   drivers/soc/aspeed/aspeed-lpc-ctrl.c  | 1 +
>   drivers/soc/aspeed/aspeed-lpc-snoop.c | 2 ++
>   5 files changed, 6 insertions(+)
>
> diff --git a/drivers/char/ipmi/bt-bmc.c b/drivers/char/ipmi/bt-bmc.c
> index 40b9927c072c..0e600449931b 100644
> --- a/drivers/char/ipmi/bt-bmc.c
> +++ b/drivers/char/ipmi/bt-bmc.c
> @@ -513,6 +513,7 @@ static int bt_bmc_remove(struct platform_device *pdev)
>   static const struct of_device_id bt_bmc_match[] = {
>   	{ .compatible = "aspeed,ast2400-ibt-bmc" },
>   	{ .compatible = "aspeed,ast2500-ibt-bmc" },
> +	{ .compatible = "aspeed,ast2600-ibt-bmc" },
>   	{ },
>   };
>   
> diff --git a/drivers/char/ipmi/kcs_bmc_aspeed.c b/drivers/char/ipmi/kcs_bmc_aspeed.c
> index 3c955946e647..a0a8bb89c9b3 100644
> --- a/drivers/char/ipmi/kcs_bmc_aspeed.c
> +++ b/drivers/char/ipmi/kcs_bmc_aspeed.c
> @@ -301,6 +301,7 @@ static int aspeed_kcs_remove(struct platform_device *pdev)
>   static const struct of_device_id ast_kcs_bmc_match[] = {
>   	{ .compatible = "aspeed,ast2400-kcs-bmc" },
>   	{ .compatible = "aspeed,ast2500-kcs-bmc" },
> +	{ .compatible = "aspeed,ast2600-kcs-bmc" },
>   	{ }
>   };
>   MODULE_DEVICE_TABLE(of, ast_kcs_bmc_match);
> diff --git a/drivers/reset/reset-simple.c b/drivers/reset/reset-simple.c
> index 1154f7b1f4dd..2fe9c889a75a 100644
> --- a/drivers/reset/reset-simple.c
> +++ b/drivers/reset/reset-simple.c
> @@ -125,6 +125,7 @@ static const struct of_device_id reset_simple_dt_ids[] = {
>   		.data = &reset_simple_active_low },
>   	{ .compatible = "aspeed,ast2400-lpc-reset" },
>   	{ .compatible = "aspeed,ast2500-lpc-reset" },
> +	{ .compatible = "aspeed,ast2600-lpc-reset" },
>   	{ .compatible = "bitmain,bm1880-reset",
>   		.data = &reset_simple_active_low },
>   	{ /* sentinel */ },
> diff --git a/drivers/soc/aspeed/aspeed-lpc-ctrl.c b/drivers/soc/aspeed/aspeed-lpc-ctrl.c
> index 01ed21e8bfee..12e4421dee37 100644
> --- a/drivers/soc/aspeed/aspeed-lpc-ctrl.c
> +++ b/drivers/soc/aspeed/aspeed-lpc-ctrl.c
> @@ -291,6 +291,7 @@ static int aspeed_lpc_ctrl_remove(struct platform_device *pdev)
>   static const struct of_device_id aspeed_lpc_ctrl_match[] = {
>   	{ .compatible = "aspeed,ast2400-lpc-ctrl" },
>   	{ .compatible = "aspeed,ast2500-lpc-ctrl" },
> +	{ .compatible = "aspeed,ast2600-lpc-ctrl" },
>   	{ },
>   };
>   
> diff --git a/drivers/soc/aspeed/aspeed-lpc-snoop.c b/drivers/soc/aspeed/aspeed-lpc-snoop.c
> index 48f7ac238861..c7b4ac066b40 100644
> --- a/drivers/soc/aspeed/aspeed-lpc-snoop.c
> +++ b/drivers/soc/aspeed/aspeed-lpc-snoop.c
> @@ -325,6 +325,8 @@ static const struct of_device_id aspeed_lpc_snoop_match[] = {
>   	  .data = &ast2400_model_data },
>   	{ .compatible = "aspeed,ast2500-lpc-snoop",
>   	  .data = &ast2500_model_data },
> +	{ .compatible = "aspeed,ast2600-lpc-snoop",
> +	  .data = &ast2500_model_data },
>   	{ },
>   };
>   


More information about the openbmc mailing list