ARM: dts: sun8i: Add NFC node to Allwinner A23/A33 SoC
Subsystems (2)
PATCH 1/1 ARM: dts: sun8i: Add NFC node to Allwinner A23/A33 SoC
Add NAND Flash controller node definition to the A23/A33 SoC.
--- arch/arm/boot/dts/sun8i-a23-a33.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
arch/arm/boot/dts/sun8i-a23-a33.dtsi +23 -0
@@ -209,6 +209,14 @@ "apb2_uart3", "apb2_uart4"; }; + nand_clk: clk at 01c20080 { + #clock-cells = <0>; + compatible = "allwinner,sun4i-a10-mod0-clk"; + reg = <0x01c20080 0x4>; + clocks = <&osc24M>, <&pll6 1>; + clock-output-names = "nand"; + }; + mmc0_clk: clk at 01c20088 { #clock-cells = <1>; compatible = "allwinner,sun4i-a10-mmc-clk";
@@ -265,6 +273,21 @@ #dma-cells = <1>; }; + nfc: nand at 01c03000 { + compatible = "allwinner,sun4i-a10-nand"; + reg = <0x01c03000 0x1000>; + interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ahb1_gates 13>, <&nand_clk>; + clock-names = "ahb", "mod"; + dmas = <&dma 5>; + dma-names = "rxtx"; + resets = <&ahb1_rst 13>; + reset-names = "ahb"; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + mmc0: mmc at 01c0f000 { compatible = "allwinner,sun5i-a13-mmc"; reg = <0x01c0f000 0x1000>;
Signature · 1 line
2.9.0
Hi,
Quoted 3 lines · Icenowy Zheng
Add NAND Flash controller node definition to the A23/A33 SoC.
Signed-off-by Icenowy Zheng <[email protected]>
Has this ever been tested? On what board, with what NAND chip?
Quoted 10 lines
--- arch/arm/boot/dts/sun8i-a23-a33.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)arch/arm/boot/dts/sun8i-a23-a33.dtsi +0
-0@@ -209,6 +209,14 @@ "apb2_uart3", "apb2_uart4";
arch/arm/boot/dts/sun8i-a23-a33.dtsi line 219
Quoted 10 lines
arch/arm/boot/dts/sun8i-a23-a33.dtsi +8
-0}; + nand_clk: clk at 01c20080 { + #clock-cells = <0>; + compatible = "allwinner,sun4i-a10-mod0-clk"; + reg = <0x01c20080 0x4>; + clocks = <&osc24M>, <&pll6 1>; + clock-output-names = "nand"; + }; +
This should be in a separate patch.
Thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160706/0e612818/attachment.sig>
PATCH 1/1 ARM: dts: sun8i: Add NFC node to Allwinner A23/A33 SoC
07.07.2016, 04:29, "Maxime Ripard" <[email protected]>:
Quoted 32 lines
Hi,
Quoted 3 lines · Icenowy Zheng
?Add NAND Flash controller node definition to the A23/A33 SoC.
?Signed-off-by: Icenowy Zheng <[email protected]>
Has this ever been tested? On what board, with what NAND chip?
Quoted 12 lines
?---
??arch/arm/boot/dts/sun8i-a23-a33.dtsi | 23 +++++++++++++++++++++++ ??1 file changed, 23 insertions(+)?diff --git
a/arch/arm/boot/dts/sun8i-a23-a33.dtsib/arch/arm/boot/dts/sun8i-a23-a33.dtsi?index 7e05e09..270c38a 100644
?---a/arch/arm/boot/dts/sun8i-a23-a33.dtsi
?+++b/arch/arm/boot/dts/sun8i-a23-a33.dtsi
?@@ -209,6 +209,14 @@ ??????????????????????????????????????????"apb2_uart3", "apb2_uart4"; ??????????????????};Quoted 8 lines
?+
nand_clk: clk at01c20080{
?+ #clock-cells = <0>;
?+ compatible = "allwinner,sun4i-a10-mod0-clk";
?+ reg = <0x01c200800x4>;
?+ clocks = <&osc24M>, <&pll6 1>;
?+ clock-output-names = "nand";
?+ };
?+This should be in a separate patch.
Quoted 7 lines
Thanks!
Maxime--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
with a http://linux-sunxi.org/Aoson_M751s tablet, (SKhynix H27UCG8T2ETR-BC NAND chip).
I used the patchset at http://lists.infradead.org/pipermail/linux-mtd/2016-June/067848.html to ensure the NAND chip to work properly (otherwise the chip id cannot be correctly identified)
Quoted 7 lines · Icenowy Zheng
with a http://linux-sunxi.org/Aoson_M751s tablet, (SKhynix H27UCG8T2ETR-BC NAND chip).
I used the patchset at
http://lists.infradead.org/pipermail/linux-mtd/2016-June/067848.html
to ensure the NAND chip to work properly (otherwise the chip id cannot be correctly identified)
(Please reply in-line and wrap your mails).
Ok. That needs to be in the commit log then.
Thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160707/1eba7734/attachment.sig>