Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2237235rwl; Fri, 6 Jan 2023 03:55:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXtEm1AXVVt+f+Fr2tLnbdbjGOtMfZagtjImFJlvGbwMHJ4JKD5y9floLWxSaAlkPvhrgA6p X-Received: by 2002:a17:90a:bb18:b0:226:140a:ba8e with SMTP id u24-20020a17090abb1800b00226140aba8emr33165348pjr.39.1673006135376; Fri, 06 Jan 2023 03:55:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673006135; cv=none; d=google.com; s=arc-20160816; b=W5tbY4Xx7KZfpP71LZB/7lnXrcSGZMACbPty6AOMYe6J9J4pWPo8M6O660xj7BSC3J x75vW+QbJLskbZawvYad9dmXybQJUiB+aoZR/W/vXIdVxSgkdjv8h+AOpScW7WcjURJf +1h5ryKC/DjJcSdwBP2BwwQQyOhoAHQBVWthYHPUVaLMccZWNIP65x4qO5yv1a5Pqaa7 OwvXuv48SxX/niJ6TW8wX7P+I+wThnzmngoSabcs55jWORadDKMEEmLrIgKQ0YqtIOqO arKnJHeFhpMbIjA+5c080OLi+QQaZA3Yt3fi3QN4SW1pMfM4H8k4agsC6o9Dkt8jGv9r IGmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5irNV1hNyR0Do6fsEmjA5PW9Al1mS3pqAQZVCiHC7Rg=; b=rGQB1qjJeAqM7QhnC78njoI+FmEbaQj1VEnALIfa5YwvFqFAKngCshISfvZO8kSJLg sAtC6bWur04DsNKLnAw/R9gG3SDNC4/FqTaNPVBKhRkvkFa7N3gPPZ8ohH+MVzZzf7uT RUfgJO5F3w3rNizBIkxklh8xw/fLXzRt7h3Rf9Xha26+6AlkCe+1pZ/NfcjzsUbnC9YP 2hNPw1f1eJgMzHO+qiEWUl4cdJHJVEpaR6ErXdHu0w9dloabuuOJ/tQ+9Hg1PpOOw9lF 79kULbnMxHLRUnvP0Xm1YzRD4thcHvaBv+YqQvMiMZgZeakYg3RAv2/opm3OchYPk31a Thfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TY3jSlP4; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h23-20020a63e157000000b00470096ba718si1349354pgk.200.2023.01.06.03.55.28; Fri, 06 Jan 2023 03:55:35 -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=@gmail.com header.s=20210112 header.b=TY3jSlP4; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233898AbjAFLpH (ORCPT + 54 others); Fri, 6 Jan 2023 06:45:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233783AbjAFLot (ORCPT ); Fri, 6 Jan 2023 06:44:49 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D99157289C; Fri, 6 Jan 2023 03:44:39 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id y25so1605769lfa.9; Fri, 06 Jan 2023 03:44:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5irNV1hNyR0Do6fsEmjA5PW9Al1mS3pqAQZVCiHC7Rg=; b=TY3jSlP4Pb+SHN0F4iGFOHzKa/rtPa7uKe6GVtWuHdZ0Awd3F6DWQ2nrrDaeEt2833 dzQA8KE30KGlCl3nQsqrT1m7N9bVs6i3aJcNvLmM8JJaudQpMkY/UjSsuun8XIOXPvJA QYEKRoJpy6DVxFeg1ra4tijDp9D5lis3TFdl9W/y8dhuqdU3Gp6lPppCd2PlZATRxTby 45CD/Ia3AlYhcuWntycOWEHkJFkoXYU/bM7YXinoeBwHj9KNV5x3O3RXU6CJzBCn43fQ IZD7em0dmop8LXIfPCjTCozjVJjJm4/NkQrNrRwEwk7WQAL66dfGBagxyJSx7GyZOe7t OGDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5irNV1hNyR0Do6fsEmjA5PW9Al1mS3pqAQZVCiHC7Rg=; b=yLuyJFfoVnbDVdkmh0v5MazJ7ohHYqvMRdbYdWVqHJ0uFGARPZQQ8OkulJNvoqVBxa n09bJ3OlYZPrlhg5iBjr8S2o7hompCWGAOQ2Fu01XnVQsuPAZG69o/uwPLUOJGPHE8Fh Br0a9jEmwOaLVqAZllEI90y2FsHQ6efnna0GBm9rsQZAuCZITqBcQnC7HhTXmofGpezi p1ClvxLapTpfp7huDQF6YOZP4dlqWOBUch7ikX8n9Hz/KvSCZc+MhsW53KSbGHwGB9qJ fR31orVF9dopxaGIO9A6ZjaqEMkUOAgwjKpU1FjbyLHDM8opJAiLLICXwtVCUEvQQJVh 4/QQ== X-Gm-Message-State: AFqh2kqx5jp20fbHIidmmEdHCEhvm06KVis2juBRB9/2jTDvjvSkcDLu IOevQ60Db0LTL2zdXM40LMpD04Pn9hElPw== X-Received: by 2002:ac2:4bd3:0:b0:4a4:68b7:d638 with SMTP id o19-20020ac24bd3000000b004a468b7d638mr14607443lfq.31.1673005477945; Fri, 06 Jan 2023 03:44:37 -0800 (PST) Received: from i-vetokaappi.home.lan (dsl-hkibng42-56733b-36.dhcp.inet.fi. [86.115.59.36]) by smtp.gmail.com with ESMTPSA id u3-20020ac258c3000000b004b5872a7003sm129747lfo.98.2023.01.06.03.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jan 2023 03:44:37 -0800 (PST) From: =?UTF-8?q?Matti=20Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , =?UTF-8?q?Matti=20Lehtim=C3=A4ki?= , Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] pinctrl: qcom: msm8226: Add General Purpose clocks Date: Fri, 6 Jan 2023 13:44:02 +0200 Message-Id: <20230106114403.275865-3-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230106114403.275865-1-matti.lehtimaki@gmail.com> References: <20230106114403.275865-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Luca Weiss Add support for the general purpose clocks that are found on MSM8226. Signed-off-by: Luca Weiss Co-developed-by: Matti Lehtimäki Signed-off-by: Matti Lehtimäki --- drivers/pinctrl/qcom/pinctrl-msm8226.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm8226.c b/drivers/pinctrl/qcom/pinctrl-msm8226.c index fca0645e8008..0f05725e0a21 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm8226.c +++ b/drivers/pinctrl/qcom/pinctrl-msm8226.c @@ -362,6 +362,8 @@ enum msm8226_functions { MSM_MUX_cam_mclk0, MSM_MUX_cam_mclk1, MSM_MUX_cci_i2c0, + MSM_MUX_gp0_clk, + MSM_MUX_gp1_clk, MSM_MUX_gpio, MSM_MUX_sdc3, MSM_MUX_wlan, @@ -447,6 +449,9 @@ static const char * const cci_i2c0_groups[] = { "gpio29", "gpio30" }; static const char * const cam_mclk0_groups[] = { "gpio26" }; static const char * const cam_mclk1_groups[] = { "gpio27" }; +static const char * const gp0_clk_groups[] = { "gpio33" }; +static const char * const gp1_clk_groups[] = { "gpio34" }; + static const char * const sdc3_groups[] = { "gpio39", "gpio40", "gpio41", "gpio42", "gpio43", "gpio44" }; @@ -480,6 +485,8 @@ static const struct msm_function msm8226_functions[] = { FUNCTION(cam_mclk0), FUNCTION(cam_mclk1), FUNCTION(cci_i2c0), + FUNCTION(gp0_clk), + FUNCTION(gp1_clk), FUNCTION(gpio), FUNCTION(sdc3), FUNCTION(wlan), @@ -519,8 +526,8 @@ static const struct msm_pingroup msm8226_groups[] = { PINGROUP(30, cci_i2c0, NA, NA, NA, NA, NA, NA), PINGROUP(31, NA, NA, NA, NA, NA, NA, NA), PINGROUP(32, NA, NA, NA, NA, NA, NA, NA), - PINGROUP(33, NA, NA, NA, NA, NA, NA, NA), - PINGROUP(34, NA, NA, NA, NA, NA, NA, NA), + PINGROUP(33, NA, NA, gp0_clk, NA, NA, NA, NA), + PINGROUP(34, NA, NA, gp1_clk, NA, NA, NA, NA), PINGROUP(35, NA, NA, NA, NA, NA, NA, NA), PINGROUP(36, NA, NA, NA, NA, NA, NA, NA), PINGROUP(37, NA, NA, NA, NA, NA, NA, NA), -- 2.34.1