[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3c2b2155-c4a5-306e-87a2-396eecdc239b@linaro.org>
Date: Wed, 16 Nov 2022 11:32:39 +0100
From: Konrad Dybcio <konrad.dybcio@...aro.org>
To: Neil Armstrong <neil.armstrong@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
Andy Gross <agross@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Bjorn Andersson <andersson@...nel.org>
Cc: linux-i2c@...r.kernel.org, linux-arm-msm@...r.kernel.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org
Subject: Re: [PATCH 4/6] soc: qcom: geni-se: add support for I2C Master Hub
wrapper variant
On 16/11/2022 11:21, Neil Armstrong wrote:
> The I2C Master Hub is a stripped down version of the GENI Serial Engine
> QUP Wrapper Controller but only supporting I2C serial engines without
> DMA support.
>
> This adds the clock list for the I2C Master Hub variant to a new desc
> struct then passes it through the I2C Master Hub compatible match data.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@...aro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@...aro.org>
Konrad
> drivers/soc/qcom/qcom-geni-se.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/drivers/soc/qcom/qcom-geni-se.c b/drivers/soc/qcom/qcom-geni-se.c
> index f4f54d92a01a..8430a0192bb9 100644
> --- a/drivers/soc/qcom/qcom-geni-se.c
> +++ b/drivers/soc/qcom/qcom-geni-se.c
> @@ -930,8 +930,18 @@ static const struct geni_se_desc qup_desc = {
> .num_clks = ARRAY_SIZE(qup_clks),
> };
>
> +static const char * const i2c_master_hub_clks[] = {
> + "s-ahb",
> +};
> +
> +static const struct geni_se_desc i2c_master_hub_desc = {
> + .clks = i2c_master_hub_clks,
> + .num_clks = ARRAY_SIZE(i2c_master_hub_clks),
> +};
> +
> static const struct of_device_id geni_se_dt_match[] = {
> { .compatible = "qcom,geni-se-qup", .data = &qup_desc },
> + { .compatible = "qcom,geni-se-i2c-master-hub", .data = &i2c_master_hub_desc },
> {}
> };
> MODULE_DEVICE_TABLE(of, geni_se_dt_match);
>
Powered by blists - more mailing lists