From patchwork Thu Feb 16 12:52:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13143067 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7481C61DA4 for ; Thu, 16 Feb 2023 12:53:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229942AbjBPMxR (ORCPT ); Thu, 16 Feb 2023 07:53:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230425AbjBPMxM (ORCPT ); Thu, 16 Feb 2023 07:53:12 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C80CE48E3E for ; Thu, 16 Feb 2023 04:53:08 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id r2so1737223wrv.7 for ; Thu, 16 Feb 2023 04:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Zth4LRDzQbzOroJaQCO7UI7/ks7eZuvwOmU1RK0/21g=; b=zAvknU9k6u2pR7ZjnkDBa/R1INvpIk0qOu1+HQwUk+7py9mm1U261lNQm6m6vvjFxJ 63yxVpuk60+ogoQ3Pdel4iWc+Vx6NxFpQo6lBs9U4vrgRDB+dBbQLCtcDwDkhcngf8qw otb6cGMp0SrU2dXE1K8a7JoR3yYwr6sxc/cGYqHRE9SqEDpGa1sxNlVAhS3x3f1UDJCw fdmfgnu9Vx4SlWftXPcPqzBwmi8nYhjLnbssRjeLUAOOEgqrfLEzaQfPEOiEyJAjVXiM vrPqXg7mh4dhrtTsdZIBRUUWOr9QMHixBRh8wdMZgt2df/6kMmttN7bnm9jOiV2VXDF6 Jj5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Zth4LRDzQbzOroJaQCO7UI7/ks7eZuvwOmU1RK0/21g=; b=uzNOI48pfAD6TpOdJU7bH91Q8agDWWh0WiXy08rW3S3WknAAER1cnbkmpFOO156Nd+ RHLhU9i3A5eJWyRIk2xvAfgRcsbfVm5frbr5ESGToZfCRWXW0Plv5/6ea3kihEmslW4O 8A6+LNnJQHBOn3k8WOjVaNFHdfqlro4V0//p2+YIF02pFZ7KTtBOdoXmVIl7bo6z0njY adBsk3uMPQCvEwsXwBMh77E/+bTQBLFCEsVT8/XN8ZWfOggxjezgOaU/G9hdxFFmM/RF KThPbhzshVdqeXZYBS4mC1OAvfdvHfMyXRAoD0KveiCopRindDQ/pTVcms6F9orwPQ/Y jj+Q== X-Gm-Message-State: AO0yUKXtCWu8OGwpIvKHFGZEpxtNe8KkrU0/t202pPyvh6mKkheaOlo6 ZSHK0CdG3CDcE341iDSBboNcAg== X-Google-Smtp-Source: AK7set+3ocTCALrHUmoHGw7XzcAcSr/5r/EjM8fRD8BZvx3A+PFAYc7MLMfJfJSGOKaQQqDKBW4XPQ== X-Received: by 2002:adf:dec1:0:b0:2c5:5454:22f5 with SMTP id i1-20020adfdec1000000b002c5545422f5mr4333579wrn.54.1676551988447; Thu, 16 Feb 2023 04:53:08 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:7c5b:1160:db5d:72da]) by smtp.gmail.com with ESMTPSA id h18-20020adffd52000000b002be5bdbe40csm1453292wrs.27.2023.02.16.04.53.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 04:53:08 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 8/9] arm64: dts: qcom: sa8775p-ride: enable the GNSS UART port Date: Thu, 16 Feb 2023 13:52:56 +0100 Message-Id: <20230216125257.112300-9-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230216125257.112300-1-brgl@bgdev.pl> References: <20230216125257.112300-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Enable the high-speed UART port connected to the GNSS controller on the sa8775p-adp development board. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index d01ca3a9ee37..6f96907b335c 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -13,6 +13,7 @@ / { aliases { serial0 = &uart10; + serial1 = &uart12; i2c18 = &i2c18; spi16 = &spi16; }; @@ -66,6 +67,30 @@ qup_i2c18_default: qup-i2c18-state { drive-strength = <2>; bias-pull-up; }; + + qup_uart12_cts: qup-uart12-cts-state { + pins = "gpio52"; + function = "qup1_se5"; + bias-disable; + }; + + qup_uart12_rts: qup-uart12-rts-state { + pins = "gpio53"; + function = "qup1_se5"; + bias-pull-down; + }; + + qup_uart12_tx: qup-uart12-tx-state { + pins = "gpio54"; + function = "qup1_se5"; + bias-pull-up; + }; + + qup_uart12_rx: qup-uart12-rx-state { + pins = "gpio55"; + function = "qup1_se5"; + bias-pull-down; + }; }; &uart10 { @@ -75,6 +100,15 @@ &uart10 { status = "okay"; }; +&uart12 { + pinctrl-0 = <&qup_uart12_cts>, + <&qup_uart12_rts>, + <&qup_uart12_tx>, + <&qup_uart12_rx>; + pinctrl-names = "default"; + status = "okay"; +}; + &xo_board_clk { clock-frequency = <38400000>; };