From patchwork Sun Oct 23 20:45:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harry Austen X-Patchwork-Id: 617662 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 DB6B8FA373F for ; Sun, 23 Oct 2022 20:46:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229944AbiJWUqG (ORCPT ); Sun, 23 Oct 2022 16:46:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbiJWUqE (ORCPT ); Sun, 23 Oct 2022 16:46:04 -0400 X-Greylist: delayed 122818 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 23 Oct 2022 13:46:00 PDT Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FE1E6B8D0; Sun, 23 Oct 2022 13:45:53 -0700 (PDT) Date: Sun, 23 Oct 2022 20:45:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1666557952; x=1666817152; bh=y2bCXpgeOzFP8XQZojpeu0g8mOyEC8O50wzfQi+iCHo=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=hVQVBBHOs//SUGyRB1Lp5UFE7hdUFyjAg713P/O8hjgploXfbGy3hJfpMIE/NQdYA kZibEq5nGhy7fTxV7aDbY/LXXNAa03H7hXcynaGXarF5PMo2TWPzaEbofITyrCcG82 OyCKsGIGQqsgEf5FEnuoLa2y4HHqq3zYDOvuR6qEd0bEDBqWucU3XiguzPkq6KMvIk x4tmYr2iIOzcSZmohPKknH2sh3E37Dg/uoslKDqAok1nANfq5jjaHdEiFnfE6bY6fL w4g29joWKNJs6HWOwAjBgfaGWQppCcZx8V9RO2HS2ZDUwsPIqrTGzjBl6YTmZLqHLR vFyYveuFNeovQ== To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski From: Harry Austen Cc: Harry Austen , Yassine Oudjana , Andy Gross , Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org Subject: [PATCH v2 2/4] arm64: boot: dts: msm8996: add blsp1_i2c6 node Message-ID: <20221023204505.115141-3-hpausten@protonmail.com> In-Reply-To: <20221023204505.115141-1-hpausten@protonmail.com> References: <20221023204505.115141-1-hpausten@protonmail.com> Feedback-ID: 53116287:user:proton MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support for the sixth I2C interface on the MSM8996 SoC. Signed-off-by: Harry Austen --- v1 -> v2: use hyphens and add "-state" pinctrl node name suffix arch/arm64/boot/dts/qcom/msm8996.dtsi | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) -- 2.38.1 diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 39afd8a99488..bb49496a5413 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -1418,6 +1418,20 @@ pwdn { }; }; + blsp1_i2c6_default: blsp1-i2c6-state { + pins = "gpio27", "gpio28"; + function = "blsp_i2c6"; + drive-strength = <16>; + bias-disable; + }; + + blsp1_i2c6_sleep: blsp1-i2c6-sleep-state { + pins = "gpio27", "gpio28"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + pcie0_state_on: pcie0-state-on { perst { pins = "gpio35"; @@ -3141,6 +3155,23 @@ blsp1_i2c3: i2c@7577000 { status = "disabled"; }; + blsp1_i2c6: i2c@757a000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x757a000 0x1000>; + interrupts = ; + clocks = <&gcc GCC_BLSP1_QUP6_I2C_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&blsp1_i2c6_default>; + pinctrl-1 = <&blsp1_i2c6_sleep>; + dmas = <&blsp1_dma 22>, <&blsp1_dma 23>; + dma-names = "tx", "rx"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + blsp2_dma: dma-controller@7584000 { compatible = "qcom,bam-v1.7.0"; reg = <0x07584000 0x2b000>;