From patchwork Thu Feb 16 12:52:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13143060 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFA28C64EC4 for ; Thu, 16 Feb 2023 12:53:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230406AbjBPMxF (ORCPT ); Thu, 16 Feb 2023 07:53:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230362AbjBPMxE (ORCPT ); Thu, 16 Feb 2023 07:53:04 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 138AE41B7C for ; Thu, 16 Feb 2023 04:53:03 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id bk16so1718199wrb.11 for ; Thu, 16 Feb 2023 04:53:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WOlcxYbFV1QWfu0q4yI7Y8XhpMc15c4VHRcGdANSUSE=; b=vGywFXh9F/9t/qsH78rosSvNnut2PMCb0Rr2tiIPebqHzYdOlyFbdB2WyxqDxmcpCT gAtP6i/WYxYWUF2XNXreu9hMUsiU4I6UFwFQLRLhe2KNY/fAQuB3ET3ZqYY1K5kH2kYi 96PfurybC3c88s07+0UZKNuY8+XIYyDAIOLzBiqNrCdLK1c30WPbt7IBNW1msA1dNnSl 1tGoJNgOFELeSvLD1B3edfJRcT8Y/pw+rZzZw/pBu1dJHKftCF8ajgQ8z7s8hjA/egXE F7SQSMJ6ERJ1vfvmemiiglicQruruZUbR46RbdsZdn5GZXVvmUYR2r7LkgahmEhmCmHG dkdw== 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 :subject:date:message-id:reply-to; bh=WOlcxYbFV1QWfu0q4yI7Y8XhpMc15c4VHRcGdANSUSE=; b=Xam4wAkAjLLNbTrrwQ1npCQGCiMoW8/V01F78V3h6QRXVbqJZ9DhwFq1gCYCscBBGE 0yYUs7fSzPwOJRHjdUQawUil10mX0bKCnSUpgF256U1g9uMfiWcQrhCfHl8e6aiK7M9z N9v6jPNoq72r+uILMz4gRGH0PFk1KoiPUgRsQFK2jVmBzdkbRFfJ+fi4OqohELT4mbvt yL/DjEGtlbeh2UD9hz7Se/uYlm0iTmXuTPX+r4k2yDhpCkcJbfSkqZog/60uHZJa4wm6 W55RduOJRr+S2K3a6tqvVduMM+WPTQgyOi24UD4QMgXH9SfZb2izNPNZfFlEqS827f4K b+AQ== X-Gm-Message-State: AO0yUKVUCQKgznT1/SoISqSpoon4+lcgnpQg2BflLdF+6JcuzxETmgNJ mZWEIJ/ht5hh5RXsL2B/XmtEhg== X-Google-Smtp-Source: AK7set/k5C/fxcrmxqhk/K0SZwIXRY9xmR4qvAhJbJJstjG6jrsIC2EqYZxDfP/z5G4+e6SlOSrv6A== X-Received: by 2002:a05:6000:120e:b0:2c5:63df:1171 with SMTP id e14-20020a056000120e00b002c563df1171mr5365114wrx.19.1676551981509; Thu, 16 Feb 2023 04:53:01 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:7c5b:1160:db5d:72da]) by smtp.gmail.com with ESMTPSA id h18-20020adffd52000000b002be5bdbe40csm1453292wrs.27.2023.02.16.04.53.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 04:53:01 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 1/9] arm64: dts: qcom: sa8775p: add the QUPv3 #2 node Date: Thu, 16 Feb 2023 13:52:49 +0100 Message-Id: <20230216125257.112300-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230216125257.112300-1-brgl@bgdev.pl> References: <20230216125257.112300-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add the second instance of the QUPv3 engine to the sa8775p.dtsi. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 565c1376073e..894c0662afb4 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -491,6 +491,19 @@ &clk_virt SLAVE_QUP_CORE_1 0>, }; }; + qupv3_id_2: geniqup@8c0000 { + compatible = "qcom,geni-se-qup"; + reg = <0x0 0x8c0000 0x0 0x6000>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + clocks = <&gcc GCC_QUPV3_WRAP_2_M_AHB_CLK>, + <&gcc GCC_QUPV3_WRAP_2_S_AHB_CLK>; + clock-names = "m-ahb", "s-ahb"; + iommus = <&apps_smmu 0x5a3 0x0>; + status = "disabled"; + }; + intc: interrupt-controller@17a00000 { compatible = "arm,gic-v3"; reg = <0x0 0x17a00000 0x0 0x10000>, /* GICD */ From patchwork Thu Feb 16 12:52:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13143062 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E9CBC64ED8 for ; Thu, 16 Feb 2023 12:53:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230421AbjBPMxG (ORCPT ); Thu, 16 Feb 2023 07:53:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbjBPMxE (ORCPT ); Thu, 16 Feb 2023 07:53:04 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D844242BD8 for ; Thu, 16 Feb 2023 04:53:03 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id o15so1728157wrc.9 for ; Thu, 16 Feb 2023 04:53:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NuXf3qcdLoRKFYAi7wFYWNuVj8BPbd9z/6kD6caVGIg=; b=U6wziLk5VK0em7tZCPVllUbuxwAfADINXVKJgchub5Xt0p8tk/6TpgL4lsQBVaZPSX eb8Xie8uI0r7VG2QrkiVXz89K39Ylvt4Ab6s+R0RwFeW6oKwPpduB7T9hAnh3Y3vwMTV U57h4W8djMI3cP6HcKpSrJu3jvtE+RQy9028yg/5OhY/gNIXan4xpClJFQSlVALKJpc0 0sU4ZmQ8+ZrIib70a+6qtBmhrPRij2Ha/Ph/yjH+eqSaXqu6jkb390hWg01n7b8VEfBm G8fnLeWbk+o1UunBOyHK4IM4R1+WhWmDezJ+qullKL5WvRtWrD6pOKq5NrSegTpuRtKX V9Ag== 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 :subject:date:message-id:reply-to; bh=NuXf3qcdLoRKFYAi7wFYWNuVj8BPbd9z/6kD6caVGIg=; b=zxuDts1JtfXdaZsBL++qIyGQkptAKh/LF2C21k3APE7+8hzqqq/ciNUr6RQCIN9DG5 WFjlwjGY5T6IzjI3MzkeHA/yIeT2Im8Sgs2eTfUEGuA2srvHhacKNsyoBxwqHwq39jk+ sv2odYTthcIrq2o6EN7Pw2AeLwR/o6XvY2+z9MCC054DY9jGlOapoyWx9SnLdC9yTtWE 8KfbK3O3/5Tnqc8PhFJnWW3XtZAY3FfZ7axzs2LLOUIVoU9UzY5rIEoi/mDM1UzNPFpf wvXl3Qucu33aRDB1KwMx1QfYDrYq3QAoG0FYMyBpOmuA/Lg595GVMqcdGcdbrp/ZOq55 xnWQ== X-Gm-Message-State: AO0yUKXjKldf20NyZMe4iK3903Hse7PmNugoPzqGsrCYbaYzgqMySvZO zRs21fcL+oGxcFODoMvOyV7X6Q== X-Google-Smtp-Source: AK7set/fppPwIypQ59Se3kjutRGbfgpFr0UJHzPZY4k7kOOsYAY+qMJ4Y57KhOKVmvGrdJs2QFOvOg== X-Received: by 2002:a5d:6685:0:b0:2c1:28e7:5081 with SMTP id l5-20020a5d6685000000b002c128e75081mr4263665wru.68.1676551982466; Thu, 16 Feb 2023 04:53:02 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:7c5b:1160:db5d:72da]) by smtp.gmail.com with ESMTPSA id h18-20020adffd52000000b002be5bdbe40csm1453292wrs.27.2023.02.16.04.53.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 04:53:02 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 2/9] arm64: dts: qcom: sa8775p-ride: enable QUPv3 #2 Date: Thu, 16 Feb 2023 13:52:50 +0100 Message-Id: <20230216125257.112300-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230216125257.112300-1-brgl@bgdev.pl> References: <20230216125257.112300-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Enable the second instance of the QUPv3 engine on the sa8775p-ride board. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 3adf7349f4e5..a538bb79c04a 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -24,6 +24,10 @@ &qupv3_id_1 { status = "okay"; }; +&qupv3_id_2 { + status = "okay"; +}; + &sleep_clk { clock-frequency = <32764>; }; From patchwork Thu Feb 16 12:52:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13143063 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 330ACC636CC for ; Thu, 16 Feb 2023 12:53:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230057AbjBPMxH (ORCPT ); Thu, 16 Feb 2023 07:53:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230418AbjBPMxG (ORCPT ); Thu, 16 Feb 2023 07:53:06 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE88C42BDB for ; Thu, 16 Feb 2023 04:53:04 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id m14so1707299wrg.13 for ; Thu, 16 Feb 2023 04:53:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VIogKRRzvvWwQ7/eHJDt/djGpZ1c7yFgwcrwsrZf458=; b=J+wxzzIvy3SLx5uHZeAurDK49xfM4ZMZ71oGA0ct+axdfTCixeDRJ/gJI1ldH0KDb8 dP1Ab39JNE9oUAYeKONjqtfou+Kfvkl4n44AK2HZRwIqK6SvQLjulxdsf9mR7fEnKeZN 9I9E3HBvr+frfJrjf6r6nOT3pidTJWGLrjIwqkOCv6gEFUFxKEJktNLktYtdU/0z0xPm 2+T0DcwafKEyAVjZPsynYuVE+7HRI9Tzo2xJB5CgVdffKNrtBkbPWpRhGagwZeb0UsoC 77OTS9nRAoKwdmKjLND2D1PlCzrIocoKP4t0l/LnHhw6Sfb3b+BBZOeSvglNMFsRo6/m sMjQ== 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 :subject:date:message-id:reply-to; bh=VIogKRRzvvWwQ7/eHJDt/djGpZ1c7yFgwcrwsrZf458=; b=E54c/DVMck6M5li3k84o+8DKdkxY26B8MWIkmFMuxbW90CpolNU/FJiQBmqIKNCqds DTieQhGnVrnqfGU5AI2rXPn1+xM6wMDfrQqcxR73UsdMK8w2WowbwY9vGa31ei/hlZZ0 BXEgIwhKEOrMZ2MrdYgbIHaBmHQ5nPcvOPHzKMi7Y8kqi+j4lYoRaH+GOABRNe/Y0EBW NcyYnsIwwdUl4dMbh0v/17hDs/BRBD1C63SI6dbXgpD6FVrXHg2z+AWvLvOTxXmo6PKJ FzFsYH6iYMGYy0lmjPLVoCxvLAygVrm0flYBSNMdPr1M7CcqGD8deWe5IBEhkdqL7qcQ rGmw== X-Gm-Message-State: AO0yUKWzLP5rIo0DnGPdJDhlmFMHsBkRvPxp+ik9dqoaHyuU3X6x0IKu Fs/USBpVX4O+dBAqJYBUYfTc4Q== X-Google-Smtp-Source: AK7set9wwRxBKGNwYz13e6m5zWdGawEX4n4g+z7sueqXd8C90zP0IAYETEusj8Q/LEYfLP4vjfm9Sw== X-Received: by 2002:adf:f452:0:b0:2bf:e8f5:fd6e with SMTP id f18-20020adff452000000b002bfe8f5fd6emr4499162wrp.17.1676551983323; Thu, 16 Feb 2023 04:53:03 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:7c5b:1160:db5d:72da]) by smtp.gmail.com with ESMTPSA id h18-20020adffd52000000b002be5bdbe40csm1453292wrs.27.2023.02.16.04.53.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 04:53:02 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 3/9] arm64: dts: qcom: sa8775p: add the i2c18 node Date: Thu, 16 Feb 2023 13:52:51 +0100 Message-Id: <20230216125257.112300-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230216125257.112300-1-brgl@bgdev.pl> References: <20230216125257.112300-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add a disabled node for the I2C interface that's exposed on the sa8775p-ride development board. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 894c0662afb4..4666e5341922 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -502,6 +502,27 @@ qupv3_id_2: geniqup@8c0000 { clock-names = "m-ahb", "s-ahb"; iommus = <&apps_smmu 0x5a3 0x0>; status = "disabled"; + + i2c18: i2c@890000 { + compatible = "qcom,geni-i2c"; + reg = <0x0 0x890000 0x0 0x4000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&gcc GCC_QUPV3_WRAP2_S4_CLK>; + clock-names = "se"; + interconnects = <&clk_virt MASTER_QUP_CORE_2 0 + &clk_virt SLAVE_QUP_CORE_2 0>, + <&gem_noc MASTER_APPSS_PROC 0 + &config_noc SLAVE_QUP_2 0>, + <&aggre2_noc MASTER_QUP_2 0 + &mc_virt SLAVE_EBI1 0>; + interconnect-names = "qup-core", + "qup-config", + "qup-memory"; + power-domains = <&rpmhpd SA8775P_CX>; + status = "disabled"; + }; }; intc: interrupt-controller@17a00000 { From patchwork Thu Feb 16 12:52:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13143064 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 392C2C64ED8 for ; Thu, 16 Feb 2023 12:53:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230312AbjBPMxI (ORCPT ); Thu, 16 Feb 2023 07:53:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230423AbjBPMxH (ORCPT ); Thu, 16 Feb 2023 07:53:07 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2D3847433 for ; Thu, 16 Feb 2023 04:53:05 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id r2so1737057wrv.7 for ; Thu, 16 Feb 2023 04:53:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LIbmvEodTo/kIMv9iHrU04rcMXe5obN6DOGgl5KOWXI=; b=J8q9/OVs3hya9brx9d0S1cgjcrRSbFYTFIKNrW8s3EG61lVfEURRat1xOzwnPcZWy9 FA67oviWqfVVhwA7oPtQO/uT78WFGxW/MlSHaZVytYP6c0Do4VFMdagczPTYlfwbkTc3 mUxs21Msn1HOtbEsjxrmsxSiw4C74bxyjaLPDmeLqjwZno2hPntVxfpG00qJESiw3N8A 3XAsGz97Jw24g+B6OtSh4ffMkvIkbZ9DXd0nkcvBMJKfUgULhxYjQ5C7c6J6W4hm6kG7 sJT5jXfEwYPyFacW7pf42huvLTm0kAt1o0X3dhazmZLQ1tMJVctaoOQ4efF6l5foMm3D P+8g== 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 :subject:date:message-id:reply-to; bh=LIbmvEodTo/kIMv9iHrU04rcMXe5obN6DOGgl5KOWXI=; b=k2aSbzJlwhhSnlI3tx7sQDH/4apYRgVMhK3O2YG028f3tBQOcmSXpT9tgNIsOi97+M fuixHwpqTyfrNaZ5K5mRhj7jwZCyVhao84dvkjqCPVSDzo/rqzpA9L+e71dpRAMhLWC+ qz8MGGCVnAJHjLt16ORzkS1fVAVuhddO/T9WiDWn1mHcmxLmx5WiSQLj61Ry8+oVEBY+ LjjJVENP/Uf8J/+WzkjyRnFFjFnF1O6/o7rX+lgJAQbU914EJuUo9wABJ8kmlxq1BmLa dPUDK1hYYU+6+VSk/R4pwydqdYvF5ARLpM4Didv69hL38HbmVI+g5EirJBYCVZC+PHIU YANQ== X-Gm-Message-State: AO0yUKUpzxtL19K60natBNp1WxHPi4wYj6C4jV1YUYPxW9lXkE1bsTxQ st/Iv+8GgV5xi093JGUwYRV+Vw== X-Google-Smtp-Source: AK7set8igzAu1zI4iCghKKAXdAa1auJMVFW5CoqBrSmzAN3By5VqFUyAiGo1iqumju80klDDd1QHiQ== X-Received: by 2002:adf:cd03:0:b0:2c5:58fb:fa92 with SMTP id w3-20020adfcd03000000b002c558fbfa92mr4155175wrm.7.1676551984193; Thu, 16 Feb 2023 04:53:04 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:7c5b:1160:db5d:72da]) by smtp.gmail.com with ESMTPSA id h18-20020adffd52000000b002be5bdbe40csm1453292wrs.27.2023.02.16.04.53.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 04:53:03 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 4/9] arm64: dts: qcom: sa8775p-ride: enable i2c18 Date: Thu, 16 Feb 2023 13:52:52 +0100 Message-Id: <20230216125257.112300-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230216125257.112300-1-brgl@bgdev.pl> References: <20230216125257.112300-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski This enables the I2C interface on the sa8775p-ride development board. Signed-off-by: Bartosz Golaszewski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index a538bb79c04a..5fdce8279537 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -13,6 +13,7 @@ / { aliases { serial0 = &uart10; + i2c18 = &i2c18; }; chosen { @@ -20,6 +21,13 @@ chosen { }; }; +&i2c18 { + clock-frequency = <400000>; + pinctrl-0 = <&qup_i2c18_default>; + pinctrl-names = "default"; + status = "okay"; +}; + &qupv3_id_1 { status = "okay"; }; @@ -37,6 +45,13 @@ qup_uart10_default: qup-uart10-state { pins = "gpio46", "gpio47"; function = "qup1_se3"; }; + + qup_i2c18_default: qup-i2c18-state { + pins = "gpio95", "gpio96"; + function = "qup2_se4"; + drive-strength = <2>; + bias-pull-up; + }; }; &uart10 { From patchwork Thu Feb 16 12:52:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13143065 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77705C636D6 for ; Thu, 16 Feb 2023 12:53:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230436AbjBPMxN (ORCPT ); Thu, 16 Feb 2023 07:53:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230447AbjBPMxI (ORCPT ); Thu, 16 Feb 2023 07:53:08 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC3CA42BDB for ; Thu, 16 Feb 2023 04:53:06 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id m10so1752329wrn.4 for ; Thu, 16 Feb 2023 04:53:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kOyfaP0VQoPSZZRozrnt7Rnbt4hWMK3D74BD6fdRa7c=; b=4XnN77q3TiQ1taMtkjTpChQxrfvzDqmWliLPFdJNCLzLB6VqwCqlSSbFkwuJIu82/V C4qCDiSUAHlf9fBlGvHBkXoc5owwer2wkzXVbe2N/5nTUD6pqeioJB7Jxfv05StIACpw 8cS6ae5BeJGoY02zllpKToEUD3yVgzbVkFF2Thqv8A0U3BcURbFBzN4aLkDAhXqx2ON5 QqgELCKImB94ejex0/x4J7folAM5UNl/0RNQ55mj5PfjoHIK0wKUR6WLNyANh+VNM36u zs+6sIoS3B9ZqcXPQuvynIaj5pcNbaVZ21fwJ+C3dqgjAthqAn9r5EKgVpnb6/+qyaFd nAQg== 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 :subject:date:message-id:reply-to; bh=kOyfaP0VQoPSZZRozrnt7Rnbt4hWMK3D74BD6fdRa7c=; b=gArHbRS5QhSK/LPs2d3p9O9AlmtCtbO54P3Z0T3AnCnDNt04E40yZTha5XFh0Pgmsz /TdPMXHteY6RLrkKUmde1GfLyAmtwHwd7ElvOh3FwfFSPKzQ+U42fU0R5pblVSaE3Ff+ nqn31sS7qmeRfEXZJFAye1Y7TyNiOQ3wQSZ0s1n8Ejs+AF61quOcsxS19hZT7J+6FHF5 0wzAX6jgBNkbiDSy8EI+6azy6cueG9Lggfywyj6kPq+Wb3nZJWpoCxUt/ZpeBfhG94xW w5Z82idZub2Hs1maoFTR9n1l6+33C1X8KHxZE6pnT7j6pbXD/d8g98KURmvDv/M16OrK E3dQ== X-Gm-Message-State: AO0yUKWfkrnnpN3dgDXU/d29LxFv3pVpoaP1BWsY+4PyYPXSvw2Lqh// GbnDeXA/9f6kuuCUKaUgTjAvNQ== X-Google-Smtp-Source: AK7set9YMQWnHUBbbfQfcw7q7A8wTJ/SKidpIupgzyqYku5y5w76qNvVYogLjKW1LlcXsf67s8OWvg== X-Received: by 2002:adf:fdcf:0:b0:2c3:f026:907e with SMTP id i15-20020adffdcf000000b002c3f026907emr4805826wrs.10.1676551985150; Thu, 16 Feb 2023 04:53:05 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:7c5b:1160:db5d:72da]) by smtp.gmail.com with ESMTPSA id h18-20020adffd52000000b002be5bdbe40csm1453292wrs.27.2023.02.16.04.53.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 04:53:04 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 5/9] arm64: dts: qcom: sa8775p: add the spi16 node Date: Thu, 16 Feb 2023 13:52:53 +0100 Message-Id: <20230216125257.112300-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230216125257.112300-1-brgl@bgdev.pl> References: <20230216125257.112300-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add the SPI controller node for the interface exposed on the sa8775p-ride development board. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 4666e5341922..eda5d107961b 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -503,6 +503,27 @@ qupv3_id_2: geniqup@8c0000 { iommus = <&apps_smmu 0x5a3 0x0>; status = "disabled"; + spi16: spi@888000 { + compatible = "qcom,geni-spi"; + reg = <0x0 0x888000 0x0 0x4000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&gcc GCC_QUPV3_WRAP2_S2_CLK>; + clock-names = "se"; + interconnects = <&clk_virt MASTER_QUP_CORE_2 0 + &clk_virt SLAVE_QUP_CORE_2 0>, + <&gem_noc MASTER_APPSS_PROC 0 + &config_noc SLAVE_QUP_2 0>, + <&aggre2_noc MASTER_QUP_2 0 + &mc_virt SLAVE_EBI1 0>; + interconnect-names = "qup-core", + "qup-config", + "qup-memory"; + power-domains = <&rpmhpd SA8775P_CX>; + status = "disabled"; + }; + i2c18: i2c@890000 { compatible = "qcom,geni-i2c"; reg = <0x0 0x890000 0x0 0x4000>; From patchwork Thu Feb 16 12:52:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13143069 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDD29C61DA4 for ; Thu, 16 Feb 2023 12:53:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230402AbjBPMxU (ORCPT ); Thu, 16 Feb 2023 07:53:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230427AbjBPMxM (ORCPT ); Thu, 16 Feb 2023 07:53:12 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1976348E31 for ; Thu, 16 Feb 2023 04:53:08 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id bu23so1732810wrb.8 for ; Thu, 16 Feb 2023 04:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dibhyEZtmC71mf7EJSLWFvkJAQUY//1IZfvc8uLBhaw=; b=E160OixKVn90Zpizo/M3/xEFYcyRRa/ZXahSb91waDLEM8CkY0pOfJ94KT+2CNrbpA OIcBQJtTj0JiQkqn1kf9QeiLKuzWxrWBwj7BooNZiopqlGCjcOAiM4z1T7xw1lH5EHJm xs5M/1mJGlg/2V5R79Jo9i3nbWQgEjOl7dZIRkdwOjI0C7CRdzHsEjLnIBvGLSYBqVnP /jmX7rxl/uCnZCY12BM/DppcSV3eborERAUSxomSX8wSQV+pdtZDOmdqUe2GMop5YKZN rBzG2nY1i0t7WEncfe5lXrtRT+QYAwq+bHoRPdf8x2qvaZSUGfnxMx6QsxUyJY0hYnds ys+g== 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 :subject:date:message-id:reply-to; bh=dibhyEZtmC71mf7EJSLWFvkJAQUY//1IZfvc8uLBhaw=; b=q+hKBiUNPRigsZR7pYwvB79usiCBuUS5bThE2mXPtnO3sZdUsSUOp11MQ77BpHbGqZ AVXH/6k6Hh3Ko9+8PK/lcc6xZ40Zxd5rXQUo+4MO/c52Fty7ad4gjpP9fUr887YRrq/n H6gDjCIvS2YGIUGJArz7RcVP+NAmRnYIFUjhSFdKkMavTAJAJlx5eXYdSrpA8MGfg7lt 4qeLRYL1zOTBjPX3puGT6N6AVL82tjsaK4qRzO0d9t0LtWvjvURDth0PyEXgnEElViFu SkGBIuQtdXjpc3QL9/FW17Jv9tbdhk0KRq3c1nIpC+8iQzSqaL1axxKxJWLKaRHFXqGH Qj4w== X-Gm-Message-State: AO0yUKURnN+Bmf9MZ9I4Hyx91DHd+r6aKQGrulO+KNIc4zPTvGSt3nkW 5wsGJzANEF+kdyqqKI2F/5nhGA== X-Google-Smtp-Source: AK7set/4zjAVRkIhO53ldU71bp1KqctiEVHhvuH8slmb/qQuJ2do0Q9irXuM9u4q8pEeHCQsPd8O8g== X-Received: by 2002:adf:f450:0:b0:2c5:5759:12d2 with SMTP id f16-20020adff450000000b002c5575912d2mr4825255wrp.35.1676551986668; Thu, 16 Feb 2023 04:53:06 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:7c5b:1160:db5d:72da]) by smtp.gmail.com with ESMTPSA id h18-20020adffd52000000b002be5bdbe40csm1453292wrs.27.2023.02.16.04.53.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 04:53:06 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 6/9] arm64: dts: qcom: sa8775p-ride: enable the SPI node Date: Thu, 16 Feb 2023 13:52:54 +0100 Message-Id: <20230216125257.112300-7-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230216125257.112300-1-brgl@bgdev.pl> References: <20230216125257.112300-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Enable the SPI interface exposed on the sa8775p-ride development board. Signed-off-by: Bartosz Golaszewski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 5fdce8279537..d01ca3a9ee37 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -14,6 +14,7 @@ / { aliases { serial0 = &uart10; i2c18 = &i2c18; + spi16 = &spi16; }; chosen { @@ -40,12 +41,25 @@ &sleep_clk { clock-frequency = <32764>; }; +&spi16 { + pinctrl-0 = <&qup_spi16_default>; + pinctrl-names = "default"; + status = "okay"; +}; + &tlmm { qup_uart10_default: qup-uart10-state { pins = "gpio46", "gpio47"; function = "qup1_se3"; }; + qup_spi16_default: qup-spi16-state { + pins = "gpio86", "gpio87", "gpio88", "gpio89"; + function = "qup2_se2"; + drive-strength = <6>; + bias-disable; + }; + qup_i2c18_default: qup-i2c18-state { pins = "gpio95", "gpio96"; function = "qup2_se4"; From patchwork Thu Feb 16 12:52:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13143066 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C92BEC64EC4 for ; Thu, 16 Feb 2023 12:53:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230474AbjBPMxQ (ORCPT ); Thu, 16 Feb 2023 07:53:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230173AbjBPMxL (ORCPT ); Thu, 16 Feb 2023 07:53:11 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFEBE48E04 for ; Thu, 16 Feb 2023 04:53:07 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id a2so1742691wrd.6 for ; Thu, 16 Feb 2023 04:53:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cSdbB0k5k1AEobOWepSdzQF+T7jER4lOY+1Fh8MN3Kw=; b=XFpf2epYKOY95abu5FSgg1iKNOIeJcdptJ6YYAtNYb/psT7MzGRyVrnAFWTDkRHpd+ Vjhk5O1Ijl2xR5J7u7TthKCELgJQrk0lsYeVkwz31uJTji0kakxVnZPhKdvopqOwp/9r G2wucm+zifPjBAOIlCr6Ms7/9dS/ZOXjnLdB6oxLyuj4os29CrM4W5ePCjUFeiAeUtoq pjccuO0TpGWwvQN1fTXbn7o8i9oJ1PJtQ1RpfS0Yd89JBHVfIkl9WMUjOlqiFXJcco+E +0rtOoG5e9V81LvCrM9dWRBoVCVv9Wtm4YwbT6nF34iKO5Uwdtw86EYMq1fqFGpr6I2o HlQA== 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 :subject:date:message-id:reply-to; bh=cSdbB0k5k1AEobOWepSdzQF+T7jER4lOY+1Fh8MN3Kw=; b=E1Lk15ueHEpd+N0WRexIoh1bNa+bQE7KN1Ud82c72eZJA5cTt69myuK0mfMvoGXD6a RmSaC7d2lDMLjNODU1vupwoNg1BKnraOAL1NbS6U/uGzRVRr5vPL6guVNLoeZ6Z9u1Y5 LAJ8SV5DwTXu8w9gRdU8Z1tFmtAOdgeW+fJU8Lem91+NNR/G6690CAOpR5b/4Nr6E6/N P0j+coelrMh65frmvWOuDli6lhwqV9XKmwOJ7Ve6wz1h7K3mOjEoojtsMvDa474LQ7pV n9NLZ/FX7qZlJNLX56OLD5LBofGfcsjustWy5c3ni2SS03DiY3T3DvGCW+yzjlsHSkd4 VK6Q== X-Gm-Message-State: AO0yUKVzae+4pYja4i1ZZpKMZevamTqirCLbe1n1Ity9A8y8W5ZEZ/GB yEn8SI/HVvKLrZ/XO3+y2TdD6jBYJIAzKzVs X-Google-Smtp-Source: AK7set/b2v39ofFqrzr0BRAG6/CK2bfQFhxJ2DUQT9/A445MuadwMBj/PCyPE4wkxjFUgQtjFG7S8A== X-Received: by 2002:adf:e801:0:b0:2c5:5836:4e1b with SMTP id o1-20020adfe801000000b002c558364e1bmr5412597wrm.60.1676551987542; Thu, 16 Feb 2023 04:53:07 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:7c5b:1160:db5d:72da]) by smtp.gmail.com with ESMTPSA id h18-20020adffd52000000b002be5bdbe40csm1453292wrs.27.2023.02.16.04.53.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 04:53:07 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 7/9] arm64: dts: qcom: sa8775p: add high-speed UART nodes Date: Thu, 16 Feb 2023 13:52:55 +0100 Message-Id: <20230216125257.112300-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230216125257.112300-1-brgl@bgdev.pl> References: <20230216125257.112300-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add two UART nodes that are known to be used by existing development boards with this SoC. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index eda5d107961b..ce5976e36aee 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -489,6 +489,21 @@ &clk_virt SLAVE_QUP_CORE_1 0>, operating-points-v2 = <&qup_opp_table_100mhz>; status = "disabled"; }; + + uart12: serial@a94000 { + compatible = "qcom,geni-uart"; + reg = <0x0 0xa94000 0x0 0x4000>; + interrupts = ; + clocks = <&gcc GCC_QUPV3_WRAP1_S5_CLK>; + clock-names = "se"; + interconnects = <&clk_virt MASTER_QUP_CORE_1 0 + &clk_virt SLAVE_QUP_CORE_1 0>, + <&gem_noc MASTER_APPSS_PROC 0 + &config_noc SLAVE_QUP_1 0>; + interconnect-names = "qup-core", "qup-config"; + power-domains = <&rpmhpd SA8775P_CX>; + status = "disabled"; + }; }; qupv3_id_2: geniqup@8c0000 { @@ -524,6 +539,22 @@ &config_noc SLAVE_QUP_2 0>, status = "disabled"; }; + uart17: serial@88c000 { + compatible = "qcom,geni-uart"; + reg = <0x0 0x88c000 0x0 0x4000>; + interrupts-extended = <&intc GIC_SPI 585 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 94 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_QUPV3_WRAP2_S3_CLK>; + clock-names = "se"; + interconnects = <&clk_virt MASTER_QUP_CORE_2 0 + &clk_virt SLAVE_QUP_CORE_2 0>, + <&gem_noc MASTER_APPSS_PROC 0 + &config_noc SLAVE_QUP_2 0>; + interconnect-names = "qup-core", "qup-config"; + power-domains = <&rpmhpd SA8775P_CX>; + status = "disabled"; + }; + i2c18: i2c@890000 { compatible = "qcom,geni-i2c"; reg = <0x0 0x890000 0x0 0x4000>; From patchwork Thu Feb 16 12:52:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13143067 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7481C61DA4 for ; Thu, 16 Feb 2023 12:53:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229942AbjBPMxR (ORCPT ); Thu, 16 Feb 2023 07:53:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230425AbjBPMxM (ORCPT ); Thu, 16 Feb 2023 07:53:12 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C80CE48E3E for ; Thu, 16 Feb 2023 04:53:08 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id r2so1737223wrv.7 for ; Thu, 16 Feb 2023 04:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Zth4LRDzQbzOroJaQCO7UI7/ks7eZuvwOmU1RK0/21g=; b=zAvknU9k6u2pR7ZjnkDBa/R1INvpIk0qOu1+HQwUk+7py9mm1U261lNQm6m6vvjFxJ 63yxVpuk60+ogoQ3Pdel4iWc+Vx6NxFpQo6lBs9U4vrgRDB+dBbQLCtcDwDkhcngf8qw otb6cGMp0SrU2dXE1K8a7JoR3yYwr6sxc/cGYqHRE9SqEDpGa1sxNlVAhS3x3f1UDJCw fdmfgnu9Vx4SlWftXPcPqzBwmi8nYhjLnbssRjeLUAOOEgqrfLEzaQfPEOiEyJAjVXiM vrPqXg7mh4dhrtTsdZIBRUUWOr9QMHixBRh8wdMZgt2df/6kMmttN7bnm9jOiV2VXDF6 Jj5g== 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 :subject:date:message-id:reply-to; bh=Zth4LRDzQbzOroJaQCO7UI7/ks7eZuvwOmU1RK0/21g=; b=uzNOI48pfAD6TpOdJU7bH91Q8agDWWh0WiXy08rW3S3WknAAER1cnbkmpFOO156Nd+ RHLhU9i3A5eJWyRIk2xvAfgRcsbfVm5frbr5ESGToZfCRWXW0Plv5/6ea3kihEmslW4O 8A6+LNnJQHBOn3k8WOjVaNFHdfqlro4V0//p2+YIF02pFZ7KTtBOdoXmVIl7bo6z0njY adBsk3uMPQCvEwsXwBMh77E/+bTQBLFCEsVT8/XN8ZWfOggxjezgOaU/G9hdxFFmM/RF KThPbhzshVdqeXZYBS4mC1OAvfdvHfMyXRAoD0KveiCopRindDQ/pTVcms6F9orwPQ/Y jj+Q== X-Gm-Message-State: AO0yUKXtCWu8OGwpIvKHFGZEpxtNe8KkrU0/t202pPyvh6mKkheaOlo6 ZSHK0CdG3CDcE341iDSBboNcAg== X-Google-Smtp-Source: AK7set+3ocTCALrHUmoHGw7XzcAcSr/5r/EjM8fRD8BZvx3A+PFAYc7MLMfJfJSGOKaQQqDKBW4XPQ== X-Received: by 2002:adf:dec1:0:b0:2c5:5454:22f5 with SMTP id i1-20020adfdec1000000b002c5545422f5mr4333579wrn.54.1676551988447; Thu, 16 Feb 2023 04:53:08 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:7c5b:1160:db5d:72da]) by smtp.gmail.com with ESMTPSA id h18-20020adffd52000000b002be5bdbe40csm1453292wrs.27.2023.02.16.04.53.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 04:53:08 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 8/9] arm64: dts: qcom: sa8775p-ride: enable the GNSS UART port Date: Thu, 16 Feb 2023 13:52:56 +0100 Message-Id: <20230216125257.112300-9-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230216125257.112300-1-brgl@bgdev.pl> References: <20230216125257.112300-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Enable the high-speed UART port connected to the GNSS controller on the sa8775p-adp development board. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index d01ca3a9ee37..6f96907b335c 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -13,6 +13,7 @@ / { aliases { serial0 = &uart10; + serial1 = &uart12; i2c18 = &i2c18; spi16 = &spi16; }; @@ -66,6 +67,30 @@ qup_i2c18_default: qup-i2c18-state { drive-strength = <2>; bias-pull-up; }; + + qup_uart12_cts: qup-uart12-cts-state { + pins = "gpio52"; + function = "qup1_se5"; + bias-disable; + }; + + qup_uart12_rts: qup-uart12-rts-state { + pins = "gpio53"; + function = "qup1_se5"; + bias-pull-down; + }; + + qup_uart12_tx: qup-uart12-tx-state { + pins = "gpio54"; + function = "qup1_se5"; + bias-pull-up; + }; + + qup_uart12_rx: qup-uart12-rx-state { + pins = "gpio55"; + function = "qup1_se5"; + bias-pull-down; + }; }; &uart10 { @@ -75,6 +100,15 @@ &uart10 { status = "okay"; }; +&uart12 { + pinctrl-0 = <&qup_uart12_cts>, + <&qup_uart12_rts>, + <&qup_uart12_tx>, + <&qup_uart12_rx>; + pinctrl-names = "default"; + status = "okay"; +}; + &xo_board_clk { clock-frequency = <38400000>; }; From patchwork Thu Feb 16 12:52:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13143068 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C63D1C64ED8 for ; Thu, 16 Feb 2023 12:53:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230425AbjBPMxS (ORCPT ); Thu, 16 Feb 2023 07:53:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230457AbjBPMxM (ORCPT ); Thu, 16 Feb 2023 07:53:12 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C78C048E1D for ; Thu, 16 Feb 2023 04:53:09 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id bk16so1718569wrb.11 for ; Thu, 16 Feb 2023 04:53:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Y7uOoIM/ZRg0/gRsck8jf0SfprCY2FGC+Fvuy6yN0cU=; b=fPkAi4CQml76sUQkY6HVbTV58puI9K5+Y647bTINfv4YSDC3Lwk1ywAEfNb97YZLMS PKryfMPzh4sWPNuJXpcoIJBIYYgO1MJrdA0WxDg1ok3HACqnXaO24w9R7e+KbMVeQt+s L0pspxbKqVzg+zFB6hzb0iCxi3dAuq+lnZ3owM8KMQzKfvCBS82qtbYXUlThm21SAIf4 JsC8SFef6Md824r1IufIKTreB56D37SdnnRPmY1kbOfzuJ2blFPLV94tkK0dAk32UDKe xa7xkNLuza7lT0tLahiWWwC5hTqB6rw+KVyoOfZi2E64eR3se2hBtch0AtWAWDzUJtmS 8lMA== 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 :subject:date:message-id:reply-to; bh=Y7uOoIM/ZRg0/gRsck8jf0SfprCY2FGC+Fvuy6yN0cU=; b=VsdZCmkL2Qxzgdlf/azm2ZyqYKwuJN08T5hdFFouwMcjesYRCvRY+/nGu7ReRgfaM5 TyQ81ozPkEkccaXE/Tg3bM4WE7x7XRCMLu/NWM+zzDWXx6ioHsmAUym4y16913iTp33c OmjojJlDGBMIws6CvRz1WGTDo8/8uGJkk85Hr5LjFIRVSCXtuWJxMsNekjLS25aJLb4D q8bumnwy2rI29HIqDdtjR3rOPjw5q9oHjP4vYHF0jSI2WDggVTQS/1L//R9qmXGzp2fP NXAAuVGKulXZNvjkpr85splO00V7raEHYkp1r4i3qzW68TpNS32BQG/sVctWQi83UjBN 3nFA== X-Gm-Message-State: AO0yUKXu4nZ7tk76/s5No9gXP3H9yq8cSIXxhQ7+sgezaeUfA7I0R75i SEdbZkQKRcohv0/yrkQzqjLStg== X-Google-Smtp-Source: AK7set+/NiMGAZRAJZ7qxw6w9doBfQNzPfKzK290K1n3NTgUPyfQ3H+vcHbgP3WrFvbklGAWJsoPQg== X-Received: by 2002:a05:6000:180e:b0:2c5:4aad:db85 with SMTP id m14-20020a056000180e00b002c54aaddb85mr4476913wrh.37.1676551989337; Thu, 16 Feb 2023 04:53:09 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:7c5b:1160:db5d:72da]) by smtp.gmail.com with ESMTPSA id h18-20020adffd52000000b002be5bdbe40csm1453292wrs.27.2023.02.16.04.53.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 04:53:08 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 9/9] arm64: dts: qcom: sa8775p-ride: enable the BT UART port Date: Thu, 16 Feb 2023 13:52:57 +0100 Message-Id: <20230216125257.112300-10-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230216125257.112300-1-brgl@bgdev.pl> References: <20230216125257.112300-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Enable the high-speed UART port connected to the Bluetooth controller on the sa8775p-adp development board. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 6f96907b335c..1de3b9d4a05a 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -14,6 +14,7 @@ / { aliases { serial0 = &uart10; serial1 = &uart12; + serial2 = &uart17; i2c18 = &i2c18; spi16 = &spi16; }; @@ -89,6 +90,29 @@ qup_uart12_tx: qup-uart12-tx-state { qup_uart12_rx: qup-uart12-rx-state { pins = "gpio55"; function = "qup1_se5"; + }; + + qup_uart17_cts: qup-uart17-cts-state { + pins = "gpio91"; + function = "qup2_se3"; + bias-disable; + }; + + qup_uart17_rts: qup0-uart17-rts-state { + pins = "gpio92"; + function = "qup2_se3"; + bias-pull-down; + }; + + qup_uart17_tx: qup0-uart17-tx-state { + pins = "gpio93"; + function = "qup2_se3"; + bias-pull-up; + }; + + qup_uart17_rx: qup0-uart17-rx-state { + pins = "gpio94"; + function = "qup2_se3"; bias-pull-down; }; }; @@ -109,6 +133,15 @@ &uart12 { status = "okay"; }; +&uart17 { + pinctrl-0 = <&qup_uart17_cts>, + <&qup_uart17_rts>, + <&qup_uart17_tx>, + <&qup_uart17_rx>; + pinctrl-names = "default"; + status = "okay"; +}; + &xo_board_clk { clock-frequency = <38400000>; };