Add minimal boot support for IPQ9574
Subsystems (7)
v10 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-rdp433 variant
V9 can be found at:
https://lore.kernel.org/linux-arm-kernel/[email protected]/
Changes in V10:
- Dropped the pinctrl driver and its binding as it is already part of the linux-next/master
- Detailed change log is present in the respective patches
Devi Priya (4):
dt-bindings: clock: Add ipq9574 clock and reset definitions
clk: qcom: Add Global Clock Controller driver for IPQ9574
arm64: dts: qcom: Add support for ipq9574 SoC and RDP433 variant
arm64: defconfig: Enable IPQ9574 SoC base configs
.../bindings/clock/qcom,ipq9574-gcc.yaml | 62 + arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/ipq9574-rdp433.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 +++++++++++++++++ include/dt-bindings/clock/qcom,ipq9574-gcc.h | 213 + include/dt-bindings/reset/qcom,ipq9574-gcc.h | 164 + 10 files changed, 5053 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,ipq9574-gcc.yaml create mode 100644 arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts create mode 100644 arch/arm64/boot/dts/qcom/ipq9574.dtsi create mode 100644 drivers/clk/qcom/gcc-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: 011eb7443621f49ca1e8cdf9c74c215f25019118
Signature · 1 line
2.17.1
PATCH v10 1/4 dt-bindings: clock: Add ipq9574 clock and reset definitions
Add clock and reset ID definitions for ipq9574
---
Changes in V10:
- Added Bjorn Andersson to the maintainers list in qcom,ipq9574-gcc.yaml
.../bindings/clock/qcom,ipq9574-gcc.yaml | 62 +++++ include/dt-bindings/clock/qcom,ipq9574-gcc.h | 213 ++++++++++++++++++ include/dt-bindings/reset/qcom,ipq9574-gcc.h | 164 ++++++++++++++ 3 files changed, 439 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 +62 -0
@@ -0,0 +1,62 @@ +# 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: + - Bjorn Andersson <[email protected]> + - 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 v10 2/4 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 V10:
- 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
@@ -181,6 +181,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
@@ -28,6 +28,7 @@ obj-$(CONFIG_IPQ_GCC_5332) += gcc-ipq5332.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.
Stephen Boyd
maintainerRe: [PATCH V10 2/4] clk: qcom: Add Global Clock Controller driver for IPQ9574
Quoting Devi Priya (2023-03-27 06:27:16)
Quoted 7 lines
drivers/clk/qcom/gcc-ipq9574.c new file +1
-0@@ -0,0 +1,4248 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
drivers/clk/qcom/gcc-ipq9574.c line 11
Quoted 10 lines
drivers/clk/qcom/gcc-ipq9574.c new file +10
-0+/* +* Copyright (c) 2023 The Linux Foundation. All rights reserved. +*/ + +#include <linux/kernel.h> +#include <linux/err.h> +#include <linux/platform_device.h> +#include <linux/module.h> +#include <linux/of.h> +#include <linux/of_device.h>
What is this include for?
drivers/clk/qcom/gcc-ipq9574.c line 12
Quoted 1 line
drivers/clk/qcom/gcc-ipq9574.c new file +1
-0+#include <linux/regmap.h>
Need to include clk-provider.h
drivers/clk/qcom/gcc-ipq9574.c line 14
Quoted 2 lines
drivers/clk/qcom/gcc-ipq9574.c new file +2
-0+ +#include <linux/reset-controller.h>
Put a newline here.
Quoted 48 lines
drivers/clk/qcom/gcc-ipq9574.c new file +48
-0+#include <dt-bindings/clock/qcom,ipq9574-gcc.h> +#include <dt-bindings/reset/qcom,ipq9574-gcc.h> + +#include "clk-rcg.h" +#include "clk-branch.h" +#include "clk-alpha-pll.h" +#include "clk-regmap-divider.h" +#include "clk-regmap-mux.h" +#include "clk-regmap-phy-mux.h" +#include "reset.h" + +/* Need to match the order of clocks in DT binding */ +enum { +DT_XO , +DT_SLEEP_CLK , +DT_BIAS_PLL_UBI_NC_CLK , +DT_PCIE30_PHY0_PIPE_CLK , +DT_PCIE30_PHY1_PIPE_CLK , +DT_PCIE30_PHY2_PIPE_CLK , +DT_PCIE30_PHY3_PIPE_CLK , +DT_USB3PHY_0_CC_PIPE_CLK , +}; + +enum { +P_XO , +P_PCIE30_PHY0_PIPE , +P_PCIE30_PHY1_PIPE , +P_PCIE30_PHY2_PIPE , +P_PCIE30_PHY3_PIPE , +P_USB3PHY_0_PIPE , +P_GPLL0 , +P_GPLL0_DIV2 , +P_GPLL0_OUT_AUX , +P_GPLL2 , +P_GPLL4 , +P_PI_SLEEP , +P_BIAS_PLL_UBI_NC_CLK , +}; + +static const struct parent_map gcc_xo_map[] = { + {P_XO ,0 }, +}; + +static const struct clk_parent_data gcc_xo_data[] = { + { .index =DT_XO }, +}; + +static const struct clk_parent_data gcc_sleep_clk_data[] = {
drivers/clk/qcom/gcc-ipq9574.c line 72
Quoted 10 lines
drivers/clk/qcom/gcc-ipq9574.c new file +10
-0+ { .index = DT_SLEEP_CLK }, +}; + +static struct clk_alpha_pll gpll0_main = { + .offset =0x20000 , + .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT ], + .clkr = { + .enable_reg =0x0b000 , + .enable_mask =BIT (0 ), + .hw.init = &(struct clk_init_data ) {
All these clk_init_data structs should be const.
Quoted 7 lines
drivers/clk/qcom/gcc-ipq9574.c new file +7
-0+ .name = "gpll0_main", + .parent_data = gcc_xo_data, + .num_parents = ARRAY_SIZE(gcc_xo_data), + .ops = &clk_alpha_pll_ops, + }, + }, +};
Re: [PATCH V10 2/4] clk: qcom: Add Global Clock Controller driver for IPQ9574
Quoted 12 lines · Stephen Boyd
Quoting Devi Priya (2023-03-27 06:27:16)
Quoted 11 lines
drivers/clk/qcom/gcc-ipq9574.c new file +5
-0@@ -0,0 +1,4248 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +/* +* Copyright (c) 2023 The Linux Foundation. All rights reserved. +*/ +
Quoted 8 lines
drivers/clk/qcom/gcc-ipq9574.c line 11
Quoted 6 lines
drivers/clk/qcom/gcc-ipq9574.c new file +6
-0+#include <linux/kernel.h> +#include <linux/err.h> +#include <linux/platform_device.h> +#include <linux/module.h> +#include <linux/of.h> +#include <linux/of_device.h> What is this include for?
This include actually don't seem necessary. But, I see that of.h & platform_device.h are being included via of_device.h Would you suggest to drop of_device.h or the other two
headers instead?
Quoted 9 lines
drivers/clk/qcom/gcc-ipq9574.c line 12
Quoted 2 lines
drivers/clk/qcom/gcc-ipq9574.c new file +1
-0+#include <linux/regmap.h> Need to include
clk-provider.hdrivers/clk/qcom/gcc-ipq9574.c line 14
Quoted 2 lines
drivers/clk/qcom/gcc-ipq9574.c new file +2
-0+ +#include <linux/reset-controller.h> Put a newline here.
Okay
Quoted 53 lines
Quoted 53 lines
drivers/clk/qcom/gcc-ipq9574.c new file +52
-0+#include <dt-bindings/clock/qcom,ipq9574-gcc.h> +#include <dt-bindings/reset/qcom,ipq9574-gcc.h> + +#include "clk-rcg.h" +#include "clk-branch.h" +#include "clk-alpha-pll.h" +#include "clk-regmap-divider.h" +#include "clk-regmap-mux.h" +#include "clk-regmap-phy-mux.h" +#include "reset.h" + +/* Need to match the order of clocks in DT binding */ +enum { +DT_XO , +DT_SLEEP_CLK , +DT_BIAS_PLL_UBI_NC_CLK , +DT_PCIE30_PHY0_PIPE_CLK , +DT_PCIE30_PHY1_PIPE_CLK , +DT_PCIE30_PHY2_PIPE_CLK , +DT_PCIE30_PHY3_PIPE_CLK , +DT_USB3PHY_0_CC_PIPE_CLK , +}; + +enum { +P_XO , +P_PCIE30_PHY0_PIPE , +P_PCIE30_PHY1_PIPE , +P_PCIE30_PHY2_PIPE , +P_PCIE30_PHY3_PIPE , +P_USB3PHY_0_PIPE , +P_GPLL0 , +P_GPLL0_DIV2 , +P_GPLL0_OUT_AUX , +P_GPLL2 , +P_GPLL4 , +P_PI_SLEEP , +P_BIAS_PLL_UBI_NC_CLK , +}; + +static const struct parent_map gcc_xo_map[] = { + {P_XO ,0 }, +}; + +static const struct clk_parent_data gcc_xo_data[] = { + { .index =DT_XO }, +}; + +static const struct clk_parent_data gcc_sleep_clk_data[] = { + { .index =DT_SLEEP_CLK }, +}; + +static struct clk_alpha_pll gpll0_main = {
Quoted 8 lines
drivers/clk/qcom/gcc-ipq9574.c line 72
Quoted 6 lines
drivers/clk/qcom/gcc-ipq9574.c new file +6
-0+ .offset = 0x20000, + .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT], + .clkr = { + .enable_reg = 0x0b000, + .enable_mask = BIT(0), + .hw.init = &(struct clk_init_data) {All these
clk_init_datastructs should be const.
Okay
Quoted 8 lines
drivers/clk/qcom/gcc-ipq9574.c line 79
Quoted 8 lines
drivers/clk/qcom/gcc-ipq9574.c new file +7
-0+ .name = "gpll0_main", + .parent_data = gcc_xo_data, + .num_parents = ARRAY_SIZE(gcc_xo_data), + .ops = &clk_alpha_pll_ops, + }, + }, +};
Thanks,
Devi Priya
Stephen Boyd
maintainerRe: [PATCH V10 2/4] clk: qcom: Add Global Clock Controller driver for IPQ9574
Quoting Devi Priya (2023-03-27 23:15:35)
Quoted 23 lines · Stephen Boyd
Quoted 12 lines
Quoting Devi Priya (2023-03-27 06:27:16)
Quoted 11 lines
drivers/clk/qcom/gcc-ipq9574.c new file +5
-0@@ -0,0 +1,4248 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +/* +* Copyright (c) 2023 The Linux Foundation. All rights reserved. +*/ +Quoted 8 lines
drivers/clk/qcom/gcc-ipq9574.c line 11
Quoted 6 lines
drivers/clk/qcom/gcc-ipq9574.c new file +6
-0+#include <linux/kernel.h> +#include <linux/err.h> +#include <linux/platform_device.h> +#include <linux/module.h> +#include <linux/of.h> +#include <linux/of_device.h> What is this include for?
Quoted 4 lines
This include actually don't seem necessary. But, I see that
of.h&platform_device.hare being included viaof_device.hWould you suggest to dropof_device.hor the other two headers instead?
Include headers for things you use. Don't try to omit includes if you see that a header includes other headers that you're using.
Re: [PATCH V10 2/4] clk: qcom: Add Global Clock Controller driver for IPQ9574
Quoted 24 lines · Stephen Boyd
Quoting Devi Priya (2023-03-27 23:15:35)
Quoted 23 lines · Stephen Boyd
Quoted 20 lines
Quoting Devi Priya (2023-03-27 06:27:16)
Quoted 7 lines
drivers/clk/qcom/gcc-ipq9574.c new file +1
-0@@ -0,0 +1,4248 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) drivers/clk/qcom/gcc-ipq9574.c line 11
Quoted 10 lines
drivers/clk/qcom/gcc-ipq9574.c new file +10
-0+/* +* Copyright (c) 2023 The Linux Foundation. All rights reserved. +*/ + +#include <linux/kernel.h> +#include <linux/err.h> +#include <linux/platform_device.h> +#include <linux/module.h> +#include <linux/of.h> +#include <linux/of_device.h> What is this include for?
Quoted 7 lines
Quoted 4 lines
This include actually don't seem necessary. But, I see that
of.h&platform_device.hare being included viaof_device.hWould you suggest to dropof_device.hor the other two headers instead?Include headers for things you use. Don't try to omit includes if you see that a header includes other headers that you're using.
Sure, got it!
Regards,
Devi Priya
PATCH v10 3/4 arm64: dts: qcom: Add support for ipq9574 SoC and RDP433 variant
In reply to Devi PriyaAdd initial device tree support for Qualcomm IPQ9574 SoC and Reference Design Platform(RDP) 433 which is based on IPQ9574 family of SoCs
---
Changes in V10:
- Renamed the Board Device Tree Source to use the RDP numbers
- Updated the Makefile, subject and commit message accordingly
arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 84 ++++++ arch/arm64/boot/dts/qcom/ipq9574.dtsi | 270 ++++++++++++++++++++ 3 files changed, 355 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts create mode 100644 arch/arm64/boot/dts/qcom/ipq9574.dtsi
arch/arm64/boot/dts/qcom/Makefile +1 -0
@@ -8,6 +8,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-rdp433.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-rdp433.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
Re: [PATCH V10 3/4] arm64: dts: qcom: Add support for ipq9574 SoC and RDP433 variant
Quoted 143 lines · Devi Priya
Add initial device tree support for Qualcomm IPQ9574 SoC and Reference Design Platform(RDP) 433 which is based on IPQ9574 family of SoCs
Co-developed-by Anusha Rao <[email protected]>Signed-off-by Anusha Rao <[email protected]>Co-developed-by Poovendhan Selvaraj <[email protected]>Signed-off-by Poovendhan Selvaraj <[email protected]>Signed-off-by Devi Priya <[email protected]>---
Changes in V10:
- Renamed the Board Device Tree Source to use the RDP numbers
- Updated theMakefile, subject and commit message accordinglyarch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 84 ++++++ arch/arm64/boot/dts/qcom/ipq9574.dtsi | 270 ++++++++++++++++++++ 3 files changed, 355 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts create mode 100644 arch/arm64/boot/dts/qcom/ipq9574.dtsiarch/arm64/boot/dts/qcom/Makefile +1
-0@@ -8,6 +8,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-rdp433.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.dtbarch/arm64/boot/dts/qcom/ipq9574-rdp433.dts new file +84
-0@@ -0,0 +1,84 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * IPQ9574 RDP433 board 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" + +/ { + model = "Qualcomm Technologies, Inc. IPQ9574/AP-AL02-C7"; + compatible = "qcom,ipq9574-ap-al02-c7", "qcom,ipq9574"; + + aliases { + serial0 = &blsp1_uart2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&blsp1_uart2 { + pinctrl-0 = <&uart2_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +&sdhc_1 { + pinctrl-0 = <&sdc_default_state>; + pinctrl-names = "default"; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; + max-frequency = <384000000>; + bus-width = <8>; + status = "okay"; +}; + +&sleep_clk { + clock-frequency = <32000>; +}; + +&tlmm { + sdc_default_state: sdc-default-state { + clk-pins { + pins = "gpio5"; + function = "sdc_clk"; + drive-strength = <8>; + bias-disable; + }; + + cmd-pins { + pins = "gpio4"; + function = "sdc_cmd"; + drive-strength = <8>; + bias-pull-up; + }; + + data-pins { + pins = "gpio0", "gpio1", "gpio2", + "gpio3", "gpio6", "gpio7", + "gpio8", "gpio9"; + function = "sdc_data"; + drive-strength = <8>; + bias-pull-up; + }; + + rclk-pins { + pins = "gpio10"; + function = "sdc_rclk"; + drive-strength = <8>; + bias-pull-down; + }; + }; +}; + +&xo_board_clk { + clock-frequency = <24000000>; +};arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +13
-0@@ -0,0 +1,270 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * IPQ9574 SoC device tree source + * + * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/qcom,ipq9574-gcc.h> +#include <dt-bindings/reset/qcom,ipq9574-gcc.h> + +/ {
arch/arm64/boot/dts/qcom/ipq9574.dtsi line 23
Quoted 10 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +10
-0+ interrupt-parent = <&intc>; + #address-cells = <2>; + #size-cells = <2>; + + clocks { + bias_pll_ubi_nc_clk: bias-pll-ubi-nc-clk { + compatible = "fixed-clock"; + clock-frequency = <353000000>; + #clock-cells = <0>; + };
What is the source for this clock? With it clocking at 353 MHz, I doubt that it is an external clock.
arch/arm64/boot/dts/qcom/ipq9574.dtsi line 34
Quoted 11 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +11
-0+ + sleep_clk: sleep-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + }; + + xo_board_clk: xo-board-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + }; + };
[skipped the rest]
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH V10 3/4] arm64: dts: qcom: Add support for ipq9574 SoC and RDP433 variant
Quoted 149 lines · Dmitry Baryshkov
Quoted 148 lines · Devi Priya
Add initial device tree support for Qualcomm IPQ9574 SoC and Reference Design Platform(RDP) 433 which is based on IPQ9574 family of SoCs
Co-developed-by Anusha Rao <[email protected]>Signed-off-by Anusha Rao <[email protected]>Co-developed-by Poovendhan Selvaraj <[email protected]>Signed-off-by Poovendhan Selvaraj <[email protected]>Signed-off-by Devi Priya <[email protected]>---
Changes in V10:
- Renamed the Board Device Tree Source to use the RDP numbers
- Updated theMakefile, subject and commit message accordinglyarch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 84 ++++++ arch/arm64/boot/dts/qcom/ipq9574.dtsi | 270 ++++++++++++++++++++ 3 files changed, 355 insertions(+)create mode 100644
arch/arm64/boot/dts/qcom/ipq9574-rdp433.dtscreate mode 100644arch/arm64/boot/dts/qcom/ipq9574.dtsiarch/arm64/boot/dts/qcom/Makefile +1
-0@@ -8,6 +8,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-rdp433.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.dtbarch/arm64/boot/dts/qcom/ipq9574-rdp433.dts new file +84
-0@@ -0,0 +1,84 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * IPQ9574 RDP433 board 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" + +/ { + model = "Qualcomm Technologies, Inc. IPQ9574/AP-AL02-C7"; + compatible = "qcom,ipq9574-ap-al02-c7", "qcom,ipq9574"; + + aliases { + serial0 = &blsp1_uart2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&blsp1_uart2 { + pinctrl-0 = <&uart2_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +&sdhc_1 { + pinctrl-0 = <&sdc_default_state>; + pinctrl-names = "default"; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; + max-frequency = <384000000>; + bus-width = <8>; + status = "okay"; +}; + +&sleep_clk { + clock-frequency = <32000>; +}; + +&tlmm { + sdc_default_state: sdc-default-state { + clk-pins { + pins = "gpio5"; + function = "sdc_clk"; + drive-strength = <8>; + bias-disable; + }; + + cmd-pins { + pins = "gpio4"; + function = "sdc_cmd"; + drive-strength = <8>; + bias-pull-up; + }; + + data-pins { + pins = "gpio0", "gpio1", "gpio2", + "gpio3", "gpio6", "gpio7", + "gpio8", "gpio9"; + function = "sdc_data"; + drive-strength = <8>; + bias-pull-up; + }; + + rclk-pins { + pins = "gpio10"; + function = "sdc_rclk"; + drive-strength = <8>; + bias-pull-down; + }; + }; +}; + +&xo_board_clk { + clock-frequency = <24000000>; +};arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +18
-0@@ -0,0 +1,270 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * IPQ9574 SoC device tree source + * + * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/qcom,ipq9574-gcc.h> +#include <dt-bindings/reset/qcom,ipq9574-gcc.h> + +/ { + interrupt-parent = <&intc>; + #address-cells = <2>; + #size-cells = <2>; + + clocks {
Quoted 8 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi line 23
Quoted 5 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +5
-0+ bias_pll_ubi_nc_clk: bias-pll-ubi-nc-clk { + compatible = "fixed-clock"; + clock-frequency = <353000000>; + #clock-cells = <0>; + };What is the source for this clock? With it clocking at 353 MHz, I doubt that it is an external clock.
bias_pll_ubi_nc_clk (353MHz)is a backup source
for Q6_AXIM2_CLK/PCIE2_AXIM_CLK/PCIE3_AXIM_CLK/SNOC-CLK
It is from the CMN_PLL, and is the same as that of PPE core clock. Do you suggest to move its clock-frequency to Board DT similar to xo/sleep clock?
Quoted 15 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi line 34
Quoted 12 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +11
-0+ + sleep_clk: sleep-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + }; + + xo_board_clk: xo-board-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + }; + };[skipped the rest]
Regards,
Devi Priya
Re: [PATCH V10 3/4] arm64: dts: qcom: Add support for ipq9574 SoC and RDP433 variant
Quoted 160 lines · Devi Priya
Quoted 149 lines · Dmitry Baryshkov
Quoted 148 lines · Devi Priya
Add initial device tree support for Qualcomm IPQ9574 SoC and Reference Design Platform(RDP) 433 which is based on IPQ9574 family of SoCs
Co-developed-by Anusha Rao <[email protected]>Signed-off-by Anusha Rao <[email protected]>Co-developed-by Poovendhan Selvaraj <[email protected]>Signed-off-by Poovendhan Selvaraj <[email protected]>Signed-off-by Devi Priya <[email protected]>---
Changes in V10:
- Renamed the Board Device Tree Source to use the RDP numbers
- Updated theMakefile, subject and commit message accordinglyarch/arm64/boot/dts/qcom/Makefile | 1 +
arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts| 84 ++++++ arch/arm64/boot/dts/qcom/ipq9574.dtsi | 270 ++++++++++++++++++++3 files changed, 355 insertions(+)create mode 100644
arch/arm64/boot/dts/qcom/ipq9574-rdp433.dtscreate mode 100644arch/arm64/boot/dts/qcom/ipq9574.dtsiarch/arm64/boot/dts/qcom/Makefile +0
-0@@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_QCOM) += ipq6018-cp01-c1.dtbdtb-$(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-rdp433.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-rdp433.dts new file +84
-0@@ -0,0 +1,84 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * IPQ9574 RDP433 board 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" + +/ { + model = "Qualcomm Technologies, Inc. IPQ9574/AP-AL02-C7"; + compatible = "qcom,ipq9574-ap-al02-c7", "qcom,ipq9574"; + + aliases { + serial0 = &blsp1_uart2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&blsp1_uart2 { + pinctrl-0 = <&uart2_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +&sdhc_1 { + pinctrl-0 = <&sdc_default_state>; + pinctrl-names = "default"; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; + max-frequency = <384000000>; + bus-width = <8>; + status = "okay"; +}; + +&sleep_clk { + clock-frequency = <32000>; +}; + +&tlmm { + sdc_default_state: sdc-default-state { + clk-pins { + pins = "gpio5"; + function = "sdc_clk"; + drive-strength = <8>; + bias-disable; + }; + + cmd-pins { + pins = "gpio4"; + function = "sdc_cmd"; + drive-strength = <8>; + bias-pull-up; + }; + + data-pins { + pins = "gpio0", "gpio1", "gpio2", + "gpio3", "gpio6", "gpio7", + "gpio8", "gpio9"; + function = "sdc_data"; + drive-strength = <8>; + bias-pull-up; + }; + + rclk-pins { + pins = "gpio10"; + function = "sdc_rclk"; + drive-strength = <8>; + bias-pull-down; + }; + }; +}; + +&xo_board_clk { + clock-frequency = <24000000>; +};arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +18
-0@@ -0,0 +1,270 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * IPQ9574 SoC device tree source + * + * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/qcom,ipq9574-gcc.h> +#include <dt-bindings/reset/qcom,ipq9574-gcc.h> + +/ { + interrupt-parent = <&intc>; + #address-cells = <2>; + #size-cells = <2>; + + clocks {Quoted 8 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi line 23
Quoted 5 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +5
-0+ bias_pll_ubi_nc_clk: bias-pll-ubi-nc-clk { + compatible = "fixed-clock"; + clock-frequency = <353000000>; + #clock-cells = <0>; + };What is the source for this clock? With it clocking at 353 MHz, I doubt that it is an external clock.
Quoted 2 lines
bias_pll_ubi_nc_clk(353MHz)is a backup source
forQ6_AXIM2_CLK
Is this not handled internally by MPSS firmware or RPM then?
Konrad
/PCIE2_AXIM_CLK/PCIE3_AXIM_CLK/SNOC-CLK
Quoted 19 lines
It is from the
CMN_PLL, and is the same as that of PPE core clock. Do you suggest to move its clock-frequency to Board DT similar to xo/sleep clock?Quoted 15 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi line 34
Quoted 12 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +11
-0+ + sleep_clk: sleep-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + }; + + xo_board_clk: xo-board-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + }; + };[skipped the rest]
Regards,
Devi Priya
Re: [PATCH V10 3/4] arm64: dts: qcom: Add support for ipq9574 SoC and RDP433 variant
In reply to Devi PriyaQuoted 158 lines · Devi Priya
Quoted 149 lines · Dmitry Baryshkov
Quoted 148 lines · Devi Priya
Add initial device tree support for Qualcomm IPQ9574 SoC and Reference Design Platform(RDP) 433 which is based on IPQ9574 family of SoCs
Co-developed-by Anusha Rao <[email protected]>Signed-off-by Anusha Rao <[email protected]>Co-developed-by Poovendhan Selvaraj <[email protected]>Signed-off-by Poovendhan Selvaraj <[email protected]>Signed-off-by Devi Priya <[email protected]>---
Changes in V10:
- Renamed the Board Device Tree Source to use the RDP numbers
- Updated theMakefile, subject and commit message accordinglyarch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 84 ++++++ arch/arm64/boot/dts/qcom/ipq9574.dtsi | 270 ++++++++++++++++++++ 3 files changed, 355 insertions(+)create mode 100644
arch/arm64/boot/dts/qcom/ipq9574-rdp433.dtscreate mode 100644arch/arm64/boot/dts/qcom/ipq9574.dtsiarch/arm64/boot/dts/qcom/Makefile +1
-0@@ -8,6 +8,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-rdp433.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.dtbarch/arm64/boot/dts/qcom/ipq9574-rdp433.dts new file +84
-0@@ -0,0 +1,84 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * IPQ9574 RDP433 board 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" + +/ { + model = "Qualcomm Technologies, Inc. IPQ9574/AP-AL02-C7"; + compatible = "qcom,ipq9574-ap-al02-c7", "qcom,ipq9574"; + + aliases { + serial0 = &blsp1_uart2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&blsp1_uart2 { + pinctrl-0 = <&uart2_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +&sdhc_1 { + pinctrl-0 = <&sdc_default_state>; + pinctrl-names = "default"; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; + max-frequency = <384000000>; + bus-width = <8>; + status = "okay"; +}; + +&sleep_clk { + clock-frequency = <32000>; +}; + +&tlmm { + sdc_default_state: sdc-default-state { + clk-pins { + pins = "gpio5"; + function = "sdc_clk"; + drive-strength = <8>; + bias-disable; + }; + + cmd-pins { + pins = "gpio4"; + function = "sdc_cmd"; + drive-strength = <8>; + bias-pull-up; + }; + + data-pins { + pins = "gpio0", "gpio1", "gpio2", + "gpio3", "gpio6", "gpio7", + "gpio8", "gpio9"; + function = "sdc_data"; + drive-strength = <8>; + bias-pull-up; + }; + + rclk-pins { + pins = "gpio10"; + function = "sdc_rclk"; + drive-strength = <8>; + bias-pull-down; + }; + }; +}; + +&xo_board_clk { + clock-frequency = <24000000>; +};arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +18
-0@@ -0,0 +1,270 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * IPQ9574 SoC device tree source + * + * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/qcom,ipq9574-gcc.h> +#include <dt-bindings/reset/qcom,ipq9574-gcc.h> + +/ { + interrupt-parent = <&intc>; + #address-cells = <2>; + #size-cells = <2>; + + clocks {Quoted 8 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi line 23
Quoted 5 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +5
-0+ bias_pll_ubi_nc_clk: bias-pll-ubi-nc-clk { + compatible = "fixed-clock"; + clock-frequency = <353000000>; + #clock-cells = <0>; + };What is the source for this clock? With it clocking at 353 MHz, I doubt that it is an external clock.
Quoted 5 lines
bias_pll_ubi_nc_clk(353MHz)is a backup source
for Q6_AXIM2_CLK/PCIE2_AXIM_CLK/PCIE3_AXIM_CLK/SNOC-CLK It is from theCMN_PLL, and is the same as that of PPE core clock. Do you suggest to move its clock-frequency to Board DT similar to xo/sleep clock?
No, I suggest moving it to the device where it originates. If it comes from GCC, it should be provided by the GCC, not by the top-level fixed clock.
Quoted 17 lines
Quoted 15 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi line 34
Quoted 12 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +11
-0+ + sleep_clk: sleep-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + }; + + xo_board_clk: xo-board-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + }; + };[skipped the rest]
Regards,
Devi Priya
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH V10 3/4] arm64: dts: qcom: Add support for ipq9574 SoC and RDP433 variant
Quoted 165 lines · Dmitry Baryshkov
Quoted 158 lines · Devi Priya
Quoted 149 lines · Dmitry Baryshkov
Quoted 148 lines · Devi Priya
Add initial device tree support for Qualcomm IPQ9574 SoC and Reference Design Platform(RDP) 433 which is based on IPQ9574 family of SoCs
Co-developed-by Anusha Rao <[email protected]>Signed-off-by Anusha Rao <[email protected]>Co-developed-by Poovendhan Selvaraj <[email protected]>Signed-off-by Poovendhan Selvaraj <[email protected]>Signed-off-by Devi Priya <[email protected]>---
Changes in V10:
- Renamed the Board Device Tree Source to use the RDP numbers
- Updated theMakefile, subject and commit message accordinglyarch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 84 ++++++ arch/arm64/boot/dts/qcom/ipq9574.dtsi | 270 ++++++++++++++++++++ 3 files changed, 355 insertions(+)create mode 100644
arch/arm64/boot/dts/qcom/ipq9574-rdp433.dtscreate mode 100644arch/arm64/boot/dts/qcom/ipq9574.dtsiarch/arm64/boot/dts/qcom/Makefile +1
-0@@ -8,6 +8,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-rdp433.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.dtbarch/arm64/boot/dts/qcom/ipq9574-rdp433.dts new file +84
-0@@ -0,0 +1,84 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * IPQ9574 RDP433 board 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" + +/ { + model = "Qualcomm Technologies, Inc. IPQ9574/AP-AL02-C7"; + compatible = "qcom,ipq9574-ap-al02-c7", "qcom,ipq9574"; + + aliases { + serial0 = &blsp1_uart2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&blsp1_uart2 { + pinctrl-0 = <&uart2_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +&sdhc_1 { + pinctrl-0 = <&sdc_default_state>; + pinctrl-names = "default"; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; + max-frequency = <384000000>; + bus-width = <8>; + status = "okay"; +}; + +&sleep_clk { + clock-frequency = <32000>; +}; + +&tlmm { + sdc_default_state: sdc-default-state { + clk-pins { + pins = "gpio5"; + function = "sdc_clk"; + drive-strength = <8>; + bias-disable; + }; + + cmd-pins { + pins = "gpio4"; + function = "sdc_cmd"; + drive-strength = <8>; + bias-pull-up; + }; + + data-pins { + pins = "gpio0", "gpio1", "gpio2", + "gpio3", "gpio6", "gpio7", + "gpio8", "gpio9"; + function = "sdc_data"; + drive-strength = <8>; + bias-pull-up; + }; + + rclk-pins { + pins = "gpio10"; + function = "sdc_rclk"; + drive-strength = <8>; + bias-pull-down; + }; + }; +}; + +&xo_board_clk { + clock-frequency = <24000000>; +};arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +18
-0@@ -0,0 +1,270 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * IPQ9574 SoC device tree source + * + * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/qcom,ipq9574-gcc.h> +#include <dt-bindings/reset/qcom,ipq9574-gcc.h> + +/ { + interrupt-parent = <&intc>; + #address-cells = <2>; + #size-cells = <2>; + + clocks {Quoted 8 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi line 23
Quoted 5 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +5
-0+ bias_pll_ubi_nc_clk: bias-pll-ubi-nc-clk { + compatible = "fixed-clock"; + clock-frequency = <353000000>; + #clock-cells = <0>; + };What is the source for this clock? With it clocking at 353 MHz, I doubt that it is an external clock.
Quoted 5 lines
bias_pll_ubi_nc_clk(353MHz)is a backup source
for Q6_AXIM2_CLK/PCIE2_AXIM_CLK/PCIE3_AXIM_CLK/SNOC-CLK It is from theCMN_PLL, and is the same as that of PPE core clock. Do you suggest to move its clock-frequency to Board DT similar to xo/sleep clock?
Quoted 3 lines
No, I suggest moving it to the device where it originates. If it comes from GCC, it should be provided by the GCC, not by the top-level fixed clock.Bias PLL is a fixed PLL on the SoC which provides 352MHz.
As it is just a backup source for PCIE2_AXIM_CLK, we would remove the clock node as it is not being used.
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi line 34
Quoted 13 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi new file +11
-0+ + sleep_clk: sleep-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + }; + + xo_board_clk: xo-board-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + }; + };[skipped the rest]
Quoted 5 lines
Quoted 2 lines
Regards,
Devi Priya
Regards,
Devi Priya
PATCH v10 4/4 arm64: defconfig: Enable IPQ9574 SoC base configs
In reply to Devi PriyaEnables clk & pinctrl related configs for Qualcomm IPQ9574 SoC
---
Changes in V10:
- No change
arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/configs/defconfig +2 -0
@@ -557,6 +557,7 @@ CONFIG_PINCTRL_MSM=y CONFIG_PINCTRL_IPQ8074=y CONFIG_PINCTRL_IPQ5332=y CONFIG_PINCTRL_IPQ6018=y +CONFIG_PINCTRL_IPQ9574=y CONFIG_PINCTRL_MSM8916=y CONFIG_PINCTRL_MSM8953=y CONFIG_PINCTRL_MSM8976=y
@@ -1153,6 +1154,7 @@ CONFIG_QCOM_CLK_RPMH=y CONFIG_IPQ_GCC_5332=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_8994=m
Signature · 1 line
2.17.1