From nobody Wed Nov 27 21:39:53 2024 Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 398251DACB0; Mon, 7 Oct 2024 16:35:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.21.23.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728318962; cv=none; b=TCuIakFEdhU2zyJn9zdsJSRETYYv3cIsiLjiJh7bE7w6SQyS/ocuMBLQldungPzSKapy0u4JPy3CR+oor81ziyMvLXZZFV1+lqrkSLnJdN1Nr/R4PyZzbvgChRHFRdj/aHZ2/yYRYQR05kz/qCKva3oOd6DkQXG0oOtUlBI02VA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728318962; c=relaxed/simple; bh=ehZDP8fh5uxfrKTsADhsn196tG6D+jYfMML9Ef5Lqmk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fjxb2Lpv1zFpnv0rJ2Vxnf7jcoysxsn+kjNCKHNXXgK7+G+yibe+Y9BFjBqfDbVNCZsGd8OC4EvF79NLidR+4qZ3LzP5jSM7ubjNAf6DyB1UcUfhkpK8Hr+A3TOKdqGL9U7e1q0t9vp3q9kQ4/nlj/piDx7Me8vOXHKmxwnzozE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=getgoogleoff.me; spf=pass smtp.mailfrom=getgoogleoff.me; dkim=pass (2048-bit key) header.d=getgoogleoff.me header.i=@getgoogleoff.me header.b=ezz8LTVI; arc=none smtp.client-ip=178.21.23.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=getgoogleoff.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=getgoogleoff.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=getgoogleoff.me header.i=@getgoogleoff.me header.b="ezz8LTVI" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id A7B3A23D49; Mon, 7 Oct 2024 18:35:58 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id oKQRXsga-PXr; Mon, 7 Oct 2024 18:35:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=getgoogleoff.me; s=mail; t=1728318958; bh=ehZDP8fh5uxfrKTsADhsn196tG6D+jYfMML9Ef5Lqmk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ezz8LTVIk9kXIs4vRUSq4E8TBO6TlDLHuop1Or2DoZfshW1mPxPkeRjx7j+E7eswY IQL0rMB9rCEgJZ/KdcwYUkCDe9uxiFVlpUb6oNvrWIehgnOrQab8/sfSoTkqj+x2Fr k/h9ME98+1eHMYgyYBSS0ZN8ZkvbEBZPXMaIJ4LnpzQ62tmETvlrultvPhquqLO1ll io4Jn5O43papJahfzA7qbJId8kPq4gFCmGqsVV7QmBwIbaT1YKsJVft3PFVo1qiLMV Pg77gNQbUcKicG9pmhJ2F5dDsT5qj1JOz1dBQ5GUQ3xIAiN9V8SgtTscXT9+HZJg4w /f/hy4bkjo7vg== From: Karl Chan To: linux-arm-msm@vger.kernel.org Cc: andersson@kernel.org, konradybcio@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, linus.walleij@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, Karl Chan Subject: [PATCH v6 1/5] dt-bindings: arm: qcom: add Linksys EA9350 V3 Date: Tue, 8 Oct 2024 00:34:10 +0800 Message-ID: <20241007163414.32458-2-exxxxkc@getgoogleoff.me> In-Reply-To: <20241007163414.32458-1-exxxxkc@getgoogleoff.me> References: <20241007163414.32458-1-exxxxkc@getgoogleoff.me> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Document linksys,jamaica for Linksys EA9350 V3. Signed-off-by: Karl Chan --- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentatio= n/devicetree/bindings/arm/qcom.yaml index 5cb54d69af0b..98dc4819a5a2 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -338,6 +338,7 @@ properties: =20 - items: - enum: + - linksys,jamaica - qcom,ipq5018-rdp432-c2 - tplink,archer-ax55-v1 - const: qcom,ipq5018 --=20 2.46.2 From nobody Wed Nov 27 21:39:53 2024 Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B3DC1DC056; Mon, 7 Oct 2024 16:36:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.21.23.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728318965; cv=none; b=BMoNe6VEBrpc3dMSMIHG6ywQ6WnoISb7d0tFnvKbBzpZloW+wIcNdw44wStaUEnPM/d1krL9A/CoCAbYjd+btLqhZXtYe1/bqsm7ikZFy4eeqNB62Exp7bnWK2cTb/v2aBozcr+TrmoedF5Y+SXazkw+VotkDul75EpnMxAvAns= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728318965; c=relaxed/simple; bh=3J7lS4vo42fJFOZkHZb24RgCSwL74kuwtS6Fy4pH4+g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a/woOQowmIXOFeW4YmqV3VTUE8E4AvGh2bwWeRkzR39rYocb2LWKAmYMes3tHDfe1Jya8b8dsxl1WVSJ1jiRSJnMEBZ4h20Lm/ZQcScgNoNjrk1Wq4WDdMaJTLn32a2iEB/C/uM95RyjAwkjw4J/2CSCEY0keMBp8BnU73spEVc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=getgoogleoff.me; spf=pass smtp.mailfrom=getgoogleoff.me; dkim=pass (2048-bit key) header.d=getgoogleoff.me header.i=@getgoogleoff.me header.b=LqSOjuX9; arc=none smtp.client-ip=178.21.23.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=getgoogleoff.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=getgoogleoff.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=getgoogleoff.me header.i=@getgoogleoff.me header.b="LqSOjuX9" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 9B89923FB5; Mon, 7 Oct 2024 18:36:01 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id f6VDx4q6rNHq; Mon, 7 Oct 2024 18:36:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=getgoogleoff.me; s=mail; t=1728318961; bh=3J7lS4vo42fJFOZkHZb24RgCSwL74kuwtS6Fy4pH4+g=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=LqSOjuX9i80Ox6kMKAoENcj63/IonIqxMn9gWU3xD2MiLfel1O7mWWC3r74Y/eLpQ +aKo8DpBqCmcGcwkEoWVo8xdntud4GsyFQon854sia14zcEbiqtQo6mJ4HVibbWh4/ LWPEFBjo3HGBwydOOqLr0vh2ZU6OdFbh7jlxAloYgnGF2mzW6CVMirpurwVxqEuqBk 8hw2QB+RruuTCWXIqx/+64JbPO7S92Q+PjhjiSgMSyuPlADhJlUk54u3PWmGX2myd2 CSWfRzQicidbcqlV2lVkswkvEILbtcd+G12Y8MmO5zGplW1Xv5aS78bv0VkZV4U0Af R+9KvKNDkPYXg== From: Karl Chan To: linux-arm-msm@vger.kernel.org Cc: andersson@kernel.org, konradybcio@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, linus.walleij@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, Karl Chan Subject: [PATCH v6 2/5] arm64: dts: qcom: add Linksys EA9350 V3 Date: Tue, 8 Oct 2024 00:34:11 +0800 Message-ID: <20241007163414.32458-3-exxxxkc@getgoogleoff.me> In-Reply-To: <20241007163414.32458-1-exxxxkc@getgoogleoff.me> References: <20241007163414.32458-1-exxxxkc@getgoogleoff.me> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add device tree source for Linksys EA9350 V3 which is a WiFi router based on the IPQ5018 SoC. As of now , only the UART,USB,USB LED,buttons is working. The front PWM LED require the IPQ PWM driver. Therefore the PWM LED isn't configed in the tree. The original firmware of EA9350V3 from Linksys can only boot ARM32 kernels. However there seem to a identical device that come with 64bit firmware. Also There are seems to be no way to boot ARM64 kernels on EA9350. Therefore,the only way to boot on EA9350 V3 is using this tree and a 32bit = kernel. Signed-off-by: Karl Chan Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/ipq5018-linksys-jamaica.dts | 109 ++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/ipq5018-linksys-jamaica.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/M= akefile index ae002c7cf126..5c6fac2cc8c5 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -10,6 +10,7 @@ dtb-$(CONFIG_ARCH_QCOM) +=3D apq8039-t2.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D apq8094-sony-xperia-kitakami-karin_windy.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D apq8096-db820c.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D apq8096-ifc6640.dtb +dtb-$(CONFIG_ARCH_QCOM) +=3D ipq5018-linksys-jamaica.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D ipq5018-rdp432-c2.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D ipq5018-tplink-archer-ax55-v1.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D ipq5332-rdp441.dtb diff --git a/arch/arm64/boot/dts/qcom/ipq5018-linksys-jamaica.dts b/arch/ar= m64/boot/dts/qcom/ipq5018-linksys-jamaica.dts new file mode 100644 index 000000000000..26dac104bca1 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/ipq5018-linksys-jamaica.dts @@ -0,0 +1,109 @@ +// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause + +/dts-v1/; + +/* + * NOTE: The original firmware of EA9350 V3 from Linksys can only boot ARM= 32 kernels. + * However there seem to a identical device that come with 64bit firmware. + * Also There are seems to be no way to boot ARM64 kernels on EA9350. + * + * Therefore,the only way to boot on EA9350 V3 is using this tree and a 32= bit kernel. + * + * For clarity and build testing this device tree is maintained next + * to the other IPQ5018 device trees. However, on EA9350 V3 + * it is actually used through + * arch/arm/boot/dts/qcom/qcom-ipq5018-linksys-jamaica.dts + */ + +#include "ipq5018.dtsi" +#include +#include +#include + + +/ { + model =3D "Linksys EA9350 V3"; + compatible =3D "linksys,jamaica", "qcom,ipq5018"; + + aliases { + serial0 =3D &blsp1_uart1; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + gpio-keys { + compatible =3D "gpio-keys"; + pinctrl-0 =3D <&button_pins>; + pinctrl-names =3D "default"; + + button-0 { + label =3D "reset"; + linux,code =3D ; + gpios =3D <&tlmm 28 GPIO_ACTIVE_LOW>; + debounce-interval =3D <60>; + }; + + button-1 { + label =3D "wps"; + linux,code =3D ; + gpios =3D <&tlmm 27 GPIO_ACTIVE_LOW>; + debounce-interval =3D <60>; + }; + }; + + leds { + compatible =3D "gpio-leds"; + pinctrl-0 =3D <&led_pins>; + pinctrl-names =3D "default"; + + led-0 { + color =3D ; + function =3D LED_FUNCTION_USB; + gpios =3D <&tlmm 19 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&blsp1_uart1 { + pinctrl-0 =3D <&uart1_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +&sleep_clk { + clock-frequency =3D <32000>; +}; + +&tlmm { + button_pins: button-pins-state { + pins =3D "gpio27", "gpio28"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-pull-up; + }; + + led_pins: led-pins-state { + pins =3D "gpio19"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; +}; + +&usb { + status =3D "okay"; +}; + +&usb_dwc { + dr_mode =3D "host"; +}; + +&usbphy0 { + status =3D "okay"; +}; + +&xo_board_clk { + clock-frequency =3D <24000000>; +}; --=20 2.46.2 From nobody Wed Nov 27 21:39:53 2024 Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 017D91DC183; Mon, 7 Oct 2024 16:36:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.21.23.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728318967; cv=none; b=IIneTelLzK6EjerqIxNBHg3vZtyt5Ohf2Yqqg5esM+UoQOlZ7ti4wbZhnFafQmNPTxxy5Qp/drY4paeFUaVprYCfQDPOLwH9SlZ546fW1DNp1JhQbcaFYKh7B1n11Bb280VSiWW5KVH4jqxiv3QP3pCheoEgGvp8I9ksq337d18= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728318967; c=relaxed/simple; bh=UHUEo4++aXG37ZoQH2kgGM3s9sQa02R1Nwdd0MtVjsU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=L97LQVIbpKgsJbvwbyZGeqtptEVU2M0rglxWevS+2xaVz2rLRL2Da75CF03IDSDwRaf64wilb2Xul3enb3MkuUuYyQho84BiWQ2s/Adobw+ESUCzW3NG6D1HPw5PdRfG5OQkGKgmcLSuKqMk701+IhKBRAWpepm18jcliWDgCo8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=getgoogleoff.me; spf=pass smtp.mailfrom=getgoogleoff.me; dkim=pass (2048-bit key) header.d=getgoogleoff.me header.i=@getgoogleoff.me header.b=cRHdPrrg; arc=none smtp.client-ip=178.21.23.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=getgoogleoff.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=getgoogleoff.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=getgoogleoff.me header.i=@getgoogleoff.me header.b="cRHdPrrg" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 685D023F20; Mon, 7 Oct 2024 18:36:04 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id NASA2BjvDagW; Mon, 7 Oct 2024 18:36:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=getgoogleoff.me; s=mail; t=1728318963; bh=UHUEo4++aXG37ZoQH2kgGM3s9sQa02R1Nwdd0MtVjsU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=cRHdPrrgNiDMQHqMYCGVSelOckUn14cdwzxiciA52VdusYwqnhi2U8qWgfXrOdpz8 X5VxoaTtS4KzHGtU17ObpxXuXztwrqS9qYRDfk5D+PDFZdPx4bXV6Zz2VX8jl/ZlZq RWgUZ8uEDnSL1u4rQ0eb6m3MDU4Nu1ZnudqpbGpE130F/1Ike10EiTyeIKo3luYXLB kwpfKU7GpfoRmhdcEgV0t2yeI9R3/ttsKwPdUOGSH+tn2w8YdAYi68k0d8o+PKYssj bac5na3mNMTzo6kAgZX5/ttGSpxnsTNYgUgOx/pem+yzVxfNQmELu8Gv4YlavLrvu4 x4lSwIR0pRyVA== From: Karl Chan To: linux-arm-msm@vger.kernel.org Cc: andersson@kernel.org, konradybcio@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, linus.walleij@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, Karl Chan Subject: [PATCH v6 3/5] clk: qcom: ipq5018: allow it to be bulid on arm32 Date: Tue, 8 Oct 2024 00:34:12 +0800 Message-ID: <20241007163414.32458-4-exxxxkc@getgoogleoff.me> In-Reply-To: <20241007163414.32458-1-exxxxkc@getgoogleoff.me> References: <20241007163414.32458-1-exxxxkc@getgoogleoff.me> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" There are some ipq5018 based device's firmware only can able to boot arm32 but the clock driver dont allow it to be compiled on arm32.Therefore this patch needed for those devices. Signed-off-by: Karl Chan Reviewed-by: Dmitry Baryshkov --- drivers/clk/qcom/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig index a3e2a09e2105..f13520095cc7 100644 --- a/drivers/clk/qcom/Kconfig +++ b/drivers/clk/qcom/Kconfig @@ -199,7 +199,7 @@ config IPQ_GCC_4019 =20 config IPQ_GCC_5018 tristate "IPQ5018 Global Clock Controller" - depends on ARM64 || COMPILE_TEST + depends on ARM || ARM64 || COMPILE_TEST help Support for global clock controller on ipq5018 devices. Say Y if you want to use peripheral devices such as UART, SPI, --=20 2.46.2 From nobody Wed Nov 27 21:39:53 2024 Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8FE181DB93C; Mon, 7 Oct 2024 16:36:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.21.23.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728318970; cv=none; b=lwxxh1mBSUH3c/nxePte0CfObu/30zFJOkzs2ZvPjircjvrH+dc0VHVjv6wqgMczdYSH/Wpr7VpIAb1Ig0tWQKe3hDHEfLhnRYyrBYL6qDLP8uDRMiogEf89y3gFj0v0RRpyJSyLgoIY93wcRsJALHgjyfYPP5NcYq3LpyrLdxY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728318970; c=relaxed/simple; bh=PhBj+wNzXsN1aGTsBhnKKXX8YEocSTT0n34v6ymqBSA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qfSXxnIFJ3QONFqzhD22vY6rwajFqZ6JtEWkRwQ5Rp1ZBWH4BYH2F9OOF/MF4GTrqAbTIn9I9HwzVUx8E5Mu1TBDdgtCGgl0WmTBtdGz6MZTwpSG5w67ItaSYXMbDg/Dc71M6SgAheHehZ9bABNJQ4Dobu/bik2Q1Vjptaliuew= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=getgoogleoff.me; spf=pass smtp.mailfrom=getgoogleoff.me; dkim=pass (2048-bit key) header.d=getgoogleoff.me header.i=@getgoogleoff.me header.b=cSIdmdZ3; arc=none smtp.client-ip=178.21.23.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=getgoogleoff.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=getgoogleoff.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=getgoogleoff.me header.i=@getgoogleoff.me header.b="cSIdmdZ3" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 5AA9523D49; Mon, 7 Oct 2024 18:36:07 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Bz3SctvFecTB; Mon, 7 Oct 2024 18:36:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=getgoogleoff.me; s=mail; t=1728318966; bh=PhBj+wNzXsN1aGTsBhnKKXX8YEocSTT0n34v6ymqBSA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=cSIdmdZ3CiCTM3kPIsdLL3zd7YI7IBSIITsfmieUUSddHorkMrqmdZwKFjIkmpDZx 2Cktl2XCewp/03jT/k/0yL7PU6Wu0uD4kg+m7t8S5MCVxswPu4nyJ8z7peCvovfaz7 JXMpzbPD8D+rgGVka4aY+KNwb4IZwCY/6O5v9iLLCbvImf/T0dulkEscQwi6k6yGM1 WQpQ0D39MPlNuHSd+/Ms4BZ9qenAO6iUx8vEzcgiWzBUJwCNFxDzCqXQu0RUozljf8 dTraDgxGhXwg4K+J5WHjy2FRu9lq1Vzi9TaDC2tpczC/TNVXcohFJiT77PmRDVmm0C 0uOCMB2EJOqjw== From: Karl Chan To: linux-arm-msm@vger.kernel.org Cc: andersson@kernel.org, konradybcio@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, linus.walleij@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, Karl Chan Subject: [PATCH v6 4/5] pinctrl: qcom: ipq5018: allow it to be bulid on arm32 Date: Tue, 8 Oct 2024 00:34:13 +0800 Message-ID: <20241007163414.32458-5-exxxxkc@getgoogleoff.me> In-Reply-To: <20241007163414.32458-1-exxxxkc@getgoogleoff.me> References: <20241007163414.32458-1-exxxxkc@getgoogleoff.me> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" There are some ipq5018 based device's firmware only can able to boot arm32 but the pinctrl driver dont allow it to be compiled on arm32.Therefore this patch needed for those devices. Signed-off-by: Karl Chan Reviewed-by: Dmitry Baryshkov --- drivers/pinctrl/qcom/Kconfig.msm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/qcom/Kconfig.msm b/drivers/pinctrl/qcom/Kconfi= g.msm index 8fe459d082ed..65cec6c50994 100644 --- a/drivers/pinctrl/qcom/Kconfig.msm +++ b/drivers/pinctrl/qcom/Kconfig.msm @@ -24,7 +24,7 @@ config PINCTRL_IPQ4019 =20 config PINCTRL_IPQ5018 tristate "Qualcomm Technologies, Inc. IPQ5018 pin controller driver" - depends on ARM64 || COMPILE_TEST + depends on ARM || ARM64 || COMPILE_TEST help This is the pinctrl, pinmux, pinconf and gpiolib driver for the Qualcomm Technologies Inc. TLMM block found on the --=20 2.46.2 From nobody Wed Nov 27 21:39:53 2024 Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70C821DC73A; Mon, 7 Oct 2024 16:36:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.21.23.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728318973; cv=none; b=Zbi90ZgPiunNXlatFGEtLMwU4xe0lxzCuXEyYhAK5ZuJcgFVbkn5+cyPOX1cBypJZLFXvtYn1Q953koBBGYuN6GLqSIw735aYYMTsRYPNNd/Q20GBIjJotb2o5D/wDHrnuSoUq5v7qB2DwqnTlc/mDSmT0+HSVUk37YAOqF6ha4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728318973; c=relaxed/simple; bh=qgs6djftKMsHaoIbJPCzIEn9PiUmxfooSvy4LW9HDeE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZhAQEWNZlnwz5/kXQgSxx0wly7U9HCxaJTipj3GjGbwchgg05Wv1MK33N4UO3+30HUKNTQQjXKLLI2TiVgW3D2RzXCUzPjmDGYgrgx9ubjX7cACr+75HSPcEKcO4xLyH2PB+/ralnPVMQ510k+RQ5x5UL93jchTSJ3MbhENdr30= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=getgoogleoff.me; spf=pass smtp.mailfrom=getgoogleoff.me; dkim=pass (2048-bit key) header.d=getgoogleoff.me header.i=@getgoogleoff.me header.b=UK1er1sL; arc=none smtp.client-ip=178.21.23.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=getgoogleoff.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=getgoogleoff.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=getgoogleoff.me header.i=@getgoogleoff.me header.b="UK1er1sL" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 0C9B023F20; Mon, 7 Oct 2024 18:36:10 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id BWkq9wvynVqm; Mon, 7 Oct 2024 18:36:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=getgoogleoff.me; s=mail; t=1728318969; bh=qgs6djftKMsHaoIbJPCzIEn9PiUmxfooSvy4LW9HDeE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=UK1er1sLrFZL6z2v8psaTd7elv1uOAjOY5KF+Q13ynWGZCILbtIkFjC8JoRbKY7vx ux2lMsS145kQogdpABgARonVYoFCPwLS6kNPfMdDT4UTNLDPtJ1z1mmL78GXxx8JLt NHI7SrswHcw++B4ToPWjb+6kLGsmyojFCJE5kxM08IjwLnse6acZunh4MdDAVavLX6 apBwMFLGEnP8Ngqj89GxvnbZAiWc0eDMe1RhmXboNbgfa+vYcpxRfiXowDx57HwgFr xyYCKPjhb2k+TEmBMFRkPPcgBl2phasyYBZe6p/dEHHcoGQQhpSlrOpE3O962Z7E2A Af0Qxx57sgTdQ== From: Karl Chan To: linux-arm-msm@vger.kernel.org Cc: andersson@kernel.org, konradybcio@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, linus.walleij@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, Karl Chan Subject: [PATCH v6 5/5] arm: dts: qcom-ipq5018-linksys-jamaica: Include dts from arm64 Date: Tue, 8 Oct 2024 00:34:14 +0800 Message-ID: <20241007163414.32458-6-exxxxkc@getgoogleoff.me> In-Reply-To: <20241007163414.32458-1-exxxxkc@getgoogleoff.me> References: <20241007163414.32458-1-exxxxkc@getgoogleoff.me> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The original firmware of EA9350V3 from Linksys can only boot ARM32 kernels and there are seems to be no way to boot ARM64 kernels on EA9350. It is possible to use this device tree by compiling an ARM32 kernel for getting the kernel to boot on EA9350 V3 firmware however. Building the Linksys EA9350 V3 device trees from the arm64 tree together with the ARM32 include to allow booting this device on ARM32. The approach to include device tree files from other architectures is inspired from e.g. the Raspberry Pi (bcm2711-rpi-4-b.dts) where this is used to build the device tree for both ARM32 and ARM64. Signed-off-by: Karl Chan Reviewed-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom/Makefile | 1 + arch/arm/boot/dts/qcom/qcom-ipq5018-linksys-jamaica.dts | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 arch/arm/boot/dts/qcom/qcom-ipq5018-linksys-jamaica.dts diff --git a/arch/arm/boot/dts/qcom/Makefile b/arch/arm/boot/dts/qcom/Makef= ile index f06c6d425e91..147dbeb30a6a 100644 --- a/arch/arm/boot/dts/qcom/Makefile +++ b/arch/arm/boot/dts/qcom/Makefile @@ -23,6 +23,7 @@ dtb-$(CONFIG_ARCH_QCOM) +=3D \ qcom-ipq4019-ap.dk04.1-c3.dtb \ qcom-ipq4019-ap.dk07.1-c1.dtb \ qcom-ipq4019-ap.dk07.1-c2.dtb \ + qcom-ipq5018-linksys-jamaica.dtb \ qcom-ipq8064-ap148.dtb \ qcom-ipq8064-rb3011.dtb \ qcom-msm8226-microsoft-dempsey.dtb \ diff --git a/arch/arm/boot/dts/qcom/qcom-ipq5018-linksys-jamaica.dts b/arch= /arm/boot/dts/qcom/qcom-ipq5018-linksys-jamaica.dts new file mode 100644 index 000000000000..9a6ad767ebd7 --- /dev/null +++ b/arch/arm/boot/dts/qcom/qcom-ipq5018-linksys-jamaica.dts @@ -0,0 +1,2 @@ +// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause +#include --=20 2.46.2