Skip to contentSkip to conversation

arm64: allwinner: a64: Add Amarula A64-Relic initial support

PATCH Superseded Jagan Teki 2 participants 6 messages May 22, 2018 – May 24, 2018

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

PATCH v3 1/1 arm64: allwinner: a64: Add Amarula A64-Relic initial support

Amarula A64-Relic is Allwinner A64 based IoT device, which support
- Allwinner A64 Cortex-A53
- Mali-400MP2 GPU
- AXP803 PMIC
- 1GB DDR3 RAM
- 8GB eMMC
- AP6330 Wifi/BLE
- MIPI-DSI
- CSI: OV5640 sensor
- USB OTG
- 12V DC power supply

---
Changes for v3:
- Use sun50i-a64-amarula-relic.dts name
- add eldo3 for dvdd-csi
- update dldo4 min voltage as 3.3v as per schematics
- use dldo3 name as dovdd-csi
- update aldo1, aldo2 voltages as per schematics Changes for v2:
- Rename dts name to sun50i-a64-relic.dts which is simple to use
- Update dldo4 min voltage as 1.8
- Use licence year as 2018

 arch/arm64/boot/dts/allwinner/Makefile             |   1 +
 .../dts/allwinner/sun50i-a64-amarula-relic.dts     | 188 +++++++++++++++++++++
 2 files changed, 189 insertions(+)
 create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts
arch/arm64/boot/dts/allwinner/Makefile +1 -0
index c31f90a49481..67ce8c500b2e 100644
@@ -1,4 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
+dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-amarula-relic.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-bananapi-m64.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-nanopi-a64.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-olinuxino.dtb
arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts new file +188 -0

188 lines not on this page · raw message

Signature · 1 line
2.14.3
#1 lore raw
Quoted 10 lines · Jagan Teki

Amarula A64-Relic is Allwinner A64 based IoT device, which support
- Allwinner A64 Cortex-A53
- Mali-400MP2 GPU
- AXP803 PMIC
- 1GB DDR3 RAM
- 8GB eMMC
- AP6330 Wifi/BLE
- MIPI-DSI
- CSI: OV5640 sensor
- USB OTG

You claim that this is doing OTG...

[..]

arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts line 182

Quoted 4 lines

+&usb_otg {

arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts new file +3 -0
+	dr_mode = "peripheral";
+	status = "okay";
+};

... and yet you're setting it as peripheral...

arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts line 186

Quoted 3 lines

+&usbphy {

arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts new file +2 -0
+	usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
+	usb0_vbus-supply = <&reg_drivevbus>;

While you have an ID pin and a controllable VBUS. Which one is it?

Maxime

Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180522/f71e03b3/attachment-0001.sig>
author
#2 lore raw
Quoted 14 lines · Maxime Ripard
Quoted 10 lines · Jagan Teki

Amarula A64-Relic is Allwinner A64 based IoT device, which support
- Allwinner A64 Cortex-A53
- Mali-400MP2 GPU
- AXP803 PMIC
- 1GB DDR3 RAM
- 8GB eMMC
- AP6330 Wifi/BLE
- MIPI-DSI
- CSI: OV5640 sensor
- USB OTG

You claim that this is doing OTG...

Quoted 8 lines

[..]

arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts line 182

Quoted 4 lines

+&usb_otg {

arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts new file +3 -0
+     dr_mode = "peripheral";
+     status = "okay";
+};

... and yet you're setting it as peripheral...

Though it claims OTG, board doesn't have any USB ports to operate(not even Mini-AB) the only way to use the board as peripheral to transfer images from host.

#3 lore raw
Quoted 23 lines · Jagan Teki
Quoted 21 lines · Maxime Ripard
Quoted 10 lines · Jagan Teki

Amarula A64-Relic is Allwinner A64 based IoT device, which support
- Allwinner A64 Cortex-A53
- Mali-400MP2 GPU
- AXP803 PMIC
- 1GB DDR3 RAM
- 8GB eMMC
- AP6330 Wifi/BLE
- MIPI-DSI
- CSI: OV5640 sensor
- USB OTG

You claim that this is doing OTG...

[..]

Quoted 4 lines

+&usb_otg {

arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts new file +3 -0
+     dr_mode = "peripheral";
+     status = "okay";
+};
Quoted 5 lines
Quoted 1 line

... and yet you're setting it as peripheral...

Though it claims OTG, board doesn't have any USB ports to operate(not even Mini-AB) the only way to use the board as peripheral to transfer images from host.

I'm not sure what you mean here. If there's no USB connector, why do you even enable it?

maxime

Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180523/aa60090a/attachment.sig>
author
#4 lore raw
Quoted 24 lines · Maxime Ripard
Quoted 23 lines · Jagan Teki
Quoted 21 lines · Maxime Ripard
Quoted 10 lines · Jagan Teki

Amarula A64-Relic is Allwinner A64 based IoT device, which support
- Allwinner A64 Cortex-A53
- Mali-400MP2 GPU
- AXP803 PMIC
- 1GB DDR3 RAM
- 8GB eMMC
- AP6330 Wifi/BLE
- MIPI-DSI
- CSI: OV5640 sensor
- USB OTG

You claim that this is doing OTG...

[..]

Quoted 4 lines

+&usb_otg {

arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts new file +3 -0
+     dr_mode = "peripheral";
+     status = "okay";
+};
Quoted 8 lines
Quoted 5 lines
Quoted 1 line

... and yet you're setting it as peripheral...

Though it claims OTG, board doesn't have any USB ports to operate(not even Mini-AB) the only way to use the board as peripheral to transfer images from host.

I'm not sure what you mean here. If there's no USB connector, why do you even enable it?

I'm saying there is no host port on board. Board has connector header[1] comes with few pins includes USB D+, D-, ID, VBUS, GROUND, UART0 TX, RX etc. we have to connect wires to these pins to make pluggable USB to host pc. and here USB pins used for transferring data from host pc to target board like in peripheral mode.

Hope you understand.

[1] https://www.digikey.com/product-detail/en/molex-llc/5016451420/WM6074-ND/1787775

Jagan.

Signature · 4 lines
Jagan Teki
Senior Linux Kernel Engineer | Amarula Solutions
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.
#5 lore raw
Quoted 32 lines · Jagan Teki
Quoted 30 lines · Maxime Ripard
Quoted 28 lines · Jagan Teki
Quoted 14 lines · Maxime Ripard
Quoted 10 lines · Jagan Teki

Amarula A64-Relic is Allwinner A64 based IoT device, which support
- Allwinner A64 Cortex-A53
- Mali-400MP2 GPU
- AXP803 PMIC
- 1GB DDR3 RAM
- 8GB eMMC
- AP6330 Wifi/BLE
- MIPI-DSI
- CSI: OV5640 sensor
- USB OTG

You claim that this is doing OTG...

Quoted 8 lines

[..]

arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts line 182

Quoted 4 lines

+&usb_otg {

arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts new file +3 -0
+     dr_mode = "peripheral";
+     status = "okay";
+};

... and yet you're setting it as peripheral...

Though it claims OTG, board doesn't have any USB ports to operate(not even Mini-AB) the only way to use the board as peripheral to transfer images from host.

Quoted 8 lines
Quoted 2 lines

I'm not sure what you mean here. If there's no USB connector, why do you even enable it?

I'm saying there is no host port on board. Board has connector header[1] comes with few pins includes USB D+, D-, ID, VBUS, GROUND, UART0 TX, RX etc. we have to connect wires to these pins to make pluggable USB to host pc. and here USB pins used for transferring data from host pc to target board like in peripheral mode.

I'm still unsure how it's relevant. If the wire is plugged on your board's header, is there anything that prevents using it as a host assuming you have a proper connector on the other end of your wire?

Maxime

Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180524/65f20e5f/attachment.sig>