Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp101573ybt; Tue, 23 Jun 2020 16:27:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7JleOB1wMuP0y7LrX0miJA2qEos/cIWfKlkz7tzcIqxaACH6KXWJIyC41cQQv0OwIxm7R X-Received: by 2002:a50:8fa1:: with SMTP id y30mr23327910edy.86.1592954849328; Tue, 23 Jun 2020 16:27:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592954849; cv=none; d=google.com; s=arc-20160816; b=pBGA36tymlLNfc4U2p77fNmwMf+S5gtJSlOgPJcqD48Y45t5Q/bZQxG4ZraBHud9PS 35ysPobY8c3yIakrbH4iZ1L0zCv1RS4C+0za2jQiEVv+UgDY6PO7OW7yTUHvlt+FHsaO RH/A9sgDeS53FhNhdBexNb+zFvJZA8epeg9FVB7pH19aWVg2fnc6F6PPBW9J+RZ4tnlf /4XnQo6zarvqFnqXFUc8RkoiB9Roh+Fu6GDAQLU3Y+FBY8pEWqVlbf4gmbAZX30L0jbV UqIQ4XbK/7XaC8vz8iCpPEnNwv4l2vDSQtty+7HYL7vVa6SwXVBb++X2IjxLoTXjyXu+ 2h2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=8fzLV49rwc6HteDopoFd5P9ELY2p4Gi3numED+Uv9BA=; b=uy0MqtKq26mQ6kCpbcCOjdPvKiRygGylTPwZlGDvbEzyS1/pR0CFFToKgt3WfjUA3F 4ZkjuMYtHqRrYdnwF8o3U0RtzW+CLR45KHM0102uoUPyXRPHiyrv/f0ppWVylVzRiwG+ fw+KuPyWy03GsOwlOeTbmbvm5UqHEnmN03U9TJaYzIFoftvYroiFtV1n6J6hf5gOsI7/ hK21zrXvBXSYm07Y9Tya21R88s+HXQQNkhVWgRNOz8gJ6ygnfFTi4ZrpdoesmKXm9kBy ULdCVDX6lKy9A+NvzwF9fOKd6kykFEL8gg/jqWeWiy86a61Lkznrf/h7GmQ6K6YFBS3T pijQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J1WRdMQo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si5955196edx.42.2020.06.23.16.27.05; Tue, 23 Jun 2020 16:27:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J1WRdMQo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388157AbgFWXY3 (ORCPT + 99 others); Tue, 23 Jun 2020 19:24:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387495AbgFWXY2 (ORCPT ); Tue, 23 Jun 2020 19:24:28 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B216C061573 for ; Tue, 23 Jun 2020 16:24:28 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id u8so177969pje.4 for ; Tue, 23 Jun 2020 16:24:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=8fzLV49rwc6HteDopoFd5P9ELY2p4Gi3numED+Uv9BA=; b=J1WRdMQo3tMT6lt9rRruoEsm17NNfmZNN7u1nb5PWRZfYtDFUzsS55zwRoWqmGXCXm wGL4ZSPcjfeWDfYcMPhs7D1VtLEQ9oxRY0+Qfs/L7kGIHpVmT2fYL3Lmnc428g0dFcrD Dw3VwImHw7KgVPaMqlRIyC6VL9nk/zFDeHZQjNEt41JPMszZLLMk0tSFmlKdiv/ZThOt bwIdYYjsvoy1I4ZwVbHr1UiXWq6vP6MNE+cciougt2nkBw2o2p3W99hH3AL8ybzyQjeE 3vepYUUcZZHJp7zmQRYVpGPrAX3ZtTQ11Ae8UmqjjkYmKyL8Sk8WSK462WbpnU/O/2Ve BwcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=8fzLV49rwc6HteDopoFd5P9ELY2p4Gi3numED+Uv9BA=; b=ScTtmvrbEvAi9n0EEsJ8c87AJNL2OfhH0TZJRR+So7+1e6RdSDa9XCc7Kjs2NJ1rFx o7tI7pl1MypIp64xVrT5BmvYlliJlGPl103FI2Y0zObyJmQU0WCtItFLM+PU2cN5hzpD TV4y7LZPMY3eScNCgM2p/zK6TZJCbOfmDlazbEir+K5W738EMgiB5Se3ailXDF9pmDiA x1aAJJRR6dJ+BRgpOGO+HEYRdnl7fYM23aBoJPZfNT4lqO96iX/TYpQaZF/H2iEw9HqH fpbg+vfLbVCplICPEVo1Is/5uS3sl93ufSb53+dV7r9oH4VaSrUwc7R0q6eN3AhYKuL6 e5uw== X-Gm-Message-State: AOAM533cA03rQFhxBti4YdhdAoHillnudq3hSj2d/5JsFSn4SbPJh/5q 1VdmKJSG80z6mMokkykj8WbkHQ== X-Received: by 2002:a17:90a:d250:: with SMTP id o16mr26294760pjw.199.1592954667889; Tue, 23 Jun 2020 16:24:27 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id x1sm3464151pju.3.2020.06.23.16.24.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 16:24:27 -0700 (PDT) Date: Tue, 23 Jun 2020 16:21:44 -0700 From: Bjorn Andersson To: Konrad Dybcio Cc: skrzynka@konradybcio.pl, Andy Gross , Rob Herring , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 07/12] arm64: dts: qcom: msm8994: Add I2C, SPI and BLSP DMA nodes Message-ID: <20200623232144.GM128451@builder.lan> References: <20200623224813.297077-1-konradybcio@gmail.com> <20200623224813.297077-8-konradybcio@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200623224813.297077-8-konradybcio@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 23 Jun 15:48 PDT 2020, Konrad Dybcio wrote: > Add support for I2C and SPI buses to enable peripherals > such as touchscreens or sensors. Also add DMA nodes, > configuration and BLSP2 UART2 interface. > > Signed-off-by: Konrad Dybcio Applied, thanks > --- > arch/arm64/boot/dts/qcom/msm8994.dtsi | 156 +++++++++++++++++++++++++- > 1 file changed, 155 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/qcom/msm8994.dtsi b/arch/arm64/boot/dts/qcom/msm8994.dtsi > index 838ffc0d9c16..8af01ebe73f7 100644 > --- a/arch/arm64/boot/dts/qcom/msm8994.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8994.dtsi > @@ -365,14 +365,168 @@ sdhc1: sdhci@f9824900 { > status = "disabled"; > }; > > + blsp1_dma: dma@f9904000 { > + compatible = "qcom,bam-v1.7.0"; > + reg = <0xf9904000 0x19000>; > + interrupts = ; > + clocks = <&gcc GCC_BLSP1_AHB_CLK>; > + clock-names = "bam_clk"; > + #dma-cells = <1>; > + qcom,ee = <0>; > + qcom,controlled-remotely; > + num-channels = <18>; > + qcom,num-ees = <4>; > + }; > + > blsp1_uart2: serial@f991e000 { > compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; > reg = <0xf991e000 0x1000>; > interrupts = ; > - status = "disabled"; > clock-names = "core", "iface"; > clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, > <&gcc GCC_BLSP1_AHB_CLK>; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&blsp1_uart2_default>; > + pinctrl-1 = <&blsp1_uart2_sleep>; > + status = "disabled"; > + }; > + > + blsp_i2c1: i2c@f9923000 { > + compatible = "qcom,i2c-qup-v2.2.1"; > + reg = <0xf9923000 0x500>; > + interrupts = ; > + clocks = <&gcc GCC_BLSP1_AHB_CLK>, > + <&gcc GCC_BLSP1_QUP1_I2C_APPS_CLK>; > + clock-names = "iface", "core"; > + clock-frequency = <400000>; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&i2c1_default>; > + pinctrl-1 = <&i2c1_sleep>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > + > + blsp_spi0: spi@f9923000 { > + compatible = "qcom,spi-qup-v2.2.1"; > + reg = <0xf9923000 0x500>; > + interrupts = ; > + clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>, > + <&gcc GCC_BLSP1_AHB_CLK>; > + clock-names = "core", "iface"; > + spi-max-frequency = <19200000>; > + dmas = <&blsp1_dma 12>, <&blsp1_dma 13>; > + dma-names = "tx", "rx"; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&blsp1_spi0_default>; > + pinctrl-1 = <&blsp1_spi0_sleep>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > + > + blsp_i2c2: i2c@f9924000 { > + compatible = "qcom,i2c-qup-v2.2.1"; > + reg = <0xf9924000 0x500>; > + interrupts = ; > + clocks = <&gcc GCC_BLSP1_AHB_CLK>, > + <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>; > + clock-names = "iface", "core"; > + clock-frequency = <355000>; > + dmas = <&blsp1_dma 14>, <&blsp1_dma 15>; > + dma-names = "tx", "rx"; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&i2c2_default>; > + pinctrl-1 = <&i2c2_sleep>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > + > + /* I2C3 doesn't exist */ > + > + blsp_i2c4: i2c@f9926000 { > + compatible = "qcom,i2c-qup-v2.2.1"; > + reg = <0xf9926000 0x500>; > + interrupts = ; > + clocks = <&gcc GCC_BLSP1_AHB_CLK>, > + <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>; > + clock-names = "iface", "core"; > + clock-frequency = <355000>; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&i2c4_default>; > + pinctrl-1 = <&i2c4_sleep>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > + > + blsp2_dma: dma@f9944000 { > + compatible = "qcom,bam-v1.7.0"; > + reg = <0xf9944000 0x19000>; > + interrupts = ; > + clocks = <&gcc GCC_BLSP2_AHB_CLK>; > + clock-names = "bam_clk"; > + #dma-cells = <1>; > + qcom,ee = <0>; > + qcom,controlled-remotely; > + num-channels = <18>; > + qcom,num-ees = <4>; > + }; > + > + /* According to downstream kernels, i2c6 > + * comes before i2c5 address-wise... > + */ > + > + blsp_i2c6: i2c@f9928000 { > + compatible = "qcom,i2c-qup-v2.2.1"; > + reg = <0xf9928000 0x500>; > + interrupts = ; > + clocks = <&gcc GCC_BLSP1_AHB_CLK>, > + <&gcc GCC_BLSP1_QUP6_I2C_APPS_CLK>; > + clock-names = "iface", "core"; > + clock-frequency = <355000>; > + dmas = <&blsp1_dma 22>, <&blsp1_dma 23>; > + dma-names = "tx", "rx"; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&i2c6_default>; > + pinctrl-1 = <&i2c6_sleep>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > + > + blsp2_uart2: serial@f995e000 { > + compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; > + reg = <0xf995e000 0x1000>; > + interrupts = ; > + clock-names = "core", "iface"; > + clocks = <&gcc GCC_BLSP2_UART2_APPS_CLK>, > + <&gcc GCC_BLSP2_AHB_CLK>; > + dmas = <&blsp2_dma 2>, <&blsp2_dma 3>; > + dma-names = "tx", "rx"; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&blsp2_uart2_default>; > + pinctrl-1 = <&blsp2_uart2_sleep>; > + status = "disabled"; > + }; > + > + blsp_i2c5: i2c@f9967000 { > + compatible = "qcom,i2c-qup-v2.2.1"; > + reg = <0xf9967000 0x500>; > + interrupts = ; > + clocks = <&gcc GCC_BLSP2_AHB_CLK>, > + <&gcc GCC_BLSP2_QUP5_I2C_APPS_CLK>; > + clock-names = "iface", "core"; > + clock-frequency = <355000>; > + dmas = <&blsp2_dma 20>, <&blsp2_dma 21>; > + dma-names = "tx", "rx"; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&i2c5_default>; > + pinctrl-1 = <&i2c5_sleep>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > }; > > gcc: clock-controller@fc400000 { > -- > 2.27.0 >