From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sricharan R Subject: Re: IPQ8068 support Date: Wed, 26 Apr 2017 16:48:17 +0530 Message-ID: References: <2798304.oiRXTY8cqN@bentobox> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:42914 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1954030AbdDZLSY (ORCPT ); Wed, 26 Apr 2017 07:18:24 -0400 In-Reply-To: <2798304.oiRXTY8cqN@bentobox> Content-Language: en-US Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Sven Eckelmann , linux-arm-msm@vger.kernel.org Cc: simon.wunderlich@openmesh.com 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 = ; 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