Skip to content

Commit b9db8c2

Browse files
author
Herton R. Krzesinski
committed
Merge: backport QDrive3 device tree and drivers/phy/qualcomm (6.2-rc2)
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/1855 Bugzilla: https://bugzilla.redhat.com/2159516 Depends: https://bugzilla.redhat.com/2158909 Backport QDrive3 device tree and drivers/phy/qualcomm (6.2-rc2). Those subsystems are intertwined and need to be updated together. Signed-off-by: Adrien Thierry <athierry@redhat.com> Approved-by: Andrew Halaney <ahalaney@redhat.com> Approved-by: Mark Langsdorf <mlangsdo@redhat.com> Approved-by: Eric Chanudet <echanude@redhat.com> Approved-by: Brian Masney <bmasney@redhat.com> Conflicts: drivers/clk/qcom/clk-rpmh.c Due already merged changes, solved conflicts by keeping them. Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
2 parents 9999bc1 + 554be43 commit b9db8c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+17552
-7621
lines changed
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm QMP USB4-USB3-DP PHY controller (SC8280XP)
8+
9+
maintainers:
10+
- Vinod Koul <vkoul@kernel.org>
11+
12+
description:
13+
The QMP PHY controller supports physical layer functionality for a number of
14+
controllers on Qualcomm chipsets, such as, PCIe, UFS and USB.
15+
16+
properties:
17+
compatible:
18+
enum:
19+
- qcom,sc8280xp-qmp-usb43dp-phy
20+
21+
reg:
22+
maxItems: 1
23+
24+
clocks:
25+
maxItems: 4
26+
27+
clock-names:
28+
items:
29+
- const: aux
30+
- const: ref
31+
- const: com_aux
32+
- const: usb3_pipe
33+
34+
power-domains:
35+
maxItems: 1
36+
37+
resets:
38+
maxItems: 2
39+
40+
reset-names:
41+
items:
42+
- const: phy
43+
- const: common
44+
45+
vdda-phy-supply: true
46+
47+
vdda-pll-supply: true
48+
49+
"#clock-cells":
50+
const: 1
51+
description:
52+
See include/dt-bindings/dt-bindings/phy/phy-qcom-qmp.h
53+
54+
"#phy-cells":
55+
const: 1
56+
description:
57+
See include/dt-bindings/dt-bindings/phy/phy-qcom-qmp.h
58+
59+
required:
60+
- compatible
61+
- reg
62+
- clocks
63+
- clock-names
64+
- power-domains
65+
- resets
66+
- reset-names
67+
- vdda-phy-supply
68+
- vdda-pll-supply
69+
- "#clock-cells"
70+
- "#phy-cells"
71+
72+
additionalProperties: false
73+
74+
examples:
75+
- |
76+
#include <dt-bindings/clock/qcom,gcc-sc8280xp.h>
77+
78+
phy@88eb000 {
79+
compatible = "qcom,sc8280xp-qmp-usb43dp-phy";
80+
reg = <0x088eb000 0x4000>;
81+
82+
clocks = <&gcc GCC_USB3_PRIM_PHY_AUX_CLK>,
83+
<&gcc GCC_USB4_EUD_CLKREF_CLK>,
84+
<&gcc GCC_USB3_PRIM_PHY_COM_AUX_CLK>,
85+
<&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>;
86+
clock-names = "aux", "ref", "com_aux", "usb3_pipe";
87+
88+
power-domains = <&gcc USB30_PRIM_GDSC>;
89+
90+
resets = <&gcc GCC_USB3_PHY_PRIM_BCR>,
91+
<&gcc GCC_USB4_DP_PHY_PRIM_BCR>;
92+
reset-names = "phy", "common";
93+
94+
vdda-phy-supply = <&vreg_l9d>;
95+
vdda-pll-supply = <&vreg_l4d>;
96+
97+
#clock-cells = <1>;
98+
#phy-cells = <1>;
99+
};

arch/arm64/boot/dts/qcom/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-1000.dtb
3636
dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-4000.dtb
3737
dtb-$(CONFIG_ARCH_QCOM) += qrb5165-rb5.dtb
3838
dtb-$(CONFIG_ARCH_QCOM) += sa8155p-adp.dtb
39+
dtb-$(CONFIG_ARCH_QCOM) += sa8295p-adp.dtb
40+
dtb-$(CONFIG_ARCH_QCOM) += sa8540p-ride.dtb
3941
dtb-$(CONFIG_ARCH_QCOM) += sc7180-idp.dtb
4042
dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-coachz-r1.dtb
4143
dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-coachz-r1-lte.dtb
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
4+
* Copyright (c) 2022, Linaro Limited
5+
*/
6+
7+
#include <dt-bindings/spmi/spmi.h>
8+
9+
&spmi_bus {
10+
pm8450a: pmic@0 {
11+
compatible = "qcom,pm8150", "qcom,spmi-pmic";
12+
reg = <0x0 SPMI_USID>;
13+
#address-cells = <1>;
14+
#size-cells = <0>;
15+
16+
pm8450a_gpios: gpio@c000 {
17+
compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
18+
reg = <0xc000>;
19+
gpio-controller;
20+
gpio-ranges = <&pm8450a_gpios 0 0 10>;
21+
#gpio-cells = <2>;
22+
interrupt-controller;
23+
#interrupt-cells = <2>;
24+
};
25+
};
26+
27+
pm8450c: pmic@4 {
28+
compatible = "qcom,pm8150", "qcom,spmi-pmic";
29+
reg = <0x4 SPMI_USID>;
30+
#address-cells = <1>;
31+
#size-cells = <0>;
32+
33+
pm8450c_gpios: gpio@c000 {
34+
compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
35+
reg = <0xc000>;
36+
gpio-controller;
37+
gpio-ranges = <&pm8450c_gpios 0 0 10>;
38+
#gpio-cells = <2>;
39+
interrupt-controller;
40+
#interrupt-cells = <2>;
41+
};
42+
};
43+
44+
pm8450e: pmic@8 {
45+
compatible = "qcom,pm8150", "qcom,spmi-pmic";
46+
reg = <0x8 SPMI_USID>;
47+
#address-cells = <1>;
48+
#size-cells = <0>;
49+
50+
pm8450e_gpios: gpio@c000 {
51+
compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
52+
reg = <0xc000>;
53+
gpio-controller;
54+
gpio-ranges = <&pm8450e_gpios 0 0 10>;
55+
#gpio-cells = <2>;
56+
interrupt-controller;
57+
#interrupt-cells = <2>;
58+
};
59+
};
60+
61+
pm8450g: pmic@c {
62+
compatible = "qcom,pm8150", "qcom,spmi-pmic";
63+
reg = <0xc SPMI_USID>;
64+
#address-cells = <1>;
65+
#size-cells = <0>;
66+
67+
pm8450g_gpios: gpio@c000 {
68+
compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
69+
reg = <0xc000>;
70+
gpio-controller;
71+
gpio-ranges = <&pm8450g_gpios 0 0 10>;
72+
#gpio-cells = <2>;
73+
interrupt-controller;
74+
#interrupt-cells = <2>;
75+
};
76+
};
77+
};

0 commit comments

Comments
 (0)