From patchwork Fri Apr 21 17:50:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 675870 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp989480wrs; Fri, 21 Apr 2023 10:52:32 -0700 (PDT) X-Google-Smtp-Source: AKy350bglh+yLyhDrKZutZM8oouGbRyUpPZs4cU9LRLN08iQOPCc8wOd+TYWN/ZUR09EhN3Y/SlH X-Received: by 2002:a05:6a21:6d81:b0:ef:85a6:464d with SMTP id wl1-20020a056a216d8100b000ef85a6464dmr9028547pzb.13.1682099551739; Fri, 21 Apr 2023 10:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682099551; cv=none; d=google.com; s=arc-20160816; b=RnziMM+PcS3oJufxvlCK9Cb6SBwYWMpNqwIcQXGn3Ngbl4+oxxBla+Ns1u5qArPVcm ssO0j7KKRVRSRXtegcoQ1UtcVM/dFc/Z7FRP0Gd+EmpK1GP3Y5/I+/EVWAiYNx0CjhMu oQFUMg/Ig2xjKJvZau2dSii3QC9KUx/gng38Gs0Q9ryv2r7shhdr/VsvPrxjBLCkgZ97 iQBaZHW+gKI/wbMeJHemr88BRaJnROq8hnIyH2qzHTf0XjwnOnDZ4LXVcD7gjAIcrAzE F11yY2eGub7jNp7zo7BjCoONklu/2SqG4v2VN6Zcph5IBfHC52nVMc985dgGKaUIbN5e FOsw== 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=clCMELQO5CTC9bl0ZZC/QKbDsRxs5YKUO3QyeP4FEyI=; b=LJnJ8b5vZZenHQiyb3AMeaSqTaxOl0UnRZrMm4ctkCN+pUmFBHtRmj7s9UX1ZCi2ER IRz8sYoyvPb3JWkHRePWb9HZoHIXc2HQLToOz5t7KwN0bBsOHecs5pPEfnDRbJ0OLSOG O07ZriOkhQtaPNcU7OlM4yn+FflZFNGtTkuAvw8d4/WmMAwuaSgU9UgVOdyKza+mI3mw zD4T8T2jgJixpCQxDTo1xFR/V2RplJhMg4jJYXQ56Msf8Mvf2zHIRvFyRf962GmX1Zmo FNpSiLxfca7Jct4vB9REj6oFOKbKQXWhhOKyFvdic5w8fj6y5tr5/1Rfg2iULW3LQd1c NaHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bNf1TSGu; 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 f16-20020a63f110000000b0051b1fe0b7besi4905201pgi.580.2023.04.21.10.52.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 10:52:31 -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=bNf1TSGu; 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 DED1F863D2; Fri, 21 Apr 2023 19:51:10 +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="bNf1TSGu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4BE1C863A6; Fri, 21 Apr 2023 19:50:56 +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-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) (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 ABE198639D for ; Fri, 21 Apr 2023 19:50:53 +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-x129.google.com with SMTP id 2adb3069b0e04-4eed7932605so184790e87.0 for ; Fri, 21 Apr 2023 10:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682099453; x=1684691453; 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=clCMELQO5CTC9bl0ZZC/QKbDsRxs5YKUO3QyeP4FEyI=; b=bNf1TSGuMAHH9hb/ngr8FRWvwrdNNs0E8uVoaTYUYM5R/PVjpVpOpf7VdmVDp9D8oH BW5UFMIlbN+KZTdkAFRGaCew/R3ULIn5JshMhRAHx60DTnw/mbc89y7Tlg53QzwMbE6c EraPhrSs6S8iqeowDwQO3Wo33ec36gIODvzkicjbR0Ofn3aNzUjt2mOry37/2aAFHLzD jECw3840X051U8yrMPrHeqcjGx0R1x3fjOh1uvBTgR3oH4CH5+Rl4Lj7er3cP/U4Cwhm mSRrvwWAj/Cjb+ntVJx+Oe236Acc22m5XmNg+A7lSdOjmGun0Iw9uechPw7kCwj4Rt5G Kzvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682099453; x=1684691453; 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=clCMELQO5CTC9bl0ZZC/QKbDsRxs5YKUO3QyeP4FEyI=; b=Gq9+FeJMKaLxF+PzQmPOOCU2Mxwe9rPFpv6FYXJTB1H8GbR8R7I4RHkQybUFHvxtfp ZidOMDm2O9K+U30t9cePQaNepysc9TUZ8FBt3ZgDqzOTaz1rx4ZDT8fsrFM454BOYjb3 pvwDfawxpFpRRkxf9JchjwdsyprJiPknrqUGBTMa92OTr/kM+wbR4+LXdeKOtAy1ekHm lQcsxgRB8048glNrnv7/hq3zrxyQnhRQ9djTnyY6vr4B5Kd2r898Pv/1OOAgeHPXXD5I x98iyZJXGH1OBUPWSP01MtccKHxOLtXnwRmhrSqwbLD6dPfik5Qg+PsMTocdbeaot6By +Ltg== X-Gm-Message-State: AAQBX9cnObEPm4ti5cjBUOx+MgAyhqIG9d9iCJ2PvVTnngzVVf+IowgE zTSwUiBRvgpC4nwLgolE+kYbTA== X-Received: by 2002:a2e:2205:0:b0:2a8:cfa9:a2b7 with SMTP id i5-20020a2e2205000000b002a8cfa9a2b7mr1363420lji.1.1682099452879; Fri, 21 Apr 2023 10:50:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 10:50:52 -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 7/9] serial: msm-geni: Use upstream Linux bindings Date: Fri, 21 Apr 2023 20:50:39 +0300 Message-Id: <20230421175041.275566-8-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230421175041.275566-1-vladimir.zapolskiy@linaro.org> References: <20230421175041.275566-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 From: Konrad Dybcio 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. [vzapolskiy: removed a ready change in the driver] Signed-off-by: Konrad Dybcio Signed-off-by: Vladimir Zapolskiy --- arch/arm/dts/sdm845.dtsi | 4 ++-- doc/device-tree-bindings/serial/msm-geni-serial.txt | 2 +- drivers/serial/serial_msm_geni.c | 4 +++- 3 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/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 3a200f45a6ce..29fae810d6fe 100644 --- a/drivers/serial/serial_msm_geni.c +++ b/drivers/serial/serial_msm_geni.c @@ -547,7 +547,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",