ARM: dts: qcom: Add initial IFC6540 board support
Subsystems (3)
v2 cover ARM: dts: qcom: Add initial IFC6540 board support
Add basic support for the IFC6540 single-board computer boards, that are based on the APQ8084 SoC. The first patch adds the initial device tree. The second enables the serial console. The third adds the SDHC nodes and enables the eMMC.
Should go through the qcom/arm-soc tree.
Changes since v1:
- This time add linux-arm-msm list to the CC.
- Include a third patch for enabling the eMMC.
Georgi Djakov (3):
ARM: dts: qcom: Add initial IFC6540 board device tree
ARM: dts: qcom: Enable serial port on IFC6540 boards
ARM: dts: qcom: Add SDHC nodes for APQ8084 platform
arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-apq8084-ifc6540.dts | 23 +++++++++++++++++++++++ arch/arm/boot/dts/qcom-apq8084.dtsi | 23 +++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-apq8084-ifc6540.dts
Signature · 1 line
1.7.9.5
PATCH v2 1/3 ARM: dts: qcom: Add initial IFC6540 board device tree
Add initial device tree for the IFC6540 Snapdragon 805 pico-itx single-board computer.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-apq8084-ifc6540.dts | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-apq8084-ifc6540.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -345,6 +345,7 @@ dtb-$(CONFIG_ARCH_PRIMA2) += prima2-evb.dtb dtb-$(CONFIG_ARCH_QCOM) += \ qcom-apq8064-ifc6410.dtb \ qcom-apq8074-dragonboard.dtb \ + qcom-apq8084-ifc6540.dtb \ qcom-apq8084-mtp.dtb \ qcom-msm8660-surf.dtb \ qcom-msm8960-cdp.dtb
arch/arm/boot/dts/qcom-apq8084-ifc6540.dts new file +6 -0
@@ -0,0 +1,6 @@ +#include "qcom-apq8084.dtsi" + +/ { + model = "Qualcomm APQ8084/IFC6540"; + compatible = "qcom,apq8084-ifc6540", "qcom,apq8084"; +};
Signature · 1 line
1.7.9.5
PATCH v2 2/3 ARM: dts: qcom: Enable serial port on IFC6540 boards
In reply to Georgi DjakovEnable the serial port on the IFC6540 boards.
--- arch/arm/boot/dts/qcom-apq8084-ifc6540.dts | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm/boot/dts/qcom-apq8084-ifc6540.dts +6 -0
@@ -3,4 +3,10 @@ / { model = "Qualcomm APQ8084/IFC6540"; compatible = "qcom,apq8084-ifc6540", "qcom,apq8084"; + + soc { + serial at f995e000 { + status = "okay"; + }; + }; };
Signature · 1 line
1.7.9.5
PATCH v2 3/3 ARM: dts: qcom: Add SDHC nodes for APQ8084 platform
In reply to Georgi DjakovEnable support for the two SD host controllers on the APQ8084 platform by adding the required nodes to the DT files.
On the IFC6540 board, the first controller is connected to the onboard eMMC and the second is connected to a micro-SD card slot.
--- arch/arm/boot/dts/qcom-apq8084-ifc6540.dts | 11 +++++++++++ arch/arm/boot/dts/qcom-apq8084.dtsi | 23 +++++++++++++++++++++++ 2 files changed, 34 insertions(+)
arch/arm/boot/dts/qcom-apq8084-ifc6540.dts +11 -0
@@ -8,5 +8,16 @@ serial at f995e000 { status = "okay"; }; + + sdhci at f9824900 { + bus-width = <8>; + non-removable; + status = "okay"; + }; + + sdhci at f98a4900 { + cd-gpios = <&tlmm 122 GPIO_ACTIVE_LOW>; + bus-width = <4>; + }; }; };
arch/arm/boot/dts/qcom-apq8084.dtsi +23 -0
@@ -3,6 +3,7 @@ #include "skeleton.dtsi" #include <dt-bindings/clock/qcom,gcc-apq8084.h> +#include <dt-bindings/gpio/gpio.h> / { model = "Qualcomm APQ 8084";
@@ -203,5 +204,27 @@ clock-names = "core", "iface"; status = "disabled"; }; + + sdhci at f9824900 { + compatible = "qcom,sdhci-msm-v4"; + reg = <0xf9824900 0x11c>, <0xf9824000 0x800>; + reg-names = "hc_mem", "core_mem"; + interrupts = <0 123 0>, <0 138 0>; + interrupt-names = "hc_irq", "pwr_irq"; + clocks = <&gcc GCC_SDCC1_APPS_CLK>, <&gcc GCC_SDCC1_AHB_CLK>; + clock-names = "core", "iface"; + status = "disabled"; + }; + + sdhci at f98a4900 { + compatible = "qcom,sdhci-msm-v4"; + reg = <0xf98a4900 0x11c>, <0xf98a4000 0x800>; + reg-names = "hc_mem", "core_mem"; + interrupts = <0 125 0>, <0 221 0>; + interrupt-names = "hc_irq", "pwr_irq"; + clocks = <&gcc GCC_SDCC2_APPS_CLK>, <&gcc GCC_SDCC2_AHB_CLK>; + clock-names = "core", "iface"; + status = "disabled"; + }; }; };
Signature · 1 line
1.7.9.5
Quoted 16 lines · Georgi Djakov
Add basic support for the IFC6540 single-board computer boards, that are based on the APQ8084 SoC. The first patch adds the initial device tree. The second enables the serial console. The third adds the SDHC nodes and enables the eMMC.
Should go through the qcom/arm-soc tree.
Changes since v1:
- This time add linux-arm-msm list to the CC.
- Include a third patch for enabling the eMMC.Georgi Djakov (3):
ARM: dts: qcom: Add initial IFC6540 board device tree
ARM: dts: qcom: Enable serial port on IFC6540 boards
ARM: dts: qcom: Add SDHC nodes for APQ8084 platform
Quoted 9 lines
arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-apq8084-ifc6540.dts | 23 +++++++++++++++++++++++ arch/arm/boot/dts/qcom-apq8084.dtsi | 23 +++++++++++++++++++++++ 3 files changed, 47 insertions(+)create mode 100644
arch/arm/boot/dts/qcom-apq8084-ifc6540.dtsSignature · 1 line
1.7.9.5
Thanks, there is really no reason for these to be 3 patches, can you squash them down into one.
- k
Signature · 2 lines
Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Re: [PATCH v2 3/3] ARM: dts: qcom: Add SDHC nodes for APQ8084 platform
In reply to Georgi DjakovGeorgi,
Quoted 4 lines · Georgi Djakov
Enable support for the two SD host controllers on the APQ8084 platform by adding the required nodes to the DT files.
On the IFC6540 board, the first controller is connected to the onboard eMMC and the second is connected to a micro-SD card slot.
testing this set of patch on IFC6540, i noticed that not all partitions from the eMMC are detected. booting [1] which is basically 3.17-rc7 with a few additional patches, i can see the following relevant mmc traces:
[ 1.162587] mmc0: BKOPS_EN bit is not set [ 1.315357] mmc0: new HS200 MMC card at address 0001 [ 1.318098] mmcblk0: mmc0:0001 SEM16G 14.6 GiB [ 1.330377] mmcblk0boot0: mmc0:0001 SEM16G partition 1 4.00 MiB [ 1.333652] mmcblk0boot1: mmc0:0001 SEM16G partition 2 4.00 MiB [ 1.345424] mmcblk0rpmb: mmc0:0001 SEM16G partition 3 4.00 MiB [ 1.358135] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 [ 1.365902] mmcblk0boot1: p1 [ 1.367833] mmcblk0boot0: unknown partition table
on the same board, booting the board vendor kernel (which is based on QCOM 3.10 tree), i can see much more partitions:
[ 7.662379] mmc0: BKOPS_EN bit = 0 [ 7.673036] mmc0: new HS200 MMC card at address 0001 [ 7.673784] mmcblk0: mmc0:0001 SEM16G 14.6 GiB [ 7.674311] mmcblk0rpmb: mmc0:0001 SEM16G partition 3 4.00 MiB [ 7.677967] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13
p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24\
p25
the complete dmesg log for can be found in our board lab, at [2]
cheers
[1] https://git.linaro.org/landing-teams/working/qualcomm/kernel.git/commit/b538bdefecd11bd0278cc31164e1078c1722e5a8
[2] http://armv7.com/scheduler/job/11726/log_file#L_11_11
Re: [PATCH v2 3/3] ARM: dts: qcom: Add SDHC nodes for APQ8084 platform
Quoted 13 lines · Nicolas Dechesne
Georgi,
Quoted 4 lines · Georgi Djakov
Enable support for the two SD host controllers on the APQ8084 platform by adding the required nodes to the DT files.
On the IFC6540 board, the first controller is connected to the onboard eMMC and the second is connected to a micro-SD card slot.testing this set of patch on IFC6540, i noticed that not all partitions from the eMMC are detected. booting [1] which is basically 3.17-rc7 with a few additional patches, i can see the following relevant mmc traces:
Quoted 9 lines
[ 1.162587] mmc0: BKOPS_EN bit is not set [ 1.315357] mmc0: new HS200 MMC card at address 0001 [ 1.318098] mmcblk0: mmc0:0001 SEM16G 14.6 GiB [ 1.330377] mmcblk0boot0: mmc0:0001 SEM16G partition 1 4.00 MiB [ 1.333652] mmcblk0boot1: mmc0:0001 SEM16G partition 2 4.00 MiB [ 1.345424] mmcblk0rpmb: mmc0:0001 SEM16G partition 3 4.00 MiB [ 1.358135] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 [ 1.365902] mmcblk0boot1: p1 [ 1.367833] mmcblk0boot0: unknown partition table
This has bitten me more times than I care to admit, but have you checked that you've set CONFIG_MMC_BLOCK_MINORS higher than 16? Perhaps we should be doing that in qcom_defconfig if we aren't already.
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Re: [PATCH v2 3/3] ARM: dts: qcom: Add SDHC nodes for APQ8084 platform
Quoted 3 lines · Josh Cartwright
This has bitten me more times than I care to admit, but have you checked that you've set
CONFIG_MMC_BLOCK_MINORShigher than 16? Perhaps we should be doing that inqcom_defconfigif we aren't already.
ouch... i was using multi_v7_defconfig which indeed has:
CONFIG_MMC_BLOCK_MINORS=16
note that you can override the default CONFIG with bootargs with
mmcblk.perdev_minors=32
thanks!
Re: [PATCH v2 3/3] ARM: dts: qcom: Add SDHC nodes for APQ8084 platform
In reply to Georgi DjakovQuoted 6 lines · Georgi Djakov
Enable support for the two SD host controllers on the APQ8084 platform by adding the required nodes to the DT files.
On the IFC6540 board, the first controller is connected to the onboard eMMC and the second is connected to a micro-SD card slot.Signed-off-by Georgi Djakov <[email protected]>
Hi Georgi,
This looks sane, but...
Quoted 9 lines
--- arch/arm/boot/dts/qcom-apq8084-ifc6540.dts | 11 +++++++++++ arch/arm/boot/dts/qcom-apq8084.dtsi | 23 +++++++++++++++++++++++ 2 files changed, 34 insertions(+)arch/arm/boot/dts/qcom-apq8084-ifc6540.dts +0
-0
[..]
arch/arm/boot/dts/qcom-apq8084-ifc6540.dts line 20
Quoted 3 lines
arch/arm/boot/dts/qcom-apq8084-ifc6540.dts +3
-0+ sdhci at f98a4900 { + cd-gpios = <&tlmm 122 GPIO_ACTIVE_LOW>; + bus-width = <4>;
...why do you add this node and leave it disabled in the dts?
Quoted 3 lines
+ }; };};
Regards,
Bjorn
Re: [PATCH v2 3/3] ARM: dts: qcom: Add SDHC nodes for APQ8084 platform
Quoted 22 lines · Bjorn Andersson
Quoted 6 lines · Georgi Djakov
Enable support for the two SD host controllers on the APQ8084 platform by adding the required nodes to the DT files.
On the IFC6540 board, the first controller is connected to the onboard eMMC and the second is connected to a micro-SD card slot.Signed-off-by Georgi Djakov <[email protected]>Hi Georgi,
This looks sane, but...
Quoted 9 lines
--- arch/arm/boot/dts/qcom-apq8084-ifc6540.dts | 11 +++++++++++ arch/arm/boot/dts/qcom-apq8084.dtsi | 23 +++++++++++++++++++++++ 2 files changed, 34 insertions(+)arch/arm/boot/dts/qcom-apq8084-ifc6540.dts +0
-0[..]
Quoted 6 lines
arch/arm/boot/dts/qcom-apq8084-ifc6540.dts line 20
Quoted 3 lines
arch/arm/boot/dts/qcom-apq8084-ifc6540.dts +3
-0+ sdhci at f98a4900 { + cd-gpios = <&tlmm 122 GPIO_ACTIVE_LOW>; + bus-width = <4>;...why do you add this node and leave it disabled in the dts?
Hi Bjorn,
Currently only the eMMC is functional on this board, so now we have just the board specific configuration under this node. More patches are forthcoming.
BR,
Georgi
Re: [PATCH v2 3/3] ARM: dts: qcom: Add SDHC nodes for APQ8084 platform
Quoted 27 lines · Georgi Djakov
Quoted 26 lines · Bjorn Andersson
Quoted 6 lines · Georgi Djakov
Enable support for the two SD host controllers on the APQ8084 platform by adding the required nodes to the DT files.
On the IFC6540 board, the first controller is connected to the onboard eMMC and the second is connected to a micro-SD card slot.Signed-off-by Georgi Djakov <[email protected]>Hi Georgi,
This looks sane, but...
Quoted 9 lines
---
arch/arm/boot/dts/qcom-apq8084-ifc6540.dts | 11 +++++++++++ arch/arm/boot/dts/qcom-apq8084.dtsi | 23 +++++++++++++++++++++++ 2 files changed, 34 insertions(+)arch/arm/boot/dts/qcom-apq8084-ifc6540.dts +0
-0[..]
Quoted 3 lines
arch/arm/boot/dts/qcom-apq8084-ifc6540.dts +3
-0+ sdhci at f98a4900 { + cd-gpios = <&tlmm 122 GPIO_ACTIVE_LOW>; + bus-width = <4>;
Quoted 7 lines
Quoted 2 lines
...why do you add this node and leave it disabled in the dts?
Hi Bjorn,
Currently only the eMMC is functional on this board, so now we have just the board specific configuration under this node. More patches are forthcoming.
Can we add something in the commit message to denote this.
- k
Signature · 3 lines
Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Re: [PATCH v2 3/3] ARM: dts: qcom: Add SDHC nodes for APQ8084 platform
In reply to Georgi DjakovHi Georgi,
Am 14.10.2014 um 18:17 schrieb Georgi Djakov:
Quoted 8 lines · Bjorn Andersson
Quoted 7 lines · Georgi Djakov
Quoted 6 lines
Enable support for the two SD host controllers on the APQ8084 platform by adding the required nodes to the DT files.
On the IFC6540 board, the first controller is connected to the onboard eMMC and the second is connected to a micro-SD card slot.Signed-off-by Georgi Djakov <[email protected]>
[...]
Quoted 14 lines
Quoted 14 lines
Quoted 9 lines
--- arch/arm/boot/dts/qcom-apq8084-ifc6540.dts | 11 +++++++++++ arch/arm/boot/dts/qcom-apq8084.dtsi | 23 +++++++++++++++++++++++ 2 files changed, 34 insertions(+)arch/arm/boot/dts/qcom-apq8084-ifc6540.dts +0
-0[..]
Quoted 3 lines
arch/arm/boot/dts/qcom-apq8084-ifc6540.dts +3
-0+ sdhci at f98a4900 { + cd-gpios = <&tlmm 122 GPIO_ACTIVE_LOW>; + bus-width = <4>;
Quoted 7 lines
Quoted 2 lines
...why do you add this node and leave it disabled in the dts?
Hi Bjorn,
Currently only the eMMC is functional on this board, so now we have just the board specific configuration under this node. More patches are forthcoming.
Any update on this? This still seems to be the latest IFC6540 commit:
Following the instructions in https://wiki.linaro.org/Boards/IFC6540
I've tried to pass a full rootfs as ramdisk parameter (fastboot boot -c "console=ttyMSM0,115200,n8 rw rootwait" -b 0x0 zImage-ifc6540 initrd.cpio.gz), but I then get:
[258660] fastboot: download:12738800
[268150] fastboot: boot
[268150] kernel/ramdisk addresses overlap with aboot addresses.
Booting without ramdisk specified works, but for lack of SD, USB and network support I then have no root.
So, do you have any new insights on why 'status = "okay";' doesn't work for the above sdhci node? Or do you have a working config you can share for creating a non-overlapping abootimg?
Regards,
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg
Re: [PATCH v2 3/3] ARM: dts: qcom: Add SDHC nodes for APQ8084 platform
Hi Andreas,
Quoted 34 lines · Andreas F?rber
Hi Georgi,
Am 14.10.2014 um 18:17 schrieb Georgi Djakov:
Quoted 8 lines · Bjorn Andersson
Quoted 7 lines · Georgi Djakov
Quoted 6 lines
Enable support for the two SD host controllers on the APQ8084 platform by adding the required nodes to the DT files.
On the IFC6540 board, the first controller is connected to the onboard eMMC and the second is connected to a micro-SD card slot.Signed-off-by Georgi Djakov <[email protected]>[...]
Quoted 14 lines
Quoted 14 lines
Quoted 9 lines
--- arch/arm/boot/dts/qcom-apq8084-ifc6540.dts | 11 +++++++++++ arch/arm/boot/dts/qcom-apq8084.dtsi | 23 +++++++++++++++++++++++ 2 files changed, 34 insertions(+)arch/arm/boot/dts/qcom-apq8084-ifc6540.dts +0
-0[..]
Quoted 3 lines
arch/arm/boot/dts/qcom-apq8084-ifc6540.dts +3
-0+ sdhci at f98a4900 { + cd-gpios = <&tlmm 122 GPIO_ACTIVE_LOW>; + bus-width = <4>;Quoted 7 lines
Quoted 2 lines
...why do you add this node and leave it disabled in the dts?
Hi Bjorn,
Currently only the eMMC is functional on this board, so now we have just the board specific configuration under this node. More patches are forthcoming.
Quoted 5 lines
Any update on this? This still seems to be the latest IFC6540 commit:
Following the instructions in https://wiki.linaro.org/Boards/IFC6540
I did update the wiki with more instructions to flash rootfs on to eMMC.
Quoted 3 lines
I've tried to pass a full rootfs as ramdisk parameter (fastboot boot -c "console=ttyMSM0,115200,n8 rw rootwait" -b
0x0zImage-ifc6540 initrd.cpio.gz), but I then get:
There is a typo here, I fixed it as well.
#sudo fastboot boot -c "console=ttyMSM0,115200,n8 root=/dev/mmcblk0p25 rootwait rw" -b 0x80200000 zImage-dtb
Could you give this a try?
Quoted 8 lines
[258660] fastboot: download:12738800
[268150] fastboot: boot
[268150] kernel/ramdisk addresses overlap with aboot addresses.Booting without ramdisk specified works, but for lack of SD, USB and network support I then have no root.
Now you can flash the rootfs into the eMMC partition.
Quoted 3 lines
So, do you have any new insights on why 'status = "okay";' doesn't work for the above sdhci node? Or do you have a working config you can share for creating a non-overlapping abootimg?
thanks,
sirni
Quoted 4 lines
Regards,
Andreas