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: 654157 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: 654156 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: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: 654155 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: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: 654154 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: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: 654153 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>; };