From patchwork Fri Sep 22 16:55:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 143569 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5775520vqi; Fri, 22 Sep 2023 11:08:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHT3E8ZzZUzbO5YlsJKSi6Xf2I6RcS+raSXGwiyT4dwrnO/oXmb2TitM/uHXE+yZ7alO3XC X-Received: by 2002:a05:6a20:3941:b0:15d:f4e2:fe3d with SMTP id r1-20020a056a20394100b0015df4e2fe3dmr369629pzg.8.1695406109862; Fri, 22 Sep 2023 11:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695406109; cv=none; d=google.com; s=arc-20160816; b=s5YUxizKj9E0Ovlzwm2Yw4SJ/kTYi9xLtk4a0UA1kwlRxwjVj/5Xy0ciCM+EhGVRkq dgJU9S0vHYrHMyK7+up6wjPviPq5+oGhRPqVUxFgm+Mt20YfBcTunZi1ipvlBLz77lWF WOsv14TCQ/y7hm1Mx2AR4rozTXN+XrD4fcysILrnJ/AJGi558VVVq4YFnZvy6wOFtz0B yu9StkraIsyGS/zdYRJlytw9zy2uY0lYqVF06kzA9Fy16yTMMMmUSZ1WdXUfQAl6/zSp IVn7fDEuy+zgEGWR17qMkW3bVyswDX9QN0rrK/gsbKiCw7XvIfFvfjirhE7RBXpHrd7b Hr4w== 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=2yF4iZyfgTpv6/Kj/nuSYg2j2tChjnW8TLmmQOpvtg8=; fh=9dDlA2pQYXrX4p+Z3HI5psx/NsmvoQLLWLz/UCf3x4E=; b=P3Rynb3G70VunnAi3seQhVZV8XRWJjhyywH2uKfA+rXazlP1ZgQvsqCGY12/oZx1W7 YSkidkBUUzgFYWfZVmniB5j+L9ZaCIEa1vxkuIiA3bBHrcnQ3Qnwm9mxuQALt8oEB4kh wDfRZ2hyhWEaRYOBckGT9ZlaICtPvf6iSh28HffD13dI3WitUYqlwJL4bY8PD49O1ds2 bNetvPA+KKs8pibbCXdMw49obUjLtBaKCAqIH5KELXNu3F+PtBdHEZmvMMctcfMRVvQ/ TWOj23lWZ4ATu2MZnkgyVDAaJQ03IRG2vBHpqXQd5nsnjGwUlzR5Fo0aRMv8cxjBkG+6 /g2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=xJV5IO0B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id b5-20020a633405000000b005775302b11csi1174706pga.81.2023.09.22.11.08.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 11:08:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=xJV5IO0B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id BA02A80B12C7; Fri, 22 Sep 2023 09:56:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229589AbjIVQ4a (ORCPT + 29 others); Fri, 22 Sep 2023 12:56:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232415AbjIVQ40 (ORCPT ); Fri, 22 Sep 2023 12:56:26 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B71E8198; Fri, 22 Sep 2023 09:56:19 -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 E0CFDD0F53; Fri, 22 Sep 2023 16:55:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1695401748; bh=X0qHRPoLMOxnQvNTYqWxzwszdU93Rpm9tgDuGSYM6ZM=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=xJV5IO0BHfjForF/fu7DKg7FrKJkm3SoDR78oqY1nFNpBHWKxtrN9Grq6DAY70QM2 +bbEfAGRzW0FgtxIrPUisiP8VqmQh0Os1Enpu0ehSHFUA/LTTHe5T0hFQ2Ofg0XNTb qfzd9to9qT6VgEYhomcq3w3QBNY+6CO/C/BADhF0= From: Luca Weiss Date: Fri, 22 Sep 2023 18:55:12 +0200 Subject: [PATCH v2 1/3] dt-bindings: pinctrl: qcom,msm8226: Add blsp_i2c6 function MIME-Version: 1.0 Message-Id: <20230922-msm8226-i2c6-v2-1-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=1299; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=X0qHRPoLMOxnQvNTYqWxzwszdU93Rpm9tgDuGSYM6ZM=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlDccQAOOjIIixL9TPZtAThpL4kvoT6rE8z0wgN kOSnZV3YF+JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZQ3HEAAKCRBy2EO4nU3X Vju/D/9pwdg6ip6qbgk0hAq3itmbmv9SUJnAWCFphTCtqhgk5xBKN76Wjyjh4bMQT+F/pB/YfMJ rbKfqBMmYbfs4+F5QsIgxd+30V2FeQO1RMKwgtuBo6Mp9NT7xbYqxr04jlFWZO6yMhoaOmd1lLb T80Q8hJPfmV6z8zVVhkdPp4XMDlW1ajrp6d1L8tuVJvA7675YxQmjLCmLz2Z0FyGjRZfor0NvQs up68hUZYmM0AI4D0r61LcgwzEeN3PynGQEXE8WuHn0gA7ZrOhrpCmyJgkgGpWw5inR+8Qec8GwF l+L/OBWWs9beQk9tA9+EwMCN6AmW0NCcve4ZNzt4V2r2BJ9M+v1f3I1mptZp/Md4BlnI8fM2bKs G7EZBWV4faj3TBsn2DQZEXj4VicNXVSd2+YD2CMMhlRP/0+wn7aSA64RkB7zNAc2bkQKqk5EWBY mA0LdgyFCI8PIppNWYknLHGCR8H6yX46fQqVgjJMxPm2DzdHQFTsZtIOAWEqiA3O+1VktjB/Rb4 Usn4xgF9iLXo82GKPKyMYSwfnjrwtMwxVeRvdgl320AB0xulF2ppYic7mYICc0WSqd643ohtf3U NptN3RisfPZcWBIlC3yDm6mU4eDy/EcZ/aAQTdXyas2fd7/7em/zlwsYIAYXfvnd6O/YCRlgGnO gQHUR/o0lF4M/Sg== 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 agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 22 Sep 2023 09:56:36 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777762157394288619 X-GMAIL-MSGID: 1777762157394288619 Add the blsp_i2c6 function that can be found on some pins. Signed-off-by: Luca Weiss Acked-by: Rob Herring --- Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml index 9efb76509580..a602bf0d27fb 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml @@ -67,8 +67,8 @@ $defs: Specify the alternative function to be configured for the specified pins. Functions are only valid for gpio pins. enum: [ gpio, cci_i2c0, blsp_uim1, blsp_uim2, blsp_uim3, blsp_uim5, - blsp_i2c1, blsp_i2c2, blsp_i2c3, blsp_i2c4, blsp_i2c5, blsp_spi1, - blsp_spi2, blsp_spi3, blsp_spi5, blsp_uart1, blsp_uart2, + blsp_i2c1, blsp_i2c2, blsp_i2c3, blsp_i2c4, blsp_i2c5, blsp_i2c6, + blsp_spi1, blsp_spi2, blsp_spi3, blsp_spi5, blsp_uart1, blsp_uart2, blsp_uart3, blsp_uart4, blsp_uart5, cam_mclk0, cam_mclk1, gp0_clk, gp1_clk, sdc3, wlan ] 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), From patchwork Fri Sep 22 16:55:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 143577 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5785608vqi; Fri, 22 Sep 2023 11:26:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEyCYSmsKbYPMwtwelXJI/XiPMpgkO3nRwyPdHMP/QOV8ylEjdp1Z7ojcJX4yRn0ZNcRDxm X-Received: by 2002:a05:6a20:1593:b0:153:73ec:fe67 with SMTP id h19-20020a056a20159300b0015373ecfe67mr389722pzj.19.1695407195715; Fri, 22 Sep 2023 11:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695407195; cv=none; d=google.com; s=arc-20160816; b=BjGbc9iX5gLblGx3RMR2rLx6726HvjAGjmcn0NOqG4Pf9o7ohd3GQHCNccc8CT1SCf XbgjAH1Rg0LSZQeU/MqMxzJsXG1TxH7cMozbQeniK7izsBaS5MzFgj+Y1FyOXywqIico cdKfxqgRRHMcywhRc3skSi1/0wsw1xpJeFMKmSqUE61LEcuurueL1KVG1rdO8sj1d2gv FpYD9VYhoD0ISNFUEA6i50OsU+Bv/6P7P/djWgN5Dee2q7dY/ebK4pw0HiR+3LabuvDk ksUUCb3B8ghbKZFcI5ZafRJaRm9D95BsRm0AcxrrPIvdGyPkJOznGkGIYD/hpiBugNz2 d39w== 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=QrKOcI46jtAjoE3iDZbMwmo/lKOJunD46Z4dAPf4EP8=; fh=9dDlA2pQYXrX4p+Z3HI5psx/NsmvoQLLWLz/UCf3x4E=; b=Lbm/pAezfOgIIBVp6uEo/rdaQOqK8k2E9SDbVO4gwCgpPH5bUaO2UWWTzaSM+UMr+4 nFH1JDWFhkLR8IPNd9EhqF7frcUPsirXC9V+aZ/2BXBhWaDudvwWHjd2NtROBr7/5suG IdUqEnQ4D31tLxxtkdA0HoXYR12VMuo1lEAHtfJTgJl49XSRTk3IQgY3/KFh5tbXTdsK 2h3rbSJerhGVVevoLmHogteqeRfCKIk6VobLpkvcwxCFp72qN2kTRQu25ujaBLySu2UT nBGQNeWLRbjP3vmODFzqHlf3/UgETLpaxr1JEgQu9q6NCwOxNryb1Nv32SxiI/oQfeg2 98Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=QVw72Ako; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id 1-20020a631541000000b00573fa8f2827si4207198pgv.340.2023.09.22.11.26.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 11:26:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=QVw72Ako; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 3BC728092DA1; Fri, 22 Sep 2023 09:56:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229842AbjIVQ4I (ORCPT + 29 others); Fri, 22 Sep 2023 12:56:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbjIVQz6 (ORCPT ); Fri, 22 Sep 2023 12:55:58 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00837114; 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 6E97AD0F56; 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=GJWbp0yNmezRqNlFG1Tmg62rLzGTuqKy0Vjb8rr6bHc=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=QVw72Akovv+yT5kYbZFSLlmcnrBCQKACFMq/D2rdJQxXCWWXEEDOzz/KEOcaaF/vN cEXipdlYNcG7in6fTnpb+IMh1oz8OV4wKf/7ChFrfYS7g6d7f7974XmnhC/QZQm8de RFcHMzrkLX6tg5AcLDfD9cuB8HHVMfuCnvpuq7iA= From: Luca Weiss Date: Fri, 22 Sep 2023 18:55:14 +0200 Subject: [PATCH v2 3/3] ARM: dts: qcom: msm8226: Add blsp1_i2c6 and blsp1_uart2 MIME-Version: 1.0 Message-Id: <20230922-msm8226-i2c6-v2-3-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=1988; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=GJWbp0yNmezRqNlFG1Tmg62rLzGTuqKy0Vjb8rr6bHc=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlDccSZDKWbcCeDfvwMLYz94Bpu9O4+bsG2TC1F ulQGb193mSJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZQ3HEgAKCRBy2EO4nU3X VgXqD/9ltSJS41hhIq+c+OgR7pkd94q7B4huz4TXaX7it6s7CGj0KLgmflMVK1+oweEZOWywBSb SSfgHBNRfNbXiPGhnFWA1oKTrOtextf4XUdX0RnCq7/nLz0F1h4xWiK7Ikd9xhLlw66XhRAd+lB vNOXFzurVT/pFjxLnqbRIDmZFGkIIkdx4QtUaqwKkyPEhqpxmvIvtofoZv8mOUqtza+oS0RovRe 7oHRbadIrNH1HSIsH81ZnWga6g74IsELt6xNOvmLOf13dnY+aETS69JqrqPnjZ5KYE4PF5Yg+hC hv+byNKSlDCW+tmj1HOlFGkw/AVHGZJ1kv26r27XiX7TD4Uj0n4ykUQq7bCTI2WUgZEG//7siIP 6eZ/sYM634LKPLtOdJYcIfOM1t7vHkdpDKsxV4DGe2IseGpHU7gY6TdeWCYWLDZrLAUT3mry9ut wocUmNcsm3EJ2/rlD208HuYlgIrbJBgKLfOiwe0De+pPV9oud+bZ93XBdwX4jVn2Ka5CT1bDHG7 CO24FYEtK9f1RezhpC3miDRdOFGXOK0siPNMp5zIJV6S2vf38YWYKmvMVXpDzDRgDPJdOfEE+oh eij0Y9Yjcse++UXQO/JP20EnduMSABg+tPbtBRmDFloJTTP4P/1hKJvqrk86JXjYbjt49xed3G5 UgToEk8X7xiAocg== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 22 Sep 2023 09:56:22 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777763295701316181 X-GMAIL-MSGID: 1777763295701316181 Add more busses found on msm8226 SoC. Signed-off-by: Luca Weiss Reviewed-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi index 44f3f0127fd7..82e830e9d254 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi @@ -230,6 +230,17 @@ blsp1_uart1: serial@f991d000 { status = "disabled"; }; + blsp1_uart2: serial@f991e000 { + compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; + reg = <0xf991e000 0x1000>; + interrupts = ; + clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", + "iface"; + status = "disabled"; + }; + blsp1_uart3: serial@f991f000 { compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; reg = <0xf991f000 0x1000>; @@ -313,6 +324,21 @@ blsp1_i2c5: i2c@f9927000 { #size-cells = <0>; }; + blsp1_i2c6: i2c@f9928000 { + compatible = "qcom,i2c-qup-v2.1.1"; + reg = <0xf9928000 0x1000>; + interrupts = ; + clocks = <&gcc GCC_BLSP1_QUP6_I2C_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", + "iface"; + pinctrl-0 = <&blsp1_i2c6_pins>; + pinctrl-names = "default"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + cci: cci@fda0c000 { compatible = "qcom,msm8226-cci"; #address-cells = <1>; @@ -460,6 +486,13 @@ blsp1_i2c5_pins: blsp1-i2c5-state { bias-disable; }; + blsp1_i2c6_pins: blsp1-i2c6-state { + pins = "gpio22", "gpio23"; + function = "blsp_i2c6"; + drive-strength = <2>; + bias-disable; + }; + cci_default: cci-default-state { pins = "gpio29", "gpio30"; function = "cci_i2c0";