From patchwork Wed Apr 12 14:30:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 672644 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:184:0:0:0:0 with SMTP id p4csp370564wrx; Wed, 12 Apr 2023 07:32:06 -0700 (PDT) X-Google-Smtp-Source: AKy350Y3ZWgUlqgZXB8cCx83/TmPLHUJ72iwJ+QFeBoeT/zM6McPTA5ukiMB5oULYRVkk86QrFYD X-Received: by 2002:ad4:5dcb:0:b0:5ee:e4f8:c7e5 with SMTP id m11-20020ad45dcb000000b005eee4f8c7e5mr9218147qvh.41.1681309925995; Wed, 12 Apr 2023 07:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681309925; cv=none; d=google.com; s=arc-20160816; b=CtVkbJsz1lQ5QJFVYeSCkZJL8Yp0gTEpzGzt4+SBbbbXrE9cw83L8gXPPQmEubwi0e 9FGDAciPY/9GzId+MwJ/ZQxxQG6zNHf6DX+PI7N/2KnPaHCqueFy+pDX+HZDHucfwT0T EWhML19SfTg1Mka+V0EI5mdK2L4u3rt6uHqjaJYX5z/u4JW71PjCJgiUPiDgTks2WX4Q jNr3VjdOa1SXxqAYNWLLKwFAb8dPUj1hqd6CxDvyRY48/3Ow9cllt+5/0ys8KLcICLY7 zCu3cxdEsaBMrFjYlpqzW9QWXQhFOefHlNBwhmbHST8C3bwfx7tWDii03pLyhUKzj70f 3sWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wup+CBY6u7TSY4TeWQWa9so56VwP6kLw4QvYwq6be98=; b=kckXkFoIRbGqT+Sh/qK9fgO66m6J4lKBWsn6cUULcYWLnMnKPcU/XGvYadftvevggq TiUwpa8StHB/espVDs7MYcqusrz8a75MNjJTufkTBpSLBRRuRMhxWY7kJmfXe6pvYwgd 6KTAo2hmm0qlXdCCMFqtfAXUd4HrFGmFdBYOSgl8t+Ta+CES1ZRPfuWRyibPrEgZ5A/z zGtL2wV8IUFWTuSK7a6rol0cRnvE5rMlF/hBtIGBUwxUyG8EjdbdsywTwXhajV2pdlpE 9YcIbowuWQ2uZX2cE1lAriG9U0GytoM+QwuFzvH/DcbQv/eUoGKwpOPS66CrogHaNcxM fKIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sa0csSfx; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id q26-20020a37f71a000000b007484c2fe683si10269972qkj.187.2023.04.12.07.32.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 07:32:05 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sa0csSfx; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1F2CC86023; Wed, 12 Apr 2023 16:30:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Sa0csSfx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4D6D185F89; Wed, 12 Apr 2023 16:30:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8B18285F77 for ; Wed, 12 Apr 2023 16:30:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=vladimir.zapolskiy@linaro.org Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4ec81439f04so197554e87.0 for ; Wed, 12 Apr 2023 07:30:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681309821; x=1683901821; 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=wup+CBY6u7TSY4TeWQWa9so56VwP6kLw4QvYwq6be98=; b=Sa0csSfxy6CQOm3Wjc/iVAoqPMTPTqGw4QkkN33T0ubA+yZL/8PRVuxK4R0Jdb+4Zu 5yDgQxuhewklwC3k491ZPQ6SOiTgnvH7HQP+Ul/uz9LfNv1TVsAr0Tiopcd2z1ggKHIu hvppteVkxNIGVEdXbs6UoYyLinE8uaVy3zFfWbJ1joB6n++WiC6Lm9EUBKiqUfdZwXzA DdYt1loSpHLefHh39Owd0gzlf0CBDxXMDr1LMoG3YpB4t8K2wgeRK2M2Ukad6AAci/iI KxWl8HT/zjlneJ96tYTzTkY1rPYTeczx7EgbyqPaibyQILfnhjMfiOrbqPIiHOh4igjp 6j+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681309821; x=1683901821; 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=wup+CBY6u7TSY4TeWQWa9so56VwP6kLw4QvYwq6be98=; b=a+mHAlFFNO63/PJeoOfim0v/YTvRiMvYxh7Y614EA2P30ddJR/XkHYbUS3lirLtD0/ wVUKXey3u4IJ7pYDC03i2MPtwPwCkyWBCmSGUghh6q9WYwQhjPBXpOzsqDaKvndnch0p 11Ca8SG8Y5Ge1Fos29Azqmk0jNxPVGqO2avCjaIostxwelMsyC24m1UU4uNDpBE/fQBe 8sQHklW6LbDQhSSS+sSjzdeaupH7bHMil5E1XDhrEMeRkyKViCyFI3isPrPuUg8+u87H 8adOO1ruQ8o06R6c7m9vfcqDWGOmGd+taI92Xz7VFFeXwoqteoLsQr7RfZttNrytXzKD INsg== X-Gm-Message-State: AAQBX9flXWAi6dV4wJ4fonxPykHs68v4yO7kQCjJ0iLcqjMDNIQ4lz8P Ux6UDG/rG7sT5nhJegBeh7J5lg== X-Received: by 2002:a2e:b890:0:b0:2a6:1681:d82f with SMTP id r16-20020a2eb890000000b002a61681d82fmr863708ljp.1.1681309821313; Wed, 12 Apr 2023 07:30:21 -0700 (PDT) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id z2-20020a2e8e82000000b002a7729eea3dsm1861054ljk.88.2023.04.12.07.30.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 07:30:20 -0700 (PDT) From: Vladimir Zapolskiy To: Tom Rini , Simon Glass Cc: Ramon Fried , Konrad Dybcio , Bhupesh Sharma , u-boot@lists.denx.de Subject: [PATCH v2 9/9] arm: dts: sdm845: add GENI SE QUP device tree node Date: Wed, 12 Apr 2023 17:30:06 +0300 Message-Id: <20230412143006.80946-10-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230412143006.80946-1-vladimir.zapolskiy@linaro.org> References: <20230412143006.80946-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On modern Qualcomm platforms including SDM845 a GENI SE QUP IP description is supposed to be found in board device tree nodes, the version of the IP is used by the GENI UART driver to properly set an oversampling divider value, which impacts UART baudrate. The change touches dragonboard845c and starqltechn board device tree source files, a device tree node label to "debug" UART is renamed to 'uart9' according to the naming found in Linux. Signed-off-by: Vladimir Zapolskiy --- arch/arm/dts/dragonboard845c.dts | 2 +- arch/arm/dts/sdm845.dtsi | 25 +++++++++++++++---------- arch/arm/dts/starqltechn.dts | 2 +- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/arch/arm/dts/dragonboard845c.dts b/arch/arm/dts/dragonboard845c.dts index 1722dce33ff2..b4f057ac6537 100644 --- a/arch/arm/dts/dragonboard845c.dts +++ b/arch/arm/dts/dragonboard845c.dts @@ -21,7 +21,7 @@ }; aliases { - serial0 = &debug_uart; + serial0 = &uart9; }; memory { diff --git a/arch/arm/dts/sdm845.dtsi b/arch/arm/dts/sdm845.dtsi index 92bdc82177d6..3b86b9328fc6 100644 --- a/arch/arm/dts/sdm845.dtsi +++ b/arch/arm/dts/sdm845.dtsi @@ -51,16 +51,21 @@ }; }; - debug_uart: serial@a84000 { - compatible = "qcom,geni-debug-uart"; - reg = <0xa84000 0x4000>; - reg-names = "se_phys"; - clock-names = "se"; - clocks = <&gcc GCC_QUPV3_WRAP1_S1_CLK>; - pinctrl-names = "default"; - pinctrl-0 = <&qup_uart9>; - qcom,wrapper-core = <0x8a>; - status = "disabled"; + qupv3_id_1: geniqup@ac0000 { + compatible = "qcom,geni-se-qup"; + reg = <0x00ac0000 0x6000>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + uart9: serial@a84000 { + compatible = "qcom,geni-debug-uart"; + reg = <0xa84000 0x4000>; + clock-names = "se"; + clocks = <&gcc GCC_QUPV3_WRAP1_S1_CLK>; + pinctrl-names = "default"; + pinctrl-0 = <&qup_uart9>; + }; }; spmi@c440000 { diff --git a/arch/arm/dts/starqltechn.dts b/arch/arm/dts/starqltechn.dts index 34a4f59cbd17..dcbc3b6d4966 100644 --- a/arch/arm/dts/starqltechn.dts +++ b/arch/arm/dts/starqltechn.dts @@ -21,7 +21,7 @@ }; aliases { - serial0 = &debug_uart; + serial0 = &uart9; }; memory {