From patchwork Wed Feb 15 15:39:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 57603 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp261591wrn; Wed, 15 Feb 2023 07:43:15 -0800 (PST) X-Google-Smtp-Source: AK7set9vI5oZeS0aj4em973Zch6Xvyngjj5rLAcDBVg59jtpfvmxQEIUxWcfeaUBr627/oRszosy X-Received: by 2002:a17:907:7612:b0:882:c358:5bfd with SMTP id jx18-20020a170907761200b00882c3585bfdmr2130586ejc.59.1676475795285; Wed, 15 Feb 2023 07:43:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676475795; cv=none; d=google.com; s=arc-20160816; b=kyDjGgVQ/ut8nu2j3ODMAAKLj322YBlHPoYvVftKnsQrCRt6pUhAGHDSeylipkK+47 f1Qh0vIbMrSLkkl/lKuJE/VvOuUe9iAFKfzWtkU8SOnPqZAD0OWDjBPNd12gy3R4g5EO HmaoNg0En1Ll7zdBdvRZyMnUAGywwDL5Q7/poCwXjGt35Qxyr8OsppFnamisAQWrK/Ns 6qX6GSxjGm4+1P/cDepH+h/NzCVyWy/K6S1T/5IvaR1KzMolQvGAXRDT7Kab0aw8lnOm TwMmmr6V3DMqumListHLZ3RZYWJdG2YwmgftbpzQs5fJOiUCxKqOzWJQjJi/oI1JtY3G t8YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KBKUFOg3aIZtzc5AANsCexRTxeA9fGhbkcwkIm+GvMw=; b=F6UMw+SKy17vhXEzOHYV2JfL7Y1hYlUGSrmONpHUyv2sI+gOQv+UkZFQ4em+fHISWp r6nsBlxjHd+act7SLHNKq7BcOJer3P+cNPVk62z0jlPP4BQ34gf4UnQtFjMqJ3sbZnrD kCxEaQ1CtGUvqqnrfMHK9zNrbvB8G+i4CwllIHRK/8Zwf+JCD48ZM2IWALu5Kzvl6zrX GCsaeWHxScKTqvjkaNuQRiJfy+iUy6y4iAiHb9W/miVG3/2zSbvglAcP1TNpigmGbpiD 5Y3nrFJZry1L3O3dbrFj4I21FB4mCsKx7CkbFljjgDotNze674ZU1xwxUAthvCTpDGoC z9CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=Ga82GK7m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 24-20020a170906001800b008b13495ef93si4781829eja.988.2023.02.15.07.42.51; Wed, 15 Feb 2023 07:43:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=Ga82GK7m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229806AbjBOPkR (ORCPT + 99 others); Wed, 15 Feb 2023 10:40:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230131AbjBOPkN (ORCPT ); Wed, 15 Feb 2023 10:40:13 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BE553669C for ; Wed, 15 Feb 2023 07:40:11 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id hg24-20020a05600c539800b003e1f5f2a29cso1864827wmb.4 for ; Wed, 15 Feb 2023 07:40:10 -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=KBKUFOg3aIZtzc5AANsCexRTxeA9fGhbkcwkIm+GvMw=; b=Ga82GK7mqpyKTgaGh6zhWl7XgCKeqt5mh3eW8BPGnsmKXgQyxq+Z6g5wIzCpBNhH8r mS3PXiGZV3E59K6ygFrj3LFfpdGS2f2uUMRdxBWPJq2J5Eh688dMY+Qx9PfxQrLCxPST d6isykjBcW+fUJRFiD5wYDy9L7izCD6hoT/hGxuF0kiF3W2+KHm44zi2QqVpSpOX/edE zWm9Baw9Mgm5OHckkpUQnbMI5tw2Ndt/9lmwC+EwOc5aMWJ4rxx+SBGfYtsstIeAiCdA R/l8lttm7VrUWjTplzN1qKVEEwHhZK9ETaf2TzdkBUoMLHcDOgQT7j5Ktf3K1HDIjOD6 EFVg== 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=KBKUFOg3aIZtzc5AANsCexRTxeA9fGhbkcwkIm+GvMw=; b=1deXA0ge+tcUMec/iYWSmPO0Gv3j8APWUhcZelBMqLTYFKoDObPyIQSP1PGo3RJ4hu JDdaBzQamMZsO8FF1aoe6B7/L1R/PvCZgnMboTuYupSHz4BzO1Q2uTq2Lv0NDJVPH4Th eTKiMllRrG6I3lZnqk4N5plagCiTWmS6ccWohFuiGHUeI9WaWdXNGVf5s/RTtSqcqkr+ m8skURaVoTvP0nanjLYlA1cl3OkZg/9Iqi+UM4ik/SvEJtuIcUp84vzofiwGLTlF0FaX I/YDA1jTaWY2icnqrey/vSBkJ79xNa2ErswPMeyAWkblJVeL3gMqR4Pp0DwvuAwqKpIt OY7w== X-Gm-Message-State: AO0yUKX1gHUmc1rBGq3/9b3WTIqNB5F/9QONaPPr2KxQhg8J6WJJWgWL 96hKK3ldtqEM6eK2FzbgP4iSQQ== X-Received: by 2002:a05:600c:329a:b0:3db:15b1:fb28 with SMTP id t26-20020a05600c329a00b003db15b1fb28mr2241734wmp.19.1676475609534; Wed, 15 Feb 2023 07:40:09 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 07:40:09 -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 1/4] arm64: dts: qcom: sa8775p: add the i2c node for sa8775p-ride Date: Wed, 15 Feb 2023 16:39:59 +0100 Message-Id: <20230215154002.446808-2-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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757912283272605232?= X-GMAIL-MSGID: =?utf-8?q?1757912283272605232?= From: Bartosz Golaszewski Add the i2c node for the interface exposed on the sa8775p-ride board. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 19 +++++++++++++ arch/arm64/boot/dts/qcom/sa8775p.dtsi | 34 +++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 3adf7349f4e5..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,10 +21,21 @@ chosen { }; }; +&i2c18 { + clock-frequency = <400000>; + pinctrl-0 = <&qup_i2c18_default>; + pinctrl-names = "default"; + status = "okay"; +}; + &qupv3_id_1 { status = "okay"; }; +&qupv3_id_2 { + status = "okay"; +}; + &sleep_clk { clock-frequency = <32764>; }; @@ -33,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 { diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 565c1376073e..82582825f92a 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -491,6 +491,40 @@ &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; + clock-names = "m-ahb", "s-ahb"; + clocks = <&gcc GCC_QUPV3_WRAP_2_M_AHB_CLK>, + <&gcc GCC_QUPV3_WRAP_2_S_AHB_CLK>; + 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 = ; + clock-names = "se"; + clocks = <&gcc GCC_QUPV3_WRAP2_S4_CLK>; + 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 { compatible = "arm,gic-v3"; reg = <0x0 0x17a00000 0x0 0x10000>, /* GICD */ 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: 57604 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp261692wrn; Wed, 15 Feb 2023 07:43:27 -0800 (PST) X-Google-Smtp-Source: AK7set9OE8bjBtRJCAoxc32zcHUiB/vvfYsiiicGq+tVpNwTFeIK9mR+cEPYYcTx8wYiaSk9ppcZ X-Received: by 2002:a17:907:2179:b0:878:673f:5492 with SMTP id rl25-20020a170907217900b00878673f5492mr2606191ejb.40.1676475807071; Wed, 15 Feb 2023 07:43:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676475807; cv=none; d=google.com; s=arc-20160816; b=ctK5oKEDyrCx5FJIl4AI6C/l2GjKCs1qWT5CQX/+hvV7lMiwnCH8LFOLxEDFyw/3DJ 7ehz2/a7xVsFWjKy9YGkM4pfyDixQ5ywv8DVsuUMe6WG1YVnIGThnGStm51TjbHxUXA4 /imay9fwI+HLdD2dhsD+GCIPtcqFx/oCQ2i6b53YKIl1C30z3IBTEz2rwje/HwyE8Tdq bonFKyWytJITnlsENTZvw+RSb03AMGDwObPIiHK+mIkELU5VnBEFG2OE5LK0KrzAy+d7 ZBmfIJUIFZ53+Ow0LvesjVbR9OylG/2kMvg/ixTCjGXG15HrzvC8jzuJuvFV5kPvHyKT RJTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DA8FtU5k5fQCyhIkgC0GoFOKfitMelFiT63AH7hnguA=; b=uIT1bJyl64KSGHdFxfQp/ak/bDRgTXXzxApvex9qSshDbctSgg0jwGxxZ79vNvf6g0 P94uggp8TuOJh7gU/x1RAz3kRFRYR15WJrFFLZHsu6nPektJkjuKxuiQWriS5tTMbzIE vQ8NOxUXOu3xq4pNLXWrfzFyjRYfZ6lx3tmCAxePLDNlEi9FNh/9z4LTDmHCF58Pc/PK 9leucBsfddjJtrAIvTwKCtACdgTJC558ZWu1j8p0J/pjBzbwywriOjkeWQKWW05PpeL6 5Dxr6MN306yKmvexV3MhtYJDMz9iLsXPRFNHRavuRxg59XEJS/h+SEBrx4cMeL0Ch7Nd REDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="KdTB2/Gi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eu21-20020a170907299500b008b147c3017esi1550052ejc.254.2023.02.15.07.43.03; Wed, 15 Feb 2023 07:43:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="KdTB2/Gi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229618AbjBOPkU (ORCPT + 99 others); Wed, 15 Feb 2023 10:40:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbjBOPkP (ORCPT ); Wed, 15 Feb 2023 10:40:15 -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 E9D2A3645C for ; Wed, 15 Feb 2023 07:40:11 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id m20-20020a05600c3b1400b003e1e754657aso1894947wms.2 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=gLJ6CAbFhewXg51TeyIrt2WDdJyeZjqlBwPWBsHefwHacF9FHIeKtHYcQbHBRRJmFU NL3XrwFiorDnLau+CchjXjpawn9DX02p+W/aHe1qWwgaHoSoOeUccVBUFfVKS3VqXQVT EsQMC3bofl3bA2qq2cmgvHriHZrG2w3LKDrCTUCmfrkgBYxGjZq8nVwIzn7FAa8eqUm8 ZnjFeEn11rggFFQDL7d7cLEFmoHzUmEslL9XCppIBj6ZN+uFMv9IhVy6ziODb48T9+2K aR9Hcpa36NSb/t9iCnI/DvQMR8RSyFu5AKIDMkhwuA/Z1M9U6eSKeHekNud47w91Yvxv mmsQ== X-Gm-Message-State: AO0yUKX+KJHGOcKeHyHXKIalYuVjnEqcVPN5hVDFMBiE945s2kzrM9+h UpgF0DVtidkREY3i1TDF+mLxjA== 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757912295999707580?= X-GMAIL-MSGID: =?utf-8?q?1757912295999707580?= 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: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: 57605 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp261699wrn; Wed, 15 Feb 2023 07:43:29 -0800 (PST) X-Google-Smtp-Source: AK7set9+lW2a3YEfuagFRt3Ne53O2BMIl/bYaZTcvQtf4n1n1GqRmHbx2erBV8NC8uydtEzDFFiG X-Received: by 2002:a17:906:8482:b0:895:58be:96b with SMTP id m2-20020a170906848200b0089558be096bmr3180611ejx.3.1676475809311; Wed, 15 Feb 2023 07:43:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676475809; cv=none; d=google.com; s=arc-20160816; b=vsY+YUsw6HSLbjlFkny5MVxivFWeabROamoioD0Q3MSR5JmcJdtdB+z0GwiAMR3X7W VvVFl6zevWTEC88OQ/zFD8YcwvsBRwbLGLCU/IBbd8xMj0vz7wjANIOIMg54MvRAtcd/ 7vJH8WY2nZvDnBwF80IEuAC60q0F+LHG3j7fzKM0FGmwyg8EfjSz03ch6+rq/I+nV4P+ q0RduV8+TH16REbUcig6YbT9rSgl8YKmfuMafwqZkYB8nG3lFefAxGtoU9Ge6yNs34yp zl+mCF6NU6KaKUw2hwQ96dnxMan4+1i7EOjlNpBfyA1j9/RhLDsy4pgEg3xczUbGqkZX grsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AdnjpOdJAMHVLdPdxFho8dG1WvHp5HoPzZyrAfKLUyU=; b=iJi17wvOIZ8qtHQwiQtUWtJr7CIdkZDgkiVJjbys+HIgh4tMXhXx+rztktjQRlNlW6 6YzWO2n0xDdXc3/tsLyYRFhdhDXfIo8hVi1623KMAVPtviWK5ZpgzC2xnLqyI1BH/ryF s88Vst8mB1qgIiLyk4TTweJLox0o6Eo+VOkyHlJFkwmA/07UKu9mauVuCFDqYuiVmYh/ iXbGUMQjo+/M5a1jsCu4n6fWrl1YiGBhCVkBGirwRqUKSyfM9koOWFw0zlJlGak7DXX6 WmXbrCqpsYpY7P7Umgcs61WjDaXijqpz8NQngjDbAW6VRm26Q02wjmIhY4c305hQOO/H kcHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=7BU7RnXX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e4-20020a056402088400b004acb701c2d8si14530966edy.357.2023.02.15.07.43.04; Wed, 15 Feb 2023 07:43:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=7BU7RnXX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230157AbjBOPkX (ORCPT + 99 others); Wed, 15 Feb 2023 10:40:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230144AbjBOPkQ (ORCPT ); Wed, 15 Feb 2023 10:40:16 -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 E56E5E398 for ; Wed, 15 Feb 2023 07:40:12 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id k8-20020a05600c1c8800b003dc57ea0dfeso1933195wms.0 for ; Wed, 15 Feb 2023 07:40:12 -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=AdnjpOdJAMHVLdPdxFho8dG1WvHp5HoPzZyrAfKLUyU=; b=7BU7RnXXKEVo535IajHNoKPiziRSRrHfvBOnt9f34nOiu52UcvVHbdnCGN45CYs+7K Wi6eWquiLiNtYWGjy8RZK5k3GJT2qM2XZfOg/DW2a8lvmJ9+1Es6G0u6rhw0nEWR03jc NrrGAERDpXGDgY/vkn+VWOsWV7/3TyFT0C/37Rxd68L16yNILMc2GqfYrbFMrhIM9OmE gjy8TwKLj9X4qRqHjFZp/zVgQFc3qCme+Bakv64cSkdivJ55sW4aYFKCLMR7qLgbFv5U CSnJ7w8wZqtZ23scfQoQXMVjCzesw274t4Nw9CEgPaQE4k9r2++Z7CMahLi1RsMdd25b LcIQ== 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=AdnjpOdJAMHVLdPdxFho8dG1WvHp5HoPzZyrAfKLUyU=; b=VmotUf9UVCgCmOWjI9+K2hhliTaXjZCyqpw2PAGzO19at4kqjLamOzkkvUsHyvGPIJ kZ+m49cM0vtpDEIzpk8oJKRNAktzcWsoNP/99q3ra8NM2GUrhmcILYWA1B1lpufXs0ci /fir8YLaE6szQ/D+9im9cWmve7L3eI/2Zgvf56OTGL7cvFJ5ZLF0mcLSVyCeUfSlnLYb 77QP+HqO14uVtnOharfXtkcTqZM/bJXuSzko4m8aDom9uuZzJtwAQRxysu8tBViGyJq8 j9FCydVgVBYjmS5y02vfSRLjG+azYLowuNa6VE25U6vKeNX3rxQMd0p06CJSovaKDjRz wS7w== X-Gm-Message-State: AO0yUKVFTU+VSrbeC5Ip+VRNmaaKjLtk/J7wjTehcGi+N26mQzMj6OGi peD/7LOg7CJgXclR4fdCrLXVBQ== X-Received: by 2002:a05:600c:4da2:b0:3dc:561a:79e7 with SMTP id v34-20020a05600c4da200b003dc561a79e7mr2252539wmp.2.1676475611386; Wed, 15 Feb 2023 07:40:11 -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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 07:40:11 -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 3/4] arm64: dts: qcom: sa8775p: add the GNSS high-speed UART for sa8775p-ride Date: Wed, 15 Feb 2023 16:40:01 +0100 Message-Id: <20230215154002.446808-4-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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757912298548958451?= X-GMAIL-MSGID: =?utf-8?q?1757912298548958451?= From: Bartosz Golaszewski Add the serial port connected to the GNSS on sa8775p-ride. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 34 +++++++++++++++++++++++ arch/arm64/boot/dts/qcom/sa8775p.dtsi | 15 ++++++++++ 2 files changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index d01ca3a9ee37..47cf26ea49e8 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>; }; diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 1abb545ff4f4..8b8931ea739d 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 { 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: 57606 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp261717wrn; Wed, 15 Feb 2023 07:43:30 -0800 (PST) X-Google-Smtp-Source: AK7set8vxzcRTo0xK+cm4WvKb7yAA/Kbl9NMi4pnWZdw5G/gIZ+aww24EwoOR3vZ1+o1bWjXFIz6 X-Received: by 2002:aa7:c64b:0:b0:4ac:bb6a:f757 with SMTP id z11-20020aa7c64b000000b004acbb6af757mr2545723edr.6.1676475810855; Wed, 15 Feb 2023 07:43:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676475810; cv=none; d=google.com; s=arc-20160816; b=xuPUDVQxvkYSJ3Ovw30gLCgXXe947X0kDCSy2kJtllCF5LDV9urgZwTGWV7fAug1ov SwjA+YBKdrBZRsIyzQ45PAf10IpthpH4iQwLFVy3QQPmq55qfX72tiLOvYLiYiLGOdkF nEf/tKPvL9oc+XJibCcDtDrDF4LxcJDVHS7APslLZJs0KllrcEHU4SkzARrxRJOOf4Zz Iclsf0pMMZpXmXkFT0N+Dxg1+fD/hjCOw5GQq7PS6Pd8koQj4gilaZ5Ly2sRQsGVAOyx py5/gyICEpRpgvjG/9uZbmqjNM55UyohIJkJWCU2feHWYbt94AmD6kBBJ3zw0UYSgjgk XpQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=075PiImMlYWFaRFjC0H7YdFZXk92p3CzB07R2jH1NEM=; b=gF3pu7Nwp4FugErT/qo02zaCU7p57CIBIm70X1I/9OlKMHqLt65Jbiqw5br9lt6LDn gSNpbCoMwKqufc7TFd2LwXb099sMUbYHCTpvBko61GT1jQlyneQK/O8m5IzDvic5Sj0C EOTs6CY93hOMz7z392T/BcESd7pPwRnWBhGSQ7xRnwgbDHMQmEJxq4VHxkAE2o0VorJR sNf/TfNsYluGf+WB66aZLOvMTSFWPXYXaI1PDJYRGy6odcoYmnZXZjKX/6z2RTkFaKZu gHeyU/FP7Otroil4zapDa2gV71Dsbw6qjRVQAzLH82cb6Ih8fePJxn0XUvlEavL6BQz/ PEPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=B5nfRh2F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u13-20020a50eacd000000b004aac41f286fsi21948548edp.59.2023.02.15.07.43.07; Wed, 15 Feb 2023 07:43:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=B5nfRh2F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230186AbjBOPk0 (ORCPT + 99 others); Wed, 15 Feb 2023 10:40:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbjBOPkQ (ORCPT ); Wed, 15 Feb 2023 10:40:16 -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 C41B9367E3 for ; Wed, 15 Feb 2023 07:40:13 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id he5so5819080wmb.3 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=Obu0/XaBKmVVwSm6aUVT73QGXRFvfJBxsAOmdP1+beutVM19m8meaq7EnHtxXg1OiX iYPq7T1O5aiJLwCKhqbEQTvibyHCWdeiXUZ+0l5WykRsw7KZKR4GL9lRBohilZLDnED8 NrQxNc3HmTdU1EeEunKFf/AKFiokFPHFpNze5vo/LfTDIyOwH+xXzbB9MXvCm0kHDTFt IaIs7cn4ZvNmKCaXPubXSQzjuiA1WpHgjHiJ4djn6gPX8Kh1Vzb3dC5v32NmE8ppeaRe 1Sx1nsSWRjsZD5MYW3h9l7no+BoXyMENmyX/bAdXPxaaen9+zLynAbBNJgusSTa78YgD qUNA== X-Gm-Message-State: AO0yUKXLP9OzInc6cPAk4cXK5HMl87LDFWfTx1Xrq6XWP6fstbs80eal 6wA0/9umwigUBSDZSy5wKLf2nA== 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757912299872547464?= X-GMAIL-MSGID: =?utf-8?q?1757912299872547464?= 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>;