Add common RDP dtsi file for IPQ9574
v3 cover Add common RDP dtsi file for IPQ9574
Some interfaces are common across RDPs. Move the common nodes to ipq9574-rdp-common.dtsi like how it is done for IPQ5332. Use rdp specific dts file to include interfaces that vary across RDPs. For instance, IPQ9574 has 4 PCIE controllers. RDP417 enables PCIE0 and PCIE1 whereas RDP433 enables PCIE1, PCIE2 and PCIE3.
With the introduction of the common RDP DTSI,
- RDP433 gains SPI NOR support
- All the IPQ9574 RDPs gains USB2 and USB3 support
While at it, add support for WPS buttons.
Since Anusha's is busy and can't take up this series right now, I'm stepping up to work on this series.
Changes in V3:
- Reworded the cover letter to indicate the need and advantages
of common RDP DTSI
- Change logs are in respective patches
- V2: https://lore.kernel.org/linux-arm-msm/[email protected]/
Changes in V2:
- Detailed change logs are added to the respective patches.
- V1: https://lore.kernel.org/linux-arm-msm/[email protected]/
---
Anusha Rao (2):
arm64: dts: qcom: ipq9574: Add common RDP dtsi file
arm64: dts: qcom: ipq9574: Enable WPS buttons
arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi | 147 +++++++++++++++++++++++ arch/arm64/boot/dts/qcom/ipq9574-rdp418.dts | 63 +--------- arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 91 +------------- arch/arm64/boot/dts/qcom/ipq9574-rdp449.dts | 65 +--------- arch/arm64/boot/dts/qcom/ipq9574-rdp453.dts | 65 +--------- arch/arm64/boot/dts/qcom/ipq9574-rdp454.dts | 66 +--------- 6 files changed, 152 insertions(+), 345 deletions(-)
---
base-commit: 18030226a48de1fbfabf4ae16aaa2695a484254f
change-id: 20230927-common-rdp-52f90fd0fd77
Best regards,
Signature · 1 line
Kathiravan Thirumoorthy <[email protected]>
PATCH v3 1/2 arm64: dts: qcom: ipq9574: Add common RDP dtsi file
From: Anusha Rao <[email protected]>
Add a dtsi file to include interfaces that are common across RDPs.
---
Changes in V3:
- Fixed the indentation issue in TLMM node
Changes in V2:
- RDP418 and RDP433 supports shdc. Removed sdhc related nodes from common dtsi and added to corresponding rdp dts.
- Moved USB and regulator related nodes to common.dtsi.
- Updated rdp454 dts to use common.dtsi.
--- arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi | 125 +++++++++++++++++++++++ arch/arm64/boot/dts/qcom/ipq9574-rdp418.dts | 63 +----------- arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 91 +---------------- arch/arm64/boot/dts/qcom/ipq9574-rdp449.dts | 65 +----------- arch/arm64/boot/dts/qcom/ipq9574-rdp453.dts | 65 +----------- arch/arm64/boot/dts/qcom/ipq9574-rdp454.dts | 66 +----------- 6 files changed, 130 insertions(+), 345 deletions(-)
arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi new file +125 -0
@@ -0,0 +1,125 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * IPQ9574 RDP board common device tree source + * + * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; + +#include "ipq9574.dtsi" + +/ { + aliases { + serial0 = &blsp1_uart2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + regulator_fixed_3p3: s3300 { + compatible = "regulator-fixed"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + regulator-name = "fixed_3p3"; + }; + + regulator_fixed_0p925: s0925 { + compatible = "regulator-fixed"; + regulator-min-microvolt = <925000>; + regulator-max-microvolt = <925000>; + regulator-boot-on; + regulator-always-on; + regulator-name = "fixed_0p925"; + }; +}; + +&blsp1_spi0 { + pinctrl-0 = <&spi_0_pins>; + pinctrl-names = "default"; + status = "okay"; + + flash@0 { + compatible = "micron,n25q128a11", "jedec,spi-nor"; + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <50000000>; + }; +}; + +&blsp1_uart2 { + pinctrl-0 = <&uart2_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +&rpm_requests { + regulators { + compatible = "qcom,rpm-mp5496-regulators"; + + ipq9574_s1: s1 { + /* + * During kernel bootup, the SoC runs at 800MHz with 875mV set by the bootloaders. + * During regulator registration, kernel not knowing the initial voltage, + * considers it as zero and brings up the regulators with minimum supported voltage. + * Update the regulator-min-microvolt with SVS voltage of 725mV so that + * the regulators are brought up with 725mV which is sufficient for all the + * corner parts to operate at 800MHz + */ + regulator-min-microvolt = <725000>; + regulator-max-microvolt = <1075000>; + }; + + mp5496_l2: l2 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + }; +}; + +&sleep_clk { + clock-frequency = <32000>; +}; + +&tlmm { + spi_0_pins: spi-0-state { + pins = "gpio11", "gpio12", "gpio13", "gpio14"; + function = "blsp0_spi"; + drive-strength = <8>; + bias-disable; + }; +}; + +&usb_0_dwc3 { + dr_mode = "host"; +}; + +&usb_0_qmpphy { + vdda-pll-supply = <&mp5496_l2>; + vdda-phy-supply = <®ulator_fixed_0p925>; + + status = "okay"; +}; + +&usb_0_qusbphy { + vdd-supply = <®ulator_fixed_0p925>; + vdda-pll-supply = <&mp5496_l2>; + vdda-phy-dpdm-supply = <®ulator_fixed_3p3>; + + status = "okay"; +}; + +&usb3 { + status = "okay"; +}; + +&xo_board_clk { + clock-frequency = <24000000>; +};
arch/arm64/boot/dts/qcom/ipq9574-rdp418.dts +1 -62
84 lines not on this page · raw message
arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts +1 -90
110 lines not on this page · raw message
arch/arm64/boot/dts/qcom/ipq9574-rdp449.dts +1 -64
74 lines not on this page · raw message
arch/arm64/boot/dts/qcom/ipq9574-rdp453.dts +1 -64
74 lines not on this page · raw message
arch/arm64/boot/dts/qcom/ipq9574-rdp454.dts +1 -65
74 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v3 2/2 arm64: dts: qcom: ipq9574: Enable WPS buttons
In reply to Kathiravan ThirumoorthyFrom: Anusha Rao <[email protected]>
Add support for wps buttons on GPIO 37.
---
Changes in V3:
- None
Changes in V2:
- Removed linux,input-type from button-wps.
- Picked up Reviewed-by tag.
--- arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi +22 -0
@@ -8,6 +8,8 @@ /dts-v1/; +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> #include "ipq9574.dtsi" / {
@@ -36,6 +38,19 @@ regulator_fixed_0p925: s0925 { regulator-always-on; regulator-name = "fixed_0p925"; }; + + gpio-keys { + compatible = "gpio-keys"; + pinctrl-0 = <&gpio_keys_default>; + pinctrl-names = "default"; + + button-wps { + label = "wps"; + linux,code = <KEY_WPS_BUTTON>; + gpios = <&tlmm 37 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; + }; }; &blsp1_spi0 {
@@ -95,6 +110,13 @@ spi_0_pins: spi-0-state { drive-strength = <8>; bias-disable; }; + + gpio_keys_default: gpio-keys-default-state { + pins = "gpio37"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; }; &usb_0_dwc3 {
Signature · 1 line
2.34.1
Quoted 6 lines · Kathiravan Thirumoorthy
Some interfaces are common across RDPs. Move the common nodes to
ipq9574-rdp-common.dtsilike how it is done for IPQ5332. Use rdp specific dts file to include interfaces that vary across RDPs. For instance, IPQ9574 has 4 PCIE controllers. RDP417 enables PCIE0 and PCIE1 whereas RDP433 enables PCIE1, PCIE2 and PCIE3.
Quoted 8 lines
With the introduction of the common RDP DTSI,
- RDP433 gains SPI NOR support
- All the IPQ9574 RDPs gains USB2 and USB3 supportWhile at it, add support for WPS buttons.
Since Anusha's is busy and can't take up this series right now, I'm stepping up to work on this series.
Gentle Reminder...
Quoted 28 lines
Changes in V3:
- Reworded the cover letter to indicate the need and advantages
of common RDP DTSI
- Change logs are in respective patches
- V2: https://lore.kernel.org/linux-arm-msm/[email protected]/Changes in V2:
- Detailed change logs are added to the respective patches.
- V1: https://lore.kernel.org/linux-arm-msm/[email protected]/---
Anusha Rao (2):
arm64: dts: qcom: ipq9574: Add common RDP dtsi file
arm64: dts: qcom: ipq9574: Enable WPS buttonsarch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi | 147 +++++++++++++++++++++++ arch/arm64/boot/dts/qcom/ipq9574-rdp418.dts | 63 +--------- arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 91 +------------- arch/arm64/boot/dts/qcom/ipq9574-rdp449.dts | 65 +--------- arch/arm64/boot/dts/qcom/ipq9574-rdp453.dts | 65 +--------- arch/arm64/boot/dts/qcom/ipq9574-rdp454.dts | 66 +--------- 6 files changed, 152 insertions(+), 345 deletions(-)---
base-commit:18030226a48de1fbfabf4ae16aaa2695a484254f
change-id: 20230927-common-rdp-52f90fd0fd77Best regards,
Quoted 11 lines · Kathiravan Thirumoorthy
Some interfaces are common across RDPs. Move the common nodes to
ipq9574-rdp-common.dtsilike how it is done for IPQ5332. Use rdp specific dts file to include interfaces that vary across RDPs. For instance, IPQ9574 has 4 PCIE controllers. RDP417 enables PCIE0 and PCIE1 whereas RDP433 enables PCIE1, PCIE2 and PCIE3.With the introduction of the common RDP DTSI,
- RDP433 gains SPI NOR support
- All the IPQ9574 RDPs gains USB2 and USB3 support[...]
Applied, thanks!
[1/2] arm64: dts: qcom: ipq9574: Add common RDP dtsi file
commit: 0e8527d076cfb3fa55777a2ece735852fcf3e850
[2/2] arm64: dts: qcom: ipq9574: Enable WPS buttons
commit: 0e2f2c506f01abcec412ccf91ed39ddfafbda60aBest regards,
Signature · 1 line
Bjorn Andersson <[email protected]>