[PATCH 6/7] serial: msm_geni: Use upstream Linux bindings
Konrad Dybcio
konrad.dybcio at linaro.org
Fri Mar 24 10:35:43 CET 2023
On 24.03.2023 07:13, Sumit Garg wrote:
> On Fri, 24 Mar 2023 at 06:10, Konrad Dybcio <konrad.dybcio at linaro.org> wrote:
>>
>> 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 <konrad.dybcio at linaro.org>
>> ---
>>
>> 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 at a84000 {
>> - compatible = "qcom,msm-geni-uart";
>> + compatible = "qcom,geni-debug-uart";
>
> With this the custom u-boot DT bindings [1] becomes redundant, we
> should remove that as well.
>
> [1] doc/device-tree-bindings/serial/msm-geni-serial.txt
Ack!
Konrad
>
> -Sumit
>
>> 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",
>> --
>> 2.40.0
>>
More information about the U-Boot
mailing list