Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp223227pxw; Fri, 8 Apr 2022 06:05:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0CCyFrMvWx/yjeiKHpd0XtqrosYiU/JhS1R42aLgKqKgA42D2DoFltYKU3G5OVWREmSst X-Received: by 2002:a05:6638:388e:b0:321:57c3:f86 with SMTP id b14-20020a056638388e00b0032157c30f86mr9307185jav.255.1649423106297; Fri, 08 Apr 2022 06:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649423106; cv=none; d=google.com; s=arc-20160816; b=bhpo2XRkBgduIu3Ywv5pcn2hNb7UjVgJB16sqE86THJARdQBzyuQlvERrx/TsQHLOd LVVWjOFoUXX228aoqo80sTPMDLmgyXQkhYVFq5w+5ii8DZe6dYxl5eZBq7V6t3yBfwYR CyrC2JNQyWfa1Ddy8BSVevNQmu3cPjYDBoA1aWe40CuQ7MeIdsXAyOMqlvl64svYQ0ck vHwwag/lQT0R0TD4OAmZhEjGc45d/1UjzJNmnFRZskaGcrZER9DhdD7lWqxg4An4qNe8 CEmzW4PuDVT2UKxqnYWNBN5hYpNoeYVjVMMhDj8C+i9GqDb0qU7ZKQe50y/7UpV5RNp6 nesg== 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=4tXWRt0uQ+KwfgraCk0yFBPONTSxaKlttzw/exd66MY=; b=oPJT68QIeBTjns7+aPXzL/aRzo/JCGjEAozAosiVWcih1ZXJN1aeiP/5+DJSlV7G4E M0CpHd0hW5i7dJ4n3HhUCZUzPuryHbjnecHoqIbBgTJwRNsEMwZCh9V6oeC9XuY1Epbm 5yLBdFNdi8Ck46+D5xVpoMyWKClmX1Yf7b4t/tqXoSrQD2JESDuofpgspJwJ42MwxzJZ BvbWm/fffQiHmN3cW5WBtzhfJ/Qo2bzR3hoaCM+pGxZO1AR/YGlQCadPNeOljMiLzakT SQRfRdw2egUMqu4oyZ3bq37H9PQJjGYIi0feBPqQ7nbcV01vPzlBoNxO8ERqgagBa32I vmkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="IYc/fuyF"; 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=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t20-20020a056602141400b0064958084542si574113iov.95.2022.04.08.06.04.52; Fri, 08 Apr 2022 06:05:06 -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=@fairphone.com header.s=fair header.b="IYc/fuyF"; 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=NONE dis=NONE) header.from=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235022AbiDHLpO (ORCPT + 99 others); Fri, 8 Apr 2022 07:45:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235009AbiDHLpM (ORCPT ); Fri, 8 Apr 2022 07:45:12 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFB1A1CA11E for ; Fri, 8 Apr 2022 04:43:08 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id qh7so16692173ejb.11 for ; Fri, 08 Apr 2022 04:43:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4tXWRt0uQ+KwfgraCk0yFBPONTSxaKlttzw/exd66MY=; b=IYc/fuyF3oOJ1Cih6uDRi1Q5jMTNw+Et2/Rand6G+NCp2/ja0r5FE0T5/6xNpG7Mcs ALpuZu4lpekuaTNyIRZHNADsCvbg4HRVz3oHhO8pUbpAsV0K4pP2ZxeXx6KDUXaBRGiS u58HmpdSNt/0wYmGVTWe3rbACs4A/10yHZYwXaElnMZI1MiQo4KlJEtgvehmI0FuXhe0 7Edw+oEHElhP5SNRZnak99EKkbflgC8hqovI4JVI7+8GNEHcxJXBzftk5mMgH5qMD0OM ckKA/52FSrvrnHnM7SpKMAlNNwLEvrRpphW6lm2h71y95gT/jbiPaeSBtzPxuwClPkcw 07Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4tXWRt0uQ+KwfgraCk0yFBPONTSxaKlttzw/exd66MY=; b=hVOO2ctDCYMOKg/s85Aa2NZedXUtGIbmt3BkoVBKLVzZoj0OQQYcjAu3gsOsrFVvIz cjwUQg+gDjf2k7w08auxSWw507sY7qqfiPaz/3ePV2YuD9pC4Bc6gvC9gCMOnkYf4IUO leZTxGWhCfg0u7Me8LUjb6Pdj/l6SFI0PCIJgkaN/7UnISzsQVLpQdVCsLvbDgOrGmI+ YBW1yPr6p9jaIvf7Jd+6XILUGr79KvMkRW+5p7GddwoURnJTXoQFe3MOWqPcint8ag6d W/jZq7ApbsTxf7cIu2oftyCbsW8zih9fGCqCe6+nsnTvAPKEnqR90u30rFGN6ZpMqx81 f9BQ== X-Gm-Message-State: AOAM530Wj2dvBC79NfhVNl2uootf8I1kEU5JSD8wIQ0MYnh0EfbhA+Lx 8aCAyrB5NaD4HMnfwKWcE3gSdA== X-Received: by 2002:a17:907:d09:b0:6e8:3eef:3192 with SMTP id gn9-20020a1709070d0900b006e83eef3192mr6327933ejc.122.1649418187586; Fri, 08 Apr 2022 04:43:07 -0700 (PDT) Received: from otso.. (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id h5-20020a170906718500b006e7edcda732sm5909557ejk.125.2022.04.08.04.43.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 04:43:07 -0700 (PDT) From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: sm6350: Add I2C busses Date: Fri, 8 Apr 2022 13:42:05 +0200 Message-Id: <20220408114205.234635-2-luca.weiss@fairphone.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220408114205.234635-1-luca.weiss@fairphone.com> References: <20220408114205.234635-1-luca.weiss@fairphone.com> MIME-Version: 1.0 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,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,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 Add nodes for the I2C busses on sm6350. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 134 +++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index ef43af39569c..81db25952cf1 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -517,6 +517,45 @@ opp-384000000 { }; }; + qupv3_id_0: geniqup@8c0000 { + compatible = "qcom,geni-se-qup"; + reg = <0x0 0x8c0000 0x0 0x2000>; + clock-names = "m-ahb", "s-ahb"; + clocks = <&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, + <&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; + #address-cells = <2>; + #size-cells = <2>; + iommus = <&apps_smmu 0x43 0x0>; + ranges; + status = "disabled"; + + i2c0: i2c@880000 { + compatible = "qcom,geni-i2c"; + reg = <0 0x00880000 0 0x4000>; + clock-names = "se"; + clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>; + pinctrl-names = "default"; + pinctrl-0 = <&qup_i2c0_default>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c2: i2c@888000 { + compatible = "qcom,geni-i2c"; + reg = <0 0x00888000 0 0x4000>; + clock-names = "se"; + clocks = <&gcc GCC_QUPV3_WRAP0_S2_CLK>; + pinctrl-names = "default"; + pinctrl-0 = <&qup_i2c2_default>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + }; + qupv3_id_1: geniqup@9c0000 { compatible = "qcom,geni-se-qup"; reg = <0x0 0x9c0000 0x0 0x2000>; @@ -529,6 +568,45 @@ qupv3_id_1: geniqup@9c0000 { ranges; status = "disabled"; + i2c6: i2c@980000 { + compatible = "qcom,geni-i2c"; + reg = <0 0x00980000 0 0x4000>; + clock-names = "se"; + clocks = <&gcc GCC_QUPV3_WRAP1_S0_CLK>; + pinctrl-names = "default"; + pinctrl-0 = <&qup_i2c6_default>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c7: i2c@984000 { + compatible = "qcom,geni-i2c"; + reg = <0 0x00984000 0 0x4000>; + clock-names = "se"; + clocks = <&gcc GCC_QUPV3_WRAP1_S1_CLK>; + pinctrl-names = "default"; + pinctrl-0 = <&qup_i2c7_default>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c8: i2c@988000 { + compatible = "qcom,geni-i2c"; + reg = <0 0x00988000 0 0x4000>; + clock-names = "se"; + clocks = <&gcc GCC_QUPV3_WRAP1_S2_CLK>; + pinctrl-names = "default"; + pinctrl-0 = <&qup_i2c8_default>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + uart9: serial@98c000 { compatible = "qcom,geni-debug-uart"; reg = <0 0x98c000 0 0x4000>; @@ -539,6 +617,20 @@ uart9: serial@98c000 { interrupts = ; status = "disabled"; }; + + i2c10: i2c@990000 { + compatible = "qcom,geni-i2c"; + reg = <0 0x00990000 0 0x4000>; + clock-names = "se"; + clocks = <&gcc GCC_QUPV3_WRAP1_S4_CLK>; + pinctrl-names = "default"; + pinctrl-0 = <&qup_i2c10_default>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + }; tcsr_mutex: hwlock@1f40000 { @@ -980,6 +1072,48 @@ qup_uart9_default: qup-uart9-default { drive-strength = <2>; bias-disable; }; + + qup_i2c0_default: qup-i2c0-default { + pins = "gpio0", "gpio1"; + function = "qup00"; + drive-strength = <2>; + bias-pull-up; + }; + + qup_i2c2_default: qup-i2c2-default { + pins = "gpio45", "gpio46"; + function = "qup02"; + drive-strength = <2>; + bias-pull-up; + }; + + qup_i2c6_default: qup-i2c6-default { + pins = "gpio13", "gpio14"; + function = "qup10"; + drive-strength = <2>; + bias-pull-up; + }; + + qup_i2c7_default: qup-i2c7-default { + pins = "gpio27", "gpio28"; + function = "qup11"; + drive-strength = <2>; + bias-pull-up; + }; + + qup_i2c8_default: qup-i2c8-default { + pins = "gpio19", "gpio20"; + function = "qup12"; + drive-strength = <2>; + bias-pull-up; + }; + + qup_i2c10_default: qup-i2c10-default { + pins = "gpio4", "gpio5"; + function = "qup14"; + drive-strength = <2>; + bias-pull-up; + }; }; apps_smmu: iommu@15000000 { -- 2.35.1