From nobody Thu Nov 28 08:29:34 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 CAB051D014A; Wed, 2 Oct 2024 13:24:34 +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=1727875477; cv=none; b=Yr82q0wdyXtQIyEsCjm/NEEK+9cqHFIhstoE59+VUI7HCd7c0ZjZuRx/1qb9DzyCfRqYlIfGL8dZzjjeFFvDGQipJ1BK6tbpPFWxgnNwOTP0F7VEAI/83etGGsP4GdEY2ENvgNPNimeYglxK8TJoxcEm8CEfgeRV3INQpa8Ekhw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727875477; c=relaxed/simple; bh=oV6B5e+qoTEsfbec+8stNvUBaHqTyHc4zEUqxUFmuBI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sm8s7tPb/XumxIJ/7usb93zu5oBdACfU6Ur/Y2R2P5wErTxLozEFMaparZ2pRMujrawH+3TWhdHtjoMJIvX0ssGG5phqS5vaI4iSBFH2K2gikZOFzBf7ZevJvWsZcDl/E4FB6Abq2Xj+jqYxlvKxqxZQMDTnBI1TITy4CQoJc7I= 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=nO9gZYEN; 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="nO9gZYEN" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id E76FF23D13; Wed, 2 Oct 2024 15:24:32 +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 Eq5aSg7WkvLK; Wed, 2 Oct 2024 15:24:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=getgoogleoff.me; s=mail; t=1727875472; bh=oV6B5e+qoTEsfbec+8stNvUBaHqTyHc4zEUqxUFmuBI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=nO9gZYENqJHfJoo7ijNILH8m3Tl6Eunv3P55arUNlg/kKErBNZnst/Vg9BrQbAHzf Mmw57VH2kELJliqhThxD5+CEkrTLGzwNiogpM14px9qs0eqGYlV2dfTEHDYy21frYs Sjz0zjtYYWeDCyxPAB6Crw7rjGM3lPObouSkQBom8iL0OP/5i3HMrLpnl6c7kbxlui kpLq3PRrYbL/r6J3bVOJDg7AdYB6eSrHBjSc9IEB0UawB8xNwvPx0hVs2kIpxizpx5 RtnGEEx/HvntQ5lLOOqs9vbjStydanXnrt4IFjQ7cLJr+9FtF6zcfwwRZVDbNRe9jr Ql+Vw1OAO6EEg== 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, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Karl Chan Subject: [PATCH v2 1/3] dt-bindings: arm: qcom: add Linksys EA9350 V3 Date: Wed, 2 Oct 2024 21:23:00 +0800 Message-ID: <20241002132302.31608-2-exxxxkc@getgoogleoff.me> In-Reply-To: <20241002132302.31608-1-exxxxkc@getgoogleoff.me> References: <20241002132302.31608-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 Acked-by: Krzysztof Kozlowski --- 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.1 From nobody Thu Nov 28 08:29:34 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 B2DB41D0943; Wed, 2 Oct 2024 13:24:37 +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=1727875479; cv=none; b=MSSFHpWhQBPlH3V23n9nPzMivfwmTQ+fl1I456d96zl/o4yjoDEuajMU3bjDTp0BOZmUDBdTsUxMyAgktpqlgqer3Rt6YigqZLgOS7q8T7CobHkaUnAL4vbQ0eOAxC9K+I4tfDJuOsrGIccYBGtIYHmfSceGJHq+xi6nxZEGEVE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727875479; c=relaxed/simple; bh=iMJMlF58jnzZK8aSoDqjDj0SHiF/Dt1RBkCB2SuQA4k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fuHaiJ54zSiUlbyjBkgPiHOwoaUYUf5N78HdjlLH5ChOnXbRJQ5A1iI7yWZ3/f6Ns82eOU60zeAO/9DAkm6fbZpRCHaI0wA2Yc1yDtCvrHj9EeszqWxZFZCKgb5H6ZT7CM7YXBCbZ7V0clPCWn3guJbM6ExaCpOj61bYONzm4YM= 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=JTvIs33Y; 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="JTvIs33Y" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 7F41523D3C; Wed, 2 Oct 2024 15:24:36 +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 LcOFBbl1UMSk; Wed, 2 Oct 2024 15:24:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=getgoogleoff.me; s=mail; t=1727875475; bh=iMJMlF58jnzZK8aSoDqjDj0SHiF/Dt1RBkCB2SuQA4k=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=JTvIs33YnsW/7yLRYHPRJ+XCAsmgMxKkcEqkecs+7cHa7T9HPig7lj/mA9EDz5ANe rOQ4kcckFxeparByKT6/nSiviCmYBIsemxJWM4gOznwYmYlID+nQ2vQhcGOQow1zVn 4LGcU7hbJ5gs9AVObS96h3caJ/mBVX/ZmkH5hjVZXMnLHT7GDONZUIGFxw4DR8Fv78 2BGe1V0f2IegSv5UTXzEg4ODqevCLCexpdGnqrhPapl3toJDTkkaLWA7ZM08QehnoG 575Q6WbNoblVTHvXhFkb9aDM0wMVsovbz2citEygMzTkL7u11wiLzcPnuWyhEVoLJS z/XXl4o5pvXUw== 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, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Karl Chan Subject: [PATCH v2 2/3] arm64: dts: qcom: add Linksys EA9350 V3 Date: Wed, 2 Oct 2024 21:23:01 +0800 Message-ID: <20241002132302.31608-3-exxxxkc@getgoogleoff.me> In-Reply-To: <20241002132302.31608-1-exxxxkc@getgoogleoff.me> References: <20241002132302.31608-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 o= n 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 isnt configed in the tree. Also The original firmware from Linksys can only boot ARM32 kernels. As of now There seems to be no way to boot ARM64 kernels on those device. However, it is possible to use this device tree by compiling an ARM32 kerne= l instead. Signed-off-by: Karl Chan --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/ipq5018-linksys-jamaica.dts | 107 ++++++++++++++++++ 2 files changed, 108 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..2fe18733f9ca --- /dev/null +++ b/arch/arm64/boot/dts/qcom/ipq5018-linksys-jamaica.dts @@ -0,0 +1,107 @@ +// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause + +/dts-v1/; + +/* + * NOTE: The original firmware from Linksys can only boot ARM32 kernels. + * + * As of now There seems to be no way to boot ARM64 kernels on those devic= e. + * + * However, it is possible to use this device tree by compiling an ARM32 k= ernel + * instead. For clarity and build testing this device tree is maintained n= ext + * to the other IPQ5018 device trees. However, 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.1 From nobody Thu Nov 28 08:29:34 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 DC32F1D0429; Wed, 2 Oct 2024 13:24:40 +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=1727875482; cv=none; b=dzbV1D/F8lQl8osSbM3cNDwnnNrJ2518zleRB0Z2KY1GwTuT1fduLh10YHrr8TACOcy6T4uGpjgkM9K2YaKfOzfSlnZVw9++yOQNyPNw8n4Nxxz1YuFfTurRmo+JSlV0NddZpFYuvtfW91R6WjVIw2DjkLvHXBII9CufVP195+8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727875482; c=relaxed/simple; bh=vlT6BUE0i0bCZYlq2mO18x7e5FjTZyQeszvJG4JrHMA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ldaDOeED1kdzFZqShWoqTjCmUtLBFjuSaxD5fApNBKvx0RmI++vAUV44mO5igvr2fK1YA7DMRbVTCDOPjeynu+l8kv+oUt3iI5u42H8qfPnWNnjFF1XVsJCF7V8S+kbkkMrI6UdhMNuClCNRMeeZ8BHeLh/wgYKSd/QtOHnKSdQ= 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=myM1DGRM; 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="myM1DGRM" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 6F56A23E12; Wed, 2 Oct 2024 15:24:39 +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 wgbEzQZg6XFG; Wed, 2 Oct 2024 15:24:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=getgoogleoff.me; s=mail; t=1727875478; bh=vlT6BUE0i0bCZYlq2mO18x7e5FjTZyQeszvJG4JrHMA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=myM1DGRMncDaR+7yr2txYfOcDUmUZIeDlFmD1eh4Du3eZdubM4a0XjC1AS46zUGxq mj0/3TpSa2YvViuGWyA7MfKPca/Cm2Emi8kg3TMYORKHOxOnZCfv4aui4LNaAfrRaI smSpVcdTnbjS4gpZi9YCH8Ug52fy3oZe8r0g6jsTP9h0eqBRkPnf7IW4jLCS5tQWLr nc5834fgpSovFbYJa7msT6pm9uXJSFz6Ho790q8NkmnT4rU8VbrTpJFfgLhhEGCFT6 8v+ekzwafQemdypP8N2vc6st2ELjRjZ0auH6T7A1GJynGcO1g/l01zgSe4ie50+2xV btpdZ7RflDH0Q== 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, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Karl Chan Subject: [PATCH v2 3/3] arm: dts: qcom-ipq5018-linksys-jamaica: Include dts from arm64 Date: Wed, 2 Oct 2024 21:23:02 +0800 Message-ID: <20241002132302.31608-4-exxxxkc@getgoogleoff.me> In-Reply-To: <20241002132302.31608-1-exxxxkc@getgoogleoff.me> References: <20241002132302.31608-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" Build 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 --- 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.1