From patchwork Wed Oct 2 16:28:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Chan X-Patchwork-Id: 13820066 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 6DAA11D0F79; Wed, 2 Oct 2024 16:29:52 +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=1727886594; cv=none; b=YYufH+PapPKGeel7vcdryS9tyxgtdYyxXC3cic+bgK6c+5mzmQTcvPhX4/69q+qLodWe2R7b3O6r3DUBYFE+9/5axTNOn9a4rPTYuduWKAPRrc6y9XQoltIgVTpKw2oMqmzYpYVJh1DqAnfwFkV4e+zYPYau46Q8OkMlz0Kf9xA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727886594; c=relaxed/simple; bh=oV6B5e+qoTEsfbec+8stNvUBaHqTyHc4zEUqxUFmuBI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Y02S3zuv5vGKVrrWBzqWPIzTLsnuZAwWgHW9vsJs7JIfooJORWMIxVY1s7RmQn+tRgsLqhXujz4ihdsff8yuomdwe9uipXImydLeBFq0FXuEOlRwBsibK6XL4LNTX8PkwrbGtL2XSjBSaqDa8Yq72ppkM+t5VJLr3+XwDZQ4oig= 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=VXoY1RtY; 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="VXoY1RtY" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 936CD23E38; Wed, 2 Oct 2024 18:29:50 +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 ZfmGj_UkG7aa; Wed, 2 Oct 2024 18:29:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=getgoogleoff.me; s=mail; t=1727886590; bh=oV6B5e+qoTEsfbec+8stNvUBaHqTyHc4zEUqxUFmuBI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=VXoY1RtYBdpNBNwFc76mRD/6FhmsUphCyLFBsdbZclLHX6i6G8iH4dUxKwBe1abK/ oDsM4b3gjODtOlKVBG1CyHyP1wGbftVn5kMP9u+W0mnKcyv6rmRREnDrmISTdtl++C leHabIRUVfLJw9QkJbIU3GbLTpWogf4DH7w864dGiiknWPGSL6Gi/4/DsukQkmSxb8 3iXYUhq08o6t+Kn30z06rourTUrhrdbN8W1LW7Ly2mqTjeoCCnc/bNjDuMCo2Wq+Vc +JHMdxfOYg1XQsLNlxkmZGyThfIAbKd0JDMAeuEIVQp+ql6Ah1y1DzPVEI5st+20qS pLPsEkaPFgmaQ== 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 v4 1/5] dt-bindings: arm: qcom: add Linksys EA9350 V3 Date: Thu, 3 Oct 2024 00:28:08 +0800 Message-ID: <20241002162812.31606-2-exxxxkc@getgoogleoff.me> In-Reply-To: <20241002162812.31606-1-exxxxkc@getgoogleoff.me> References: <20241002162812.31606-1-exxxxkc@getgoogleoff.me> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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/Documentation/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: - items: - enum: + - linksys,jamaica - qcom,ipq5018-rdp432-c2 - tplink,archer-ax55-v1 - const: qcom,ipq5018 From patchwork Wed Oct 2 16:28:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Chan X-Patchwork-Id: 13820067 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 F0F3B1D1319; Wed, 2 Oct 2024 16:29:54 +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=1727886596; cv=none; b=F8eBHoJO4gqyJTN2h5XgRYvxlM9Tw4yvtbRDMTz6Oj4zkn35afzImJ53k2UaSMtnVZF67CnSZT4CUHggiW27x/Sqt5tdsJrVJOyEb/SjZf+UtJrcMLjl5pnfRQ+X+BRBbFenA4xrHBhoUqpJcy1Sei1W4rngjZlFXM+79zVsnI8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727886596; c=relaxed/simple; bh=ITATyZ4Z+JHoH86vgKBaXuWqxfB+G2/InUmiUueNFLA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a0xZ/rbqMNcJgC7jncpUtcCFPAoU7eGI2Bn01SOSUaHE7xyrQ1T2u2utRaF/XRbvByEf7CO4X3mi3uAcziqHTlEsiSAbth5Cav/HY07eL5uR1epg6qWvaZogI6lrYbtf2gqPzqmqr5FL+rFTDz/gIzeDfZDZpL7Q9stAdOTJ03E= 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=sepdjXct; 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="sepdjXct" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 889F123D3C; Wed, 2 Oct 2024 18:29:53 +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 rxo2KDBkOY9U; Wed, 2 Oct 2024 18:29:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=getgoogleoff.me; s=mail; t=1727886593; bh=ITATyZ4Z+JHoH86vgKBaXuWqxfB+G2/InUmiUueNFLA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=sepdjXctUGjQRalufgEC6NHiClM47sXco505r6EdAcBVAhOrxSZGD7XgMaGcZv/OK THD17t7Hucjmbf8nHVQ9xATtGIuvz/jF1hpd674vMJ8yw5MgvWndZN01AKnk9ryV86 bVF8/QkgC5T16GudIteAiLh0rsM91O6zfs2IfzKA7Opld8bWqLvLY14zhSqija2Mcv 0BJJxyNwoCBV78JSjNpkFgHCcm+i8YjWTP9Pi2C4mP8k6wpFy+1D/MO6uA1luAMUvH 51oLUzyHmE513GZ5DvkLNgo856b47mGAqq6eKn5FNeTd8WvNz00RC6ozOdd/qLJinF 55SZzwxuzd2Sg== 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 v4 2/5] arm64: dts: qcom: add Linksys EA9350 V3 Date: Thu, 3 Oct 2024 00:28:09 +0800 Message-ID: <20241002162812.31606-3-exxxxkc@getgoogleoff.me> In-Reply-To: <20241002162812.31606-1-exxxxkc@getgoogleoff.me> References: <20241002162812.31606-1-exxxxkc@getgoogleoff.me> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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. 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 kernel 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/Makefile 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) += apq8039-t2.dtb dtb-$(CONFIG_ARCH_QCOM) += apq8094-sony-xperia-kitakami-karin_windy.dtb dtb-$(CONFIG_ARCH_QCOM) += apq8096-db820c.dtb dtb-$(CONFIG_ARCH_QCOM) += apq8096-ifc6640.dtb +dtb-$(CONFIG_ARCH_QCOM) += ipq5018-linksys-jamaica.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq5018-rdp432-c2.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq5018-tplink-archer-ax55-v1.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq5332-rdp441.dtb diff --git a/arch/arm64/boot/dts/qcom/ipq5018-linksys-jamaica.dts b/arch/arm64/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 device. + * + * However, it is possible to use this device tree by compiling an ARM32 kernel + * instead. For clarity and build testing this device tree is maintained next + * 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 = "Linksys EA9350 V3"; + compatible = "linksys,jamaica", "qcom,ipq5018"; + + aliases { + serial0 = &blsp1_uart1; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + gpio-keys { + compatible = "gpio-keys"; + pinctrl-0 = <&button_pins>; + pinctrl-names = "default"; + + button-0 { + label = "reset"; + linux,code = ; + gpios = <&tlmm 28 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; + + button-1 { + label = "wps"; + linux,code = ; + gpios = <&tlmm 27 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-0 = <&led_pins>; + pinctrl-names = "default"; + + led-0 { + color = ; + function = LED_FUNCTION_USB; + gpios = <&tlmm 19 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&blsp1_uart1 { + pinctrl-0 = <&uart1_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +&sleep_clk { + clock-frequency = <32000>; +}; + +&tlmm { + button_pins: button-pins-state { + pins = "gpio27", "gpio28"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; + + led_pins: led-pins-state { + pins = "gpio19"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; +}; + +&usb { + status = "okay"; +}; + +&usb_dwc { + dr_mode = "host"; +}; + +&usbphy0 { + status = "okay"; +}; + +&xo_board_clk { + clock-frequency = <24000000>; +}; From patchwork Wed Oct 2 16:28:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Chan X-Patchwork-Id: 13820068 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 ACA091D31A5; Wed, 2 Oct 2024 16:29:57 +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=1727886599; cv=none; b=pRZ0LTRB3j58XFOc1kQqz5MaLZms2GX/pwDtUT1eUCKJae7ekc4zeKoJnNQNkpX5Ka7hoImGWOs2kWx7EFX8M+LnD5X9hKjpHMRe4UF6DAAWVMcs9OwoLmOhCT9To0MymV/hXNkKz3S+tL+kBZPKLbeEpK4IdenwyKTHfy3gM6U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727886599; c=relaxed/simple; bh=kkbTx5Cgt7G+P6xs+9X+HNQrS0uHhWMptZCOhmNsQ4c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=m7wyoAG+J9/3bdBr79lK6ck7YM/gIw5b7MtsolT8EwM9gil25fsnEtDi6K+5XDk4k3sghYlETMwgOQ+Q/+PFY692YiI5ufL3AQO4qfORT7jxhmesZUbPBcAOAMzWzc4GbNUyLQt83tLozW3z1ajRT5fl2YqEjwjFpQ5fdFaRP48= 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=VdW4evdE; 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="VdW4evdE" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 3F91E23D65; Wed, 2 Oct 2024 18:29:56 +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 wQsAR_GTJ3QJ; Wed, 2 Oct 2024 18:29:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=getgoogleoff.me; s=mail; t=1727886595; bh=kkbTx5Cgt7G+P6xs+9X+HNQrS0uHhWMptZCOhmNsQ4c=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=VdW4evdEhDgrDnquXlyPANj9/UFzkaotuaIR6hgy1s2uENxUfksy+slhcDSEvxLbQ A8vPN5F6aRGpF6b7hi6P2n/6bcKNqxBdjR7BBrPMoyewpQ0xz+DyCt/WcSuGMYvHR0 Wp2SzeuwyGA+hNlyVIqeKVp9VmbCGK4aqKH7wz2ZIDuN/E9esc2vs4wsJrzY+c4dHO PUNJVRsxwXAxh8CeGHLhdqZh3EGNvX5XhNQK8YlZDNP9sW0WEFRtoitLsPrs1g7+5U qxSTrItdEhvS4Z00hvYNHmuBQkER/qRW2uBhQWA9T7GhDkM2GMEwTKVWBUtwaHY2Dm QD4UD/U43MMRw== 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 v4 3/5] clk: qcom: ipq5018: allow it to be bulid on arm32 Date: Thu, 3 Oct 2024 00:28:10 +0800 Message-ID: <20241002162812.31606-4-exxxxkc@getgoogleoff.me> In-Reply-To: <20241002162812.31606-1-exxxxkc@getgoogleoff.me> References: <20241002162812.31606-1-exxxxkc@getgoogleoff.me> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- 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 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, From patchwork Wed Oct 2 16:28:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Chan X-Patchwork-Id: 13820069 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 A67301D3567; Wed, 2 Oct 2024 16:30:00 +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=1727886602; cv=none; b=kdT76KBIwp74gKA6ec+CmxOS62r9mn07+zeiFFRlGkCYsHX9KW90fie0zDw4E3YP2zS9gBsoYuTkQGjfz3BJLQb2QU0sC13rHgu+z+0Rv3aymADaINTMGlg0126NIhITo9VDD5eZ1CZ4kgo0eK2vyUChTC2K8Hr01Bdg8b4VeJ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727886602; c=relaxed/simple; bh=wUi5FazQh9l5954YKYfpIcL7gMt40vrjwoWJyXerfzE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oUX13i9upjXSlRPizOuE+FYy8fQ6h4Z9b+D+01uE16IXkkWtjHyZgODufZ3XXYSttiZS6ZDObv8fnn/Xz7t5p9DVuAMHXA3LEVTqJ28/LNounJpxI3xV1rbrme/XwpVDlt+hc/xHamHCt5B9Fv8SLodCTYcduCkL9C584Ejbx3s= 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=t4pJARMh; 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="t4pJARMh" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 36EA623D4B; Wed, 2 Oct 2024 18:29:59 +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 hunYhhxkS--D; Wed, 2 Oct 2024 18:29:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=getgoogleoff.me; s=mail; t=1727886598; bh=wUi5FazQh9l5954YKYfpIcL7gMt40vrjwoWJyXerfzE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=t4pJARMhD6fJ2QyknBTsJnRdQLglg5FKA0OnuJUQuhcKILwn5tPcT1meEgZFkhO9A e2GA5XObBTSSt/0Ql6n3BhblaMv+dMuDkqM0bzt/zyRDC+pB7S4NdaT0T0FwcvqU6c Z0HEs9ui2d2PehMzrsq/coqF1Kcd7J++2cmRd1auhkFrza88PJRA1RuZvNRrtgetYq uvFtr7knPbhuChozxlx5qBfRRROxp28Udi9zTd497dyJBrTmj/5UsvFN2wqOV0M6I3 hUF3UwG40XQmQCfasJcJP+nEMaMkfYKHleTJGloxu0p78ZjaK8OXr6jqsjage+IRcv QxQ8/8OJ646UQ== 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 v4 4/5] pinctrl: qcom: ipq5018: allow it to be bulid on arm32 Date: Thu, 3 Oct 2024 00:28:11 +0800 Message-ID: <20241002162812.31606-5-exxxxkc@getgoogleoff.me> In-Reply-To: <20241002162812.31606-1-exxxxkc@getgoogleoff.me> References: <20241002162812.31606-1-exxxxkc@getgoogleoff.me> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- 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/Kconfig.msm index 8fe459d082ed..65cec6c50994 100644 --- a/drivers/pinctrl/qcom/Kconfig.msm +++ b/drivers/pinctrl/qcom/Kconfig.msm @@ -24,7 +24,7 @@ config PINCTRL_IPQ4019 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 From patchwork Wed Oct 2 16:28:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Chan X-Patchwork-Id: 13820070 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 6E51C16419; Wed, 2 Oct 2024 16:30:03 +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=1727886604; cv=none; b=mcY+tj2j60d69rTYQYRAT8ZeoBs3Fdr6N6UaIjbQ3mRMYSEbL5YM2HWs5JeMQgivITzcLcq8JnRgGbYiwkEbaIrlO7UD6SXU+SSYrS79EqMbKN23PrniV6V0Cz7XDPdbTqTRexGRtMJg7Yd0TFbvb1DiwHip2MYo6XmKYddzsiw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727886604; c=relaxed/simple; bh=vlT6BUE0i0bCZYlq2mO18x7e5FjTZyQeszvJG4JrHMA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Nge0ngMbPJ0xjSugOUbRI4+gyKSXAGb70bd7RYWkCEX4Liwvv6FHULn5L1+9THefXugWiZFThW4Joq+vnslQKyu5DB1yZJrWoDF1ZtwZuCY0y+NxvoKYHpE1LqsLqF8iNQobmUlXEMV/VpMTYYgIDcUpwBmErjUIXnGLpTRN1Eo= 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=ECYSa+sG; 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="ECYSa+sG" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 260C323DED; Wed, 2 Oct 2024 18:30:02 +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 KDZcdVSI-aPt; Wed, 2 Oct 2024 18:30:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=getgoogleoff.me; s=mail; t=1727886601; bh=vlT6BUE0i0bCZYlq2mO18x7e5FjTZyQeszvJG4JrHMA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ECYSa+sGpZuvIWEFCI4wlYdPivuIg2u7ufBaP2HCT/Fw+cH8PdM6EXRACD4tALqp6 No7wlyl2wh+POoquqoLkECoExyEZkpcOkQR+2M0ZFG6vi/glGHzQ51FH4lSxOhDULf S8FLox+BZ0LgxUPyfLXK2rcuiMKg0wV4k3vo9VMCZxBFBY44w1s4YrwW1Lua0bzS/d pkgT/pRyXntQz2xM4ysm3c9F471AhbRGlm7b6+jW7yPSpXzyhwjKwgtWHnM41jI7K9 iaoHj5e2sgPRCfjordpkMmcPPzLUx5ZQh52ZjWrKy1ztFo/4svrahkeJQUtROcyn91 QkMx0D0XHQNww== 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 v4 5/5] arm: dts: qcom-ipq5018-linksys-jamaica: Include dts from arm64 Date: Thu, 3 Oct 2024 00:28:12 +0800 Message-ID: <20241002162812.31606-6-exxxxkc@getgoogleoff.me> In-Reply-To: <20241002162812.31606-1-exxxxkc@getgoogleoff.me> References: <20241002162812.31606-1-exxxxkc@getgoogleoff.me> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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/Makefile 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) += \ 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