Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1487197rwb; Fri, 12 Aug 2022 01:32:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR7KHxam0yUdGtiu1szr4bCBuug5VZ8sf2tQ8hZcF0J5U8G2qy+CXg2CYMEAETye8sV3UxUo X-Received: by 2002:a05:6402:35d5:b0:43d:a02f:cbfb with SMTP id z21-20020a05640235d500b0043da02fcbfbmr2500384edc.275.1660293157575; Fri, 12 Aug 2022 01:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660293157; cv=none; d=google.com; s=arc-20160816; b=CE0b5oLpBtyi+VOkKUNLVgZjtvOWyma2ujRrhybhb2f8aW0DfBY5qXYd1vWI1RWdaO DMDUcO2fsxQMXO0WUkSY1Ry1FWmVSTIDFm4Ip3W2OzbAhlPMXchoWgjtmGHCwwqOmGlQ t7O+qJDDS1Z614yM9I0fGFSsgySbYhe0K3unFfuqYJ2OgM588hP/E6kW1vxgqC8Mc3wo 6RbTwg/k8DvLhQT7wYE7rF8HbSXOXqFymueVNvYbSZk9pRFfjarLUpWZy//k5Ilc9Cy8 1ZpbP+BUQvYnEBzXtPv+y9bNBL41KDK6I2bZKn5XZVdem/bzpjsCh0l3abArFNDm3QjW xXsg== 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=YtXfWrLU1BZPc0rfRaWUKHk31M+JfVKZR86pVQ/2Egk=; b=Ox7lrifn8+cAxMcL6OwYlE5XUYeL8WhDui9Do+9T5iOCgW0jCPpk/qNk2GIZljZNtk z5SM0nxKDvzfrDV/55de83tB5evXRuwVtdXTteYLVRfLuiVM44P0ClD7ACPP69ygNzfb A0qW7MMwADsbomew50jsOfg4FOgDm9urbY/wDTGjbvDNWzvUFJgKdKG7IPYHy74CpzHu EpHvlE+oZKv1K2bAyEocjzLqaWQi9DEjhEq/C3sXN6CSJVGWyyMSLyGuUDNT2pyt1q0W VuqyW/pQV/5IHnMriuvkPApDwOKsQGYHWtHjX4pZWJ26+sPjivQgClGnvaY5tL7Ax6Hk oRtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=UzrkX0Ix; 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 g10-20020a056402428a00b0043a72c8b750si1595755edc.114.2022.08.12.01.32.12; Fri, 12 Aug 2022 01:32:37 -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=UzrkX0Ix; 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 S237463AbiHLI2P (ORCPT + 99 others); Fri, 12 Aug 2022 04:28:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236373AbiHLI2J (ORCPT ); Fri, 12 Aug 2022 04:28:09 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93A13A8943 for ; Fri, 12 Aug 2022 01:28:05 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id gk3so794417ejb.8 for ; Fri, 12 Aug 2022 01:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=YtXfWrLU1BZPc0rfRaWUKHk31M+JfVKZR86pVQ/2Egk=; b=UzrkX0IxhkIOXzUyXy0xY8Pll/YDDoDIG7iHl3U+UObYWU6CeqAZ3hcuERe48Eg4qj cV2/S/42bnyKsJY1Si7MlZEp5/u4Wrf87aCqSvdBIulw5gLv/3RRZ3uJZYOiJofkZ9Y2 KEhuG+yWXpjouBuYLYdfniUlwiOWgmCv6E00nCK+SPNXnWJ/sdthIkFtZTnhRkuzTBJz n0MPn7fLsJU7m2vNk/p07lG0AK1qejrV3+dRBJxRmDPU38AO3Ifuu7uVk4JARAkrruB8 3SBPXHwiQIkGe0dhUtIBBZWwFvkzYroUPIJcpzxCqd/9r13jF+8wFglO+UmMWtrGYEz9 kvKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=YtXfWrLU1BZPc0rfRaWUKHk31M+JfVKZR86pVQ/2Egk=; b=76OdMDC5Y3niP+3J+zS/Ql1qY3WjgaCWV65Vwh/qtcJL6ZLig8iWxneLbO9oMreY29 WPMP851VLDv4L/JJcbXpHQ286nML32mYSQ/wlyMbM5Os5fqsKrk/YgVBASu8/+jS9C+L 1O6nh8gHp+B+2pqye8ENCXot2s4/K34RTyLEqaA8qYw5MoTenqsW7EkhEN/B6pUo34mN nOInwO6sesqVHOywZYhm7+ETXnVagBk6vxI0sGGJDwxCem9JHNycnDm4sxF99FKVaALf rMRZq839xWgw0257eqo6REAiPv2aAbFOk4Q7TiLL85h/sWedFaA8tJ6DRy0baTLUliSY HccA== X-Gm-Message-State: ACgBeo3SWB/eFkOh4oyXuQobLGNGnnyZwRftC9/eNTn6IQeHQk5i4csX UMCZXaiNDUzTRYCqJPpbdkcZDQ== X-Received: by 2002:a17:907:842:b0:731:3310:4187 with SMTP id ww2-20020a170907084200b0073133104187mr1879973ejb.578.1660292884039; Fri, 12 Aug 2022 01:28:04 -0700 (PDT) Received: from otso.arnhem.chello.nl (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id y6-20020a056402134600b0043cf1c6bb10sm971326edw.25.2022.08.12.01.28.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 01:28:03 -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 , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: qcom: sm6350: Add GPI DMA nodes Date: Fri, 12 Aug 2022 10:27:21 +0200 Message-Id: <20220812082721.1125759-4-luca.weiss@fairphone.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220812082721.1125759-1-luca.weiss@fairphone.com> References: <20220812082721.1125759-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 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 Add nodes for the gpi_dma0 and gpi_dma1 which are (optionally) used for various i2c busses based on the qup firmware configuration. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 59 ++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index 76f14d54ae1c..5de6eb26f904 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -517,6 +518,26 @@ opp-384000000 { }; }; + gpi_dma0: dma-controller@800000 { + compatible = "qcom,sm6350-gpi-dma"; + reg = <0 0x00800000 0 0x60000>; + interrupts = , + , + , + , + , + , + , + , + , + ; + dma-channels = <10>; + dma-channel-mask = <0x1f>; + iommus = <&apps_smmu 0x56 0x0>; + #dma-cells = <3>; + status = "disabled"; + }; + qupv3_id_0: geniqup@8c0000 { compatible = "qcom,geni-se-qup"; reg = <0x0 0x8c0000 0x0 0x2000>; @@ -537,6 +558,9 @@ i2c0: i2c@880000 { pinctrl-names = "default"; pinctrl-0 = <&qup_i2c0_default>; interrupts = ; + dmas = <&gpi_dma0 0 0 QCOM_GPI_I2C>, + <&gpi_dma0 1 0 QCOM_GPI_I2C>; + dma-names = "tx", "rx"; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -550,12 +574,35 @@ i2c2: i2c@888000 { pinctrl-names = "default"; pinctrl-0 = <&qup_i2c2_default>; interrupts = ; + dmas = <&gpi_dma0 0 2 QCOM_GPI_I2C>, + <&gpi_dma0 1 2 QCOM_GPI_I2C>; + dma-names = "tx", "rx"; #address-cells = <1>; #size-cells = <0>; status = "disabled"; }; }; + gpi_dma1: dma-controller@900000 { + compatible = "qcom,sm6350-gpi-dma"; + reg = <0 0x00900000 0 0x60000>; + interrupts = , + , + , + , + , + , + , + , + , + ; + dma-channels = <10>; + dma-channel-mask = <0x3f>; + iommus = <&apps_smmu 0x4d6 0x0>; + #dma-cells = <3>; + status = "disabled"; + }; + qupv3_id_1: geniqup@9c0000 { compatible = "qcom,geni-se-qup"; reg = <0x0 0x9c0000 0x0 0x2000>; @@ -576,6 +623,9 @@ i2c6: i2c@980000 { pinctrl-names = "default"; pinctrl-0 = <&qup_i2c6_default>; interrupts = ; + dmas = <&gpi_dma1 0 0 QCOM_GPI_I2C>, + <&gpi_dma1 1 0 QCOM_GPI_I2C>; + dma-names = "tx", "rx"; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -589,6 +639,9 @@ i2c7: i2c@984000 { pinctrl-names = "default"; pinctrl-0 = <&qup_i2c7_default>; interrupts = ; + dmas = <&gpi_dma1 0 1 QCOM_GPI_I2C>, + <&gpi_dma1 1 1 QCOM_GPI_I2C>; + dma-names = "tx", "rx"; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -602,6 +655,9 @@ i2c8: i2c@988000 { pinctrl-names = "default"; pinctrl-0 = <&qup_i2c8_default>; interrupts = ; + dmas = <&gpi_dma1 0 2 QCOM_GPI_I2C>, + <&gpi_dma1 1 2 QCOM_GPI_I2C>; + dma-names = "tx", "rx"; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -626,6 +682,9 @@ i2c10: i2c@990000 { pinctrl-names = "default"; pinctrl-0 = <&qup_i2c10_default>; interrupts = ; + dmas = <&gpi_dma1 0 4 QCOM_GPI_I2C>, + <&gpi_dma1 1 4 QCOM_GPI_I2C>; + dma-names = "tx", "rx"; #address-cells = <1>; #size-cells = <0>; status = "disabled"; -- 2.37.1