From patchwork Mon Mar 27 10:45:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 667388 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp1029276wrt; Mon, 27 Mar 2023 03:46:19 -0700 (PDT) X-Google-Smtp-Source: AKy350azBkDdddt8OB4MEbWlzmOWcO2dmLyQcapD1WKnhT+3K1doS5n+rAzEJwvRCfAofDHW6t6c X-Received: by 2002:a17:903:22cb:b0:19e:2eb5:712d with SMTP id y11-20020a17090322cb00b0019e2eb5712dmr12438497plg.25.1679913979282; Mon, 27 Mar 2023 03:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679913979; cv=none; d=google.com; s=arc-20160816; b=lys3mSuoQcmxTwVgsoaJXCo0piVe1PSkAcxwhH9yCd22wz9NR2KyNF8754r7TmWPNQ s1fFcIeFs9C/XNJuQv451jN2yUS43mHQDVvrBgA61TZLfpdmywIircTNAy2edIsbGc7Z w0mqBh6MiYwZ5zKQN58VOwQ+bL6kcMW+nD56zB3tIQk66gFxfw7EV04KWWZma+P4lIBo VBiwUHOxQ/oSO2bj2cc6BmXw47upCF+7NasfOMVGhKhqdcs7NWi6soGfUZssnSrnX2ky bsQ0F3hRQpFrcZ6joD1tuVfYDvwTgjFq/rc/B0XoUlYu+CYGZIJv4SQO6dBqCVnI/80V fB4g== 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:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=hHG8ySL9CCliEjTYQlIuuuDt8hzTvXI9Alf4E3CVEAQ=; b=e7pFNL9YyyI4tXRvZyLDLryTSDFMLl3J8ZLMSNRTu44vYAXe8l9IyDxmOG70H1QcJE rlCEtTjptgrV2V5wVpOMrmLCpeOjelUBjhWYcmU772cPDJcna85gdCUfWPwLngmqauHl Jzu6lpC5IPkRl0W2JPHrIF+T26uAqW8c+zH6iqHJxbc7vNjDg5ge4f9/ZeX5IbgE1Ste USFV0/N0sLhCIEs0x/UwbU9u0Qum0/cP57O2g2rMDwt/Ugh+O1b8Ct0IiLFOLkpgUW7b 9Tznm5UIF3C7Hp4eyEr9cOBuWq1JKuK9G0Els+mHt7iIWGhrmUxPXS3/vFYv4L+wKCI4 /VqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RtNjEc29; 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 n9-20020a170902e54900b001a04b42c4bcsi27957194plf.412.2023.03.27.03.46.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:46:19 -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=RtNjEc29; 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 1D3A885D13; Mon, 27 Mar 2023 12:46:14 +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="RtNjEc29"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D807B86075; Mon, 27 Mar 2023 12:45:28 +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-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) (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 293A486081 for ; Mon, 27 Mar 2023 12:45:16 +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=konrad.dybcio@linaro.org Received: by mail-lj1-x235.google.com with SMTP id s20so8472740ljp.1 for ; Mon, 27 Mar 2023 03:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679913915; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hHG8ySL9CCliEjTYQlIuuuDt8hzTvXI9Alf4E3CVEAQ=; b=RtNjEc29sPi8fQwAiTJXUTXiEQMVzog5XH456+tIY1i9DTnZ7RiAdgQ4JsuDwX6/dG zDhFg3fVYTfwsiBsyp8U6+pJyEt3FeyhrObShmvPgaZG8YNk06qheNKTYgOiay4V/EXk pUwsHFO3INxFKyTgTZv06d7rlO0qGHJCIMfwgCaBIH0pTxBmjd14cWkwo39zV7ou8kbX plLs9wf3Tv352zNXRDwcWLUMUglJRe+1ZjjdSq4X500PSvofek5xAJZB8mhdXgLOGq4y bY9LKyQM2Hafp6+Dv2xSq+RkNRwrzZHZ3kEsSCSQWtId27TGQ8o7EJHh+Ke2KMGSQiDu 8J3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679913915; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hHG8ySL9CCliEjTYQlIuuuDt8hzTvXI9Alf4E3CVEAQ=; b=wmSoJ0W/4P/aBui9aKZJ8/usar08e0GLyS4TIp6ZFMMakZVMzN1DE/8KAY5cahXBTI cgXN6RdlKOWGlW7o4UX860R/9ki8Q9jH1RbbYlzyq7UXmFikYJiwstX7TNkNg2gUO2m2 ZswBqiJl2YEDHCOpi3Jgxmbd4Ay3ioIk/yhpaPfUYmkPwATRIdhP6ZoSktEspcPP9Bq2 sC6EcumWn9QnUeKQSsgZmwvMgyb9xcoG7ADe+S7wngj4M7URlcktsxLXogxOk5hvih5N HK4k3pkP9TjyDvO0YnhamUVorhElxDLw4o7u2/AzFLP3CZrUdfrmTN8oIZjMjK8JCeWs Yp5w== X-Gm-Message-State: AAQBX9corcxB+g1nVphkMIdtx56rFa+DHD1zqoQcyLtXYzdXXwB+AKRh c6DTwGcslrUr1WegH0CZKS1MaA== X-Received: by 2002:a2e:9254:0:b0:2a2:3bd6:bc83 with SMTP id v20-20020a2e9254000000b002a23bd6bc83mr3320973ljg.23.1679913915585; Mon, 27 Mar 2023 03:45:15 -0700 (PDT) Received: from [192.168.1.101] (abxj225.neoplus.adsl.tpnet.pl. [83.9.3.225]) by smtp.gmail.com with ESMTPSA id y22-20020a2e95d6000000b0029bfcbeac09sm3715904ljh.41.2023.03.27.03.45.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:45:15 -0700 (PDT) From: Konrad Dybcio Date: Mon, 27 Mar 2023 12:45:01 +0200 Subject: [PATCH v2 3/9] serial: msm_geni: Use upstream Linux bindings MIME-Version: 1.0 Message-Id: <20230327-qc_cleanups-v2-3-9a80cc563c76@linaro.org> References: <20230327-qc_cleanups-v2-0-9a80cc563c76@linaro.org> In-Reply-To: <20230327-qc_cleanups-v2-0-9a80cc563c76@linaro.org> To: Ramon Fried , Peng Fan , Jaehoon Chung , Mark Kettenis , Sumit Garg Cc: Bhupesh Sharma , Dzmitry Sankouski , Marijn Suijten , u-boot@lists.denx.de, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1679913910; l=2338; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=g2mQT8MbgTIw021nCuPsTS0yEpYG+wadWPnYAD/q+bE=; b=Himt8RIITf4T75U54sZriDLuXaN+aM7eZZcI3icoX6yigboy/b687GNvHmmzK0NY7RJl2Y2PdCAq L2fLOd9XB70JPick5HupenQBMxhSyNva3d8g/sL7IyIGOBURamZ+ X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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 name "se" is used in upstream Linux device trees and has been for ages, long before this U-Boot-ism was introduced. Same goes for the existing compatible. Get rid of that. Signed-off-by: Konrad Dybcio --- arch/arm/dts/sdm845.dtsi | 4 ++-- doc/device-tree-bindings/serial/msm-geni-serial.txt | 2 +- drivers/serial/serial_msm_geni.c | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/sdm845.dtsi b/arch/arm/dts/sdm845.dtsi index 607af277f8be..92bdc82177d6 100644 --- a/arch/arm/dts/sdm845.dtsi +++ b/arch/arm/dts/sdm845.dtsi @@ -52,10 +52,10 @@ }; debug_uart: serial@a84000 { - compatible = "qcom,msm-geni-uart"; + compatible = "qcom,geni-debug-uart"; reg = <0xa84000 0x4000>; reg-names = "se_phys"; - clock-names = "se-clk"; + clock-names = "se"; clocks = <&gcc GCC_QUPV3_WRAP1_S1_CLK>; pinctrl-names = "default"; pinctrl-0 = <&qup_uart9>; diff --git a/doc/device-tree-bindings/serial/msm-geni-serial.txt b/doc/device-tree-bindings/serial/msm-geni-serial.txt index 9eadc2561b4b..eaa39c949b10 100644 --- a/doc/device-tree-bindings/serial/msm-geni-serial.txt +++ b/doc/device-tree-bindings/serial/msm-geni-serial.txt @@ -1,6 +1,6 @@ Qualcomm GENI UART Required properties: -- compatible: must be "qcom,msm-geni-uart" +- compatible: must be "qcom,geni-debug-uart" - reg: start address and size of the registers - clock: interface clock (must accept baudrate as a frequency) diff --git a/drivers/serial/serial_msm_geni.c b/drivers/serial/serial_msm_geni.c index 3943ca43e49e..6c9371c4e69d 100644 --- a/drivers/serial/serial_msm_geni.c +++ b/drivers/serial/serial_msm_geni.c @@ -189,7 +189,7 @@ static int geni_serial_set_clock_rate(struct udevice *dev, u64 rate) struct clk *clk; int ret; - clk = devm_clk_get(dev, "se-clk"); + clk = devm_clk_get(dev, "se"); if (!clk) return -EINVAL; @@ -554,7 +554,9 @@ static int msm_serial_ofdata_to_platdata(struct udevice *dev) } static const struct udevice_id msm_serial_ids[] = { - {.compatible = "qcom,msm-geni-uart"}, {}}; + { .compatible = "qcom,geni-debug-uart" }, + { } +}; U_BOOT_DRIVER(serial_msm_geni) = { .name = "serial_msm_geni",