Message ID | 20221114-narmstrong-sm8550-upstream-i2c-master-hub-v1-4-64449106a148@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp62550wru; Wed, 16 Nov 2022 02:23:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf5bmLNFkh5SMYnzUnQs5B5JyWwowYL+OBzXTvBx/X720i6IS7La8MFZuHYHDMR/c4RpFlfJ X-Received: by 2002:aa7:de17:0:b0:468:86cf:1da6 with SMTP id h23-20020aa7de17000000b0046886cf1da6mr1852642edv.427.1668594220279; Wed, 16 Nov 2022 02:23:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668594220; cv=none; d=google.com; s=arc-20160816; b=mX04hKIWeYnY7FxDe6DcBenxpm/K4xuB/fsGqCh1Al2EjyVEPZzDuR3l4UKhRiCp6L 6wsE0ngMTAAtl97lBy4FM76x0g3fNGP8aZ2Xwgk/YhmWI+D2yRn9xidFVml+AdI6kisv pWlkKELqotWvql5oD9sF58YL19vPJkZ6vO9W953OPhuKIUOx0gVjbyeBLmG8ilc78ARF QomnZbeUbezeD/wXVWBlO9jhZk6PmVUQkFZbh8SgjOqeWbk6dkd3VKw7BUCyh67VlHG2 GYfiM0JAPLUbzsXoZPeOs2BkiTtwOcIkb9a2xgBnGTyEuoHuyS1cYkivE3BEnbRHTrWH PUeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=L9LHd2ehuEfnQ9RNakq0DpdG6JioG/27TAyA40ItIwA=; b=NA7HSNjHXgS3oOO+1idfygpYmEdZom152G336GaPhEGS8uxFE+GiSIP01S1AUFi+/f BFeKG699OoEey0WVHoUTV1lXSrFw8f75g7lHIgAZjL4ETUgonCHYUuwBTwf6BaxVNYUp URZOkJma8pNwrZjNO0+k5T3FQPl2xv9X7u/KnkKU4d+PZuwZ9Y6a79bTSepwqVN7Y0op CO1WyMaqJVEJgOxqzONBksf7wmcK51Wprf9zNoaAU00Mr13IewZOmvAGZ6gY/WavqcVN cRx3Kxz7f6LCSmWpJafHqf3UVdaB/a1EDsJMoweqjYEWE4yUrF7nx7pI/ht1zRTT3lxz w/3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="R27/7fCy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z4-20020a05640235c400b00458bbd3a0d2si15619245edc.602.2022.11.16.02.23.16; Wed, 16 Nov 2022 02:23:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="R27/7fCy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238806AbiKPKWd (ORCPT <rfc822;just.gull.subs@gmail.com> + 99 others); Wed, 16 Nov 2022 05:22:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237474AbiKPKVz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 16 Nov 2022 05:21:55 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9F2D222A8 for <linux-kernel@vger.kernel.org>; Wed, 16 Nov 2022 02:21:53 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id bs21so29132593wrb.4 for <linux-kernel@vger.kernel.org>; Wed, 16 Nov 2022 02:21:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=L9LHd2ehuEfnQ9RNakq0DpdG6JioG/27TAyA40ItIwA=; b=R27/7fCyVH45BDUa4WXg6S3Pgbigv9mlZo33xtIQld+3/A8Vwu0VmEU2jmlsnxkxVH mFz9uSAmWYNulgvSMKc+97yYBL3kkCUaxR4R0BZQpQvHSxMSS9fHqmn/uzbX7hFDLC1U G5XkIteo0N/HotD09px3J2jHasyjq8sUa6OTFWtRZS3mv8jvDi1NenU8pqKluaYj9n9R Bh4QZJr1ch1IqlF0eCi46kclUGX2knoqK8yfB7y060bV1Spwel8y2fM8Q/7UKAsHlWJR hJ+CjW33FxEV/ABoQ6wJDXQT4hfRLASN84JEymLiabtGGcUQAE+6ZHYmhDN49eI9k8qP o4dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=L9LHd2ehuEfnQ9RNakq0DpdG6JioG/27TAyA40ItIwA=; b=oPaFh3JerQctPXp4fTVKkpd6swE8hM2AqtSvES5pF5oGYz68re54kYQX5MVnXX0fTV Z6azgpOdgJcp/0uvs/ws3X6sBKj2Fzfvz9Ck2SjXtLMW+yMsz8avCtofCntB8+hqEHoj 9juwTB5Zw+6z4YsZCBVSH9gioQzcFzws9wwzgKzvsymlQBgc1VDyMMj6KwiCYhH9GJbP xsldBxGooiqpDSayKJ7Kufxniux57xvcdAwlgxKmlcKZdwkxVefdveviPCsFMU8dqG7K m3rKiMjgXBYpmiFFvsEk9M4PyntdpB/FkYhOjE1kpFzaTSLJFVS3HUU7mJIp+ANJkEYN I+ow== X-Gm-Message-State: ANoB5pmcfmHhcKougxQNAvLKB3ufeq5PVjWmZkgk0YuKe+SDiGvyA1Vj 65Xh57t1cRlQ4oYOyMfXxIT3gg== X-Received: by 2002:a05:6000:3:b0:22f:bf9b:b6b3 with SMTP id h3-20020a056000000300b0022fbf9bb6b3mr13045074wrx.108.1668594112362; Wed, 16 Nov 2022 02:21:52 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id o5-20020a05600c510500b003b4ff30e566sm6133615wms.3.2022.11.16.02.21.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 02:21:52 -0800 (PST) From: Neil Armstrong <neil.armstrong@linaro.org> Date: Wed, 16 Nov 2022 11:21:51 +0100 Subject: [PATCH 4/6] soc: qcom: geni-se: add support for I2C Master Hub wrapper variant MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20221114-narmstrong-sm8550-upstream-i2c-master-hub-v1-4-64449106a148@linaro.org> References: <20221114-narmstrong-sm8550-upstream-i2c-master-hub-v1-0-64449106a148@linaro.org> In-Reply-To: <20221114-narmstrong-sm8550-upstream-i2c-master-hub-v1-0-64449106a148@linaro.org> To: Rob Herring <robh+dt@kernel.org>, Konrad Dybcio <konrad.dybcio@somainline.org>, Andy Gross <agross@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Bjorn Andersson <andersson@kernel.org> Cc: linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Neil Armstrong <neil.armstrong@linaro.org> X-Mailer: b4 0.10.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749647852905674069?= X-GMAIL-MSGID: =?utf-8?q?1749647852905674069?= |
Series |
soc: qcom: add support for the I2C Master Hub
|
|
Commit Message
Neil Armstrong
Nov. 16, 2022, 10:21 a.m. UTC
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@linaro.org>
---
drivers/soc/qcom/qcom-geni-se.c | 10 ++++++++++
1 file changed, 10 insertions(+)
Comments
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@linaro.org> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.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); >
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);