device-tree: aqp8064.dtsi: Remove usb phy dr_mode = "host"
Subsystems (2)
PATCH 1/2 device-tree: aqp8064.dtsi: Remove usb phy dr_mode = "host"
Most 8064 devices have micro-usb ports for phy1, so setting the dr_mode to host here seems incorrect.
Leaving it unspecified should default to otg, and then any boards that wish to specify something else, can override it in their dts file.
--- arch/arm/boot/dts/qcom-apq8064.dtsi | 1 - 1 file changed, 1 deletion(-)
arch/arm/boot/dts/qcom-apq8064.dtsi +0 -1
@@ -750,7 +750,6 @@ reg = <0x12500000 0x400>; interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>; status = "disabled"; - dr_mode = "host"; clocks = <&gcc USB_HS1_XCVR_CLK>, <&gcc USB_HS1_H_CLK>;
Signature · 6 lines
1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 2/2 device-tree: nexus7: Add IMEM syscon and reboot reason support
This patch add the IMEM syscon memory region to the DT, as well as addds support for the magic reboot reason values that are written to the address for each mode.
--- arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts +14 -0
@@ -272,5 +272,19 @@ vqmmc-supply = <&pm8921_s4>; }; }; + + imem@2a03f000 { + compatible = "syscon", "simple-mfd"; + reg = <0x2a03f000 0x1000>; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x65c>; + + mode-normal = <0x77665501>; + mode-bootloader = <0x77665500>; + mode-recovery = <0x77665502>; + }; + }; }; };
Signature · 1 line
1.9.1
On Mon 08 Aug 15:34 PDT 2016, John Stultz wrote:
Changes in this file is commonly prefixed "ARM: dts: apq8064:", please follow that. Perhaps:
ARM: dts: apq8064: Drop dr_mode property from usb phy
Quoted 7 lines
Most 8064 devices have micro-usb ports for phy1, so setting the
dr_modeto host here seems incorrect.Leaving it unspecified should default to otg, and then any boards that wish to specify something else, can override it in their dts file.
Quoted 7 lines
Cc Rob Herring <[email protected]>Cc Andy Gross <[email protected]>Cc Bjorn Andersson <[email protected]>Cc Stephen Boyd <[email protected]>Signed-off-by John Stultz <[email protected]>
Regards,
Bjorn
Quoted 19 lines
--- arch/arm/boot/dts/qcom-apq8064.dtsi | 1 - 1 file changed, 1 deletion(-)arch/arm/boot/dts/qcom-apq8064.dtsi +0
-1@@ -750,7 +750,6 @@ reg = <0x12500000 0x400>; interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>; status = "disabled"; - dr_mode = "host"; clocks = <&gcc USB_HS1_XCVR_CLK>, <&gcc USB_HS1_H_CLK>;Signature · 1 line
1.9.1
Re: [PATCH 2/2] device-tree: nexus7: Add IMEM syscon and reboot reason support
In reply to John StultzQuoted 4 lines · John Stultz
This patch add the IMEM syscon memory region to the DT, as well as addds support for the magic reboot reason values that are written to the address for each mode.
This looks good, double checked the addresses and magics. But I think you should move the entire thing to qcom-apq8064.dtsi, as this is common to the base platform.
And I would prefer if you updated the subject prefix...
With the move and subject update:
Regards,
Bjorn
Quoted 38 lines
Cc Rob Herring <[email protected]>Cc Andy Gross <[email protected]>Cc Bjorn Andersson <[email protected]>Cc Stephen Boyd <[email protected]>Signed-off-by John Stultz <[email protected]>--- arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+)arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts +14
-0@@ -272,5 +272,19 @@ vqmmc-supply = <&pm8921_s4>; }; }; + + imem@2a03f000 { + compatible = "syscon", "simple-mfd"; + reg = <0x2a03f000 0x1000>; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x65c>; + + mode-normal = <0x77665501>; + mode-bootloader = <0x77665500>; + mode-recovery = <0x77665502>; + }; + }; }; };Signature · 1 line
1.9.1
Re: [PATCH 2/2] device-tree: nexus7: Add IMEM syscon and reboot reason support
Quoted 10 lines · Bjorn Andersson
Quoted 4 lines · John Stultz
This patch add the IMEM syscon memory region to the DT, as well as addds support for the magic reboot reason values that are written to the address for each mode.
This looks good, double checked the addresses and magics. But I think you should move the entire thing to
qcom-apq8064.dtsi, as this is common to the base platform.
Interesting, so do all 8064's use the same bootloader?
Quoted 4 lines
And I would prefer if you updated the subject prefix...
With the move and subject update:
Reviewed-by Bjorn Andersson <[email protected]>
thanks!
-john
Re: [PATCH 2/2] device-tree: nexus7: Add IMEM syscon and reboot reason support
Quoted 9 lines · John Stultz
Quoted 7 lines · Bjorn Andersson
Quoted 4 lines · John Stultz
This patch add the IMEM syscon memory region to the DT, as well as addds support for the magic reboot reason values that are written to the address for each mode.
Quoted 6 lines
Quoted 3 lines
This looks good, double checked the addresses and magics. But I think you should move the entire thing to
qcom-apq8064.dtsi, as this is common to the base platform.Interesting, so do all 8064's use the same bootloader?
As far as I can tell, the APQ8064 comes with 4kb of IMEM, so that part is common regardless.
There is no indication of the restart reason being "optional" in the downstream kernel, but that's not necessarily a "yes" to your question.
So, please move it to the apq8064.dtsi, as there are no indications of systems not having this setup. Worst case would be that I'm wrong and we have to move it out to all current targets sometime in the future.
Regards,
Bjorn
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html