From patchwork Mon Mar 27 10:45:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 667391 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp1029550wrt; Mon, 27 Mar 2023 03:47:02 -0700 (PDT) X-Google-Smtp-Source: AKy350ahWhaPQ0CqsfKrqDhjdWDDWnTozTT8MyrWa3jzZ3wG4JhFpCjxdY5gF5NJrtEehBURSSAS X-Received: by 2002:aa7:991e:0:b0:625:d9ec:51c8 with SMTP id z30-20020aa7991e000000b00625d9ec51c8mr10778304pff.22.1679914022480; Mon, 27 Mar 2023 03:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679914022; cv=none; d=google.com; s=arc-20160816; b=H/96SXjpJXEoIAtMCgU+IV9PkvAGTHgSp1owIcEa7GOeTtRKeATsrIiYQJARodmYFo 0dmx2JX6zldKIs5rpNqiaYMO89IVjJm5YAjaR0xyUADQGLgRchv3lQaYJ90dgmizBhzv mtt5+af/IxFNPSWusdHh4ZD2zxjw16N7bbyB8XPg3zIsYjKVHleSakI7+YSWYZmd/eKV T7tGU1aVToAtb7YbB2WeQ+ardrnegwtr6g+bLLs6EHDjEskyEaXAtypV86OQVTTXZrTu qZj+WEIsJsj5HuX/FEhnfTyGaL6b8ngeNROrKwVOC9Tqy+/7M6U4CmAD1+KB3jZtsbeo QgVQ== 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=J48hs/2WXs9gzuHwVT9+GFVsNO24xLj5sH4bMJBzsgQ=; b=h3OSm4cmfoNSJujjadGiSZNxYaTOdZhKigFU2KnILYLZOugH9qcwhr/IKQP8Kt/g97 uUQLqRMvFdUba4iPTDtrAaLnI8sqG+k1rrh9K0jbeJV2xXuKlXkAxIvAmQkAOKazsYlZ GKpyp/YOnQjHqyNDKYcYJ2gD5/Dc3v7nlpDNOFnOWX8tfVYN39tMHqZdbskZ3+ZjqRHv 1+B+a9Xrd2fggdLFeiSJ68SkDLJirlL/EkGeIbQfS3nQYiiTiatjlUPS8i1B67NUHzpB sgiRAcKy8uHjPwDXkRfFfTY31MqP6Q6UuCl//YC7dY32Q4GvSqQ/OMF7HrsGxeQxK0gp msTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fiO5050+; 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 j6-20020a056a00174600b005e1cabb612fsi28129920pfc.67.2023.03.27.03.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:47:02 -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=fiO5050+; 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 789C0860AC; Mon, 27 Mar 2023 12:46:29 +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="fiO5050+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 699F485C5F; Mon, 27 Mar 2023 12:45: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-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (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 2C06986070 for ; Mon, 27 Mar 2023 12:45:15 +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-lf1-x135.google.com with SMTP id c9so358298lfb.1 for ; Mon, 27 Mar 2023 03:45:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679913914; 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=J48hs/2WXs9gzuHwVT9+GFVsNO24xLj5sH4bMJBzsgQ=; b=fiO5050+mSil09u/mdByJlB/6Fe5dxVClPO39mZKhD9qisxKDmm88vTM2hLgNBWzCI PBh6O/+RF3i8s+u+gncw3bszozV37u5BvrxFZV46zLKB2G6vC0cgj9xU4R57xDbOEcJr VFm2odA27jePhF3b+4NnzRd5PWDTm0ouOJOFNP3MBujnaYVp1Zs21kX5t7VVZ1P3ea36 m6vjZeBQ/qCrTpvKTyH6aO+pc6ZU7whkouv4LVV1YMPjbMUItV1Ge+qk8/aavsE/Cp0f ZGt92bTDfgBW9HFlJP/zhwQjnRxJ3Jxn6UB2pPua8pm/N9ERNTx8hEmgYDQXAmobiLaY K/sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679913914; 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=J48hs/2WXs9gzuHwVT9+GFVsNO24xLj5sH4bMJBzsgQ=; b=yyoK759B+4PoZGjJN3g2a4lAwegu60qJCEUQtTzNtX0HbLwOEkvSvr2sfRRlPUYr0I fN2C4EUE2KpE9zBxlhYw977IQ8ToLz7T8SZToVDCmKgoGtuw7ZbCXWvepLSdEoeaahzr hqfzCV7RlaGRgnc8AQxsu2bHv8EDf9j+QN2BSqfA7Cqcg/i+zoIpTz++nG8EnaW58zBG ey9o3VNDcGu81ihJrRrPDno/lwG2ZKbADuMROacjBDnyL5h+0mGMCoanzhe14fijwW11 Q7xCL9vzoEEgJr8fqj6tbW2rCeLMlifl/9yLQMDvN1Yz/sRxkk5Mjd/Q7oijFcQH4xDi KWEA== X-Gm-Message-State: AAQBX9eA6W3navZZ/5ET7KQM+s07E330ssiYS4EcRRlVRwlymi+ZzYJ9 RLw99c+HtrBrpfh9T1FJbVoYE7bxB62zUBlgqF4= X-Received: by 2002:ac2:538f:0:b0:4b0:1305:6e02 with SMTP id g15-20020ac2538f000000b004b013056e02mr3561037lfh.8.1679913914504; Mon, 27 Mar 2023 03:45:14 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:45:14 -0700 (PDT) From: Konrad Dybcio Date: Mon, 27 Mar 2023 12:45:00 +0200 Subject: [PATCH v2 2/9] serial: msm: Match clocks through "clocks" property MIME-Version: 1.0 Message-Id: <20230327-qc_cleanups-v2-2-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=2926; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=WKpfJwWSBQi5UyjCtsZfsuMX/GhSTtA/tz1MIjY9ZYQ=; b=s01aiOx5WRhC2ddPZHSWrKksVK6bBNIeIaGyAbtpL0k7g7xZ2md2xhiIJ0seC0ADj/LmYPOB78mY WQnPc9XECET/Ph02DCfbDR8/NW9LqGQwDq9LdFRvwguHaqBHR22w 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 "clocks" is the standard property used in Linux, "clock" seems to be an U-Boot invention. Use the one that's more standardized. Signed-off-by: Konrad Dybcio --- arch/arm/dts/dragonboard410c.dts | 2 +- arch/arm/dts/dragonboard820c.dts | 2 +- arch/arm/dts/qcom-ipq4019.dtsi | 2 +- arch/arm/dts/qcs404-evb.dts | 4 ++-- drivers/serial/serial_msm.c | 3 +-- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/arch/arm/dts/dragonboard410c.dts b/arch/arm/dts/dragonboard410c.dts index 99391df13080..7ef2e779661a 100644 --- a/arch/arm/dts/dragonboard410c.dts +++ b/arch/arm/dts/dragonboard410c.dts @@ -84,7 +84,7 @@ serial@78b0000 { compatible = "qcom,msm-uartdm-v1.4"; reg = <0x78b0000 0x200>; - clock = <&clkc 4>; + clocks = <&clkc 4>; pinctrl-names = "uart"; pinctrl-0 = <&blsp1_uart>; }; diff --git a/arch/arm/dts/dragonboard820c.dts b/arch/arm/dts/dragonboard820c.dts index 9c234d81c1ee..d381d7fb9fdf 100644 --- a/arch/arm/dts/dragonboard820c.dts +++ b/arch/arm/dts/dragonboard820c.dts @@ -78,7 +78,7 @@ blsp2_uart2: serial@75b0000 { compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; reg = <0x75b0000 0x1000>; - clock = <&gcc 4>; + clocks = <&gcc 4>; pinctrl-names = "uart"; pinctrl-0 = <&blsp8_uart>; }; diff --git a/arch/arm/dts/qcom-ipq4019.dtsi b/arch/arm/dts/qcom-ipq4019.dtsi index 6edc69da6747..dee3159e5893 100644 --- a/arch/arm/dts/qcom-ipq4019.dtsi +++ b/arch/arm/dts/qcom-ipq4019.dtsi @@ -87,7 +87,7 @@ blsp1_uart1: serial@78af000 { compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; reg = <0x78af000 0x200>; - clock = <&gcc GCC_BLSP1_UART1_APPS_CLK>; + clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>; bit-rate = <0xFF>; status = "disabled"; u-boot,dm-pre-reloc; diff --git a/arch/arm/dts/qcs404-evb.dts b/arch/arm/dts/qcs404-evb.dts index d973aa13169c..5ed147415661 100644 --- a/arch/arm/dts/qcs404-evb.dts +++ b/arch/arm/dts/qcs404-evb.dts @@ -219,8 +219,8 @@ debug_uart: serial@78b1000 { compatible = "qcom,msm-uartdm-v1.4"; reg = <0x78b1000 0x200>; - clock = <&gcc GCC_BLSP1_UART2_APPS_CLK>, - <&gcc GCC_BLSP1_AHB_CLK>; + clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; bit-rate = <0xFF>; pinctrl-names = "uart"; pinctrl-0 = <&blsp1_uart2>; diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c index a22623c316ed..9c370cac323f 100644 --- a/drivers/serial/serial_msm.c +++ b/drivers/serial/serial_msm.c @@ -166,8 +166,7 @@ static int msm_uart_clk_init(struct udevice *dev) struct clk clk; int ret; - ret = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(dev), "clock", - clkd, 2); + ret = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(dev), "clocks", clkd, 2); if (ret) return ret;