arm64: dts: mt8173: Fix nor flash node
Subsystems (3)
v2 cover arm64: dts: mt8173: Fix nor flash node
Add axi clock since the driver change to DMA mode which need to enable axi clock. And change spi clock to 26MHz as default.
Add assigned clock property and axi clock binding file.
Changes from v1:
- Modify nor binding file
Xiangsheng Hou (2):
arm64: dts: mt8173: Fix nor_flash node
dt-bindings: mediatek: Add assigned clock property and axi clock in
example
.../devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml | 10 ++++++++-- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 7 +++++-- 2 files changed, 13 insertions(+), 4 deletions(-)
Signature · 1 line
2.25.1
PATCH v2 1/2 arm64: dts: mt8173: Fix nor_flash node
Add axi clock since the driver change to DMA mode which need to enable axi clock. And change spi clock to 26MHz as default.
--- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/mediatek/mt8173.dtsi +5 -2
@@ -790,9 +790,12 @@ thermal: thermal@1100b000 { nor_flash: spi@1100d000 { compatible = "mediatek,mt8173-nor"; reg = <0 0x1100d000 0 0xe0>; + assigned-clocks = <&topckgen CLK_TOP_SPI_SEL>; + assigned-clock-parents = <&clk26m>; clocks = <&pericfg CLK_PERI_SPI>, - <&topckgen CLK_TOP_SPINFI_IFR_SEL>; - clock-names = "spi", "sf"; + <&topckgen CLK_TOP_SPINFI_IFR_SEL>, + <&pericfg CLK_PERI_NFI>; + clock-names = "spi", "sf", "axi"; #address-cells = <1>; #size-cells = <0>; status = "disabled";
Signature · 1 line
2.25.1
Re: [PATCH v2 1/2] arm64: dts: mt8173: Fix nor_flash node
Quoted 4 lines · Xiangsheng Hou
Add axi clock since the driver change to DMA mode which need to enable axi clock. And change spi clock to 26MHz as default.
Signed-off-by Xiangsheng Hou <[email protected]>
Applied, thanks!
Quoted 23 lines
--- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)arch/arm64/boot/dts/mediatek/mt8173.dtsi +5
-2@@ -790,9 +790,12 @@ thermal: thermal@1100b000 { nor_flash: spi@1100d000 { compatible = "mediatek,mt8173-nor"; reg = <0 0x1100d000 0 0xe0>; + assigned-clocks = <&topckgen CLK_TOP_SPI_SEL>; + assigned-clock-parents = <&clk26m>; clocks = <&pericfg CLK_PERI_SPI>, - <&topckgen CLK_TOP_SPINFI_IFR_SEL>; - clock-names = "spi", "sf"; + <&topckgen CLK_TOP_SPINFI_IFR_SEL>, + <&pericfg CLK_PERI_NFI>; + clock-names = "spi", "sf", "axi"; #address-cells = <1>; #size-cells = <0>; status = "disabled";
Re: [PATCH v2 1/2] arm64: dts: mt8173: Fix nor_flash node
Hi Matthias,
Quoted 9 lines · Matthias Brugger
Quoted 4 lines · Xiangsheng Hou
Add axi clock since the driver change to DMA mode which need to enable axi clock. And change spi clock to 26MHz as default.
Signed-off-by Xiangsheng Hou <[email protected]>Applied, thanks!
I will send a new patch v3 since there need a change in [PATCH v2 2/2] by review.
Thanks
Xiangsheng Hou
Matthias Brugger
maintainerRe: [PATCH v2 1/2] arm64: dts: mt8173: Fix nor_flash node
Quoted 8 lines · xiangsheng.hou
Hi Matthias,
Quoted 5 lines · Matthias Brugger
Quoted 3 lines · Xiangsheng Hou
Add axi clock since the driver change to DMA mode which need to enable axi clock. And change spi clock to 26MHz as default.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Xiangsheng Hou <[email protected]>Applied, thanks!
I will send a new patch v3 since there need a change in [PATCH v2 2/2] by review.
Thanks from letting me know. From what I can see, 1/2 in v3 did not change, so as I already applied it, you could have dropped it from the series.
Please correct me if I'm wrong.
Best regards,
Matthias
Re: [PATCH v2 1/2] arm64: dts: mt8173: Fix nor_flash node
Hi Matthias,
Quoted 20 lines · Matthias Brugger
Quoted 8 lines · xiangsheng.hou
Hi Matthias,
Quoted 5 lines · Matthias Brugger
Quoted 3 lines · Xiangsheng Hou
Add axi clock since the driver change to DMA mode which need to enable axi clock. And change spi clock to 26MHz as default.
Quoted 9 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Xiangsheng Hou <[email protected]>Applied, thanks!
I will send a new patch v3 since there need a change in [PATCH v2 2/2]
by review.
Quoted 6 lines
Thanks from letting me know. From what I can see, 1/2 in v3 did not change, so
as I already applied it, you could have dropped it from the series.Please correct me if I'm wrong.
Yes, you are right and I will drop it if there will have next series.
Thanks
Xiangsheng Hou
PATCH v2 2/2 dt-bindings: mediatek: Add assigned clock property and axi clock in example
In reply to Xiangsheng HouFor mt8173, it is needed to add the axi clock for dma mode. And it is may needed to adjust default spi frequency.
--- .../devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml +8 -2
@@ -61,6 +61,12 @@ properties: - const: axi - const: axi_s + assigned-clocks: + maxItems: 1 + + assigned-clock-parents: + maxItems: 1 + required: - compatible - reg
@@ -82,8 +88,8 @@ examples: compatible = "mediatek,mt8173-nor"; reg = <0 0x1100d000 0 0xe0>; interrupts = <1>; - clocks = <&pericfg CLK_PERI_SPI>, <&topckgen CLK_TOP_SPINFI_IFR_SEL>; - clock-names = "spi", "sf"; + clocks = <&pericfg CLK_PERI_SPI>, <&topckgen CLK_TOP_SPINFI_IFR_SEL>, <&pericfg CLK_PERI_NFI>; + clock-names = "spi", "sf", "axi"; #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.25.1
Re: [PATCH v2 2/2] dt-bindings: mediatek: Add assigned clock property and axi clock in example
Quoted 13 lines · Xiangsheng Hou
For mt8173, it is needed to add the axi clock for dma mode. And it is may needed to adjust default spi frequency.
Signed-off-by Xiangsheng Hou <[email protected]>--- .../devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)Documentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml +0
-0
Documentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml properties: · line 69
Quoted 9 lines
Documentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml +6
-0@@ -61,6 +61,12 @@ properties: - const: axi - const: axi_s + assigned-clocks: + maxItems: 1 + + assigned-clock-parents: + maxItems: 1 +
There is usually no reason to put this in the bindings.
Quoted 4 lines
Documentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml +0
-0required: - compatible - reg
Documentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml examples: · line 95
Quoted 10 lines
Documentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml +2
-2@@ -82,8 +88,8 @@ examples: compatible = "mediatek,mt8173-nor"; reg = <0 0x1100d000 0 0xe0>; interrupts = <1>; - clocks = <&pericfg CLK_PERI_SPI>, <&topckgen CLK_TOP_SPINFI_IFR_SEL>; - clock-names = "spi", "sf"; + clocks = <&pericfg CLK_PERI_SPI>, <&topckgen CLK_TOP_SPINFI_IFR_SEL>, <&pericfg CLK_PERI_NFI>; + clock-names = "spi", "sf", "axi"; #address-cells = <1>; #size-cells = <0>;
Best regards,
Krzysztof
Re: [PATCH v2 2/2] dt-bindings: mediatek: Add assigned clock property and axi clock in example
Quoted 22 lines · Krzysztof Kozlowski
Quoted 21 lines · Xiangsheng Hou
For mt8173, it is needed to add the axi clock for dma mode. And it is may needed to adjust default spi frequency.
Signed-off-by Xiangsheng Hou <[email protected]>--- .../devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)(quoted diff) +0
-0
mtk-nor.yamlb/Documentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml
index41e60fe4b09f..7523d992a614100644
--- a/Documentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml
+++ b/Documentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yamlDocumentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml +0
-0@@ -61,6 +61,12 @@ properties: - const: axi - const: axi_s
Quoted 9 lines
Documentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml properties: · line 69
Quoted 6 lines
Documentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml +6
-0+ assigned-clocks: + maxItems: 1 + + assigned-clock-parents: + maxItems: 1 +There is usually no reason to put this in the bindings.
Will be remove in next patch.