From patchwork Wed Feb 15 15:40:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 653764 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 BE06EC64ED6 for ; Wed, 15 Feb 2023 15:40:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230153AbjBOPkR (ORCPT ); Wed, 15 Feb 2023 10:40:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230032AbjBOPkP (ORCPT ); Wed, 15 Feb 2023 10:40:15 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE8A436FC8 for ; Wed, 15 Feb 2023 07:40:11 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id he5so5818984wmb.3 for ; Wed, 15 Feb 2023 07:40:11 -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=DA8FtU5k5fQCyhIkgC0GoFOKfitMelFiT63AH7hnguA=; b=KdTB2/Gice8LYygsxPRk1Ylt9pWBHnczHG+LcUf+YDeq8pJhZ59pH5sRDlVj3juw3B g7mlzInsC00mIpC7vsTNDATzZEfnpFnIoK6SQFHid97CTA/Wgg1TrjFHNFjGV4myaEb0 Q2j0onVCIutAfw1ntA3fMDZbWLOACjkIuNF+U/TmSdBXNu8OmfqTUVw1uwca3dWq6Him OX1mmZycBtvXSqR3AO5YJIbtneBf/PBHJyScIdRUed7KUWISbanVOzGF7y9/lcrkx4LU J9DvI4idJKBOJC3A66TRubOx9P54Oi+X68wovMqMZPK8Fs15Oxdw4EKXSgFh6QmvCAjr FORw== 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=DA8FtU5k5fQCyhIkgC0GoFOKfitMelFiT63AH7hnguA=; b=5wtOGdJPxEHf6zBTXthMj1lHLDNtFncpQtv/gDcW1E6OS3nx1/2g4x/LgFRlFk0oWN 7p4ca8JGBty6iOZve1bfPOjRXGkBDSz773jY/vJoOKvAI6WtmI5Wwd1y3ONYzBPcvzIT OYQtkCJRL7v+A8Ms3emC/ybW2hRjD0wHuKGbE+Uo/+eKKHZhGGp3TfEBBiOlsRpFBsVt fEL+5HGNCMZunukiP5wPtvXlfjF+QhP1j7LGwN5K5QR5jJNPCj5lzFnotiKeC6ElKZhP xxy9OMEhAH0Zc2cjJUqK3I/KPfrsZACcpdQtvpHsojnkBH69WEOJW8lfF3kLilFFMDsY XmLA== X-Gm-Message-State: AO0yUKUJJ/bOfWJUqCnZc7g72LxBB2zupwMDLmVTiAN921bKv30zxglU HQlBuLEg9wIJRGY5xibwQTir4r9A9WrY93Dz X-Google-Smtp-Source: AK7set9Pr77LG1ZbdGrX3RCk/pN0JoVgs/gPvV942uNRZeGD4Nb1DEDt3APT+V4SjLhHzhP5p147IA== X-Received: by 2002:a05:600c:1c11:b0:3db:331b:bd57 with SMTP id j17-20020a05600c1c1100b003db331bbd57mr2281043wms.23.1676475610502; Wed, 15 Feb 2023 07:40:10 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:ea02:3f39:48c0:67ce]) by smtp.gmail.com with ESMTPSA id j17-20020a05600c191100b003dd1c45a7b0sm2808877wmq.23.2023.02.15.07.40.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 07:40:10 -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 v2 2/4] arm64: dts: qcom: sa8775p: add the SPI node for sa8775p-ride Date: Wed, 15 Feb 2023 16:40:00 +0100 Message-Id: <20230215154002.446808-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230215154002.446808-1-brgl@bgdev.pl> References: <20230215154002.446808-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 node for the interface exposed on the sa8775p-ride board. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 14 ++++++++++++++ arch/arm64/boot/dts/qcom/sa8775p.dtsi | 21 +++++++++++++++++++++ 2 files changed, 35 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"; diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 82582825f92a..1abb545ff4f4 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 Wed Feb 15 15: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: 653763 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 7DE9EC678D5 for ; Wed, 15 Feb 2023 15:40:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229761AbjBOPkT (ORCPT ); Wed, 15 Feb 2023 10:40:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbjBOPkQ (ORCPT ); Wed, 15 Feb 2023 10:40:16 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C02A43669F for ; Wed, 15 Feb 2023 07:40:13 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id f18-20020a7bcd12000000b003e206711347so890752wmj.0 for ; Wed, 15 Feb 2023 07:40:13 -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=075PiImMlYWFaRFjC0H7YdFZXk92p3CzB07R2jH1NEM=; b=B5nfRh2FzKSQmbdwPsBW3AnFRO1vEQhEmDVlf5Hj+XVaV+sl8LtbaFB+3rgm2dEFMq PP9/tdjqd9hQxqx6jaUeC1f1pcCt4ySjmiu1B5riaZYufrjV7IpP8Z6NeiGzp2v+uAzM vf2fODSusCv/3YjOJyQfLbjd5Dee4p/RpO3unLT/tet/iWKYJAIaeYMv4s7hs8tZz+g0 LdxMMH/1I1jcrFA14IormodbHtFwm1UiOu3S+/0sEA8k0XHRo+mLWG/Xr1H7TKAZ8p/x +43bJO3lkVdfBZIT3du2uRhFMjkdaZdTv4X7FsnbrMbndfB5ZROUlTtu+fi91JQROO5E wmqQ== 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=075PiImMlYWFaRFjC0H7YdFZXk92p3CzB07R2jH1NEM=; b=EAUk7X6PyP0S/C2tYrqaP1P+fiKfq7DvMzNDTzhfaqquz1GI3RyiEeviFEvFYwOuiu NTI0w93KpCCtUehMK7L/hBqQZXR38eQA4ZsMhWK1uiX/tBIR7K52/xMSWL+AedQBzuyD pFcN9/s3oyMneNdGI6lOwDQTR7wg5U/nY/WqLS0AsB/nvdOabrmTH8mxc53wghLgHJbg 1cG+aS0RBAvSrs4DjL1r8zD7GZD4gQbh8jMXoeeDl44XvPIQgRgDYyjLc3tv3S2foKVA iEZSJar9XTB2VR4rnlzVtmykXg2dMbIfSnIeU/ZKB6m/xG7pbNK77Fj3gQ62vUuerrC7 Ko3w== X-Gm-Message-State: AO0yUKV04c7636WUUxd6z0aapGizqoSDwIM6R2MfVlyTvV1arlYqZuSp UA6JFSFbJnu2t75QJp9sMV10Uw== X-Google-Smtp-Source: AK7set8irxK5YD/Oucuv582cwsYSLPJxqxjYkHjbqSk32FvKrHvsyLBj9Aq1VgOXINUygKQWL0wY2g== X-Received: by 2002:a05:600c:2e95:b0:3dd:97d6:8f2a with SMTP id p21-20020a05600c2e9500b003dd97d68f2amr2305269wmn.33.1676475612381; Wed, 15 Feb 2023 07:40:12 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:ea02:3f39:48c0:67ce]) by smtp.gmail.com with ESMTPSA id j17-20020a05600c191100b003dd1c45a7b0sm2808877wmq.23.2023.02.15.07.40.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 07:40:12 -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 v2 4/4] arm64: dts: qcom: sa8775p: add the BT high-speed UART for sa8775p-ride Date: Wed, 15 Feb 2023 16:40:02 +0100 Message-Id: <20230215154002.446808-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230215154002.446808-1-brgl@bgdev.pl> References: <20230215154002.446808-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 serial port connected to the Bluetooth controller on sa8775p-ride. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 33 +++++++++++++++++++++++ arch/arm64/boot/dts/qcom/sa8775p.dtsi | 17 ++++++++++++ 2 files changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 47cf26ea49e8..e7629cb0306c 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>; }; diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 8b8931ea739d..9e057a34b14f 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -539,6 +539,23 @@ &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>;