Commit ab91f72e authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Stephen Boyd

clk: qcom: gcc-msm8996: Fix parent for CLKREF clocks

The CLKREF clocks are all fed by the clock signal on the CXO2 pad on the
SoC. Update the definition of these clocks to allow this to be wired up
to the appropriate clock source.

Retain "xo" as the global named parent to make the change a nop in the
event that DT doesn't carry the necessary clocks definition.
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lkml.kernel.org/r/20200106080546.3192125-2-bjorn.andersson@linaro.orgSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent bcd63d22
...@@ -47,6 +47,11 @@ properties: ...@@ -47,6 +47,11 @@ properties:
- description: Board XO source - description: Board XO source
- description: Board active XO source - description: Board active XO source
- description: Sleep clock source - description: Sleep clock source
#qcom,gcc-msm8996
- items:
- description: XO source
- description: Second XO source
- description: Sleep clock source
#qcom,gcc-msm8998 #qcom,gcc-msm8998
- items: - items:
- description: Board XO source - description: Board XO source
...@@ -65,6 +70,11 @@ properties: ...@@ -65,6 +70,11 @@ properties:
- const: bi_tcxo - const: bi_tcxo
- const: bi_tcxo_ao - const: bi_tcxo_ao
- const: sleep_clk - const: sleep_clk
#qcom,gcc-msm8996
- items:
- const: cxo
- const: cxo2
- const: sleep_clk
#qcom,gcc-msm8998 #qcom,gcc-msm8998
- items: - items:
- const: xo - const: xo
......
...@@ -3046,7 +3046,10 @@ static struct clk_branch gcc_usb3_clkref_clk = { ...@@ -3046,7 +3046,10 @@ static struct clk_branch gcc_usb3_clkref_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "gcc_usb3_clkref_clk", .name = "gcc_usb3_clkref_clk",
.parent_names = (const char *[]){ "xo" }, .parent_data = &(const struct clk_parent_data){
.fw_name = "cxo2",
.name = "xo",
},
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
}, },
...@@ -3060,7 +3063,10 @@ static struct clk_branch gcc_hdmi_clkref_clk = { ...@@ -3060,7 +3063,10 @@ static struct clk_branch gcc_hdmi_clkref_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "gcc_hdmi_clkref_clk", .name = "gcc_hdmi_clkref_clk",
.parent_names = (const char *[]){ "xo" }, .parent_data = &(const struct clk_parent_data){
.fw_name = "cxo2",
.name = "xo",
},
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
}, },
...@@ -3074,7 +3080,10 @@ static struct clk_branch gcc_edp_clkref_clk = { ...@@ -3074,7 +3080,10 @@ static struct clk_branch gcc_edp_clkref_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "gcc_edp_clkref_clk", .name = "gcc_edp_clkref_clk",
.parent_names = (const char *[]){ "xo" }, .parent_data = &(const struct clk_parent_data){
.fw_name = "cxo2",
.name = "xo",
},
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
}, },
...@@ -3088,7 +3097,10 @@ static struct clk_branch gcc_ufs_clkref_clk = { ...@@ -3088,7 +3097,10 @@ static struct clk_branch gcc_ufs_clkref_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "gcc_ufs_clkref_clk", .name = "gcc_ufs_clkref_clk",
.parent_names = (const char *[]){ "xo" }, .parent_data = &(const struct clk_parent_data){
.fw_name = "cxo2",
.name = "xo",
},
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
}, },
...@@ -3102,7 +3114,10 @@ static struct clk_branch gcc_pcie_clkref_clk = { ...@@ -3102,7 +3114,10 @@ static struct clk_branch gcc_pcie_clkref_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "gcc_pcie_clkref_clk", .name = "gcc_pcie_clkref_clk",
.parent_names = (const char *[]){ "xo" }, .parent_data = &(const struct clk_parent_data){
.fw_name = "cxo2",
.name = "xo",
},
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
}, },
...@@ -3116,7 +3131,10 @@ static struct clk_branch gcc_rx2_usb2_clkref_clk = { ...@@ -3116,7 +3131,10 @@ static struct clk_branch gcc_rx2_usb2_clkref_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "gcc_rx2_usb2_clkref_clk", .name = "gcc_rx2_usb2_clkref_clk",
.parent_names = (const char *[]){ "xo" }, .parent_data = &(const struct clk_parent_data){
.fw_name = "cxo2",
.name = "xo",
},
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
}, },
...@@ -3130,7 +3148,10 @@ static struct clk_branch gcc_rx1_usb2_clkref_clk = { ...@@ -3130,7 +3148,10 @@ static struct clk_branch gcc_rx1_usb2_clkref_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "gcc_rx1_usb2_clkref_clk", .name = "gcc_rx1_usb2_clkref_clk",
.parent_names = (const char *[]){ "xo" }, .parent_data = &(const struct clk_parent_data){
.fw_name = "cxo2",
.name = "xo",
},
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment