dt: bindings: add bindings for msa memory region
Subsystems (3)
PATCH v2 3/6 dt: bindings: add bindings for msa memory region
Add device tree binding documentation details of msa memory region for ath10k qmi client for SDM845/APQ8098 SoC into "qcom,ath10k.txt".
--- .../devicetree/bindings/net/wireless/qcom,ath10k.txt | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +4 -0
@@ -56,6 +56,8 @@ Optional properties: the length can vary between hw versions. - <supply-name>-supply: handle to the regulator device tree node optional "supply-name" is "vdd-0.8-cx-mx". +- msa-fixed-region: phandle, specifier to children of reserved MSA memory. +- msa-size: MSA memory size for fw internal use. Example (to supply the calibration data alone):
@@ -133,6 +135,8 @@ wifi@18000000 { compatible = "qcom,wcn3990-wifi"; reg = <0x18800000 0x800000>; reg-names = "membase"; + msa-fixed-region = <&wlan_msa_mem>; + msa-size = <0x100000>; clocks = <&clock_gcc clk_aggre2_noc_clk>; clock-names = "smmu_aggre2_noc_clk" interrupts =
Signature · 1 line
2.17.0
+ Rob
Quoted 14 lines · Govind Singh
Add device tree binding documentation details of msa memory region for ath10k qmi client for SDM845/APQ8098 SoC into "qcom,ath10k.txt".
Signed-off-by Govind Singh <[email protected]>--- .../devicetree/bindings/net/wireless/qcom,ath10k.txt | 4 ++++ 1 file changed, 4 insertions(+)Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +0
-0
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt Optional properties: · line 59
Quoted 4 lines
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +1
-0@@ -56,6 +56,8 @@ Optional properties: the length can vary between hw versions. - <supply-name>-supply: handle to the regulator device tree node optional "supply-name" is "vdd-0.8-cx-mx". +- msa-fixed-region: phandle, specifier to children of reserved MSA memory.
As in reserved-memory/reserved-memory.txt? Might refer to that doc here. Or is this some other kind of reserved memory?
If the former, it's normally called just "memory-region", although that does seem somewhat non-descriptive...
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt Optional properties: · line 60
Quoted 1 line
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +1
-0+- msa-size: MSA memory size for fw internal use.
Do you really need both of these? It seems like your code uses one or the other, not both. In which case, this is not a very good description, because it sounds like they would go together.
Also, if you're not using standard/generic properties (e.g., the aforementioned "memory-region" binding), you typically should use a vendor prefix, like "qcom,msa-size".
Brian
Quoted 15 lines
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +2
-0Example (to supply the calibration data alone):@@ -133,6 +135,8 @@ wifi@18000000 { compatible = "qcom,wcn3990-wifi"; reg = <0x18800000 0x800000>; reg-names = "membase"; + msa-fixed-region = <&wlan_msa_mem>; + msa-size = <0x100000>; clocks = <&clock_gcc clk_aggre2_noc_clk>; clock-names = "smmu_aggre2_noc_clk" interrupts =Signature · 1 line
2.17.0
Quoted 30 lines · Brian Norris
+ Rob
Quoted 14 lines · Govind Singh
Add device tree binding documentation details of msa memory region for ath10k qmi client for SDM845/APQ8098 SoC into "qcom,ath10k.txt".
Signed-off-by Govind Singh <[email protected]>--- .../devicetree/bindings/net/wireless/qcom,ath10k.txt | 4 ++++ 1 file changed, 4 insertions(+)Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +0
-0Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt Optional properties: · line 59
Quoted 4 lines
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +1
-0@@ -56,6 +56,8 @@ Optional properties: the length can vary between hw versions. - <supply-name>-supply: handle to the regulator device tree node optional "supply-name" is "vdd-0.8-cx-mx". +- msa-fixed-region: phandle, specifier to children of reserved MSA memory.As in
reserved-memory/reserved-memory.txt? Might refer to that doc here. Or is this some other kind of reserved memory?If the former, it's normally called just "memory-region", although that does seem somewhat non-descriptive...
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt Optional properties: · line 60
Quoted 1 line
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +1
-0+- msa-size: MSA memory size for fw internal use.
Quoted 7 lines
Do you really need both of these? It seems like your code uses one or the other, not both. In which case, this is not a very good description, because it sounds like they would go together.
Also, if you're not using standard/generic properties (e.g., the aforementioned "memory-region" binding), you typically should use a vendor prefix, like "qcom,msa-size".
Devicetree folks, any comments? I would like to apply this via my ath.git tree but need help with the review.
Full patch here:
https://patchwork.kernel.org/patch/10448169/
Signature · 1 line
Kalle Valo
Quoted 36 lines · Kalle Valo
Quoted 34 lines · Brian Norris
+ Rob
Quoted 14 lines · Govind Singh
Add device tree binding documentation details of msa memory region for ath10k qmi client for SDM845/APQ8098 SoC into "qcom,ath10k.txt".
Signed-off-by Govind Singh <[email protected]>--- .../devicetree/bindings/net/wireless/qcom,ath10k.txt | 4 ++++ 1 file changed, 4 insertions(+)Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +0
-0Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt Optional properties: · line 59
Quoted 4 lines
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +1
-0@@ -56,6 +56,8 @@ Optional properties: the length can vary between hw versions. - <supply-name>-supply: handle to the regulator device tree node optional "supply-name" is "vdd-0.8-cx-mx". +- msa-fixed-region: phandle, specifier to children of reserved MSA memory.As in
reserved-memory/reserved-memory.txt? Might refer to that doc here. Or is this some other kind of reserved memory?If the former, it's normally called just "memory-region", although that does seem somewhat non-descriptive...
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt Optional properties: · line 60
Quoted 1 line
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +1
-0+- msa-size: MSA memory size for fw internal use.Do you really need both of these? It seems like your code uses one or the other, not both. In which case, this is not a very good description, because it sounds like they would go together.
Quoted 6 lines
Quoted 3 lines
Also, if you're not using standard/generic properties (e.g., the aforementioned "memory-region" binding), you typically should use a vendor prefix, like "qcom,msa-size".
Devicetree folks, any comments? I would like to apply this via my ath.git tree but need help with the review.
I think Brian's comments w.r.t msa-size and msa-fixed-region both stand. It would be good if Govind could answer his questions.
Thanks,
Mark.
Quoted 15 lines · Mark Rutland
Quoted 14 lines · Kalle Valo
Quoted 12 lines · Brian Norris
+ Rob
Quoted 9 lines · Govind Singh
Add device tree binding documentation details of msa memory region for ath10k qmi client for SDM845/APQ8098 SoC into "qcom,ath10k.txt".
Signed-off-by Govind Singh <[email protected]>--- .../devicetree/bindings/net/wireless/qcom,ath10k.txt | 4 ++++ 1 file changed, 4 insertions(+)
Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +0
-0@@ -56,6 +56,8 @@ Optional properties:Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt Optional properties: · line 59
Quoted 4 lines
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +1
-0the length can vary between hw versions. - <supply-name>-supply: handle to the regulator device tree node optional "supply-name" is "vdd-0.8-cx-mx". +- msa-fixed-region: phandle, specifier to children of reserved MSA memory.As in
reserved-memory/reserved-memory.txt? Might refer to that doc here. Or is this some other kind of reserved memory?
sure, i will give reference to reserved-memory.txt.
Quoted 13 lines
Quoted 13 lines
Quoted 12 lines
If the former, it's normally called just "memory-region", although that does seem somewhat non-descriptive...
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt Optional properties: · line 60
Quoted 1 line
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +1
-0+- msa-size: MSA memory size for fw internal use.Do you really need both of these? It seems like your code uses one or the other, not both. In which case, this is not a very good description, because it sounds like they would go together.
Also, if you're not using standard/generic properties (e.g., the aforementioned "memory-region" binding), you typically should use a vendor prefix, like "qcom,msa-size".
Quoted 6 lines
Quoted 2 lines
Devicetree folks, any comments? I would like to apply this via my ath.git tree but need help with the review.
I think Brian's comments w.r.t msa-size and msa-fixed-region both stand. It would be good if Govind could answer his questions.
As Brian suggested, i am planing to remove msa-size and keep only msa-fixed-region.
Thanks
Govind