Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp873629rdg; Fri, 13 Oct 2023 04:02:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEV8eLTJiEJStZZwIPS88xMbUmTw3M/ugEDKkG3xehlimyLnBHWJMakPFlwHaf3LRv/TPSI X-Received: by 2002:a05:6a20:72a2:b0:15e:bf2b:e6d3 with SMTP id o34-20020a056a2072a200b0015ebf2be6d3mr29807550pzk.46.1697194944192; Fri, 13 Oct 2023 04:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697194944; cv=none; d=google.com; s=arc-20160816; b=ijvYiNDj8rznOhp8kkqwVDPzgeEfwYdEwo+06t6V4jJorCnlN89ErT+Ab6aqN+gBws j5apgVb6JGldFN6Po3rY9t6GI+6RC9ajS6aioG1oRYghlp2N1WoP+GTQJKCnzj2j/LIm hU/dcryji2Jkb05iTSVYl7qvvcrM2xmiAnJtbjTFKlKms6iHlSWtF2kjHavRCF/GFNll N1N0Wv6SgLpxYMsyaOYHCvcEJRp9dbYWbjh7GEsFk8d7dfCx7y0gxloZuag/FE0cH1ud s0n2Z3NFT2JbV1Z0hEDDwwvtfU3acSxZ88xvfQdtpqfKcq95drZnTzk0uu5Ttg5lHsiv dMeQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Z/BQk+HYkPOCwfKTzErvfhOabI324ceUMs/WOvUQN+Q=; fh=KrKcbZjgWF/FU7ufxD/0P7tWd0Uxw42R25WWkRKDl84=; b=HYUL3e+8THI3FHc9gzTAnguM+LcbT8Exb67Z6a5X3MHXN3uxD2556sdktb50NY+xJZ SnlYydsxKWb/GTnYIK/AnhkP2VY2sBqqBb0kyIw5fKTovwwNohgaeoLXwra3UIVEpwAJ iFU0wKLLaU3F7+GmKazdmI7wWehkMvCkmTyb7binosUsTRsvW5GyENo2iTTjhIhSYoaP 2yLO2v3HxRsdJpmHNIdBcdGZbppaxtIc+LwTZGjXZ8tNrYS0CSsPSwniL+GRbmkeVYMm lJgsDq7lyWzSNHhybLAGlZ/96tBx6bH8A2vhSgEbvrr2QzU1VYC4nK5Cicfw1EElWtTY nxMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="HOJ64/0L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id l5-20020a170903120500b001c9abd73cf0si4476422plh.155.2023.10.13.04.02.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 04:02:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="HOJ64/0L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 53E1282D1A9D; Fri, 13 Oct 2023 04:02:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230334AbjJMLCM (ORCPT + 99 others); Fri, 13 Oct 2023 07:02:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbjJMLCK (ORCPT ); Fri, 13 Oct 2023 07:02:10 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63C1D91; Fri, 13 Oct 2023 04:02:08 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-9936b3d0286so327859266b.0; Fri, 13 Oct 2023 04:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697194927; x=1697799727; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Z/BQk+HYkPOCwfKTzErvfhOabI324ceUMs/WOvUQN+Q=; b=HOJ64/0LJ6BZSrzIpPUsiSEM4wmDpJU+67sxR031GkwAO6SdO68v3qhRCSnHO+ygtv sbtyBGC3P6IWVyk971Cu7ryz/LM7lqzEpNEF320qFwYpArSRRc123obZVjRHBVc3wnAm d80rIm5ekK6rPFP+dUvephS4PS8WPk5qWfF9rppVJQCq+xmKlF5HUr42NEYGQ0BaiZll AV5C6k0pqYFOCf4/nzg8woaM1nJM5ZyBfEZcHqn6dIL996qNCJD+6FGbyhWwO0CDAI7S 1R0XjTJapJW0qL2SgZRjh3pnMjWR+m355fvptZl99Jstf8A+kZMNssWpBPrNAAy3/eBu B2JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697194927; x=1697799727; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Z/BQk+HYkPOCwfKTzErvfhOabI324ceUMs/WOvUQN+Q=; b=HELKRneJkCId2zhR+1/9lPB/yISm2Z+j2m9H/vdHXnl1SG5lYNL6Z59lA6ZuwvWXZh CrvtLLnWUmCvtw10bbKSB63HGNTCPU+IUk2lZK0QXfLlauBkCq0zqqYFn0eK5WQcOLAv S4dmcVPpsX6O4AgfTc1zYgXKlb9G8FuK33Giv/Z6ntdnqgYA/BLVisexo1XQWepwx7Ph tsTNhQ9uG2krSeX5Sc27b2gNpk3NK+nhuvc+z67KDMopTYWYaS0ThjPDufc0TKGxMlTa xlHGb1z34rD0K/bnbkQUuBGTq7K+XuDBnBvVy43iIphLeEEuu0SmlDM9NJhbjAX0RqJR BxZQ== X-Gm-Message-State: AOJu0YxCYnWD1PSoXcuSFFChMUFEvPAOO2bdggIhRfZQSlDkt6AZxU2m 7ijuzGZMO5c2P+caI8lCg9E= X-Received: by 2002:a17:906:7382:b0:9ae:284:c93d with SMTP id f2-20020a170906738200b009ae0284c93dmr20261880ejl.5.1697194926562; Fri, 13 Oct 2023 04:02:06 -0700 (PDT) Received: from arch-laptop.tail46804.ts.net (net-93-65-126-31.cust.vodafonedsl.it. [93.65.126.31]) by smtp.googlemail.com with ESMTPSA id a6-20020a170906190600b009ad89697c86sm12341169eje.144.2023.10.13.04.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 04:02:06 -0700 (PDT) From: M0Rf30 To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: morf3089@gmail.com Subject: [PATCH] arm64: dts: qcom: msm8953: add SPI interfaces Date: Fri, 13 Oct 2023 13:01:36 +0200 Message-ID: <20231013110137.82439-1-morf3089@gmail.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Fri, 13 Oct 2023 04:02:20 -0700 (PDT) From: Gianluca Boiano This change add spi_3, spi_5 and spi_6 interfaces to MSM8953 devices. Signed-off-by: Gianluca Boiano --- arch/arm64/boot/dts/qcom/msm8953.dtsi | 102 ++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi index e7de7632669a..cdfc38e562b6 100644 --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi @@ -726,6 +726,48 @@ i2c_8_sleep: i2c-8-sleep-state { bias-disable; }; + spi_3_default: spi-3-default-state { + pins = "gpio10", "gpio11"; + function = "blsp_spi3"; + drive-strength = <2>; + bias-disable; + }; + + spi_3_sleep: spi-3-sleep-state { + pins = "gpio10", "gpio11"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + spi_5_default: spi-5-default-state { + pins = "gpio18", "gpio19"; + function = "blsp_spi5"; + drive-strength = <2>; + bias-disable; + }; + + spi_5_sleep: spi-5-sleep-state { + pins = "gpio18", "gpio19"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + spi_6_default: spi-6-default-state { + pins = "gpio22", "gpio23"; + function = "blsp_spi6"; + drive-strength = <2>; + bias-disable; + }; + + spi_6_sleep: spi-6-sleep-state { + pins = "gpio22", "gpio23"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + wcnss_pin_a: wcnss-active-state { wcss-wlan2-pins { @@ -1360,6 +1402,26 @@ i2c_3: i2c@78b7000 { status = "disabled"; }; + spi_3: spi@78b7000 { + compatible = "qcom,spi-qup-v2.2.1"; + reg = <0x078b7000 0x600>; + interrupts = ; + clock-names = "core", "iface"; + clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + dmas = <&blsp1_dma 8>, <&blsp1_dma 9>; + dma-names = "tx", "rx"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&spi_3_default>; + pinctrl-1 = <&spi_3_sleep>; + + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + i2c_4: i2c@78b8000 { compatible = "qcom,i2c-qup-v2.2.1"; reg = <0x078b8000 0x600>; @@ -1413,6 +1475,26 @@ i2c_5: i2c@7af5000 { status = "disabled"; }; + spi_5: spi@7af5000 { + compatible = "qcom,spi-qup-v2.2.1"; + reg = <0x07af5000 0x600>; + interrupts = ; + clock-names = "core", "iface"; + clocks = <&gcc GCC_BLSP2_QUP1_I2C_APPS_CLK>, + <&gcc GCC_BLSP2_AHB_CLK>; + dmas = <&blsp2_dma 4>, <&blsp2_dma 5>; + dma-names = "tx", "rx"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&spi_5_default>; + pinctrl-1 = <&spi_5_sleep>; + + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + i2c_6: i2c@7af6000 { compatible = "qcom,i2c-qup-v2.2.1"; reg = <0x07af6000 0x600>; @@ -1433,6 +1515,26 @@ i2c_6: i2c@7af6000 { status = "disabled"; }; + spi_6: spi@7af6000 { + compatible = "qcom,spi-qup-v2.2.1"; + reg = <0x07af6000 0x600>; + interrupts = ; + clock-names = "core", "iface"; + clocks = <&gcc GCC_BLSP2_QUP2_I2C_APPS_CLK>, + <&gcc GCC_BLSP2_AHB_CLK>; + dmas = <&blsp2_dma 6>, <&blsp2_dma 7>; + dma-names = "tx", "rx"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&spi_6_default>; + pinctrl-1 = <&spi_6_sleep>; + + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + i2c_7: i2c@7af7000 { compatible = "qcom,i2c-qup-v2.2.1"; reg = <0x07af7000 0x600>; -- 2.42.0