From patchwork Fri Apr 21 17:50:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 675863 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp988861wrs; Fri, 21 Apr 2023 10:50:56 -0700 (PDT) X-Google-Smtp-Source: AKy350blWYFuOZfIH8BphVsTWLItjnByrSv+CDmIpfEV9z3e5mPyHZ/ElRa/v0p9r12Yrhw97d3t X-Received: by 2002:a17:90a:950e:b0:23d:1b50:1ebe with SMTP id t14-20020a17090a950e00b0023d1b501ebemr6143565pjo.27.1682099456192; Fri, 21 Apr 2023 10:50:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682099456; cv=none; d=google.com; s=arc-20160816; b=Q8DGWOPtZQG1y3W/X3AqmJQC0Lwflz9EcdL4W6cw89kY47qPolTOuO0ZUFrw/dr5oL l3257uXNjQ9AO7zRxZL2qOn/HuDK0v91WwQvtUlEQfCsoe4Rl0ekOfsdEPeBKEUT8SJK N1mblxWR6vPaqNXC0vGXOxvgZLtJi2BUckF/WgpP5Mv1Ft/zUrG9r+FOd9x9UecaB9Jx Xm/66RXgqQshI89roBGMJra4HYKCR1zbcC+CcmkaYEWJStlzZymR0dgwxKsqenZSnM0F fUTwxsoFO5PvdDZAW+epzMMDS5pE9KChX1pXOUkTD/6Ts0D8qF8Op2+BWUngh/QfqnKz CQ/Q== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=w62Mr0msIsP2Q/jMqezdXAMJyQBL6thg3waQkt/T9u8=; b=REAT0bpDPnOzAAEfxHqfyf084uIaqJmLaX/u/f2vDL6rbj55aOQdp8VezRYiFJReVV izJ3kBmx0etIOpWsT45C/jiXh3T/Ni1wahwjcgpOiMz5IIWuUSxBcVH/sMuZi9Exr68G I1NdlH+VF658aNkuAPO70NBIhFVi6DLPuuEHdUoyehmdks2m6ipqq/7n0g/qJLFQtUel vAfLiwF4JwJ60smF0vqaRJUdp+5rtFf0Cf/WYXvSktYr0wKw0F5tR5cwJ85yANBHXVX3 l9qv03IKQO4GPvVRY9iYY9aNVnMH7Njz0DI9XSAKNygL89cGMHNT22kRqqO/lOEIJbJv r1hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bx9jyXSl; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 23-20020a17090a0c1700b002477fad79d5si7321652pjs.63.2023.04.21.10.50.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 10:50:56 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bx9jyXSl; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 6BCC88635C; Fri, 21 Apr 2023 19:50:49 +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="bx9jyXSl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id ABCCC86369; Fri, 21 Apr 2023 19:50:47 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) (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 583DA86356 for ; Fri, 21 Apr 2023 19:50:45 +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-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2a8a4cbe473so883101fa.1 for ; Fri, 21 Apr 2023 10:50:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682099444; x=1684691444; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=w62Mr0msIsP2Q/jMqezdXAMJyQBL6thg3waQkt/T9u8=; b=bx9jyXSluk3Fcrv9akPpS50SFdH+0JTJjreyrBlLnIzUl/pRHyAbew/GHwEelfpviw 2lk2NdgAEMDNZZtO8zeFffeJrd4RXLQnk4BsL5p77mxo6VOey4MHfwmNf3uuumczKnHh 9wOuE9xdUWdHPbn8YiQihiZ2ZF1mZ3enTokhn5CT4eZI/4fTvyb3z7LVa8IG8eL/Y2A9 tV5NIiC/2nFAGLkrG2VLL7zEuqgpV4plBKdiuhKjsxtQm/fEDWdc0mKPoKsrWo4AxVuc ml451ncuD3YwMwiZShhVJmIgvfCW4rKOO3IBDPZ6bvAlJVaUjF4qSUpDRC/aZLTnWWzX qKJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682099444; x=1684691444; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w62Mr0msIsP2Q/jMqezdXAMJyQBL6thg3waQkt/T9u8=; b=Ijo//XxIIXQUK6kmM6mib60wLvekZ5EX+DGL6FcoxEkx59194+nYo22Tiz2XIsmmzE WBbEzxtehMnvO5STmEBi2avPWvo8SpawYrKHvU7atQYnaunVsYrUcZbcZVGWGo4KIDMG XR6ZPIfWosMiJDtEiqvsxHP72pMAenFAz9q8gPjTbGmo+392sWEq/21U5gYrYwxyz+nI 5pwc2rdrzTQYHZ9biuPAlaFtyfzKK2Q1Vtuvay9Tj5b934yGg9+Uuts638Ihd4Lhrssc 8E1mWhuhrlOd50GID/uZPEYChVR8fHZYBWmIzGkQa77Qp/IrjPs/RZVOYhqDS8aIKnbl NlHw== X-Gm-Message-State: AAQBX9fNb9K6GzFgCzuKtxByONqPZiDF6+KzuuXOV79bfK3PHtO+Zs2V /i2IWd5LBJcBP9DOyw7R5nsCQA== X-Received: by 2002:a2e:2a05:0:b0:2a9:efdb:4188 with SMTP id q5-20020a2e2a05000000b002a9efdb4188mr1331399ljq.3.1682099444362; Fri, 21 Apr 2023 10:50:44 -0700 (PDT) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id u24-20020a2e8558000000b002a7aa25c3b6sm674256ljj.88.2023.04.21.10.50.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 10:50:43 -0700 (PDT) From: Vladimir Zapolskiy To: Tom Rini , Simon Glass , Ramon Fried , Dzmitry Sankouski Cc: Konrad Dybcio , Bhupesh Sharma , u-boot@lists.denx.de Subject: [PATCH v3 0/9] serial: msm-geni: fix UART baudrate on modern platforms Date: Fri, 21 Apr 2023 20:50:32 +0300 Message-Id: <20230421175041.275566-1-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 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 The changeset touches Qualcomm platforms, it adds a new quite trivial misc wrapper driver to be accessed by GENI UART to get information about a proper clock divisor. The change does not intend to break any currently supported Qualcomm platforms, there should be no need to update board config or dts files. Changes from v2 to v3: * fixed return value of misc_read() from the new GENI SE QUP driver, thanks to Simon for the review comment. Changes from v1 to v2: * fixes according to the code review by Konrad, * added two changes developed by Konrad to the series, * removed .bind from the GENI SE wrapper driver, * minor fix in MSM GENI serial driver Kconfig to match the new changes, * changed dts files of SDM845 powered boards by adding GENI SE wrapper. Konrad Dybcio (2): serial: msm-geni: Always bind before relocation serial: msm-geni: Use upstream Linux bindings Vladimir Zapolskiy (7): misc: add Qualcomm GENI SE QUP device driver serial: msm-geni: remove redundant includes serial: msm-geni: remove invalid se-clk clock name serial: msm-geni: fix code indentation serial: msm-geni: fix a compile time warning from msm_serial_setbrg() serial: msm-geni: correct oversampling value based on QUP hardware revision arm: dts: msm: add GENI SE QUP device tree node arch/arm/dts/dragonboard845c.dts | 2 +- arch/arm/dts/sdm845.dtsi | 25 ++++--- arch/arm/dts/starqltechn.dts | 2 +- .../serial/msm-geni-serial.txt | 2 +- drivers/misc/Kconfig | 7 ++ drivers/misc/Makefile | 1 + drivers/misc/qcom-geni-se.c | 41 ++++++++++++ drivers/serial/Kconfig | 2 + drivers/serial/serial_msm_geni.c | 65 ++++++++++++++----- 9 files changed, 116 insertions(+), 31 deletions(-) create mode 100644 drivers/misc/qcom-geni-se.c