From patchwork Fri Mar 24 00:40:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 666547 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp237035wrt; Thu, 23 Mar 2023 18:58:04 -0700 (PDT) X-Google-Smtp-Source: AKy350ZtncrrDLUp/4R2Da8TPx7MUuxdDErxsPQNw3I3nQYLgO85G5x/Vru1L0MKIqoj+DcAz0fV X-Received: by 2002:a17:902:cad5:b0:1a1:c98c:bd4d with SMTP id y21-20020a170902cad500b001a1c98cbd4dmr704810pld.38.1679623084355; Thu, 23 Mar 2023 18:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679623084; cv=none; d=google.com; s=arc-20160816; b=JtP5nGH6punald5gSRXP/Z3g65REToewCLCi8Rt53oUPwA8gjREMPSiQ+TMcX8N1OX vNIULV6CdBeb6j/1o/RjlqNADpbXVcAhsEYLkbq+StfdbC1o8k4pMgud/HwPB5goBjaw CTddJchQCHXj5YaCw6ajrmoH3CjsBU2ZCfyzs/zhzxzPwsbDrz9uCWsVV5xG4DZdpQDH QsrKlkp90KVnSjLamEjVDz54LDHwwQPQYBTTMm0r+C6eNHxfhw0XVZMk8m7D5BnAKSuA o/VHd34xYHnrkwrJuKy2dipk25LjF3rnFTWaHnFSnVu+7d9/FX2SNFBazIrnperjSh1E erFA== 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=V4GKtaJyBt4LMKozmGMAKfwPHd/XKniukae36FoeEP0=; b=B0N6Goagxf2r8vWCXAcwKq1ZY4fyJg4KAg7BdH71ovixLwmSGgH7ALGwrm/3vFSwFY jzL8r4PI9P4BN1/1/216oV8A2eKS4ir9atR1y8YBkVlJOkluWtBrKkYcwCeIrb8WWix/ ZRvAX8nOAGS1sk/rvAsDTwaDDON6pa7UWt6lfNCUw4uzY6Ak9G/e32osBFH0cQGP/w9q DI0zuMCA18LlA2nPt23AhSI1Id1D1BgqW1yBurPRIwZaZY+5C3T/mfAM1ZsOsDsiATt6 XkhICOHz0qRGyu6goDvQHfHASTB2JZ8LoGXX+T3SrspTTjXkgP0W+3mgImC5bB8dg2Mo l34A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZrXXKM3Q; 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 134-20020a63028c000000b0050fa029676fsi9418803pgc.774.2023.03.23.18.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 18:58:04 -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=ZrXXKM3Q; 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 31EB985D8D; Fri, 24 Mar 2023 02:56:55 +0100 (CET) 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="ZrXXKM3Q"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 67C7885723; Fri, 24 Mar 2023 01:40:55 +0100 (CET) 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 B0690859D6 for ; Fri, 24 Mar 2023 01:40:52 +0100 (CET) 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-x133.google.com with SMTP id g17so192257lfv.4 for ; Thu, 23 Mar 2023 17:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679618451; 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=V4GKtaJyBt4LMKozmGMAKfwPHd/XKniukae36FoeEP0=; b=ZrXXKM3QGe2cVhMh5H9LxN/1GQEWc/BYqTBUwLrWqTVGSOpTChk6RGaQ06ahM17gNB rq4d5C4kOZI08uKb2f8RbiT4Q7JmezkP4G9h45Yi8allr429r+YHb1trxC1lJ8SUbmHi v2zPfa/WZp3hQGTkFlLTfk7/yIfvoSrxbLshiaqsazh0yNA5C2LQef1JHbVaypdjr8iw i+yOYnx/qzXmPMzZlQmEmMfIocClkQ3KUKOobhaYvFVu+teSU6n5n5wE04QtVIfv1iB7 M5thPxYrV8+bBDdBkMX99TT2Lkzaw7o7KK9AlcYsgcybGy1u9VTvx36xsLbz0JnpE3Ux 1SAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679618451; 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=V4GKtaJyBt4LMKozmGMAKfwPHd/XKniukae36FoeEP0=; b=w6jz/+7Q1EFURlKR/XZLzP6jxDlXbNIDdksxr1nkZSb7H2pES3EkJLlya1GavOrlrY wGP8zpB37oPq9pVTXMb1aFqc47UwTm5BTvf/wbxMlsEx8I+2PP1REe4QZuCdO24lg7f3 qWtCXG4ex+jYK4fnU5obrZKZ+898AfNADvl96dc3XsGGszKX5UXkMSw6O+BKU0xY/GZm xRlBL0AJbzpB61wVLT9uXIPEt7jsBlpGwqaM0n8+GNh9Xoh4F5IC7nUzrB8pqeWUTWEn 9mIsM5JuUfvWpUyz6qBMPSlVECYbsZm4h+NG5phDADfFNXsSk3pj2VRlBwBB7ff/GVse 24gQ== X-Gm-Message-State: AAQBX9djVOA7R1Y22X6XU/AYWRTwi4N0eRRtZNL70ZCmiiZaerf2F2Yk 61MQatAZEGCFP+Q23jRkiNHWoxTfmWwGjUMe/U4= X-Received: by 2002:a05:6512:4003:b0:4e7:ff1c:6030 with SMTP id br3-20020a056512400300b004e7ff1c6030mr2271494lfb.15.1679618451801; Thu, 23 Mar 2023 17:40:51 -0700 (PDT) Received: from localhost.localdomain (abxj225.neoplus.adsl.tpnet.pl. [83.9.3.225]) by smtp.gmail.com with ESMTPSA id n22-20020a195516000000b004eafac09d8esm515579lfe.240.2023.03.23.17.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 17:40:51 -0700 (PDT) From: Konrad Dybcio To: u-boot@lists.denx.de Cc: Bhupesh Sharma , Konrad Dybcio , Dzmitry Sankouski , Ramon Fried , Sumit Garg Subject: [PATCH 6/7] serial: msm_geni: Use upstream Linux bindings Date: Fri, 24 Mar 2023 01:40:39 +0100 Message-Id: <20230324004040.572525-6-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230324004040.572525-1-konrad.dybcio@linaro.org> References: <20230324004040.572525-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 24 Mar 2023 02:56:41 +0100 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 ++-- drivers/serial/serial_msm_geni.c | 6 ++++-- 2 files changed, 6 insertions(+), 4 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/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",