Message ID | 20221114-narmstrong-sm8550-upstream-i2c-master-hub-v1-6-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 l7csp62429wru; Wed, 16 Nov 2022 02:23:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf7j/gYygTI464Um/kTVVhPnUL8wBy9P6BqmD+vjN0anm/DmkdIP2FoBqFRQ9McaVEzGShQX X-Received: by 2002:a17:90a:f82:b0:213:fbf3:f3 with SMTP id 2-20020a17090a0f8200b00213fbf300f3mr3059179pjz.203.1668594199453; Wed, 16 Nov 2022 02:23:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668594199; cv=none; d=google.com; s=arc-20160816; b=RHkTt7RazbAz7QF39HrDD4eeK9JFpqtqjzg9oT7xx/nqxWViEe3U/rlKhybJTJQ3yh 7zlfN7AqAVTWacIxdI8Wwe3pjbx5P2sExgpgVvT+QEqu1g7k6ztLceN7eK7yG81OzsAS rn7rPwe52UWecfT0stJfu5BwEEfdTgTBdYoUrmDzOZOjby/F17mq/6/K+9Rjjy5/k6jK lN8jI9minkEUXWRZUEDzd5ol4wXV1171J89nHEgthbBRbr+l5WukuyJpaC274pctbxs3 PFJTa8+mjZUXawczvHCE3mHOCdgCfVOdAHdws7Dq23TRgeo/Fs5osIZkQPtMeBa6jLke 8spg== 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=pv5CcBvM1Y0DmqwfRO50yvVc4LT+eZLqos1FdCMiOYE=; b=KGlF8uM3KjF0i40Futi5iHs/i+Kw/HUMuJkGPnCrAK/fN0yllyqXZoHG/gowcj2LM5 qeQSOIycKNAyN6vhvwFJq2sLcw4Crad+qO0g2ge/MbnMDgjB6sQ5WljxvwJcaF7mKWR2 22HusVo4XWrnM95lf73OxRQasrwxGBEnbP75vIDpP3ykbzTHMQMCe6zrEOAMeCc4/eh5 FU7k7WeFuIRx6EiRsr0pbYQrkNRfSb7Scrm2zneHSakOJ9eRXTB/V3vnqHFbfPkNG36/ R6+j+U/1Ps4NiE2VKTVwsaMi/SWTqd5NgdaO6EhNFsTrEmojat7FtAA0qkuP+mPNGgyq l+zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sNX56Yaa; 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 144-20020a630296000000b0045ec918ad31si15193151pgc.544.2022.11.16.02.23.06; Wed, 16 Nov 2022 02:23:19 -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=sNX56Yaa; 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 S233298AbiKPKW2 (ORCPT <rfc822;just.gull.subs@gmail.com> + 99 others); Wed, 16 Nov 2022 05:22:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231310AbiKPKV4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 16 Nov 2022 05:21:56 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7D9422299 for <linux-kernel@vger.kernel.org>; Wed, 16 Nov 2022 02:21:54 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id bs21so29132738wrb.4 for <linux-kernel@vger.kernel.org>; Wed, 16 Nov 2022 02:21:54 -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=pv5CcBvM1Y0DmqwfRO50yvVc4LT+eZLqos1FdCMiOYE=; b=sNX56Yaa+zhdebatzuNg1q/oOgZqyK47/jJYDv8HGwrlB9RJ5B9k/A+KJAJwj6uWvH kXVMwg5mVJyulez1FN1bzC/VaDWDyQddXHLz8D96l7RgQh08thdIETLdXPUkC1EsZKOt DUkHxF5msJUPlbmPcbPdLyCTsuawKS0+6zmLNEpDvZTyAv06bjmVH/ypRAqhw7SE7+tP Idh9ZydDXdNC06roDDAbmQJNx/OlWkJd6IyQCDvxB0DE/UpX0a2jkBlIehhGCDtWgjSw fjffMyuYYRJv4ioS/LhSCsLavArIdobqXIehzw5QAYYBlJ7SD3MgZBXAOxgbsDBMc4Q2 rkMQ== 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=pv5CcBvM1Y0DmqwfRO50yvVc4LT+eZLqos1FdCMiOYE=; b=vwU5UGnInWVIICAzPjjE7HweQzUKxS6ln86hFHtz2gL90QyVT7uQMN0atuh5NOTwmj god4301AvwWWi/+uMuxBThLlGI0cJncDeOnutFV3l4w33bhBIBvqnElNDF/Nw1V58cTU IwUIdetAc6XDOds/VtLN/+kXR7Sp+SEGUMuYiALnsXRMwZQdEm1wyFB9qhmPO+qTeYYg YeRv+a+/vM3rA3ysZhZaUQ4f27HlzKNKx65vWdCJJoZ+yVg1ND51hm1n7Q1sPzPWynLa ZcUJxvoe3XhHDNkz+i/AKaJBjLNhyE2qdZP2rWHwcVLpcdax/3Ee/myWZsgQsLUc+ncP /sYQ== X-Gm-Message-State: ANoB5plzMZcbjQPEiEGpjGQai15GGAmAsfR2WuVZOBxMHjbO/cvSKbgs u5qS5Ymj+QPHi8R3LbjfxV2yqQ== X-Received: by 2002:adf:fc47:0:b0:22e:4953:9932 with SMTP id e7-20020adffc47000000b0022e49539932mr13484547wrs.486.1668594114246; Wed, 16 Nov 2022 02:21:54 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 02:21:53 -0800 (PST) From: Neil Armstrong <neil.armstrong@linaro.org> Date: Wed, 16 Nov 2022 11:21:53 +0100 Subject: [PATCH 6/6] i2c: qcom-geni: add support for I2C Master Hub 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-6-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=ham 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?1749647831386206776?= X-GMAIL-MSGID: =?utf-8?q?1749647831386206776?= |
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 I2C Master Hub serial engine compatible along the
specific requirements in a new desc struct passed throug the device
match data.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
drivers/i2c/busses/i2c-qcom-geni.c | 8 ++++++++
1 file changed, 8 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 I2C Master Hub serial engine compatible along the > specific requirements in a new desc struct passed throug the device > match data. > > Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad > drivers/i2c/busses/i2c-qcom-geni.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c > index 75dd0718c5a1..bfe75038bc14 100644 > --- a/drivers/i2c/busses/i2c-qcom-geni.c > +++ b/drivers/i2c/busses/i2c-qcom-geni.c > @@ -1026,8 +1026,16 @@ static const struct dev_pm_ops geni_i2c_pm_ops = { > NULL) > }; > > +const struct geni_i2c_desc i2c_master_hub = { > + .has_core_clk = true, > + .icc_ddr = NULL, > + .no_dma_support = true, > + .tx_fifo_depth = 16, > +}; > + > static const struct of_device_id geni_i2c_dt_match[] = { > { .compatible = "qcom,geni-i2c" }, > + { .compatible = "qcom,geni-i2c-master-hub", .data = &i2c_master_hub }, > {} > }; > MODULE_DEVICE_TABLE(of, geni_i2c_dt_match); >
diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c index 75dd0718c5a1..bfe75038bc14 100644 --- a/drivers/i2c/busses/i2c-qcom-geni.c +++ b/drivers/i2c/busses/i2c-qcom-geni.c @@ -1026,8 +1026,16 @@ static const struct dev_pm_ops geni_i2c_pm_ops = { NULL) }; +const struct geni_i2c_desc i2c_master_hub = { + .has_core_clk = true, + .icc_ddr = NULL, + .no_dma_support = true, + .tx_fifo_depth = 16, +}; + static const struct of_device_id geni_i2c_dt_match[] = { { .compatible = "qcom,geni-i2c" }, + { .compatible = "qcom,geni-i2c-master-hub", .data = &i2c_master_hub }, {} }; MODULE_DEVICE_TABLE(of, geni_i2c_dt_match);