From patchwork Fri Sep 22 16:55:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 143539 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5732559vqi; Fri, 22 Sep 2023 10:00:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEvJpOpG61tvhqcI1SiZN7Pv44XYz9e9chepmnhOgwtBvwSjzGVx6eYhC9eEVpqZHwxtn6Z X-Received: by 2002:a05:6a20:3d17:b0:14e:b4d5:782d with SMTP id y23-20020a056a203d1700b0014eb4d5782dmr109323pzi.2.1695402006292; Fri, 22 Sep 2023 10:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695402006; cv=none; d=google.com; s=arc-20160816; b=TCNhLxfFEekSMADmnXQbU2YNBETqTy/z7WnWvRtIt8Qnii+4GPaTU/VQfQzZ3LaKoS U1lPLgz7wDF1yEsxfMBLvWMpvlzhH1uznz5fHD2t40D65KeceXY52OldjncbBYQXllA5 6nEVPskoUHwuhxmGZuLja7SIO43X/n9YAIEryjcD9TdCI7XR0CHZkD8OLpv6A7aEcBzG 6yvcxMSrw9af/1CJ/uorgsNupG0UgqTEBBYcLayWOudGK8v3k18QOUcg4dB5h60D+AB7 eBUK5urFLdamoSomQj7GH/Ku66zaSzLcxJpK0kZtPWgsmm7sYED9yt4Il+r22UAWMJVG Ka8w== 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=GZLvwp8lV7j9hOHbKEJvnCJMoVARWmqbtDyuTIxmwZw=; fh=9dDlA2pQYXrX4p+Z3HI5psx/NsmvoQLLWLz/UCf3x4E=; b=NLPgdC/n5GkQTLEuHc9SNoLR02RZIWF2fSahVSSD57Vz50LghIcVPVcB8YeteOWupd fU5V6BofCan2FsBt1kK25HIzwMDRu3B5wB/q3XWuv7dUvvI0bdzhL4F7/1G4X3rIxmOt MC5ADDDTEkIlOyiI0RtEeMHDqtmOoUo75mnXys317oH9mYSR/VJUcG6zeJ4lS6oQqwJu xRPEPQB/9UqeFaGs4ZIxJlV2slV9F/rfpbEaWCtkw9peienSHxN3C3CCAdktho6liZ67 smzFLpsPUFytV6EC65iJ2fjYR+Gw2aJhSrxhDieB8WJ+ak2+MZQHY0gf9J1ueR63qPIY Faxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=dribFQtz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id l3-20020a056a00140300b0068e4037c5f7si4312996pfu.388.2023.09.22.10.00.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 10:00:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=dribFQtz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 1A19A807AC51; Fri, 22 Sep 2023 09:56:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230237AbjIVQ4E (ORCPT + 29 others); Fri, 22 Sep 2023 12:56:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjIVQz4 (ORCPT ); Fri, 22 Sep 2023 12:55:56 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD240F1; Fri, 22 Sep 2023 09:55:49 -0700 (PDT) Received: from [192.168.178.23] (k10064.upc-k.chello.nl [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 26455D0F55; Fri, 22 Sep 2023 16:55:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1695401748; bh=29unbUdSjssR6lCbO5AvxRnTJpcHD6ixkyfP951p+1A=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=dribFQtzd/NL/YuUOZpxC9SpR8eStK9pkgPS23fvTeClRMap+ocvHBtPvkfMD1QE0 wGijWEBrvCPuNBbbX7NZDmmKki3kyZJ0TeYEdplZnKlcK6DItSqYnJWkQJvQQyon5E r4/naM10Dk+XURR1U1hNsQyBY7zrVYrgaiNqVzwk= From: Luca Weiss Date: Fri, 22 Sep 2023 18:55:13 +0200 Subject: [PATCH v2 2/3] pinctrl: qcom: msm8226: Add blsp_i2c6 function MIME-Version: 1.0 Message-Id: <20230922-msm8226-i2c6-v2-2-3fb55c47a084@z3ntu.xyz> References: <20230922-msm8226-i2c6-v2-0-3fb55c47a084@z3ntu.xyz> In-Reply-To: <20230922-msm8226-i2c6-v2-0-3fb55c47a084@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1885; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=29unbUdSjssR6lCbO5AvxRnTJpcHD6ixkyfP951p+1A=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlDccRM6wvIdj62IgoVNumpASOZ8bPL9qMLEi9x lrlwGbxoFyJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZQ3HEQAKCRBy2EO4nU3X VjV2EADXbPS/N5evWF9YRnEQvsK2B/vTJqvNwwjN9798iJPsZ4otoQmL0NhjFpChuCAGFwq63A7 HaPSLZT6xOhcXpTl7gIc/4ngVzbsL4F8cBz4hP/swHZs+G4HhPdBGHeCKVaYvjqAlzDhiAPgG/v wL0XgymSkyU4XxzUFM19ZPSP6+MJ6IKP5A/Lu5/xHBQS0hUsQ0MXGT7D04Av1lI1lPGNEgoKpcI ZumGd+LOCiPfccYdYkbQYWLxIM5ZDjW/JMco//AeAoMTHIPCvnQ5XYUyy5h/BurC6VLUoOLOyco tl0UtjCCcHVFfoyq0JC7/nQYOu7eDoRqvMGeCwBzKPgVIasuxpCTtdDHI7ifId0k7owVpwV/Cfi Bn6hkiQWTNHVNnKyL242nJ15SFxetMM3Dt/DimoyMYQx4fE0toVA+voZKox4BBKXyp+2zI5xtgY ET8TnTYvqWTlDPBPWQtUDd8ohtamlw3jPrxFX1qsMT7Juf+tP+wskBXmK94UAbMlgbdEopGRC4U TIiRF+4ntABRYQSuU2y4ZbD2oZmLsxPVKGKDz8PW7vX9QqVI+xBYznvmcke8Ri/C4RwGtjHg+rj zedm2sWKXhDrrp8SWm3nlTljEX+KdfsKKPhcYf02cstT2E2JfuSblsJ+1/fv023iVUc201bSh5K UsnM5H9/n/6dwcQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 22 Sep 2023 09:56:36 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777757854005778527 X-GMAIL-MSGID: 1777757854005778527 On GPIO22 and GPIO23 there is another I2C bus. Add the function for it. Signed-off-by: Luca Weiss Reviewed-by: Dmitry Baryshkov --- drivers/pinctrl/qcom/pinctrl-msm8226.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm8226.c b/drivers/pinctrl/qcom/pinctrl-msm8226.c index 994619840a70..da964eebd313 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm8226.c +++ b/drivers/pinctrl/qcom/pinctrl-msm8226.c @@ -336,6 +336,7 @@ enum msm8226_functions { msm_mux_blsp_i2c3, msm_mux_blsp_i2c4, msm_mux_blsp_i2c5, + msm_mux_blsp_i2c6, msm_mux_blsp_spi1, msm_mux_blsp_spi2, msm_mux_blsp_spi3, @@ -436,6 +437,8 @@ static const char * const blsp_spi5_groups[] = { "gpio16", "gpio17", "gpio18", "gpio19" }; +static const char * const blsp_i2c6_groups[] = { "gpio22", "gpio23" }; + static const char * const cci_i2c0_groups[] = { "gpio29", "gpio30" }; static const char * const cam_mclk0_groups[] = { "gpio26" }; @@ -459,6 +462,7 @@ static const struct pinfunction msm8226_functions[] = { MSM_PIN_FUNCTION(blsp_i2c3), MSM_PIN_FUNCTION(blsp_i2c4), MSM_PIN_FUNCTION(blsp_i2c5), + MSM_PIN_FUNCTION(blsp_i2c6), MSM_PIN_FUNCTION(blsp_spi1), MSM_PIN_FUNCTION(blsp_spi2), MSM_PIN_FUNCTION(blsp_spi3), @@ -507,8 +511,8 @@ static const struct msm_pingroup msm8226_groups[] = { PINGROUP(19, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA, NA), PINGROUP(20, NA, NA, NA, NA, NA, NA, NA), PINGROUP(21, NA, NA, NA, NA, NA, NA, NA), - PINGROUP(22, NA, NA, NA, NA, NA, NA, NA), - PINGROUP(23, NA, NA, NA, NA, NA, NA, NA), + PINGROUP(22, NA, NA, blsp_i2c6, NA, NA, NA, NA), + PINGROUP(23, NA, NA, blsp_i2c6, NA, NA, NA, NA), PINGROUP(24, NA, NA, NA, NA, NA, NA, NA), PINGROUP(25, NA, NA, NA, NA, NA, NA, NA), PINGROUP(26, cam_mclk0, NA, NA, NA, NA, NA, NA),