Add minimal boot support for IPQ9574
Subsystems (10)
v9 cover Add minimal boot support for IPQ9574
The IPQ9574 is Qualcomm's 802.11ax SoC for Routers, Gateways and Access Points
This series adds minimal board boot support for ipq9574-al02-c7 board
V8 can be found at:
https://lore.kernel.org/linux-arm-kernel/[email protected]/
Changes in V9:
- Dropped 'dt-bindings: arm: qcom: Add ipq9574 compatible' as it is already part of the for-next branch
- Change logs are added to the respective patches
Devi Priya (6):
dt-bindings: clock: Add ipq9574 clock and reset definitions
clk: qcom: Add Global Clock Controller driver for IPQ9574
dt-bindings: pinctrl: qcom: Add support for IPQ9574
pinctrl: qcom: Add IPQ9574 pinctrl driver
arm64: dts: qcom: Add ipq9574 SoC and AL02 board support
arm64: defconfig: Enable IPQ9574 SoC base configs
.../bindings/clock/qcom,ipq9574-gcc.yaml | 61 + .../bindings/pinctrl/qcom,ipq9574-tlmm.yaml | 130 + arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/ipq9574-al02-c7.dts | 84 + arch/arm64/boot/dts/qcom/ipq9574.dtsi | 270 ++ arch/arm64/configs/defconfig | 2 + drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/gcc-ipq9574.c | 4248 +++++++++++++++++ drivers/pinctrl/qcom/Kconfig | 11 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-ipq9574.c | 826 ++++ include/dt-bindings/clock/qcom,ipq9574-gcc.h | 213 + include/dt-bindings/reset/qcom,ipq9574-gcc.h | 164 + 14 files changed, 6020 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,ipq9574-gcc.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,ipq9574-tlmm.yaml create mode 100644 arch/arm64/boot/dts/qcom/ipq9574-al02-c7.dts create mode 100644 arch/arm64/boot/dts/qcom/ipq9574.dtsi create mode 100644 drivers/clk/qcom/gcc-ipq9574.c create mode 100644 drivers/pinctrl/qcom/pinctrl-ipq9574.c create mode 100644 include/dt-bindings/clock/qcom,ipq9574-gcc.h create mode 100644 include/dt-bindings/reset/qcom,ipq9574-gcc.h
base-commit: 6f72958a49f68553f2b6ff713e8c8e51a34c1e1e
Signature · 1 line
2.17.1
PATCH v9 1/6 dt-bindings: clock: Add ipq9574 clock and reset definitions
Add clock and reset ID definitions for ipq9574
---
Changes in V9:
- Updated the SoC ID from 9048 to 9574 in clock & reset bindings
.../bindings/clock/qcom,ipq9574-gcc.yaml | 61 +++++ include/dt-bindings/clock/qcom,ipq9574-gcc.h | 213 ++++++++++++++++++ include/dt-bindings/reset/qcom,ipq9574-gcc.h | 164 ++++++++++++++ 3 files changed, 438 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,ipq9574-gcc.yaml create mode 100644 include/dt-bindings/clock/qcom,ipq9574-gcc.h create mode 100644 include/dt-bindings/reset/qcom,ipq9574-gcc.h
Documentation/devicetree/bindings/clock/qcom,ipq9574-gcc.yaml new file +61 -0
@@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,ipq9574-gcc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Global Clock & Reset Controller on IPQ9574 + +maintainers: + - Anusha Rao <[email protected]> + +description: | + Qualcomm global clock control module provides the clocks, resets and power + domains on IPQ9574 + + See also:: + include/dt-bindings/clock/qcom,ipq9574-gcc.h + include/dt-bindings/reset/qcom,ipq9574-gcc.h + +properties: + compatible: + const: qcom,ipq9574-gcc + + clocks: + items: + - description: Board XO source + - description: Sleep clock source + - description: Bias PLL ubi clock source + - description: PCIE30 PHY0 pipe clock source + - description: PCIE30 PHY1 pipe clock source + - description: PCIE30 PHY2 pipe clock source + - description: PCIE30 PHY3 pipe clock source + - description: USB3 PHY pipe clock source + +required: + - compatible + - clocks + +allOf: + - $ref: qcom,gcc.yaml# + +unevaluatedProperties: false + +examples: + - | + clock-controller@1800000 { + compatible = "qcom,ipq9574-gcc"; + reg = <0x01800000 0x80000>; + clocks = <&xo_board_clk>, + <&sleep_clk>, + <&bias_pll_ubi_nc_clk>, + <&pcie30_phy0_pipe_clk>, + <&pcie30_phy1_pipe_clk>, + <&pcie30_phy2_pipe_clk>, + <&pcie30_phy3_pipe_clk>, + <&usb3phy_0_cc_pipe_clk>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; +...
include/dt-bindings/clock/qcom,ipq9574-gcc.h new file +213 -0
213 lines not on this page · raw message
include/dt-bindings/reset/qcom,ipq9574-gcc.h new file +164 -0
164 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v9 2/6 clk: qcom: Add Global Clock Controller driver for IPQ9574
In reply to Devi PriyaAdd Global Clock Controller (GCC) driver for ipq9574 based devices
---
Changes in V9:
- No change
drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/gcc-ipq9574.c | 4248 ++++++++++++++++++++++++++++++++ 3 files changed, 4257 insertions(+) create mode 100644 drivers/clk/qcom/gcc-ipq9574.c
drivers/clk/qcom/Kconfig +8 -0
@@ -173,6 +173,14 @@ config IPQ_GCC_8074 i2c, USB, SD/eMMC, etc. Select this for the root clock of ipq8074. +config IPQ_GCC_9574 + tristate "IPQ9574 Global Clock Controller" + help + Support for global clock controller on ipq9574 devices. + Say Y if you want to use peripheral devices such as UART, SPI, + i2c, USB, SD/eMMC, etc. Select this for the root clock + of ipq9574. + config MSM_GCC_8660 tristate "MSM8660 Global Clock Controller" help
drivers/clk/qcom/Makefile +1 -0
@@ -27,6 +27,7 @@ obj-$(CONFIG_IPQ_GCC_4019) += gcc-ipq4019.o obj-$(CONFIG_IPQ_GCC_6018) += gcc-ipq6018.o obj-$(CONFIG_IPQ_GCC_806X) += gcc-ipq806x.o obj-$(CONFIG_IPQ_GCC_8074) += gcc-ipq8074.o +obj-$(CONFIG_IPQ_GCC_9574) += gcc-ipq9574.o obj-$(CONFIG_IPQ_LCC_806X) += lcc-ipq806x.o obj-$(CONFIG_MDM_GCC_9607) += gcc-mdm9607.o obj-$(CONFIG_MDM_GCC_9615) += gcc-mdm9615.o
drivers/clk/qcom/gcc-ipq9574.c new file +4248 -0
2,979 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.17.1
Part of the diff is not shown here. View the raw message.
PATCH v9 3/6 dt-bindings: pinctrl: qcom: Add support for IPQ9574
In reply to Devi PriyaAdd new binding document for pinctrl on IPQ9574
---
Changes in V9:
- Added the Reviewed-by tag
.../bindings/pinctrl/qcom,ipq9574-tlmm.yaml | 130 ++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,ipq9574-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/qcom,ipq9574-tlmm.yaml new file +130 -0
@@ -0,0 +1,130 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,ipq9574-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. IPQ9574 TLMM block + +maintainers: + - Bjorn Andersson <[email protected]> + - Krzysztof Kozlowski <[email protected]> + +description: + Top Level Mode Multiplexer pin controller in Qualcomm IPQ9574 SoC. + +properties: + compatible: + const: qcom,ipq9574-tlmm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-controller: true + "#interrupt-cells": true + gpio-controller: true + "#gpio-cells": true + gpio-ranges: true + wakeup-parent: true + + gpio-reserved-ranges: + minItems: 1 + maxItems: 33 + + gpio-line-names: + maxItems: 65 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-ipq9574-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-ipq9574-tlmm-state" + additionalProperties: false + +$defs: + qcom-ipq9574-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + pattern: "^gpio([0-9]|[1-5][0-9]|6[0-4])$" + minItems: 1 + maxItems: 8 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ atest_char, atest_char0, atest_char1, atest_char2, atest_char3, + audio_pdm0, audio_pdm1, audio_pri, audio_sec, blsp0_spi, blsp0_uart, + blsp1_i2c, blsp1_spi, blsp1_uart, blsp2_i2c, blsp2_spi, + blsp2_uart, blsp3_i2c, blsp3_spi, blsp3_uart, blsp4_i2c, + blsp4_spi, blsp4_uart, blsp5_i2c, blsp5_uart, cri_trng0, + cri_trng1, cri_trng3, cxc0, cxc1, dbg_out, dwc_ddrphy, + gcc_plltest, gcc_tlmm, mac, mdc, mdio, pcie0_clk, pcie0_wake, + pcie1_clk, pcie1_wake, pcie2_clk, pcie2_wake, pcie3_clk, pcie3_wake, + prng_rosc0, prng_rosc1, prng_rosc2, prng_rosc3, pta, pwm, + qdss_cti_trig_in_a0, qdss_cti_trig_in_a1, qdss_cti_trig_in_b0, + qdss_cti_trig_in_b1, qdss_cti_trig_out_a0, qdss_cti_trig_out_a1, + qdss_cti_trig_out_b0, qdss_cti_trig_out_b1, qdss_traceclk_a, + qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b, qdss_tracedata_a, + qdss_tracedata_b, qdss_tracedata_b, qspi_clk, qspi_cs, qspi_data, + rx0, rx1, sdc_clk, sdc_cmd, sdc_data, sdc_rclk, tsens_max, + wci20, wci21, wsa_swrm ] + + bias-pull-down: true + bias-pull-up: true + bias-disable: true + drive-strength: true + input-enable: true + output-high: true + output-low: true + + required: + - pins + + additionalProperties: false + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + tlmm: pinctrl@1000000 { + compatible = "qcom,ipq9574-tlmm"; + reg = <0x01000000 0x300000>; + interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-ranges = <&tlmm 0 0 65>; + + uart2-state { + pins = "gpio34", "gpio35"; + function = "blsp2_uart"; + drive-strength = <8>; + bias-pull-down; + }; + };
Signature · 1 line
2.17.1
Re: [PATCH V9 3/6] dt-bindings: pinctrl: qcom: Add support for IPQ9574
Quoted 9 lines · Devi Priya
Add new binding document for pinctrl on IPQ9574
Reviewed-by Krzysztof Kozlowski <[email protected]>Co-developed-by Anusha Rao <[email protected]>Signed-off-by Anusha Rao <[email protected]>Signed-off-by Devi Priya <[email protected]>---
Changes in V9:
- Added the Reviewed-by tag
This patch applied to the pinctrl tree.
Yours,
Linus Walleij
PATCH v9 4/6 pinctrl: qcom: Add IPQ9574 pinctrl driver
In reply to Devi PriyaAdd pinctrl definitions for the TLMM of IPQ9574
---
Changes in V9:
- Added COMPILE_TEST for non-OF configurations in config PINCTRL_IPQ9574
- Unwrapped the lines for PINGROUP 34 & 62 in ipq9574_groups
- Removed the comma from terminator line in ipq9574_pinctrl_of_match[] array
- Moved the MODULE_DEVICE_TABLE entry just below the array ipq9574_pinctrl_of_match[]
drivers/pinctrl/qcom/Kconfig | 11 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-ipq9574.c | 826 +++++++++++++++++++++++++ 3 files changed, 838 insertions(+) create mode 100644 drivers/pinctrl/qcom/pinctrl-ipq9574.c
drivers/pinctrl/qcom/Kconfig +11 -0
@@ -80,6 +80,17 @@ config PINCTRL_IPQ6018 Qualcomm Technologies Inc. IPQ6018 platform. Select this for IPQ6018. +config PINCTRL_IPQ9574 + tristate "Qualcomm Technologies, Inc. IPQ9574 pin controller driver" + depends on OF || COMPILE_TEST + depends on ARM64 || COMPILE_TEST + depends on PINCTRL_MSM + help + This is the pinctrl, pinmux, pinconf and gpiolib driver for + the Qualcomm Technologies Inc. TLMM block found on the + Qualcomm Technologies Inc. IPQ9574 platform. Select this for + IPQ9574. + config PINCTRL_MSM8226 tristate "Qualcomm 8226 pin controller driver" depends on OF
drivers/pinctrl/qcom/Makefile +1 -0
@@ -8,6 +8,7 @@ obj-$(CONFIG_PINCTRL_IPQ8064) += pinctrl-ipq8064.o obj-$(CONFIG_PINCTRL_IPQ5332) += pinctrl-ipq5332.o obj-$(CONFIG_PINCTRL_IPQ8074) += pinctrl-ipq8074.o obj-$(CONFIG_PINCTRL_IPQ6018) += pinctrl-ipq6018.o +obj-$(CONFIG_PINCTRL_IPQ9574) += pinctrl-ipq9574.o obj-$(CONFIG_PINCTRL_MSM8226) += pinctrl-msm8226.o obj-$(CONFIG_PINCTRL_MSM8660) += pinctrl-msm8660.o obj-$(CONFIG_PINCTRL_MSM8960) += pinctrl-msm8960.o
drivers/pinctrl/qcom/pinctrl-ipq9574.c new file +826 -0
826 lines not on this page · raw message
Signature · 1 line
2.17.1
Re: [PATCH V9 4/6] pinctrl: qcom: Add IPQ9574 pinctrl driver
Quoted 6 lines · Devi Priya
Add pinctrl definitions for the TLMM of IPQ9574
Reviewed-by Krzysztof Kozlowski <[email protected]>Co-developed-by Anusha Rao <[email protected]>Signed-off-by Anusha Rao <[email protected]>Signed-off-by Devi Priya <[email protected]>
Quoted 7 lines
---
Changes in V9:
- AddedCOMPILE_TESTfor non-OF configurations in configPINCTRL_IPQ9574
- Unwrapped the lines for PINGROUP 34 & 62 inipq9574_groups
- Removed the comma from terminator line in ipq9574_pinctrl_of_match[] array
- Moved theMODULE_DEVICE_TABLEentry just below the array ipq9574_pinctrl_of_match[]
Looks good to me but I would like Bjorns ACK on this patch before I merge it if possible.
Yours,
Linus Walleij
Re: [PATCH V9 4/6] pinctrl: qcom: Add IPQ9574 pinctrl driver
Quoted 16 lines · Linus Walleij
Quoted 6 lines · Devi Priya
Add pinctrl definitions for the TLMM of IPQ9574
Reviewed-by Krzysztof Kozlowski <[email protected]>Co-developed-by Anusha Rao <[email protected]>Signed-off-by Anusha Rao <[email protected]>Signed-off-by Devi Priya <[email protected]>Quoted 7 lines
---
Changes in V9:
- AddedCOMPILE_TESTfor non-OF configurations in configPINCTRL_IPQ9574
- Unwrapped the lines for PINGROUP 34 & 62 inipq9574_groups
- Removed the comma from terminator line in ipq9574_pinctrl_of_match[] array
- Moved theMODULE_DEVICE_TABLEentry just below the array ipq9574_pinctrl_of_match[]
Quoted 2 lines
Looks good to me but I would like Bjorns ACK on this patch before I merge it if possible.
Ah wait I see that bjorn already merged the DTS file so I guess he's fine with the set. Patch applied!
Yours,
Linus Walleij
PATCH v9 5/6 arm64: dts: qcom: Add ipq9574 SoC and AL02 board support
In reply to Devi PriyaAdd initial device tree support for Qualcomm IPQ9574 SoC and AL02 board
---
Changes in V9:
- No change
arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/ipq9574-al02-c7.dts | 84 ++++++ arch/arm64/boot/dts/qcom/ipq9574.dtsi | 270 +++++++++++++++++++ 3 files changed, 355 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/ipq9574-al02-c7.dts create mode 100644 arch/arm64/boot/dts/qcom/ipq9574.dtsi
arch/arm64/boot/dts/qcom/Makefile +1 -0
@@ -7,6 +7,7 @@ dtb-$(CONFIG_ARCH_QCOM) += ipq6018-cp01-c1.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq8074-hk01.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq8074-hk10-c1.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq8074-hk10-c2.dtb +dtb-$(CONFIG_ARCH_QCOM) += ipq9574-al02-c7.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-acer-a1-724.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-alcatel-idol347.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-asus-z00l.dtb
arch/arm64/boot/dts/qcom/ipq9574-al02-c7.dts new file +84 -0
84 lines not on this page · raw message
arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +270 -0
270 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v9 6/6 arm64: defconfig: Enable IPQ9574 SoC base configs
In reply to Devi PriyaEnables clk & pinctrl related configs for Qualcomm IPQ9574 SoC
---
Changes in V9:
- No change
arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/configs/defconfig +2 -0
@@ -546,6 +546,7 @@ CONFIG_PINCTRL_IMX93=y CONFIG_PINCTRL_MSM=y CONFIG_PINCTRL_IPQ8074=y CONFIG_PINCTRL_IPQ6018=y +CONFIG_PINCTRL_IPQ9574=y CONFIG_PINCTRL_MSM8916=y CONFIG_PINCTRL_MSM8953=y CONFIG_PINCTRL_MSM8976=y
@@ -1127,6 +1128,7 @@ CONFIG_QCOM_CLK_SMD_RPM=y CONFIG_QCOM_CLK_RPMH=y CONFIG_IPQ_GCC_6018=y CONFIG_IPQ_GCC_8074=y +CONFIG_IPQ_GCC_9574=y CONFIG_MSM_GCC_8916=y CONFIG_MSM_GCC_8994=y CONFIG_MSM_MMCC_8996=y
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: (subset) [PATCH V9 0/6] Add minimal boot support for IPQ9574
In reply to Devi PriyaQuoted 9 lines · Devi Priya
The IPQ9574 is Qualcomm's 802.11ax SoC for Routers, Gateways and Access Points
This series adds minimal board boot support for ipq9574-al02-c7 board
V8 can be found at:
https://lore.kernel.org/linux-arm-kernel/[email protected]/[...]
Applied, thanks!
[6/6] arm64: defconfig: Enable IPQ9574 SoC base configs
commit: 34d1a90bdb8a2759b9646c8596eea495b4cb02ac
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>