db410c: set clk node to be probed before relocation
PATCH 1/1 db410c: set clk node to be probed before relocation
The clock node is used by the serial driver and it's needed before relocation.
This patch ensures that the msm-serial driver can actually use the clock node.
--- arch/arm/dts/dragonboard410c.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/dts/dragonboard410c.dts +2 -0
@@ -38,12 +38,14 @@ #size-cells = <0x1>; ranges = <0x0 0x0 0x0 0xffffffff>; compatible = "simple-bus"; + u-boot,dm-pre-reloc; clkc: qcom,gcc at 1800000 { compatible = "qcom,gcc-apq8016"; reg = <0x1800000 0x80000>; #address-cells = <0x1>; #size-cells = <0x0>; + u-boot,dm-pre-reloc; }; serial at 78b0000 {
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
PATCH 1/1 db410c: set clk node to be probed before relocation
Quoted 15 lines · Ramon Fried
The clock node is used by the serial driver and it's needed before relocation.
This patch ensures that the msm-serial driver can actually use the clock node.Signed-off-by Ramon Fried <[email protected]>--- arch/arm/dts/dragonboard410c.dts | 2 ++ 1 file changed, 2 insertions(+)arch/arm/dts/dragonboard410c.dts +0
-0
arch/arm/dts/dragonboard410c.dts line 41
Quoted 4 lines
arch/arm/dts/dragonboard410c.dts +1
-0@@ -38,12 +38,14 @@ #size-cells = <0x1>; ranges = <0x0 0x0 0x0 0xffffffff>; compatible = "simple-bus"; + u-boot,dm-pre-reloc;
I think the intent is to make dm-pre-reloc legacy.
New platforms should be using "u-boot,dm-spl" even if CONFIG_SPL_BUILD is not enabled (I believe it should work)
Quoted 10 lines
arch/arm/dts/dragonboard410c.dts +1
-0clkc: qcom,gcc at 1800000 { compatible = "qcom,gcc-apq8016"; reg = <0x1800000 0x80000>; #address-cells = <0x1>; #size-cells = <0x0>; + u-boot,dm-pre-reloc; }; serial at 78b0000 {
PATCH 1/1 db410c: set clk node to be probed before relocation
Quoted 11 lines · Jorge Ramirez-Ortiz
Quoted 10 lines · Ramon Fried
The clock node is used by the serial driver and it's needed before relocation.
This patch ensures that the msm-serial driver can actually use the clock node.Signed-off-by Ramon Fried <[email protected]>---
arch/arm/dts/dragonboard410c.dts| 2 ++1 file changed, 2 insertions(+)
Quoted 24 lines
arch/arm/dts/dragonboard410c.dts line 41
Quoted 10 lines
arch/arm/dts/dragonboard410c.dts +1
-0@@ -38,12 +38,14 @@ #size-cells = <0x1>; ranges = <0x0 0x0 0x0 0xffffffff>; compatible = "simple-bus"; + u-boot,dm-pre-reloc;I think the intent is to make dm-pre-reloc legacy.
New platforms should be using "u-boot,dm-spl" even ifCONFIG_SPL_BUILDis not enabled (I believe it should work)Quoted 8 lines
arch/arm/dts/dragonboard410c.dts +1
-0clkc: qcom,gcc at 1800000 { compatible = "qcom,gcc-apq8016"; reg = <0x1800000 0x80000>; #address-cells = <0x1>; #size-cells = <0x0>; + u-boot,dm-pre-reloc; }; serial at 78b0000 {
another question is, how will you probe the clock driver before the uart? I think even if you probed in misc_init_f it is already too late.
other than that - + Peter Robinson's comments- looks good.
PATCH 1/1 db410c: set clk node to be probed before relocation
Quoted 41 lines · Jorge Ramirez-Ortiz
Quoted 13 lines · Jorge Ramirez-Ortiz
Quoted 11 lines · Ramon Fried
The clock node is used by the serial driver and it's needed before relocation.
This patch ensures that the msm-serial driver can actually use the clock node.Signed-off-by Ramon Fried <[email protected]>--- arch/arm/dts/dragonboard410c.dts | 2 ++ 1 file changed, 2 insertions(+)Quoted 26 lines
arch/arm/dts/dragonboard410c.dts line 41
Quoted 10 lines
arch/arm/dts/dragonboard410c.dts +1
-0@@ -38,12 +38,14 @@ #size-cells = <0x1>; ranges = <0x0 0x0 0x0 0xffffffff>; compatible = "simple-bus"; + u-boot,dm-pre-reloc;I think the intent is to make dm-pre-reloc legacy.
New platforms should be using "u-boot,dm-spl" even ifCONFIG_SPL_BUILDis not enabled (I believe it should work)Quoted 8 lines
arch/arm/dts/dragonboard410c.dts +1
-0clkc: qcom,gcc at 1800000 { compatible = "qcom,gcc-apq8016"; reg = <0x1800000 0x80000>; #address-cells = <0x1>; #size-cells = <0x0>; + u-boot,dm-pre-reloc; }; serial at 78b0000 {
Quoted 5 lines
another question is, how will you probe the clock driver before the uart? I think even if you probed in
misc_init_fit is already too late.other than that - + Peter Robinson's comments- looks good.
The clock is probed because the uart driver asks for it. it's actually already exists in the code, but wasn't used because
the clock wasn't set to dm-pre-reloc
PATCH 1/1 db410c: set clk node to be probed before relocation
Quoted 37 lines · Ramon Fried
Quoted 36 lines · Jorge Ramirez-Ortiz
Quoted 35 lines · Jorge Ramirez-Ortiz
Quoted 16 lines · Ramon Fried
The clock node is used by the serial driver and it's needed before relocation.
This patch ensures that the msm-serial driver can actually use the clock node.Signed-off-by Ramon Fried <[email protected]>--- arch/arm/dts/dragonboard410c.dts | 2 ++ 1 file changed, 2 insertions(+)arch/arm/dts/dragonboard410c.dts +0
-0arch/arm/dts/dragonboard410c.dts line 41
Quoted 4 lines
arch/arm/dts/dragonboard410c.dts +1
-0@@ -38,12 +38,14 @@ #size-cells = <0x1>; ranges = <0x0 0x0 0x0 0xffffffff>; compatible = "simple-bus"; + u-boot,dm-pre-reloc;I think the intent is to make dm-pre-reloc legacy.
New platforms should be using "u-boot,dm-spl" even ifCONFIG_SPL_BUILDis not enabled (I believe it should work)Quoted 8 lines
arch/arm/dts/dragonboard410c.dts +1
-0clkc: qcom,gcc at 1800000 { compatible = "qcom,gcc-apq8016"; reg = <0x1800000 0x80000>; #address-cells = <0x1>; #size-cells = <0x0>; + u-boot,dm-pre-reloc; }; serial at 78b0000 {
Quoted 8 lines
Quoted 5 lines
another question is, how will you probe the clock driver before the uart? I think even if you probed in
misc_init_fit is already too late.other than that - + Peter Robinson's comments- looks good.
The clock is probed because the uart driver asks for it. it's actually already exists in the code, but wasn't used because
the clock wasn't set to dm-pre-reloc
um, are you sure? that is not what I see during my tests but I could be wrong - or something else might be happening in uboot
you can create a misc_init_f for the board that retrieves the clock driver by name and forces a probe; I can see that the probe happens (ie, the DM_FLAG_ACTIVATED was _not_ set for that driver) which is not what I believe you expect since you want the clock driver to be probed before the uart.
Good news is that since misc_init_f runs before relocation you can check that GD_FLG_RELOC was not set either so it is indeed being probed before relocation (which makes sense after adding the reloc property).
maybe you can have a look?
PATCH 1/1 db410c: set clk node to be probed before relocation
Quoted 56 lines · Jorge Ramirez-Ortiz
Quoted 45 lines · Ramon Fried
Quoted 42 lines · Jorge Ramirez-Ortiz
Quoted 40 lines · Jorge Ramirez-Ortiz
Quoted 17 lines · Ramon Fried
The clock node is used by the serial driver and it's needed before relocation.
This patch ensures that the msm-serial driver can actually use the clock node.Signed-off-by Ramon Fried <[email protected]>--- arch/arm/dts/dragonboard410c.dts | 2 ++ 1 file changed, 2 insertions(+)arch/arm/dts/dragonboard410c.dts +0
-0arch/arm/dts/dragonboard410c.dts line 41
Quoted 4 lines
arch/arm/dts/dragonboard410c.dts +1
-0@@ -38,12 +38,14 @@ #size-cells = <0x1>; ranges = <0x0 0x0 0x0 0xffffffff>; compatible = "simple-bus"; + u-boot,dm-pre-reloc;I think the intent is to make dm-pre-reloc legacy.
New platforms should be using "u-boot,dm-spl" even ifCONFIG_SPL_BUILDis
not enabled (I believe it should work)Quoted 8 lines
arch/arm/dts/dragonboard410c.dts +1
-0clkc: qcom,gcc at 1800000 { compatible = "qcom,gcc-apq8016"; reg = <0x1800000 0x80000>; #address-cells = <0x1>; #size-cells = <0x0>; + u-boot,dm-pre-reloc; }; serial at 78b0000 {Quoted 8 lines
Quoted 5 lines
another question is, how will you probe the clock driver before the uart? I think even if you probed in
misc_init_fit is already too late.other than that - + Peter Robinson's comments- looks good.
The clock is probed because the uart driver asks for it. it's actually already exists in the code, but wasn't used because
the clock wasn't set to dm-pre-reloc
Quoted 7 lines
um, are you sure? that is not what I see during my tests but I could be wrong - or something else might be happening in uboot
you can create a
misc_init_ffor the board that retrieves the clock driver by name and forces a probe; I can see that the probe happens (ie, theDM_FLAG_ACTIVATEDwas _not_ set for that driver) which is not what I believe you expect since you want the clock driver to be probed before the uart.
It doesn't need to be probed before the uart, the uart is probed first and when it asks for the
clock node it's forcing a probe. it's tested.
Quoted 8 lines
Good news is that since
misc_init_fruns before relocation you can check thatGD_FLG_RELOCwas not set either so it is indeed being probed before relocation (which makes sense after adding the reloc property).maybe you can have a look?
PATCH 1/1 db410c: set clk node to be probed before relocation
Quoted 53 lines · Ramon Fried
Quoted 52 lines · Jorge Ramirez-Ortiz
Quoted 39 lines · Ramon Fried
Quoted 37 lines · Jorge Ramirez-Ortiz
Quoted 36 lines · Jorge Ramirez-Ortiz
Quoted 16 lines · Ramon Fried
The clock node is used by the serial driver and it's needed before relocation.
This patch ensures that the msm-serial driver can actually use the clock node.Signed-off-by Ramon Fried <[email protected]>--- arch/arm/dts/dragonboard410c.dts | 2 ++ 1 file changed, 2 insertions(+)arch/arm/dts/dragonboard410c.dts +0
-0arch/arm/dts/dragonboard410c.dts line 41
Quoted 4 lines
arch/arm/dts/dragonboard410c.dts +1
-0@@ -38,12 +38,14 @@ #size-cells = <0x1>; ranges = <0x0 0x0 0x0 0xffffffff>; compatible = "simple-bus"; + u-boot,dm-pre-reloc;I think the intent is to make dm-pre-reloc legacy.
New platforms should be using "u-boot,dm-spl" even ifCONFIG_SPL_BUILDis
not enabled (I believe it should work)Quoted 8 lines
arch/arm/dts/dragonboard410c.dts +1
-0clkc: qcom,gcc at 1800000 { compatible = "qcom,gcc-apq8016"; reg = <0x1800000 0x80000>; #address-cells = <0x1>; #size-cells = <0x0>; + u-boot,dm-pre-reloc; }; serial at 78b0000 {Quoted 8 lines
Quoted 5 lines
another question is, how will you probe the clock driver before the uart? I think even if you probed in
misc_init_fit is already too late.other than that - + Peter Robinson's comments- looks good.
The clock is probed because the uart driver asks for it. it's actually already exists in the code, but wasn't used because
the clock wasn't set to dm-pre-relocum, are you sure? that is not what I see during my tests but I could be wrong - or something else might be happening in uboot
Quoted 7 lines
Quoted 4 lines
you can create a
misc_init_ffor the board that retrieves the clock driver by name and forces a probe; I can see that the probe happens (ie, theDM_FLAG_ACTIVATEDwas _not_ set for that driver) which is not what I believe you expect since you want the clock driver to be probed before the uart.It doesn't need to be probed before the uart, the uart is probed first and when it asks for the
clock node it's forcing a probe. it's tested.
can you post a trace. just dump the value of GD_FLG_RELOC on clock the probe function.
PATCH 1/1 db410c: set clk node to be probed before relocation
Quoted 72 lines · Jorge Ramirez-Ortiz
Quoted 71 lines · Ramon Fried
Quoted 67 lines · Jorge Ramirez-Ortiz
Quoted 49 lines · Ramon Fried
Quoted 46 lines · Jorge Ramirez-Ortiz
Quoted 13 lines · Jorge Ramirez-Ortiz
Quoted 11 lines · Ramon Fried
The clock node is used by the serial driver and it's needed before relocation.
This patch ensures that the msm-serial driver can actually use the clock node.Signed-off-by Ramon Fried <[email protected]>--- arch/arm/dts/dragonboard410c.dts | 2 ++ 1 file changed, 2 insertions(+)Quoted 27 lines
arch/arm/dts/dragonboard410c.dts line 41
Quoted 10 lines
arch/arm/dts/dragonboard410c.dts +1
-0@@ -38,12 +38,14 @@ #size-cells = <0x1>; ranges = <0x0 0x0 0x0 0xffffffff>; compatible = "simple-bus"; + u-boot,dm-pre-reloc;I think the intent is to make dm-pre-reloc legacy.
New platforms should be using "u-boot,dm-spl" even ifCONFIG_SPL_BUILDis
not enabled (I believe it should work)Quoted 8 lines
arch/arm/dts/dragonboard410c.dts +1
-0clkc: qcom,gcc at 1800000 { compatible = "qcom,gcc-apq8016"; reg = <0x1800000 0x80000>; #address-cells = <0x1>; #size-cells = <0x0>; + u-boot,dm-pre-reloc; }; serial at 78b0000 {another question is, how will you probe the clock driver before the uart?
I think even if you probed inmisc_init_fit is already too late.Quoted 5 lines
Quoted 2 lines
other than that - + Peter Robinson's comments- looks good.
The clock is probed because the uart driver asks for it. it's actually already exists in the code, but wasn't used because
the clock wasn't set to dm-pre-relocum, are you sure? that is not what I see during my tests but I could be wrong - or something else might be happening in uboot
you can create a
misc_init_ffor the board that retrieves the clock driver
by name and forces a probe; I can see that the probe happens (ie, theDM_FLAG_ACTIVATEDwas _not_ set for that driver) which is not what I believe
you expect since you want the clock driver to be probed before the uart.
Quoted 7 lines
Quoted 3 lines
It doesn't need to be probed before the uart, the uart is probed first and when it asks for the
clock node it's forcing a probe. it's tested.can you post a trace. just dump the value of
GD_FLG_RELOCon clock the probe function.
The serial isn't initialized at this time, I'll save the value and print afterwards :)
Quoted 1 line
PATCH 1/1 db410c: set clk node to be probed before relocation
Quoted 63 lines · Ramon Fried
Quoted 62 lines · Jorge Ramirez-Ortiz
Quoted 61 lines · Ramon Fried
Quoted 59 lines · Jorge Ramirez-Ortiz
Quoted 43 lines · Ramon Fried
Quoted 41 lines · Jorge Ramirez-Ortiz
Quoted 11 lines · Jorge Ramirez-Ortiz
Quoted 10 lines · Ramon Fried
The clock node is used by the serial driver and it's needed before relocation.
This patch ensures that the msm-serial driver can actually use the clock node.Signed-off-by Ramon Fried <[email protected]>--- arch/arm/dts/dragonboard410c.dts | 2 ++ 1 file changed, 2 insertions(+)Quoted 25 lines
arch/arm/dts/dragonboard410c.dts line 41
Quoted 10 lines
arch/arm/dts/dragonboard410c.dts +1
-0@@ -38,12 +38,14 @@ #size-cells = <0x1>; ranges = <0x0 0x0 0x0 0xffffffff>; compatible = "simple-bus"; + u-boot,dm-pre-reloc;I think the intent is to make dm-pre-reloc legacy.
New platforms should be using "u-boot,dm-spl" even ifCONFIG_SPL_BUILDis
not enabled (I believe it should work)Quoted 8 lines
arch/arm/dts/dragonboard410c.dts +1
-0clkc: qcom,gcc at 1800000 { compatible = "qcom,gcc-apq8016"; reg = <0x1800000 0x80000>; #address-cells = <0x1>; #size-cells = <0x0>; + u-boot,dm-pre-reloc; }; serial at 78b0000 {another question is, how will you probe the clock driver before the uart?
I think even if you probed inmisc_init_fit is already too late.Quoted 5 lines
Quoted 2 lines
other than that - + Peter Robinson's comments- looks good.
The clock is probed because the uart driver asks for it. it's actually already exists in the code, but wasn't used because
the clock wasn't set to dm-pre-relocum, are you sure? that is not what I see during my tests but I could be wrong - or something else might be happening in uboot
you can create a
misc_init_ffor the board that retrieves the clock driver
by name and forces a probe; I can see that the probe happens (ie, theDM_FLAG_ACTIVATEDwas _not_ set for that driver) which is not what I believe
you expect since you want the clock driver to be probed before the uart.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
It doesn't need to be probed before the uart, the uart is probed first and when it asks for the
clock node it's forcing a probe. it's tested.can you post a trace. just dump the value of
GD_FLG_RELOCon clock the probe function.The serial isn't initialized at this time, I'll save the value and print afterwards :)
of course.
 I think it makes sense to add some debug statement nearDM_FLAG_ACTIVATED in device_probe...the driver should not be probed a second time if it was successfully probed early before relocation
PATCH 1/1 db410c: set clk node to be probed before relocation
Quoted 88 lines · Jorge Ramirez-Ortiz
Quoted 87 lines · Ramon Fried
Quoted 83 lines · Jorge Ramirez-Ortiz
Quoted 73 lines · Ramon Fried
Quoted 62 lines · Jorge Ramirez-Ortiz
Quoted 50 lines · Ramon Fried
Quoted 47 lines · Jorge Ramirez-Ortiz
Quoted 22 lines · Jorge Ramirez-Ortiz
Quoted 20 lines · Ramon Fried
The clock node is used by the serial driver and it's needed before relocation.
This patch ensures that the msm-serial driver can actually use the clock node.Signed-off-by Ramon Fried <[email protected]>--- arch/arm/dts/dragonboard410c.dts | 2 ++ 1 file changed, 2 insertions(+)arch/arm/dts/dragonboard410c.dts +0
-0@@ -38,12 +38,14 @@ #size-cells = <0x1>; ranges = <0x0 0x0 0x0 0xffffffff>; compatible = "simple-bus";Quoted 19 lines
arch/arm/dts/dragonboard410c.dts line 41
Quoted 1 line
arch/arm/dts/dragonboard410c.dts +1
-0+ u-boot,dm-pre-reloc;I think the intent is to make dm-pre-reloc legacy. New platforms should be using "u-boot,dm-spl" even if
CONFIG_SPL_BUILD
is
not enabled (I believe it should work)Quoted 8 lines
arch/arm/dts/dragonboard410c.dts +1
-0clkc: qcom,gcc at 1800000 { compatible = "qcom,gcc-apq8016"; reg = <0x1800000 0x80000>; #address-cells = <0x1>; #size-cells = <0x0>; + u-boot,dm-pre-reloc; }; serial at 78b0000 {another question is, how will you probe the clock driver before the uart?
I think even if you probed inmisc_init_fit is already too late.Quoted 5 lines
Quoted 2 lines
other than that - + Peter Robinson's comments- looks good.
The clock is probed because the uart driver asks for it. it's actually already exists in the code, but wasn't used because
the clock wasn't set to dm-pre-relocum, are you sure? that is not what I see during my tests but I could be wrong - or something else might be happening in uboot
Quoted 7 lines
you can create a
misc_init_ffor the board that retrieves the clock driver
by name and forces a probe; I can see that the probe happens (ie, theDM_FLAG_ACTIVATEDwas _not_ set for that driver) which is not what I believe
you expect since you want the clock driver to be probed before the uart.Quoted 3 lines
It doesn't need to be probed before the uart, the uart is probed first and when it asks for the
clock node it's forcing a probe. it's tested.can you post a trace. just dump the value of
GD_FLG_RELOCon clock the probe
function.
Quoted 8 lines
Quoted 2 lines
The serial isn't initialized at this time, I'll save the value and print afterwards :)
of course.
I think it makes sense to add some debug statement nearDM_FLAG_ACTIVATED
in device_probe...the driver should not be probed a second time if it was successfully probed early before relocation
Actually, I already verified that. the driver probes twice, once before and once after relocation.
In case of serial, it's not a big deal to re-initialize the hardware, but I agree it's worthless.
Quoted 3 lines
PATCH 1/1 db410c: set clk node to be probed before relocation
Quoted 93 lines · Ramon Fried
Quoted 92 lines · Jorge Ramirez-Ortiz
Quoted 89 lines · Ramon Fried
Quoted 75 lines · Jorge Ramirez-Ortiz
Quoted 73 lines · Ramon Fried
Quoted 69 lines · Jorge Ramirez-Ortiz
Quoted 50 lines · Ramon Fried
Quoted 47 lines · Jorge Ramirez-Ortiz
Quoted 22 lines · Jorge Ramirez-Ortiz
Quoted 20 lines · Ramon Fried
The clock node is used by the serial driver and it's needed before relocation.
This patch ensures that the msm-serial driver can actually use the clock node.Signed-off-by Ramon Fried <[email protected]>--- arch/arm/dts/dragonboard410c.dts | 2 ++ 1 file changed, 2 insertions(+)arch/arm/dts/dragonboard410c.dts +0
-0@@ -38,12 +38,14 @@ #size-cells = <0x1>; ranges = <0x0 0x0 0x0 0xffffffff>; compatible = "simple-bus";Quoted 19 lines
arch/arm/dts/dragonboard410c.dts line 41
Quoted 1 line
arch/arm/dts/dragonboard410c.dts +1
-0+ u-boot,dm-pre-reloc;I think the intent is to make dm-pre-reloc legacy. New platforms should be using "u-boot,dm-spl" even if
CONFIG_SPL_BUILD
is
not enabled (I believe it should work)Quoted 8 lines
arch/arm/dts/dragonboard410c.dts +1
-0clkc: qcom,gcc at 1800000 { compatible = "qcom,gcc-apq8016"; reg = <0x1800000 0x80000>; #address-cells = <0x1>; #size-cells = <0x0>; + u-boot,dm-pre-reloc; }; serial at 78b0000 {another question is, how will you probe the clock driver before the uart?
I think even if you probed inmisc_init_fit is already too late.Quoted 5 lines
Quoted 2 lines
other than that - + Peter Robinson's comments- looks good.
The clock is probed because the uart driver asks for it. it's actually already exists in the code, but wasn't used because
the clock wasn't set to dm-pre-relocum, are you sure? that is not what I see during my tests but I could be wrong - or something else might be happening in uboot
you can create a
misc_init_ffor the board that retrieves the clock driver
by name and forces a probe; I can see that the probe happens (ie, theDM_FLAG_ACTIVATEDwas _not_ set for that driver) which is not what I believe
you expect since you want the clock driver to be probed before the uart.Quoted 8 lines
Quoted 3 lines
It doesn't need to be probed before the uart, the uart is probed first and when it asks for the
clock node it's forcing a probe. it's tested.can you post a trace. just dump the value of
GD_FLG_RELOCon clock the probe
function.The serial isn't initialized at this time, I'll save the value and print afterwards :)
Quoted 9 lines
Quoted 4 lines
of course.
I think it makes sense to add some debug statement nearDM_FLAG_ACTIVATED
in device_probe...the driver should not be probed a second time if it was successfully probed early before relocationActually, I already verified that. the driver probes twice, once before and once after relocation.
In case of serial, it's not a big deal to re-initialize the hardware, but I agree it's worthless.Quoted 1 line
Ok. just checked, it's first probed before relocation.
Quoted 2 lines
Quoted 2 lines
PATCH 1/1 db410c: set clk node to be probed before relocation
Quoted 5 lines · Ramon Fried
Quoted 4 lines
Actually, I already verified that. the driver probes twice, once before and once after relocation.
In case of serial, it's not a big deal to re-initialize the hardware, but I agree it's worthless.Ok. just checked, it's first probed before relocation.
ah of course, the db820 - what I was using to validate- doesnt probe early despite the change because the uart node doesnt use the clock. cool, looks good to me.
PATCH 1/1 db410c: set clk node to be probed before relocation
In reply to Ramon FriedQuoted 15 lines · Ramon Fried
The clock node is used by the serial driver and it's needed before relocation.
This patch ensures that the msm-serial driver can actually use the clock node.Signed-off-by Ramon Fried <[email protected]>--- arch/arm/dts/dragonboard410c.dts | 2 ++ 1 file changed, 2 insertions(+)arch/arm/dts/dragonboard410c.dts +0
-0
arch/arm/dts/dragonboard410c.dts line 41
Quoted 4 lines
arch/arm/dts/dragonboard410c.dts +1
-0@@ -38,12 +38,14 @@ #size-cells = <0x1>; ranges = <0x0 0x0 0x0 0xffffffff>; compatible = "simple-bus"; + u-boot,dm-pre-reloc;
u-boot specific DT bits should be put in a u-boot.dts[i] file, see in arch/arm/dts/ for other examples, it makes syncing DT changes from the linux kernel more straight forward.
Quoted 17 lines
arch/arm/dts/dragonboard410c.dts +1
-1clkc: qcom,gcc at 1800000 { compatible = "qcom,gcc-apq8016"; reg = <0x1800000 0x80000>; #address-cells = <0x1>; #size-cells = <0x0>; + u-boot,dm-pre-reloc; }; serial at 78b0000 { --The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot
PATCH 1/1 db410c: set clk node to be probed before relocation
Quoted 11 lines · Peter Robinson
Quoted 10 lines · Ramon Fried
The clock node is used by the serial driver and it's needed before relocation.
This patch ensures that the msm-serial driver can actually use the clock node.Signed-off-by Ramon Fried <[email protected]>--- arch/arm/dts/dragonboard410c.dts | 2 ++ 1 file changed, 2 insertions(+)
Quoted 13 lines
arch/arm/dts/dragonboard410c.dts line 41
Quoted 9 lines
arch/arm/dts/dragonboard410c.dts +1
-0@@ -38,12 +38,14 @@ #size-cells = <0x1>; ranges = <0x0 0x0 0x0 0xffffffff>; compatible = "simple-bus"; + u-boot,dm-pre-reloc;u-boot specific DT bits should be put in a u-boot.dts[i] file, see in
arch/arm/dts/for other examples, it makes syncing DT changes from the linux kernel more straight forward.
Thanks for the feedback.
I'll resend the the patch with the correction.
Quoted 18 lines
Quoted 18 lines
arch/arm/dts/dragonboard410c.dts +1
-1clkc: qcom,gcc at 1800000 { compatible = "qcom,gcc-apq8016"; reg = <0x1800000 0x80000>; #address-cells = <0x1>; #size-cells = <0x0>; + u-boot,dm-pre-reloc; }; serial at 78b0000 { --The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot