Re: IPQ8068 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sven,

On 4/26/2017 1:56 PM, Sven Eckelmann wrote:
> Hi,
> 
> (the next paragraph is just an explanation of the situation - can be skipped 
> to get to the actual question)
> 
> I've received a board (either called EWS370 or EWS870AP in their firmware) 
> which was announced as AP148 based. But the initial booting up with LEDE 
> wasn't working and even the serial port didn't start up. And some tests with 
> the standard earlycon registers for the IPQ8064 also didn't work. But then I 
> saw that the original firmware used some registers at 0x16640000 for ttyHSL0. 
> A quick test showed that this is really the correct address for the serial 
> console. I found in the Linux sources that apq8064 is the only one which 
> actually uses this register offset. Unsure whether this is actually an APQ8064, 
> I've removed the antennas, heatsinks and shielding to find a CPU with the name 
> IPQ8068 on it.
> 
> It looks like the support for this CPU was never upstreamed by QCA. A quick 
> search in the linux-msm tree in codeaurora also showed only uninteresting 
> mentions of this CPU [1]. I already know from Dakota that the upstreaming 
> effort from some QCA developers were suddenly stopped. Some of the Dakota 
> drivers were therefore waiting in some branch of some repository [2] or 
> hanging around in an unfinished state on some mailing list. So maybe there are 
> similar things somewhere for the IPQ8068. Can someone maybe point me in the 
> right direction?

So when you mentioned console not working, the kernel console did not come up ?
Whats the bootloader version that is there ?

Given that its ipq8068, not sure which variant of AP148 it is. Atleast i see that
AP148 uses uart4 at 0x16340000 as console. Since you are observing that
bootloaders have configured console at 0x16640000 which is uart7, is it possible
that you can try the below change and see if its only a console issue ?

 qcom-ipq8064.dtsi

                gsbi7: gsbi@16600000 {
                        compatible = "qcom,gsbi-v1.0.0";
                        cell-index = <7>;
                        reg = <0x16640000 0x100>;
                        clocks = <&gcc GSBI7_H_CLK>;
                        clock-names = "iface";
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges;
                        status = "disabled";

                        syscon-tcsr = <&tcsr>;

                        gsbi7_serial: serial@16640000 {
                                compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
                                reg = <0x16640000 0x1000>,
                                      <0x16600000 0x1000>;
                                interrupts = <0 158 0x0>;
                                clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>;
                                clock-names = "core", "iface";
                                status = "disabled";
                        };
                };

qcom-ipq8064-ap148.dts

        	aliases {
                	serial0 = &gsbi7_serial;
        	};
        	
                gsbi@16600000 {
                        qcom,mode = <GSBI_PROT_I2C_UART>;
                        status = "ok";
                        serial@16640000 {
                                status = "ok";
                        };
		};

Regards,
 Sricharan


> 
> Kind regards,
> 	Sven
> 
> [1] https://source.codeaurora.org/quic/qsdk/oss/kernel/linux-msm/commit/?id=1fc998bf276c7407e03953d8c306cda25b29b6b5
>     https://source.codeaurora.org/quic/qsdk/oss/kernel/linux-msm/commit/?id=5ae236e30ff401f4600125ad452e93973ddc205b
>     https://source.codeaurora.org/quic/qsdk/oss/kernel/linux-msm/commit/?id=613c5a41ed666383c778129c7b172987aa16f31c
>     https://source.codeaurora.org/quic/qsdk/oss/kernel/linux-msm/commit/?id=4aa6962af93bf32dd5c5e6b2313c80f4732b3286
>     https://source.codeaurora.org/quic/qsdk/oss/kernel/linux-msm/commit/?id=8b2089087088e08f5e68b83ba04af44ecc3f9e9d
> [2] https://source.codeaurora.org/quic/qsdk/mmcclint-qca/log/?h=for-next
> 

-- 
"QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux