From patchwork Wed Mar 8 10:40:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13165556 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 A1A1BC742A7 for ; Wed, 8 Mar 2023 10:40:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229936AbjCHKkT (ORCPT ); Wed, 8 Mar 2023 05:40:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229984AbjCHKkR (ORCPT ); Wed, 8 Mar 2023 05:40:17 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 803179C997 for ; Wed, 8 Mar 2023 02:40:16 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id j2so14862489wrh.9 for ; Wed, 08 Mar 2023 02:40:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678272015; 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=6crUD0nELm/BVOKaOmrsnATs1eKM4ep25RzmB9fG+c4=; b=6BzixgFox6capZv7CQM8jct/uzDTPBatobRgwmWp5D9zZHFsMBsqa8rliMbu5rZl2H 03J6CdayY1o9YfFwLasMqNBBULVtNW/hN8eG4C6tPuA9dEBr9NNjRvcn+BgKBFUblB74 6WY+VXb6QB0LcDSkb4/z+tIpQkwBtQjNj/53+FNm9EKzMhot9LKtqvvxP1fGQd2tnAVv 1bXqMR/ThgMnId4sfDkHJGn4sLALd5E2THYblDLZHuGR6O0npcZm4ifkHTV0xY5Mdkzz yn2oUq2sSH0+stRk2PSAThsXZq63Y7brJZog7wrlBWv51BSNdPwz2thx5J7+Hza4Ah+Q EphQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678272015; 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=6crUD0nELm/BVOKaOmrsnATs1eKM4ep25RzmB9fG+c4=; b=T5Q0ZAI1n3tm76C3yOOT72uf0zZN7XIaekWx8tjt/sHLsD2A/ob1KiO8nlFaYARwlZ CbA8wUVH5CFXEdmvdGZCS5MNs2AD3jFzJCmkQchzv5puJbK7GTGGJ7X9xzdle/VbRra4 9doLfcI0U8YfYFibjxR5AVLwWurVxism80PdkhUwmd7l3SDELL1ni+1dbzGS/1IYef4M w4Hnzjrv1yaXiCZJ+RFQ8nHtvdL3LQFG59B9NPYTGlu7zMNB4yOrjGlWS2b9sw0Gx0N0 XlfA4AEDBzu2HWOM7KLlKGmJ1W+Huhmn1kLMprG/QJTEAovUMxVYz9bRsEi9/CKaPtn1 67uQ== X-Gm-Message-State: AO0yUKX7MqCd8ricBsW53qUmJeDrFABknDP8VtHVv9nNnbhI8M6OIl2T V6pSac+eOnt3kHyBzLIc849AqQ== X-Google-Smtp-Source: AK7set/n2FVksWX9l/ZnXw3LrpxDHYkhQHvlHFYtw1uNqGvwmOVMaS5MgBjjiPP4w7bYpfL/nQqc8A== X-Received: by 2002:a5d:650d:0:b0:2c5:48bd:d494 with SMTP id x13-20020a5d650d000000b002c548bdd494mr13303404wru.29.1678272015023; Wed, 08 Mar 2023 02:40:15 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:2326:fd4c:82e3:7e07]) by smtp.gmail.com with ESMTPSA id v7-20020a05600c444700b003eb0d6f48f3sm20664135wmn.27.2023.03.08.02.40.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 02:40:14 -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 v4 1/9] arm64: dts: qcom: sa8775p: add the QUPv3 #2 node Date: Wed, 8 Mar 2023 11:40:01 +0100 Message-Id: <20230308104009.260451-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230308104009.260451-1-brgl@bgdev.pl> References: <20230308104009.260451-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 8e15a24e11dc..5efb3e4f2335 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 0x008c0000 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 Wed Mar 8 10:40:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13165557 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 F05AEC74A5B for ; Wed, 8 Mar 2023 10:40:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230021AbjCHKkU (ORCPT ); Wed, 8 Mar 2023 05:40:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbjCHKkT (ORCPT ); Wed, 8 Mar 2023 05:40:19 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72BF99DE15 for ; Wed, 8 Mar 2023 02:40:17 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id l7-20020a05600c1d0700b003eb5e6d906bso831163wms.5 for ; Wed, 08 Mar 2023 02:40:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678272016; 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=5C2/LiaFtyBREM0JKDYWoNNVB0qyOVdu3+HWqwuEmRi9luVy+Tb8FlJGMh529yIb6a B1u20kfEWf34yjdQu0vAh8P94GiqO7uoClkfIRpGnrrqMhDTMs+1dalCCTWF3/fpiNuq OsOCSnPGMTfqSwEJxljS4tNsrKXr7B9sCvKFTF8L4Gv3o03aakCCcCktX59/HzeIIoBv sMUjU2POXr4ikDUM+fNl/4IvcrKbQJMy1fadFOU5NbgXJhSy8K7qZeQszP+EiopswKUt IUmNtZmxDrHBHkEMxmx5iRiKXMEIzaYwu57EDLYUnxlQ6b502yJ7Rf6xXIL575QpRNXq pzGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678272016; 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=jAvjXwTGAq4T8g3cyKZPC/Ixgd3YalZKWF9NCxFAW67wqzU6Z4zblF5rb+0945TENk q1WEPGSRkTFyNNuOb53sNGX06woQkJTM1EUx0nPMI3qYsSGIa8iW7t094EUzL2mwmT81 KHMyOwIhtatNXuY6zZgvpf6kaKWRrOnHl6lxO2+RGKUP4NJvazWM+TVvwCAOVGx6+/Vz ca3DtYsRDRLGTTF5GVsgG321ep4MkOrml+d3dGmyjn9nsFGht35eXbaTbLPp93CvrJa4 2aBQKubJqTr7tVGKIXUEaZjAG8A2wWNdj47KGU2FGg93N1kOqz47ZkdKelEPJnj3E2bm FwNA== X-Gm-Message-State: AO0yUKWc9mq48ILGilXVGWN4yyHVhBHqfvpNeMSfcxIYFnI/djwX3Uxt PlyEFgqKtf88K1XhJ81UJgAL7Q== X-Google-Smtp-Source: AK7set88f9VDY6OD221xEGqrJMUuKOEV9ESLdXbIpXkTqVnktny20FFDQ9dOQeDTodNGIYCG6iJazw== X-Received: by 2002:a05:600c:3512:b0:3ea:e554:7815 with SMTP id h18-20020a05600c351200b003eae5547815mr16735930wmq.9.1678272015962; Wed, 08 Mar 2023 02:40:15 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:2326:fd4c:82e3:7e07]) by smtp.gmail.com with ESMTPSA id v7-20020a05600c444700b003eb0d6f48f3sm20664135wmn.27.2023.03.08.02.40.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 02:40:15 -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 v4 2/9] arm64: dts: qcom: sa8775p-ride: enable QUPv3 #2 Date: Wed, 8 Mar 2023 11:40:02 +0100 Message-Id: <20230308104009.260451-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230308104009.260451-1-brgl@bgdev.pl> References: <20230308104009.260451-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 Reviewed-by: Konrad Dybcio --- 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 Wed Mar 8 10:40:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13165558 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 5943AC76188 for ; Wed, 8 Mar 2023 10:40:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230484AbjCHKkW (ORCPT ); Wed, 8 Mar 2023 05:40:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230207AbjCHKkT (ORCPT ); Wed, 8 Mar 2023 05:40:19 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 492469E068 for ; Wed, 8 Mar 2023 02:40:18 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id ay29-20020a05600c1e1d00b003e9f4c2b623so937054wmb.3 for ; Wed, 08 Mar 2023 02:40:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678272017; 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=BnjTJUURheMCpnq/4EiXlRkiu/sc76vfGYo6X61pH2Y=; b=mEWqN68IZDo7BbTn6nrr6q3NjbOYAEmJ80biTam7iaw4ucC2q5F/U9AynauXFbpM9F 5fRhGVZZV/oxnVHzvTCpd0JWtuc1RA0eOJ7uHRq3IliOdp5epBxkDT5mOMU2PjizCGd5 VrNBnTQkWi0lrchIim3C1R4QC4/sKDTIIZ2XHvhXf0EuhmzzF3KX/SqNrLOo6J0nl/cg EbokRk4gq00YdpmeoEIG1xmzS4u7rWlzPNSOq1lzPXURMjHhzN65G5F9rx9r5nR/G3DS odpRY9cALfkXqBPhhubqoqNUc1g4EFhh3lpm0AWZYW7R9mfKvJ/AQMUImbzFZ4zMInK+ BZlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678272017; 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=BnjTJUURheMCpnq/4EiXlRkiu/sc76vfGYo6X61pH2Y=; b=rOpgZCoX/9xn8oSx7MwrlBPf6NzqZylCVDK/yWfEPrUaVCj0u2zXVnuFyUV+E6p00t 2omneEs4kv7Z76TnKX2kWSJL4hZWlKowJLxu/DnOYdAO2tfnMGDGRN14KOdNjktSsEHw xU7Tgr7W4wgbTmdIUT3mWMTII5pIx4pJWnl6rGl34psdI5XOUCRnbiojeN2fDfAUfIim kuEAuBM3tZqmxx37JABMUIk420gTxTDSj7FmJuWPbhZBxyFE2xbe62RWCRCBPof9/V7s i+2SEJlcalPNjUqHJUCp4GjMft33KrDZRtJanJPXPGjZmeaCSQl0FYLasRG1H+SuqPXp zdSg== X-Gm-Message-State: AO0yUKUDBO9AHht4QWD21bYh3GxGaBJm8t6Av4wC7/BzOw5xTM7rNnG3 zNisHfr5drr55cDEC43MzDRb0w== X-Google-Smtp-Source: AK7set/yKNjhw3OrFGGNhe+/0iHT1/hwDEfDKcewPZELynzxrzbdgJSPWp1VQMl49ECDG3D1x78zKA== X-Received: by 2002:a05:600c:1c9e:b0:3ea:e7f7:4faa with SMTP id k30-20020a05600c1c9e00b003eae7f74faamr16031738wms.26.1678272016909; Wed, 08 Mar 2023 02:40:16 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:2326:fd4c:82e3:7e07]) by smtp.gmail.com with ESMTPSA id v7-20020a05600c444700b003eb0d6f48f3sm20664135wmn.27.2023.03.08.02.40.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 02:40:16 -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 v4 3/9] arm64: dts: qcom: sa8775p: add the i2c18 node Date: Wed, 8 Mar 2023 11:40:03 +0100 Message-Id: <20230308104009.260451-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230308104009.260451-1-brgl@bgdev.pl> References: <20230308104009.260451-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 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 5efb3e4f2335..d65e7826f1d7 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -3,6 +3,7 @@ * Copyright (c) 2023, Linaro Limited */ +#include #include #include #include @@ -502,6 +503,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 0x00890000 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 QCOM_ICC_TAG_ALWAYS + &clk_virt SLAVE_QUP_CORE_2 QCOM_ICC_TAG_ALWAYS>, + <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS + &config_noc SLAVE_QUP_2 QCOM_ICC_TAG_ALWAYS>, + <&aggre2_noc MASTER_QUP_2 QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "qup-core", + "qup-config", + "qup-memory"; + power-domains = <&rpmhpd SA8775P_CX>; + status = "disabled"; + }; }; intc: interrupt-controller@17a00000 { From patchwork Wed Mar 8 10:40:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13165559 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 E0940C6FD1F for ; Wed, 8 Mar 2023 10:40:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231163AbjCHKkY (ORCPT ); Wed, 8 Mar 2023 05:40:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230377AbjCHKkU (ORCPT ); Wed, 8 Mar 2023 05:40:20 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 471C99C9A6 for ; Wed, 8 Mar 2023 02:40:19 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id k37so9542172wms.0 for ; Wed, 08 Mar 2023 02:40:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678272018; 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=B8KzYFaNC31XGy3z1a5fC/b9IAo0DBq/FXy8tjU946A=; b=iEiNPFrVRZgp6UeK76MKsr4LSlEfNy+RDadnfmcA0hqvRgWu/rRNg7FyLmAwMNtDvX W/Ktb3jSec+QnE25SRijY1oGalG4fY3Prlwv3iePD5GZOtfW3SeC43LOyEZn4fTaq1JH /xzfI4trKN8UMQ4kzTKuJAkP6Ne+CE/Wk2xZgOagJ/EVAuhX03HXIfx2sCll6ADWN+qQ v+BPeMqPp/jVnAGtS8JN6l2iTCzxv2p0MTJE3ndBQ+cvFNTMyvlxxLnC8WtIwUYF0ehy x/lLfnMUG7n2cwrtlcoKq8ozLX8d2D+wewDk8kE/iFLk9w0sLmO72EDnRyL2e5+t2qC1 2HfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678272018; 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=B8KzYFaNC31XGy3z1a5fC/b9IAo0DBq/FXy8tjU946A=; b=1STT1OYjHqiW7xWxSaCkuOWVNncVcRtkttsesiXQhsYDob+iH0EqrND7VpR6kv2qD0 4YQo0x50sricUiVK60dqROLXVxVc/i1mCFj2i0OlNJ+zWS0lJj4AWcdJj756+ZEifd2C UHtMjVBUW3tIoO+IaeeGmtkxbrhNve8+Te3rsNJUapwOu+Q+hzcyy6eE5jKye1BaWPku wGbyzHAgoX72cxbd6QYKhXHJspB32sI19QjSbd7fBLw3Fn8CjlCRQZz9bAi4yjtrePVP yBnW91IR0i13k//niZgL/UKUNgTkG8zFA7nhjbZhXC/pqG5uH6MDSWeuzFc24uGU7BtV d3xw== X-Gm-Message-State: AO0yUKVyw4WmybC52b4f2ZlqZm6mAYpiWeT/g7WuA9M60bvbmQp+F+tZ 1nE05BC73abXIl/ybB7sNHF4PA== X-Google-Smtp-Source: AK7set8JlMSJJAkZIH01wjnaoBY+0ByHFrbLviRcPTx3bd4/mTymDWbmGcSXlkT6ZbdDyEOn+b2izQ== X-Received: by 2002:a05:600c:1908:b0:3eb:39c3:8844 with SMTP id j8-20020a05600c190800b003eb39c38844mr16229922wmq.12.1678272017760; Wed, 08 Mar 2023 02:40:17 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:2326:fd4c:82e3:7e07]) by smtp.gmail.com with ESMTPSA id v7-20020a05600c444700b003eb0d6f48f3sm20664135wmn.27.2023.03.08.02.40.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 02:40:17 -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 v4 4/9] arm64: dts: qcom: sa8775p-ride: enable i2c18 Date: Wed, 8 Mar 2023 11:40:04 +0100 Message-Id: <20230308104009.260451-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230308104009.260451-1-brgl@bgdev.pl> References: <20230308104009.260451-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 Wed Mar 8 10:40:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13165560 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 21DB1C742A7 for ; Wed, 8 Mar 2023 10:40:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231145AbjCHKkZ (ORCPT ); Wed, 8 Mar 2023 05:40:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230451AbjCHKkV (ORCPT ); Wed, 8 Mar 2023 05:40:21 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B2689CFC9 for ; Wed, 8 Mar 2023 02:40:20 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id l7-20020a05600c1d0700b003eb5e6d906bso831269wms.5 for ; Wed, 08 Mar 2023 02:40:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678272018; 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=AROI/tjMFfPnWcGbgejV93q7I8+DDtZkPpKGekOFje0=; b=55+wbjaAZC++56lCkeffC5qxVDk5por5b7MVu9k0NYiH3ucpnW8s0o8k+OQ6RuLEnN GDDBaONSzh8472XE4SMV4ttWE/QgKmmIBpBQsK5OF9hVWmAwLwpcgJlBW6VyePL73H8e PslwiFNNP4NVY5hd3ixCM0Y0QQmYpy/Z3VJSW055aPsmHl3znAKXXjTlHJsMIICRCMi0 pHmVIQS46qozosJoD8sCm1apn8S0MPd+nc4g72+GgM5R8lFl1DIyrOKDE67g75B+gVCA 9q3i4TcpkTVmxLvPst371oOswD7rduGNA7/iYKn6FHTbHsyC/7k7btHVYyGM1ZZpOVcu qpig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678272018; 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=AROI/tjMFfPnWcGbgejV93q7I8+DDtZkPpKGekOFje0=; b=61SqNuBLBIawQGCR2SE9grNQXygapuBwtu+N0/xjNUtpITcYT8cfMb87n5KvVdnmI3 +TvwnG3uDqi3LZGSrThBKemvhRUYUrgG+p0g86Ueou1oc+DGb3nEK48/GfCvmKRfr+WZ KmoEjUt+kDP3Dp4Z1Ineiaix6uhxDbHb7mN69UYtkRZQS7NlWiOn5F+IZ8d0l88YjkaZ 56TkAUFiLgZs899KqVNUHe9D1WwYHKTF+bPFI3vUj3a8BZRK/9FWvQ/U1CMzxRR/FXyK W/c01CE8qa3mFuG/1js/zH15eQF0ytg3vtmPbnBW96hukcL44Bup5W4/FXJBXUBEPYAk zymA== X-Gm-Message-State: AO0yUKX2xwnYg7Mcmd/M7JnyVV5ICylVzrJYLTgAzJdqFYhd2SYHDzjL dTPvxVusGmtreXD93sOVWlYDjA== X-Google-Smtp-Source: AK7set+X7b24X/6+T2kGBFdyBpd/aLdfW3UNW37shaF8FcWsQgON6LDSoydJHdbPnBAcc9SdMDnwEw== X-Received: by 2002:a05:600c:3c9c:b0:3ea:bc08:b63e with SMTP id bg28-20020a05600c3c9c00b003eabc08b63emr15964755wmb.2.1678272018709; Wed, 08 Mar 2023 02:40:18 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:2326:fd4c:82e3:7e07]) by smtp.gmail.com with ESMTPSA id v7-20020a05600c444700b003eb0d6f48f3sm20664135wmn.27.2023.03.08.02.40.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 02:40:18 -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 v4 5/9] arm64: dts: qcom: sa8775p: add the spi16 node Date: Wed, 8 Mar 2023 11:40:05 +0100 Message-Id: <20230308104009.260451-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230308104009.260451-1-brgl@bgdev.pl> References: <20230308104009.260451-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 Reviewed-by: Konrad Dybcio --- 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 d65e7826f1d7..992864e3e0c8 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -504,6 +504,27 @@ qupv3_id_2: geniqup@8c0000 { iommus = <&apps_smmu 0x5a3 0x0>; status = "disabled"; + spi16: spi@888000 { + compatible = "qcom,geni-spi"; + reg = <0x0 0x00888000 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 QCOM_ICC_TAG_ALWAYS + &clk_virt SLAVE_QUP_CORE_2 QCOM_ICC_TAG_ALWAYS>, + <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS + &config_noc SLAVE_QUP_2 QCOM_ICC_TAG_ALWAYS>, + <&aggre2_noc MASTER_QUP_2 QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "qup-core", + "qup-config", + "qup-memory"; + power-domains = <&rpmhpd SA8775P_CX>; + status = "disabled"; + }; + i2c18: i2c@890000 { compatible = "qcom,geni-i2c"; reg = <0x0 0x00890000 0x0 0x4000>; From patchwork Wed Mar 8 10:40:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13165561 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 E4E71C76186 for ; Wed, 8 Mar 2023 10:40:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230182AbjCHKk0 (ORCPT ); Wed, 8 Mar 2023 05:40:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231127AbjCHKkX (ORCPT ); Wed, 8 Mar 2023 05:40:23 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05E089F054 for ; Wed, 8 Mar 2023 02:40:20 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id fm20-20020a05600c0c1400b003ead37e6588so929677wmb.5 for ; Wed, 08 Mar 2023 02:40:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678272019; 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=1XIMBXfDU/R4FYmgYxRTe35TNzbPerUdpZusJBGj0r4=; b=WPlJXNPq9weQmaEHgmjFJqNEIJhCryuLWGg9i1041Fjka8OA5GMo6pXBj1IJQlSiRL AbtBd0QcetWoI9Z+XqSO25tjY3EMAzWnaCfv0dDnCJZ2sb13NGnP7iO0aP1yW27pXs2G qfZIi37a1RXG89V9AU3wE1zP9EyIcHFIfqWxe49WgZCufesqr6Rkuso75qSSUTUurvfw b2btVOzU0TbmQFGKtRVTpCmFq6nAo+tGGottBBurUXU9BZ84CgZSqQvmu4LCM7neHPO3 MNNn4qUHS1YoJwJVRDamckpDyQLH4ieTK1HWraR6U0EHHJDwurX6HcdmB9vWuYp63Q5m Bnbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678272019; 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=1XIMBXfDU/R4FYmgYxRTe35TNzbPerUdpZusJBGj0r4=; b=XuezqpPSN9OPpyR1mHdHkSeWhafihI4YuYKcJ/Rg1sA3HKvDhxgFbc2cxgzLAVatXC 5F6hLZyYZ2EiU9WZRymESkYTo0rx9jBGkKp/JyGoIwqKgXetdNOO4ULKEyHagLKX/MLr SDut/duvAizHtPUEPAFS77xi2ByMtklCz8WAlVNQLIayOOmbOMkSAIZEpP9VmDb2Lm5J JgjE6KKa5RUKIZj+apTU2DkBPUYe22cbK8Af38ezYGtVzv03NF7EHd1jxP1dSYD+tGgO rOx2tbDQWW2ntyB+17porfBcmChe1JA0mWthawidBmDPg13nIVQzCAzAHFDu8/DQKbrD avaw== X-Gm-Message-State: AO0yUKVjZittW44Y89Z5+a7n1Y/xlaK33wy+HVmJA+9SuFGSuqWcA0kC pp7wm+TKC0sWYyUfGYrM++5HGQ== X-Google-Smtp-Source: AK7set/bQAmklfNm/duJj4RVLMLptZ+d6QumFEID2d6XQ4+C3YK3EZoh8a94Zl/N3Jhx336CdvE/Rg== X-Received: by 2002:a05:600c:198e:b0:3eb:36fa:b78d with SMTP id t14-20020a05600c198e00b003eb36fab78dmr15272995wmq.23.1678272019563; Wed, 08 Mar 2023 02:40:19 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:2326:fd4c:82e3:7e07]) by smtp.gmail.com with ESMTPSA id v7-20020a05600c444700b003eb0d6f48f3sm20664135wmn.27.2023.03.08.02.40.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 02:40:19 -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 v4 6/9] arm64: dts: qcom: sa8775p-ride: enable the SPI node Date: Wed, 8 Mar 2023 11:40:06 +0100 Message-Id: <20230308104009.260451-7-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230308104009.260451-1-brgl@bgdev.pl> References: <20230308104009.260451-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 Wed Mar 8 10:40:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13165563 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 E030BC678D5 for ; Wed, 8 Mar 2023 10:40:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229680AbjCHKkf (ORCPT ); Wed, 8 Mar 2023 05:40:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231157AbjCHKkY (ORCPT ); Wed, 8 Mar 2023 05:40:24 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E53E9FE40 for ; Wed, 8 Mar 2023 02:40:22 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id p16so9491956wmq.5 for ; Wed, 08 Mar 2023 02:40:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678272020; 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=aIczb2Q7kXmWhiNYlRu3La2aSJAULsh/LcO5fB6EKp0=; b=dYqP5PzDHB7kHW/GYzCdC4fcjnq9olULmSIXWjxpTjXXGsPWNjLklh6TJWPqm0OhAk ufCbiHtaaiTSH+ZX6Znz09eDpjvwteGD8Umb04hbWhiNgnM37/9pwDo55eJb6omNsnGo pnOYQhl4jYSDvU37bZZcwyTMQft0b0NS8Qx0biCWZ7LXh46K/hosDT6ZxibtnuGH8rGo P1tcTfCXcySKIiGHtT5ZLABES7rHJpxN80KB5H5klPe8LB51jiof1yHnL2tI17WnSYI6 tPZ2+xvb9u840OoQBzaa3jGb4Vd1v+eIc3H/4mso0Pbf27LyM7yCBqhSYLrn4ZtVfSmM RM9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678272020; 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=aIczb2Q7kXmWhiNYlRu3La2aSJAULsh/LcO5fB6EKp0=; b=R54It3DfTkOVA6/ICON/mP1r0QPHcXF//+nBT4xjrIaFz2SlU34Dn5d3BIHUo/gX6/ WiUm3c4ulOkPRsqn6uTC4ope5WAOwMRXNGxgOqpN0Zi0a6PyJEtQ56fNXZTZIOdE0ROo qsdOmdI/kKp4+byDpmOf+uBMQGF/083HGnL+cjVJWqsP4K9s1zsJCDCxPVHgKJmJZwCb ODr1VjY/q5XTRM9yaJJdP+dsSlHCh91i5GKwioKcd3wPyyVkhoKoUZw7kJCLriOLuOWL 2opeJnuiKrjv4ZXQkVr9K0okqpMzevfBG/jbZ+ruYD/DBCSJ7RPRfR5nyhpj6ojpdKoA +kOg== X-Gm-Message-State: AO0yUKW2dKK8uI06xDpRRROcXibxq9E2/mxB2xG/AhwlYuGDBRpo4f17 FgqI8bM4oV8Ktjj8ap3y6O4ZgQ== X-Google-Smtp-Source: AK7set+OHRoq/n4LW1uIuoWBtHE28YO7R2sU3L8lHKw+CMYWQMEmEuSh5N05qZEDHqJHJXrlSGPtlA== X-Received: by 2002:a1c:f304:0:b0:3eb:29fe:734a with SMTP id q4-20020a1cf304000000b003eb29fe734amr15720206wmq.39.1678272020489; Wed, 08 Mar 2023 02:40:20 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:2326:fd4c:82e3:7e07]) by smtp.gmail.com with ESMTPSA id v7-20020a05600c444700b003eb0d6f48f3sm20664135wmn.27.2023.03.08.02.40.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 02:40:20 -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 v4 7/9] arm64: dts: qcom: sa8775p: add high-speed UART nodes Date: Wed, 8 Mar 2023 11:40:07 +0100 Message-Id: <20230308104009.260451-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230308104009.260451-1-brgl@bgdev.pl> References: <20230308104009.260451-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 992864e3e0c8..5ebfe8c10eac 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -490,6 +490,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 0x00a94000 0x0 0x4000>; + interrupts = ; + clocks = <&gcc GCC_QUPV3_WRAP1_S5_CLK>; + clock-names = "se"; + interconnects = <&clk_virt MASTER_QUP_CORE_1 QCOM_ICC_TAG_ALWAYS + &clk_virt SLAVE_QUP_CORE_1 QCOM_ICC_TAG_ALWAYS>, + <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS + &config_noc SLAVE_QUP_1 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "qup-core", "qup-config"; + power-domains = <&rpmhpd SA8775P_CX>; + status = "disabled"; + }; }; qupv3_id_2: geniqup@8c0000 { @@ -525,6 +540,22 @@ &config_noc SLAVE_QUP_2 QCOM_ICC_TAG_ALWAYS>, status = "disabled"; }; + uart17: serial@88c000 { + compatible = "qcom,geni-uart"; + reg = <0x0 0x0088c000 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 QCOM_ICC_TAG_ALWAYS + &clk_virt SLAVE_QUP_CORE_2 QCOM_ICC_TAG_ALWAYS>, + <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS + &config_noc SLAVE_QUP_2 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "qup-core", "qup-config"; + power-domains = <&rpmhpd SA8775P_CX>; + status = "disabled"; + }; + i2c18: i2c@890000 { compatible = "qcom,geni-i2c"; reg = <0x0 0x00890000 0x0 0x4000>; From patchwork Wed Mar 8 10:40:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13165562 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 D5104C74A5B for ; Wed, 8 Mar 2023 10:40:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230088AbjCHKk1 (ORCPT ); Wed, 8 Mar 2023 05:40:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231140AbjCHKkX (ORCPT ); Wed, 8 Mar 2023 05:40:23 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAEC69F228 for ; Wed, 8 Mar 2023 02:40:21 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id l7-20020a05600c1d0700b003eb5e6d906bso831382wms.5 for ; Wed, 08 Mar 2023 02:40:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678272021; 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=38POzCQRXbyYZW4IlxaDC4+cp8JTJlsDSxILe4G3dTg=; b=4TyjJNH1V311c7SUBgd5SkwObW8WR5bD/BPRUAie5mpuowKNbE1KgXVw5YfCtmiSHa Cg4+eJ7ZZS0FlDh2jm+UyEVTiSiVR/tUSUJcARX+JKyCXNHiNrygscV05WTiJAiUsQR7 myqdGwYDTFit2x6wHYMVVALdNPla72Y5b+JL38xQt5E+eLIDp0bcXvd9EizNfOinwHD2 /tr+cVcFUQl+iHQUtwhKLyUik8L33g8Ql7RPKBMZ5eHaYvljWgoG3FgyR5Tiq2nmo0hx ssEGzu7YRrTd7UToDYRy7wkeEE/+trn7JKjAH8/zufIYw83rrn3dd+UUqWSdSgJGm2un Sdkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678272021; 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=38POzCQRXbyYZW4IlxaDC4+cp8JTJlsDSxILe4G3dTg=; b=iRYopVfKeBbPYhe4z+SdZiRXEZsKUDV1ykC3Z6+Bt/CS77j/7ZCs7rpVkADRLeb91b ntHkbbLuf05dn6wQD/x5RtL1IRSV0SJE55Mo8izsOjDIRu/lOAgZVeDyXr40c77tkm8c dEiLwGnV4FXFdiWItqkRcVg2h8GaYqncDMsFeglLB1W8ByB/uXkYBY/f+cB+fQpTjXRy GIGwLnhpoaavZL/t9+LXb6Go8ZJPskef6eecc1hc+aHypO0j4YVEFEydDPEZEeWGRce1 BBTw9WBmHjGuwhNRaWNj6K8JmwEGjVOUdSGd+0DdPI/BC+cHjGgu+4xEiM2PpXGjbqel G5LA== X-Gm-Message-State: AO0yUKXcUOjmJu1J2SHtYKtF5Qykd2bUizp+jbesJ2nnnrsV1ocwt64r McMO8gdi6KAsFPQAROz3o6/d5Q== X-Google-Smtp-Source: AK7set9qXIMGbPxBXxskaJpk8Or7rSusQoSGJR9QO5FS01fi3V5Zm5XAmyNjcbarNFEsV29FwLsl6Q== X-Received: by 2002:a05:600c:1d01:b0:3eb:38e6:f65d with SMTP id l1-20020a05600c1d0100b003eb38e6f65dmr15465346wms.11.1678272021458; Wed, 08 Mar 2023 02:40:21 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:2326:fd4c:82e3:7e07]) by smtp.gmail.com with ESMTPSA id v7-20020a05600c444700b003eb0d6f48f3sm20664135wmn.27.2023.03.08.02.40.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 02:40:21 -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 v4 8/9] arm64: dts: qcom: sa8775p-ride: enable the GNSS UART port Date: Wed, 8 Mar 2023 11:40:08 +0100 Message-Id: <20230308104009.260451-9-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230308104009.260451-1-brgl@bgdev.pl> References: <20230308104009.260451-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 Reviewed-by: Konrad Dybcio --- 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 d01ca3a9ee37..cba7c8116141 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,32 @@ qup_i2c18_default: qup-i2c18-state { drive-strength = <2>; bias-pull-up; }; + + qup_uart12_default: qup-uart12-state { + qup_uart12_cts: qup-uart12-cts-pins { + pins = "gpio52"; + function = "qup1_se5"; + bias-disable; + }; + + qup_uart12_rts: qup-uart12-rts-pins { + pins = "gpio53"; + function = "qup1_se5"; + bias-pull-down; + }; + + qup_uart12_tx: qup-uart12-tx-pins { + pins = "gpio54"; + function = "qup1_se5"; + bias-pull-up; + }; + + qup_uart12_rx: qup-uart12-rx-pins { + pins = "gpio55"; + function = "qup1_se5"; + bias-pull-down; + }; + }; }; &uart10 { @@ -75,6 +102,12 @@ &uart10 { status = "okay"; }; +&uart12 { + pinctrl-0 = <&qup_uart12_default>; + pinctrl-names = "default"; + status = "okay"; +}; + &xo_board_clk { clock-frequency = <38400000>; }; From patchwork Wed Mar 8 10:40:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13165564 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 77706C64EC4 for ; Wed, 8 Mar 2023 10:40:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231283AbjCHKko (ORCPT ); Wed, 8 Mar 2023 05:40:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231167AbjCHKkY (ORCPT ); Wed, 8 Mar 2023 05:40:24 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8D649DE15 for ; Wed, 8 Mar 2023 02:40:22 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id l25so14903536wrb.3 for ; Wed, 08 Mar 2023 02:40:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678272022; 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=7VRi2G4KEj+b07eyuUbygI6sMFWcdu49W+sjsRAYS8M=; b=hO8I0bUFQcnMGnrxYs8/YBjnrSOXnpbVZ8zhD6i95pbMuPxPeUww+PZ8y45xlUvNKn Yxb08P8YKQ7NjdQelZtIIJ9EFYzIcvMrlmMo7++0V0/LK3WTboslwdEUU+AdGEQHB6EV 4mb3ArygA/1wR53r1PHEXj8hj+wagQRYe3s57ts4d1P3MpXmWX5EpX51KK7rxLldLVpz 5MuNMyj1luKVCWX9Cmy56M20o5enhtQkMVTNb9lay5DvpdF7NnPaK/teQXTtjf9dAxgF mJXlTR7V+T3JpivJww0TUSI+Bp1a+8RTNZOYsdqMZf78HAcCYcLGwFVYirb73gpm/Zkx M6OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678272022; 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=7VRi2G4KEj+b07eyuUbygI6sMFWcdu49W+sjsRAYS8M=; b=qBr7ndMOQ5XYaF5otNwtgSd3hETsGGLhUZiq94KXGkY1ndBSvwjqMAVRoMv0JPChJC tFA4/T2G1vnzYS8Xa6ZZXoZAwuJJWpquxJFb6qOMUli9Ifr4mMRh2QeknqvmWJsSyksl 1UCyTmP2YrMbIoKwlar2gOtiMHWRw9W17CRQzpyagOwyo3Mb0vmGyAvMVZx0fvxPzYd4 ijunKO4RKuVvcrykkKbNhemctwQAMbaGOpUmbdutEx5sW3USdgj47LkqHZWRrwpjypBT rgSMsq+S3wHmOwSCJ7cwqFhL8pWpXCFA8R4j/yDmEhKpDmOnbB6djaVGEFgnKGZJZj2R Qa3Q== X-Gm-Message-State: AO0yUKWgwPHBM5f6ETNf7YeTp3G/gmoLiXCcKIGRoZRMTIu61jYeqigu u9qdu7oIgMsCrKjFJNIsut3L7Q== X-Google-Smtp-Source: AK7set9lelZGFTTF9YlnT63adLtXhi/OkMhUig2peNQtn061vlw2LCyNIHpLvkz7rM0fsamUlOdE+A== X-Received: by 2002:adf:e70a:0:b0:2c9:e3d:88ca with SMTP id c10-20020adfe70a000000b002c90e3d88camr11179433wrm.67.1678272022251; Wed, 08 Mar 2023 02:40:22 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:2326:fd4c:82e3:7e07]) by smtp.gmail.com with ESMTPSA id v7-20020a05600c444700b003eb0d6f48f3sm20664135wmn.27.2023.03.08.02.40.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 02:40:21 -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 v4 9/9] arm64: dts: qcom: sa8775p-ride: enable the BT UART port Date: Wed, 8 Mar 2023 11:40:09 +0100 Message-Id: <20230308104009.260451-10-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230308104009.260451-1-brgl@bgdev.pl> References: <20230308104009.260451-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 Reviewed-by: Konrad Dybcio --- 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 cba7c8116141..1020dfd21da2 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; }; @@ -93,6 +94,32 @@ qup_uart12_rx: qup-uart12-rx-pins { bias-pull-down; }; }; + + qup_uart17_default: qup-uart17-state { + qup_uart17_cts: qup-uart17-cts-pins { + pins = "gpio91"; + function = "qup2_se3"; + bias-disable; + }; + + qup_uart17_rts: qup0-uart17-rts-pins { + pins = "gpio92"; + function = "qup2_se3"; + bias-pull-down; + }; + + qup_uart17_tx: qup0-uart17-tx-pins { + pins = "gpio93"; + function = "qup2_se3"; + bias-pull-up; + }; + + qup_uart17_rx: qup0-uart17-rx-pins { + pins = "gpio94"; + function = "qup2_se3"; + bias-pull-down; + }; + }; }; &uart10 { @@ -108,6 +135,12 @@ &uart12 { status = "okay"; }; +&uart17 { + pinctrl-0 = <&qup_uart17_default>; + pinctrl-names = "default"; + status = "okay"; +}; + &xo_board_clk { clock-frequency = <38400000>; };