From patchwork Tue Nov 29 14:47:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 629202 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43D14C4708E for ; Tue, 29 Nov 2022 14:47:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233145AbiK2OrO (ORCPT ); Tue, 29 Nov 2022 09:47:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235700AbiK2OrK (ORCPT ); Tue, 29 Nov 2022 09:47:10 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D5AD59853 for ; Tue, 29 Nov 2022 06:47:08 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id ja4-20020a05600c556400b003cf6e77f89cso1123524wmb.0 for ; Tue, 29 Nov 2022 06:47:08 -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=T0Q5MXbXZSDNK30Oz1UpNS2OJdhndmv3wBdEHLEBaLM=; b=UMc+xQ4qZhQB/7QZU4DR/+z7qm8VeDWnv5SP3X72fx4USl0XYSjvXYpCioKc2oAmRP WFkjyZsWiWU+PcnEVikqrzMKUer5bbBxQNtFqopCvzR0eU7+hucfzS9aJhqGf3ii3P+o OTwaEtfTdHj2UKRkiqTc1X+WF84WOE8NOD//jaCnyP4wYHQouNRPpcJi14qP5W5Qw9FM VxlqlK+M3h+BUDlKOWD9vkCsTXe6B5etW+PRtIiTGAEE7yNONxtGFRbbqyKdQATux3Es Z9DU+w1huF2QslKpnfkkl8IhNqXX95k0aHHGM9mFiCcpz70PV4dlsJF1NxIjXmfPIPHj U8gQ== 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=T0Q5MXbXZSDNK30Oz1UpNS2OJdhndmv3wBdEHLEBaLM=; b=nKXsIpWsB6fxBd5Ni0wv9lspd75EaJRF7z8OQkk9JCeYVfXhVLXG5OGjQ8acsUGv2a 0uTz79rP9iQBVpIbETSqGomTFvfJATd2u+Tzlm26Ji++wF3cUhYJ7qyCJuTwcqu0GA9G xQsErfT/vmsy2Th5XgSbdGO23nRO1mbCwUo6RLI6X8EL3yFrLXuI+7X7qQttKyLr9EG4 ohvp1C597Gfn9KLZrMSj1/Ukq7LoRu5Qow+KQSrQhv0C3zfB4DsrjZvmQu1MyoqiDaog Go+9ik44z/RjWoz14HeJNMvPEG4kUImKuECIcayoblAypb9J5j8rB0IjMNqnfI+3UkGE XJuA== X-Gm-Message-State: ANoB5pk3G0KAeVrtNBmStAHZXLXNHcYEVrwPcqtEaK03ym422ol+QTih uowQLVMyvpz77YDSy0P9sNRrFA== X-Google-Smtp-Source: AA0mqf4PuGpNaXKcfWSP85aNCRlRaooV/CN1/rauzi3yNoTCDVZ1r0n8DBnjPUqy0JWrtdZ/tOZJPQ== X-Received: by 2002:a7b:c2aa:0:b0:3cf:5d41:bea1 with SMTP id c10-20020a7bc2aa000000b003cf5d41bea1mr29866594wmk.118.1669733226685; Tue, 29 Nov 2022 06:47:06 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id b10-20020adfee8a000000b00241dec4ad16sm13717792wro.96.2022.11.29.06.47.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 06:47:06 -0800 (PST) From: Neil Armstrong Date: Tue, 29 Nov 2022 15:47:04 +0100 Subject: [PATCH v3 4/6] soc: qcom: geni-se: add support for I2C Master Hub wrapper variant MIME-Version: 1.0 Message-Id: <20221114-narmstrong-sm8550-upstream-i2c-master-hub-v3-4-f6a20dc9996e@linaro.org> References: <20221114-narmstrong-sm8550-upstream-i2c-master-hub-v3-0-f6a20dc9996e@linaro.org> In-Reply-To: <20221114-narmstrong-sm8550-upstream-i2c-master-hub-v3-0-f6a20dc9996e@linaro.org> To: Bjorn Andersson , Rob Herring , Andy Gross , Krzysztof Kozlowski Cc: Krzysztof Kozlowski , linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, Konrad Dybcio , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.10.1 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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. Add the clock list for the I2C Master Hub variant to a new desc struct then pass it through the I2C Master Hub compatible match data. Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- 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 9ddee9fd11ba..f0475b93ca73 100644 --- a/drivers/soc/qcom/qcom-geni-se.c +++ b/drivers/soc/qcom/qcom-geni-se.c @@ -942,8 +942,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);