ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board
Subsystems (3)
cover ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board
Hi Maxime,
This series enables support for the Sinlinx SinA33 dev board. This is a core/daughter board SDK kit from Chinese vendor Sinlinx. The core board itself does not have any special connectivity, so I didn't split them into 2 files.
The series is based on Vishnu/Hans' A33 series (v2). As the last (dts) patch was not merged yet, there might be a conflict in dts/Makefile.
Patch 1 adds a pinmux setting for uart0 on PB pins. This is new on A33, and is much better than using R_UART for console on A23, as we can also see messages from BROM/boot0 when developing, and also use the same earlyprintk settings as other sunxi platforms.
Patch 2 adds a pinmux setting for 8 bit eMMC on mmc2. mmc2 also has a reset pin, though I'm not sure if our mmc driver actually uses it. Not using it seems to work anyway.
Patch 3 adds the dts file for the SinA33 dev board. Just the basic set of features are enabled: UART console, MMC, LRADC.
Chen-Yu Tsai (3):
ARM: dts: sun8i: Add pinmux setting for 8bit mmc2
ARM: dts: sun8i-a33: Add pinmux setting for uart0 on PB pins
ARM: dts: sun8i-a33: Add dts for Sinlinx SinA33 development board.
arch/arm/boot/dts/Makefile | 3 +-
arch/arm/boot/dts/sun8i-a23-a33.dtsi | 10 ++
...sun8i-a33.dtsi => sun8i-a33-sinlinx-sina33.dts} | 106 ++++++++++++++-------
arch/arm/boot/dts/sun8i-a33.dtsi | 8 ++
4 files changed, 93 insertions(+), 34 deletions(-)
copy arch/arm/boot/dts/{sun8i-a33.dtsi => sun8i-a33-sinlinx-sina33.dts} (56%)Signature · 1 line
2.1.4
PATCH 1/3 ARM: dts: sun8i: Add pinmux setting for 8bit mmc2
mmc2 is mostly used with eMMC flash chips, as an alternative to raw NAND flash chips. 8 bit mmc is commonly used.
--- arch/arm/boot/dts/sun8i-a23-a33.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm/boot/dts/sun8i-a23-a33.dtsi +10 -0
@@ -366,6 +366,16 @@ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; }; + mmc2_8bit_pins: mmc2_8bit { + allwinner,pins = "PC5", "PC6", "PC8", + "PC9", "PC10", "PC11", + "PC12", "PC13", "PC14", + "PC15"; + allwinner,function = "mmc2"; + allwinner,drive = <SUN4I_PINCTRL_30_MA>; + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; + }; + i2c0_pins_a: i2c0 at 0 { allwinner,pins = "PH2", "PH3"; allwinner,function = "i2c0";
Signature · 1 line
2.1.4
PATCH 2/3 ARM: dts: sun8i-a33: Add pinmux setting for uart0 on PB pins
In reply to Chen-Yu TsaiThe A33 adds an additional pinmux option for uart0 on the PB pins. This was not present on the A23. Nor is it available on the H3, which does not have the PB pingroup.
--- arch/arm/boot/dts/sun8i-a33.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm/boot/dts/sun8i-a33.dtsi +8 -0
@@ -86,4 +86,12 @@ compatible = "allwinner,sun8i-a33-pinctrl"; interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; + + uart0_pins_b: uart0 at 1 { + allwinner,pins = "PB0", "PB1"; + allwinner,function = "uart0"; + allwinner,drive = <SUN4I_PINCTRL_10_MA>; + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; + }; + };
Signature · 1 line
2.1.4
PATCH 3/3 ARM: dts: sun8i-a33: Add dts for Sinlinx SinA33 development board.
In reply to Chen-Yu TsaiThe SinA33 is a core/SDK development board by Sinlinx. The core board does not have any connectors or pads, other than the pads used to connect it to the SDK board.
The core board only has the A33 SoC, 2 RAM chips, an eMMC flash chip, the AXP223 PMIC, and supporting discrete components. eMMC is optional.
The SDK board has a USB host, USB OTG, volume control and home buttons, audio input/output jacks, a micro-SD slot, camera and SDIO expansion headers, an LCD connector, and a GPIO expansion header, which has UARTs, MIPI DSI and I2C available. Only UART0 is enabled though.
--- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 129 +++++++++++++++++++++++++ 2 files changed, 131 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts
arch/arm/boot/dts/Makefile +2 -1
@@ -574,7 +574,8 @@ dtb-$(CONFIG_MACH_SUN8I) += \ sun8i-a23-ippo-q8h-v5.dtb \ sun8i-a23-ippo-q8h-v1.2.dtb \ sun8i-a33-et-q8-v1.6.dtb \ - sun8i-a33-ippo-q8h-v1.2-lcd1024x600.dtb + sun8i-a33-ippo-q8h-v1.2-lcd1024x600.dtb \ + sun8i-a33-sinlinx-sina33.dtb dtb-$(CONFIG_MACH_SUN9I) += \ sun9i-a80-optimus.dtb \ sun9i-a80-cubieboard4.dtb
arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts new file +129 -0
129 lines not on this page · raw message
Signature · 1 line
2.1.4
cover ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board
In reply to Chen-Yu TsaiHi,
Quoted 16 lines · Chen-Yu Tsai
Hi Maxime,
This series enables support for the Sinlinx SinA33 dev board. This is a core/daughter board SDK kit from Chinese vendor Sinlinx. The core board itself does not have any special connectivity, so I didn't split them into 2 files.
The series is based on Vishnu/Hans' A33 series (v2). As the last (dts) patch was not merged yet, there might be a conflict in dts/Makefile.
Patch 1 adds a pinmux setting for uart0 on PB pins. This is new on A33, and is much better than using
R_UARTfor console on A23, as we can also see messages from BROM/boot0 when developing, and also use the same earlyprintk settings as other sunxi platforms.
Quoted 6 lines
Patch 2 adds a pinmux setting for 8 bit eMMC on mmc2. mmc2 also has a reset pin, though I'm not sure if our mmc driver actually uses it. Not using it seems to work anyway.
Patch 3 adds the dts file for the SinA33 dev board. Just the basic set of features are enabled: UART console, MMC, LRADC.
Cool stuff, looks good to me. Note I plan on adding support for the musb and usb-host on the A33 tonight, I've a 10" tablet which has both an otg and a host usb port.
I'm not sure if I'll post the series for this right away as I'm still waiting on some dependencies to get merged first, but keep an eye out on my sunxi-wip tree as something should show up there tonight (CET).
Regards,
Hans
cover ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board
Hi,
Quoted 24 lines · Hans de Goede
Hi,
Quoted 21 lines · Chen-Yu Tsai
Hi Maxime,
This series enables support for the Sinlinx SinA33 dev board. This is a core/daughter board SDK kit from Chinese vendor Sinlinx. The core board itself does not have any special connectivity, so I didn't split them into 2 files.
The series is based on Vishnu/Hans' A33 series (v2). As the last (dts) patch was not merged yet, there might be a conflict in dts/Makefile.
Patch 1 adds a pinmux setting for uart0 on PB pins. This is new on A33, and is much better than using
R_UARTfor console on A23, as we can also see messages from BROM/boot0 when developing, and also use the same earlyprintk settings as other sunxi platforms.Patch 2 adds a pinmux setting for 8 bit eMMC on mmc2. mmc2 also has a reset pin, though I'm not sure if our mmc driver actually uses it. Not using it seems to work anyway.
Quoted 7 lines
Quoted 2 lines
Patch 3 adds the dts file for the SinA33 dev board. Just the basic set of features are enabled: UART console, MMC, LRADC.
Cool stuff, looks good to me. Note I plan on adding support for the musb and usb-host on the A33 tonight, I've a 10" tablet which has both an otg and a host usb port.
I've a series for A23/A33 host usb done at
https://github.com/wens/linux/tree/sun8i-usb-host
which I'm getting ready to post. We're already at -rc6, so the phy driver might not make it. My dev board also has OTG, but VBUS is a physical jumper. I'd be happy to test though. My A23 tablet also wants OTG to have USB ethernet. :)
Quoted 4 lines
I'm not sure if I'll post the series for this right away as I'm still waiting on some dependencies to get merged first, but keep an eye out on my sunxi-wip tree as something should show up there tonight (CET).
Thanks!
ChenYu
Maxime Ripard
Appliedcover ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board
In reply to Chen-Yu TsaiQuoted 16 lines · Chen-Yu Tsai
Hi Maxime,
This series enables support for the Sinlinx SinA33 dev board. This is a core/daughter board SDK kit from Chinese vendor Sinlinx. The core board itself does not have any special connectivity, so I didn't split them into 2 files.
The series is based on Vishnu/Hans' A33 series (v2). As the last (dts) patch was not merged yet, there might be a conflict in dts/Makefile.
Patch 1 adds a pinmux setting for uart0 on PB pins. This is new on A33, and is much better than using
R_UARTfor console on A23, as we can also see messages from BROM/boot0 when developing, and also use the same earlyprintk settings as other sunxi platforms.
Quoted 6 lines
Patch 2 adds a pinmux setting for 8 bit eMMC on mmc2. mmc2 also has a reset pin, though I'm not sure if our mmc driver actually uses it. Not using it seems to work anyway.
Patch 3 adds the dts file for the SinA33 dev board. Just the basic set of features are enabled: UART console, MMC, LRADC.
Applied all three, thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150602/5aa5a4fc/attachment.sig>