* [PATCH 0/3] ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board
@ 2015-06-02 10:04 Chen-Yu Tsai
2015-06-02 10:04 ` [PATCH 1/3] ARM: dts: sun8i: Add pinmux setting for 8bit mmc2 Chen-Yu Tsai
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Chen-Yu Tsai @ 2015-06-02 10:04 UTC (permalink / raw)
To: linux-arm-kernel
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%)
--
2.1.4
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/3] ARM: dts: sun8i: Add pinmux setting for 8bit mmc2
2015-06-02 10:04 [PATCH 0/3] ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board Chen-Yu Tsai
@ 2015-06-02 10:04 ` Chen-Yu Tsai
2015-06-02 10:04 ` [PATCH 2/3] ARM: dts: sun8i-a33: Add pinmux setting for uart0 on PB pins Chen-Yu Tsai
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Chen-Yu Tsai @ 2015-06-02 10:04 UTC (permalink / raw)
To: linux-arm-kernel
mmc2 is mostly used with eMMC flash chips, as an alternative to
raw NAND flash chips. 8 bit mmc is commonly used.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
arch/arm/boot/dts/sun8i-a23-a33.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a23-a33.dtsi b/arch/arm/boot/dts/sun8i-a23-a33.dtsi
index faea94e45eeb..7abd0ae3143d 100644
--- a/arch/arm/boot/dts/sun8i-a23-a33.dtsi
+++ b/arch/arm/boot/dts/sun8i-a23-a33.dtsi
@@ -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";
--
2.1.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/3] ARM: dts: sun8i-a33: Add pinmux setting for uart0 on PB pins
2015-06-02 10:04 [PATCH 0/3] ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board Chen-Yu Tsai
2015-06-02 10:04 ` [PATCH 1/3] ARM: dts: sun8i: Add pinmux setting for 8bit mmc2 Chen-Yu Tsai
@ 2015-06-02 10:04 ` Chen-Yu Tsai
2015-06-02 10:04 ` [PATCH 3/3] ARM: dts: sun8i-a33: Add dts for Sinlinx SinA33 development board Chen-Yu Tsai
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Chen-Yu Tsai @ 2015-06-02 10:04 UTC (permalink / raw)
To: linux-arm-kernel
The 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.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
arch/arm/boot/dts/sun8i-a33.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33.dtsi
index 9b43bc6e7926..85ee08098b7b 100644
--- a/arch/arm/boot/dts/sun8i-a33.dtsi
+++ b/arch/arm/boot/dts/sun8i-a33.dtsi
@@ -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>;
+ };
+
};
--
2.1.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/3] ARM: dts: sun8i-a33: Add dts for Sinlinx SinA33 development board.
2015-06-02 10:04 [PATCH 0/3] ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board Chen-Yu Tsai
2015-06-02 10:04 ` [PATCH 1/3] ARM: dts: sun8i: Add pinmux setting for 8bit mmc2 Chen-Yu Tsai
2015-06-02 10:04 ` [PATCH 2/3] ARM: dts: sun8i-a33: Add pinmux setting for uart0 on PB pins Chen-Yu Tsai
@ 2015-06-02 10:04 ` Chen-Yu Tsai
2015-06-02 10:10 ` [PATCH 0/3] ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board Hans de Goede
2015-06-02 21:18 ` Maxime Ripard
4 siblings, 0 replies; 7+ messages in thread
From: Chen-Yu Tsai @ 2015-06-02 10:04 UTC (permalink / raw)
To: linux-arm-kernel
The 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.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
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
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index ab033651ad63..5150176bd9ea 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -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
diff --git a/arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts b/arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts
new file mode 100644
index 000000000000..5788c29cb56a
--- /dev/null
+++ b/arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts
@@ -0,0 +1,129 @@
+/*
+ * Copyright 2015 Chen-Yu Tsai
+ *
+ * Chen-Yu Tsai <wens@csie.org>
+ *
+ * This file is dual-licensed: you can use it either under the terms
+ * of the GPL or the X11 license, at your option. Note that this dual
+ * licensing only applies to this file, and not this project as a
+ * whole.
+ *
+ * a) This file is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This file is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * Or, alternatively,
+ *
+ * b) Permission is hereby granted, free of charge, to any person
+ * obtaining a copy of this software and associated documentation
+ * files (the "Software"), to deal in the Software without
+ * restriction, including without limitation the rights to use,
+ * copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following
+ * conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+/dts-v1/;
+#include "sun8i-a33.dtsi"
+#include "sunxi-common-regulators.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/pinctrl/sun4i-a10.h>
+
+/ {
+ model = "Sinlinx SinA33";
+ compatible = "sinlinx,sina33", "allwinner,sun8i-a33";
+
+ aliases {
+ serial0 = &uart0;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+};
+
+&lradc {
+ vref-supply = <®_vcc3v0>;
+ status = "okay";
+
+ button at 200 {
+ label = "Volume Up";
+ linux,code = <KEY_VOLUMEUP>;
+ channel = <0>;
+ voltage = <191011>;
+ };
+
+ button at 400 {
+ label = "Volume Down";
+ linux,code = <KEY_VOLUMEDOWN>;
+ channel = <0>;
+ voltage = <391304>;
+ };
+
+ button at 600 {
+ label = "Home";
+ linux,code = <KEY_HOME>;
+ channel = <0>;
+ voltage = <600000>;
+ };
+};
+
+&mmc0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_sina33>;
+ vmmc-supply = <®_vcc3v0>;
+ bus-width = <4>;
+ cd-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */
+ cd-inverted;
+ status = "okay";
+};
+
+&mmc2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc2_8bit_pins>;
+ vmmc-supply = <®_vcc3v0>;
+ bus-width = <8>;
+ non-removable;
+ status = "okay";
+};
+
+&mmc2_8bit_pins {
+ /* eMMC is missing pull-ups */
+ allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
+};
+
+&pio {
+ mmc0_cd_pin_sina33: mmc0_cd_pin at 0 {
+ allwinner,pins = "PB4";
+ allwinner,function = "gpio_in";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
+ };
+};
+
+&uart0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart0_pins_b>;
+ status = "okay";
+};
--
2.1.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 0/3] ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board
2015-06-02 10:04 [PATCH 0/3] ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board Chen-Yu Tsai
` (2 preceding siblings ...)
2015-06-02 10:04 ` [PATCH 3/3] ARM: dts: sun8i-a33: Add dts for Sinlinx SinA33 development board Chen-Yu Tsai
@ 2015-06-02 10:10 ` Hans de Goede
2015-06-02 10:21 ` Chen-Yu Tsai
2015-06-02 21:18 ` Maxime Ripard
4 siblings, 1 reply; 7+ messages in thread
From: Hans de Goede @ 2015-06-02 10:10 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
On 02-06-15 12:04, Chen-Yu Tsai wrote:
> 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.
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 0/3] ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board
2015-06-02 10:10 ` [PATCH 0/3] ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board Hans de Goede
@ 2015-06-02 10:21 ` Chen-Yu Tsai
0 siblings, 0 replies; 7+ messages in thread
From: Chen-Yu Tsai @ 2015-06-02 10:21 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
On Tue, Jun 2, 2015 at 6:10 PM, Hans de Goede <hdegoede@redhat.com> wrote:
> Hi,
>
> On 02-06-15 12:04, Chen-Yu Tsai wrote:
>>
>> 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.
>
>
> 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. :)
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 0/3] ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board
2015-06-02 10:04 [PATCH 0/3] ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board Chen-Yu Tsai
` (3 preceding siblings ...)
2015-06-02 10:10 ` [PATCH 0/3] ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board Hans de Goede
@ 2015-06-02 21:18 ` Maxime Ripard
4 siblings, 0 replies; 7+ messages in thread
From: Maxime Ripard @ 2015-06-02 21:18 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jun 02, 2015 at 06:04:00PM +0800, Chen-Yu Tsai wrote:
> 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.
Applied all three, thanks!
Maxime
--
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>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-06-02 21:18 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-02 10:04 [PATCH 0/3] ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board Chen-Yu Tsai
2015-06-02 10:04 ` [PATCH 1/3] ARM: dts: sun8i: Add pinmux setting for 8bit mmc2 Chen-Yu Tsai
2015-06-02 10:04 ` [PATCH 2/3] ARM: dts: sun8i-a33: Add pinmux setting for uart0 on PB pins Chen-Yu Tsai
2015-06-02 10:04 ` [PATCH 3/3] ARM: dts: sun8i-a33: Add dts for Sinlinx SinA33 development board Chen-Yu Tsai
2015-06-02 10:10 ` [PATCH 0/3] ARM: dts: sun8i-a33: Support for Sinlinx SinA33 dev board Hans de Goede
2015-06-02 10:21 ` Chen-Yu Tsai
2015-06-02 21:18 ` Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).