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: 8095 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp127642wru; Sun, 23 Oct 2022 13:46:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM63gaIIHa479kWi+PRB+Zk5YqD26wg7lqbgxZZFe8hKAenolFlZaYl1xO7RMUV+eMkeIxF0 X-Received: by 2002:a17:903:258b:b0:186:8bb2:de32 with SMTP id jb11-20020a170903258b00b001868bb2de32mr8773146plb.63.1666557999336; Sun, 23 Oct 2022 13:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666557999; cv=none; d=google.com; s=arc-20160816; b=HLHnuXTTGCjBaQxMXKAN8sobCOIEldLciIq+LKmNxns1I8DzcwKaB+atuTTNAiXtHF wIG2rTSXSjnqGxhjKuduf/48KFcc/VrNLpI0U01cZTDy2Utd4exaIYkcY5sZkmEpK6Ju YdwhZVYhT7RwHV7M04QFT/zshPAK92JcvsXctMfCpK7HiUSBMzQVm4LrblsJBvdT0p+e VkeP4Dfdn+FufEEEEFFBnzv9TS+8JVHjHVf+jZf1WwNYRapUggjeMZ2ZmoHNSmv56bQK erOxYp7YqhzLAYAfl1TlSz4pLyOXqGAM22lgg/GWmUg2VP8PVLnnQF/03KgELYSGutJi RORQ== 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 :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=y2bCXpgeOzFP8XQZojpeu0g8mOyEC8O50wzfQi+iCHo=; b=tgnnxudXzfFV9DA36mOPq96frVRpgnxoo/A2DezABy1bddqXAy9c492bWjMjBRsED1 JVQpa5n4VVLpk+bZ512wAmVCbx0pAiD4F5S+Gwy7pA7c+F8VQYhOh2nOfw9beOQLyX6c W5kqgERFb9e4Rn/zeMeGqoqyuGlWeulSb69Qw33OuA014N+SG8j5XCPcOo40hE4YOUXD fRNuXnQVChtk5fAAv6D/5wO+RtWMlU8z/0H44c7Vlw2c6dI5+zAxbaZWHpB7Eoo3LxMy NJeszElIzY3X7LD7TeUPGOAJvJG5SzYDYBH2SJo7dwLsppC4uafl/AA9q863GEc47fnn oxjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=hVQVBBHO; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c13-20020a170902b68d00b0018040bdb798si29993668pls.242.2022.10.23.13.46.27; Sun, 23 Oct 2022 13:46:39 -0700 (PDT) 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=@protonmail.com header.s=protonmail3 header.b=hVQVBBHO; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229930AbiJWUqG (ORCPT + 99 others); Sun, 23 Oct 2022 16:46:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbiJWUqE (ORCPT ); Sun, 23 Oct 2022 16:46:04 -0400 Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4E426B667 for ; 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 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,SPF_HELO_PASS, SPF_PASS autolearn=unavailable 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747512720587430319?= X-GMAIL-MSGID: =?utf-8?q?1747512720587430319?= Add support for the sixth I2C interface on the MSM8996 SoC. Signed-off-by: Harry Austen Reviewed-by: Krzysztof Kozlowski --- 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>;