Skip to contentSkip to conversation

ARM: dts: sun8i: Add dts file for Olimex A33-OLinuXino

PATCH Superseded Stefan Mavrodiev 3 participants 8 messages Jul 25, 2016 – Aug 15, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 ARM: dts: sun8i: Add dts file for Olimex A33-OLinuXino

A33-OLinuXino is A33 development board designed by Olimex LTD.

It has AXP233 PMU, 1GB DRAM, a micro SD card, one USB-OTG connector, headphone and mic jacks, connector for LiPo battery and optional 4GB NAND Flash.

It has two 40-pin headers. One for LCD panel, and one for additional modules. Also there is CSI/DSI connector.

---
Changes for v2:
- Removed unused power nodes
- Removed default-trigger for green led
- Removed "always-on" option for LCD power

Changes for v3:
- Nodes are sorted alphabetically

Changes for v4:
- Green led renamed
- Added OTG support

 arch/arm/boot/dts/Makefile                |   1 +
 arch/arm/boot/dts/sun8i-a33-olinuxino.dts | 226 ++++++++++++++++++++++++++++++
 2 files changed, 227 insertions(+)
 create mode 100644 arch/arm/boot/dts/sun8i-a33-olinuxino.dts
arch/arm/boot/dts/Makefile +1 -0
index 016611d..e02a97e 100644
@@ -759,6 +759,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \
 	sun8i-a33-et-q8-v1.6.dtb \
 	sun8i-a33-ga10h-v1.1.dtb \
 	sun8i-a33-ippo-q8h-v1.2.dtb \
+	sun8i-a33-olinuxino.dtb \
 	sun8i-a33-q8-tablet.dtb \
 	sun8i-a33-sinlinx-sina33.dtb \
 	sun8i-a83t-allwinner-h8homlet-v2.dtb \
arch/arm/boot/dts/sun8i-a33-olinuxino.dts new file +226 -0

226 lines not on this page · raw message

Signature · 1 line
2.8.1
#1 lore raw

Hi Stefan,

Quoted 10 lines · Stefan Mavrodiev

A33-OLinuXino is A33 development board designed by Olimex LTD.

It has AXP233 PMU, 1GB DRAM, a micro SD card, one USB-OTG connector, headphone and mic jacks, connector for LiPo battery and optional 4GB NAND Flash.

It has two 40-pin headers. One for LCD panel, and one for additional modules. Also there is CSI/DSI connector.

It looks mostly good, a few comments though.

arch/arm/boot/dts/sun8i-a33-olinuxino.dts line 96

Quoted 4 lines

+&pio {

arch/arm/boot/dts/sun8i-a33-olinuxino.dts new file +3 -0
+	led_pin_olinuxino: led_pins at 0 {
+		allwinner,pins = "PB7";
+        allwinner,function = "gpio_out";

This line is not properly indented.

arch/arm/boot/dts/sun8i-a33-olinuxino.dts line 99

Quoted 3 lines
arch/arm/boot/dts/sun8i-a33-olinuxino.dts new file +3 -0
+		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+    };

And this one too.

Review

Quoted 3 lines

+&reg_dc1sw {

(quoted diff) +2 -0
+	regulator-name = "vcc-lcd";
+};

No constraints on this one?

arch/arm/boot/dts/sun8i-a33-olinuxino.dts line 168

Quoted 6 lines

+&reg_dcdc1 {

arch/arm/boot/dts/sun8i-a33-olinuxino.dts new file +5 -0
+	regulator-always-on;
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-dsi";
+};

What is it used for? Is it really necessary to keep it on at all time?

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/20160726/6a3e3915/attachment.sig>
#2 lore raw

PATCH v4 1/1 ARM: dts: sun8i: Add dts file for Olimex A33-OLinuXino

26.07.2016, 23:38, "Maxime Ripard" <[email protected]>:

Quoted 26 lines

Hi Stefan,

Quoted 10 lines · Stefan Mavrodiev

?A33-OLinuXino is A33 development board designed by Olimex LTD.

?It has AXP233 PMU, 1GB DRAM, a micro SD card, one USB-OTG connector, ?headphone and mic jacks, connector for LiPo battery and optional ?4GB NAND Flash.

?It has two 40-pin headers. One for LCD panel, and one for ?additional modules. Also there is CSI/DSI connector.

?Signed-off-by: Stefan Mavrodiev <[email protected]>

It looks mostly good, a few comments though.

Quoted 4 lines

?+&pio {
?+ led_pin_olinuxino: led_pins at 0 {
?+ allwinner,pins = "PB7";
?+ allwinner,function = "gpio_out";

This line is not properly indented.

Quoted 3 lines

?+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
?+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
?+ };

Quoted 7 lines

And this one too.

Quoted 3 lines

?+&reg_dc1sw {
?+ regulator-name = "vcc-lcd";
?+};

No constraints on this one?

The "regulator" dc1sw is, in fact, a switch (so it's named as "sw"). So it have only on-off status.

The constraints in dc1sw has prevented one of my A31s tablet from booting when it's not removed.

Quoted 23 lines
Quoted 7 lines

?+&reg_dcdc1 {
?+ regulator-always-on;
?+ regulator-min-microvolt = <3300000>;
?+ regulator-max-microvolt = <3300000>;
?+ regulator-name = "vcc-dsi";
?+};

What is it used for? Is it really necessary to keep it on at all time?

Thanks,
Maxime

--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
,

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#3 lore raw
In reply to Maxime Ripard
Quoted 35 lines · EEST Maxime Ripard

Hi Stefan,

Quoted 10 lines · Stefan Mavrodiev

A33-OLinuXino is A33 development board designed by Olimex LTD.

It has AXP233 PMU, 1GB DRAM, a micro SD card, one USB-OTG connector, headphone and mic jacks, connector for LiPo battery and optional 4GB NAND Flash.

It has two 40-pin headers. One for LCD panel, and one for additional modules. Also there is CSI/DSI connector.

It looks mostly good, a few comments though.

arch/arm/boot/dts/sun8i-a33-olinuxino.dts line 96

Quoted 4 lines

+&pio {

arch/arm/boot/dts/sun8i-a33-olinuxino.dts new file +3 -0
+	led_pin_olinuxino: led_pins at 0 {
+		allwinner,pins = "PB7";
+        allwinner,function = "gpio_out";

This line is not properly indented.

arch/arm/boot/dts/sun8i-a33-olinuxino.dts line 99

Quoted 3 lines
arch/arm/boot/dts/sun8i-a33-olinuxino.dts new file +3 -0
+		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+    };

And this one too.

Review

Quoted 3 lines

+&reg_dc1sw {

(quoted diff) +2 -0
+	regulator-name = "vcc-lcd";
+};

No constraints on this one?

Quoted 8 lines

arch/arm/boot/dts/sun8i-a33-olinuxino.dts line 168

Quoted 6 lines

+&reg_dcdc1 {

arch/arm/boot/dts/sun8i-a33-olinuxino.dts new file +5 -0
+	regulator-always-on;
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-dsi";
+};

What is it used for? Is it really necessary to keep it on at all time?

I think so.
This is the supply for the MMC.

Quoted 3 lines

Thanks,
Maxime

Best regards,
Stefan Mavrodiev

#4 lore raw
Quoted 11 lines · stefan.mavrodiev at gmail.com
Quoted 8 lines

arch/arm/boot/dts/sun8i-a33-olinuxino.dts line 168

Quoted 6 lines

+&reg_dcdc1 {

arch/arm/boot/dts/sun8i-a33-olinuxino.dts new file +5 -0
+	regulator-always-on;
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-dsi";
+};

What is it used for? Is it really necessary to keep it on at all time?

I think so.
This is the supply for the MMC.

Then it's poorly named, and you should tie it to the MMC, and remove the always-on if it's only used by the mmc. always-on is supposed to be for regulators that shouldn't but turned off for the system to stay running. Some MMC regulator doesn't fit that description.

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/20160727/bf0be398/attachment.sig>
#5 lore raw
Quoted 10 lines · EEST Maxime Ripard
Quoted 9 lines · stefan.mavrodiev at gmail.com
Quoted 8 lines

arch/arm/boot/dts/sun8i-a33-olinuxino.dts line 168

Quoted 6 lines

+&reg_dcdc1 {

arch/arm/boot/dts/sun8i-a33-olinuxino.dts new file +5 -0
+	regulator-always-on;
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-dsi";
+};

What is it used for? Is it really necessary to keep it on at all time?

Quoted 8 lines
Quoted 2 lines

I think so.
This is the supply for the MMC.

Then it's poorly named, and you should tie it to the MMC, and remove the always-on if it's only used by the mmc. always-on is supposed to be for regulators that shouldn't but turned off for the system to stay running. Some MMC regulator doesn't fit that description.

It's named upon the A33 power pin - "VCC-DSI".
If I remove "always-on" the board still will work, since dcdc1 is tied to mmc0.
vmmc-supply = <&reg_dcdc1>;

We assume this voltage will be always present and there are some pullups that are tied to it (on i2c0 and i2c1 bus). In this case should I remove "always- on" from the regulator node?

Quoted 1 line

Maxime

Best regards,
Stefan Mavrodiev

#6 lore raw
Quoted 14 lines · stefan.mavrodiev at gmail.com
Quoted 13 lines · EEST Maxime Ripard
Quoted 11 lines · stefan.mavrodiev at gmail.com
Quoted 8 lines

arch/arm/boot/dts/sun8i-a33-olinuxino.dts line 168

Quoted 6 lines

+&reg_dcdc1 {

arch/arm/boot/dts/sun8i-a33-olinuxino.dts new file +5 -0
+	regulator-always-on;
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-dsi";
+};

What is it used for? Is it really necessary to keep it on at all time?

I think so.
This is the supply for the MMC.

Quoted 6 lines
Quoted 4 lines

Then it's poorly named, and you should tie it to the MMC, and remove the always-on if it's only used by the mmc. always-on is supposed to be for regulators that shouldn't but turned off for the system to stay running. Some MMC regulator doesn't fit that description.

It's named upon the A33 power pin - "VCC-DSI".

Usually, it's based on the name of the output in the schematics, precisely because, from one board to another, it might have different usage.

Quoted 7 lines

If I remove "always-on" the board still will work, since dcdc1 is tied to mmc0.
vmmc-supply = <&reg_dcdc1>;

We assume this voltage will be always present and there are some pullups that are tied to it (on i2c0 and i2c1 bus). In this case should I remove "always- on" from the regulator node?

No, you should just tie that regulator to the i2c buses as well.

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/20160728/9626bdc1/attachment.sig>
#7 lore raw

PATCH v5 1/1 ARM: dts: sun8i: Add dts file for Olimex A33-OLinuXino

A33-OLinuXino is A33 development board designed by Olimex LTD.

It has AXP233 PMU, 1GB DRAM, a micro SD card, one USB-OTG connector, headphone and mic jacks, connector for LiPo battery and optional 4GB NAND Flash.

It has two 40-pin headers. One for LCD panel, and one for additional modules. Also there is CSI/DSI connector.

---
Changes for v2:
- Removed unused power nodes
- Removed default-trigger for green led
- Removed "always-on" option for LCD power

Changes for v3:
- Nodes are sorted alphabetically

Changes for v4:
- Green led renamed
- Added OTG support

Changes for v5:
- Renamed dcdc1 regulator
- indentation fixes

 arch/arm/boot/dts/Makefile                |   1 +
 arch/arm/boot/dts/sun8i-a33-olinuxino.dts | 226 ++++++++++++++++++++++++++++++
 2 files changed, 227 insertions(+)
 create mode 100644 arch/arm/boot/dts/sun8i-a33-olinuxino.dts
arch/arm/boot/dts/Makefile +1 -0
index 6b3bdb6..75cd98a 100644
@@ -783,6 +783,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \
 	sun8i-a33-et-q8-v1.6.dtb \
 	sun8i-a33-ga10h-v1.1.dtb \
 	sun8i-a33-ippo-q8h-v1.2.dtb \
+	sun8i-a33-olinuxino.dtb \
 	sun8i-a33-q8-tablet.dtb \
 	sun8i-a33-sinlinx-sina33.dtb \
 	sun8i-a83t-allwinner-h8homlet-v2.dtb \
arch/arm/boot/dts/sun8i-a33-olinuxino.dts new file +226 -0

226 lines not on this page · raw message

Signature · 1 line
2.8.1