Skip to contentSkip to conversation

dt-bindings: arm: Add Akebi96 board support

PATCH Superseded Masami Hiramatsu 2 participants 7 messages Apr 20, 2020 – Apr 22, 2020 1 message not in the archive

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#1 lore raw

PATCH v2 1/2 dt-bindings: arm: Add Akebi96 board support

In reply to a message not in the archive

Add uniphier-ld20-akebi96 compatible string for
Akebi96 board support.

---
 .../bindings/arm/socionext/uniphier.yaml           |    1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/socionext/uniphier.yaml +1 -0
index 65ad6d8a3c99..10a7f0752281 100644
@@ -51,6 +51,7 @@ properties:
       - description: LD20 SoC boards
         items:
           - enum:
+            - socionext,uniphier-ld20-akebi96
             - socionext,uniphier-ld20-global
             - socionext,uniphier-ld20-ref
           - const: socionext,uniphier-ld20
#2 lore raw

PATCH v2 2/2 arm64: dts: uniphier: Add support for Akebi96

In reply to a message not in the archive

Add the device tree for Akebi96. Akebi96 is a 96boards certified development board based on UniPhir LD20.
( https://www.96boards.org/product/akebi96/ )

This board has;
- MAX3421 USB-SPI chip on SPI port3 (for USB gadget port)
- Simple frame buffer with 1080p fixed resolution.
- I2S port which is connected to aout1b instead of aout1.
- 3 serial ports, only serial3 has CTS/RTS.
- No NAND, only eMMC on the board.
- OP-TEE support.

---
 arch/arm64/boot/dts/socionext/Makefile             |    1 
 .../boot/dts/socionext/uniphier-ld20-akebi96.dts   |  200 ++++++++++++++++++++
 arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi   |    2 
 3 files changed, 202 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts
arch/arm64/boot/dts/socionext/Makefile +1 -0
index d45441249cb5..dda3da33614b 100644
@@ -2,6 +2,7 @@
 dtb-$(CONFIG_ARCH_UNIPHIER) += \
 	uniphier-ld11-global.dtb \
 	uniphier-ld11-ref.dtb \
+	uniphier-ld20-akebi96.dtb \
 	uniphier-ld20-global.dtb \
 	uniphier-ld20-ref.dtb \
 	uniphier-pxs3-ref.dtb
arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts new file +200 -0

200 lines not on this page · raw message

arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +1 -1
index a93148c2088f..8f799f4bcda4 100644
@@ -337,7 +337,7 @@
 						     <21 217 3>;
 		};
 
-		audio@56000000 {
+		audio: audio@56000000 {
 			compatible = "socionext,uniphier-ld20-aio";
 			reg = <0x56000000 0x80000>;
 			interrupts = <0 144 4>;
#3 lore raw

Re: [PATCH v2 2/2] arm64: dts: uniphier: Add support for Akebi96

Quoted 5 lines · Masami Hiramatsu

Add the device tree for Akebi96. Akebi96 is a 96boards certified development board based on UniPhir LD20.
( https://www.96boards.org/product/akebi96/ )

Quoted 7 lines

This board has;
- MAX3421 USB-SPI chip on SPI port3 (for USB gadget port)
- Simple frame buffer with 1080p fixed resolution.
- I2S port which is connected to aout1b instead of aout1.
- 3 serial ports, only serial3 has CTS/RTS.
- No NAND, only eMMC on the board.
- OP-TEE support.

I did not know "OP-TEE support" was board spec.

Anyway, I decided to not worry about that.

You are adding lots of redundant code.

Delete as follows.

(quoted diff) +0 -0

b/arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts index 84ff98d96751..aaf86162da84 100644

arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts +5 -15
@@ -113,7 +113,6 @@ &serial2 {
 &serial3 {
        /* LS connector UART0 */
        status = "okay";
-       pinctrl-0 = <&pinctrl_uart3_ctsrts>;
 };
 
 &spdif_hiecout1 {
@@ -155,11 +154,6 @@ &i2c1 {
        status = "okay";
 };
 
-&audio {
-       pinctrl-0 = <&pinctrl_aout1b>,
-                   <&pinctrl_aoutiec1>;
-};
-
 &spi3 {
        status = "okay";
        #address-cells = <1>;
@@ -187,14 +181,10 @@ xirq10 {
        };
 };
 
-&pinctrl {
-       pinctrl_aout1b: aout1b {
-               groups = "aout1", "aout1b";
-               function = "aout1";
-       };
+&pinctrl_aout1 {
+       groups = "aout1", "aout1b";
+};
 
-       pinctrl_uart3_ctsrts: uart3-ctsrts {
-               groups = "uart3", "uart3_ctsrts";
-               function = "uart3";
-       };
+&pinctrl_uart3 {
+       groups = "uart3", "uart3_ctsrts";
 };
(quoted diff) +0 -0

b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi index f93519793bfb..afa90b762ea9 100644

arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +1 -1
@@ -337,7 +337,7 @@ gpio: gpio@55000000 {
                                                     <21 217 3>;
                };
 
-               audio: audio@56000000 {
+               audio@56000000 {
                        compatible = "socionext,uniphier-ld20-aio";
                        reg = <0x56000000 0x80000>;
                        interrupts = <0 144 4>;

Lastly, is the pin-setting "aout1", "aout1b" correct ?

Signature · 2 lines
Best Regards
Masahiro Yamada
#4 lore raw

Re: [PATCH v2 2/2] arm64: dts: uniphier: Add support for Akebi96

Hiramatsu-san,

Quoted 20 lines · Masahiro Yamada
Quoted 5 lines · Masami Hiramatsu

Add the device tree for Akebi96. Akebi96 is a 96boards certified development board based on UniPhir LD20.
( https://www.96boards.org/product/akebi96/ )

Quoted 7 lines

This board has;
- MAX3421 USB-SPI chip on SPI port3 (for USB gadget port)
- Simple frame buffer with 1080p fixed resolution.
- I2S port which is connected to aout1b instead of aout1.
- 3 serial ports, only serial3 has CTS/RTS.
- No NAND, only eMMC on the board.
- OP-TEE support.

Quoted 1 line

Lastly, is the pin-setting "aout1", "aout1b" correct ?

I am not sure if I understood this code correctly, but there are two ports "aout1" and "aout1b" outputting the same audio, is this correct?

Signature · 2 lines
Best Regards
Masahiro Yamada
#5 lore raw

Re: [PATCH v2 2/2] arm64: dts: uniphier: Add support for Akebi96

In reply to Masahiro Yamada

Hi Yamada-san,

Thank you for your review.

2020年4月20日(月) 20:16 Masahiro Yamada <[email protected]>:

Quoted 17 lines
Quoted 5 lines · Masami Hiramatsu

Add the device tree for Akebi96. Akebi96 is a 96boards certified development board based on UniPhir LD20.
( https://www.96boards.org/product/akebi96/ )

Quoted 7 lines

This board has;
- MAX3421 USB-SPI chip on SPI port3 (for USB gadget port)
- Simple frame buffer with 1080p fixed resolution.
- I2S port which is connected to aout1b instead of aout1.
- 3 serial ports, only serial3 has CTS/RTS.
- No NAND, only eMMC on the board.
- OP-TEE support.

Quoted 1 line

I did not know "OP-TEE support" was board spec.

Indeed, that is a feature in the firmware on the board. Actually I was wondering too, but as other boards already have OP-TEE firmware entry, I decided to add it.

Quoted 2 lines

Anyway, I decided to not worry about that.

Thanks :)

Quoted 5 lines

You are adding lots of redundant code.

Delete as follows.

Thanks for the comment. OK, I'll update it.

Quoted 63 lines
arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts +5 -15
index 84ff98d96751..aaf86162da84 100644
@@ -113,7 +113,6 @@ &serial2 {
 &serial3 {
        /* LS connector UART0 */
        status = "okay";
-       pinctrl-0 = <&pinctrl_uart3_ctsrts>;
 };
 
 &spdif_hiecout1 {
@@ -155,11 +154,6 @@ &i2c1 {
        status = "okay";
 };
 
-&audio {
-       pinctrl-0 = <&pinctrl_aout1b>,
-                   <&pinctrl_aoutiec1>;
-};
-
 &spi3 {
        status = "okay";
        #address-cells = <1>;
@@ -187,14 +181,10 @@ xirq10 {
        };
 };
 
-&pinctrl {
-       pinctrl_aout1b: aout1b {
-               groups = "aout1", "aout1b";
-               function = "aout1";
-       };
+&pinctrl_aout1 {
+       groups = "aout1", "aout1b";
+};
 
-       pinctrl_uart3_ctsrts: uart3-ctsrts {
-               groups = "uart3", "uart3_ctsrts";
-               function = "uart3";
-       };
+&pinctrl_uart3 {
+       groups = "uart3", "uart3_ctsrts";
 };
arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +1 -1
index f93519793bfb..afa90b762ea9 100644
@@ -337,7 +337,7 @@ gpio: gpio@55000000 {
                                                     <21 217 3>;
                };
 
-               audio: audio@56000000 {
+               audio@56000000 {
                        compatible = "socionext,uniphier-ld20-aio";
                        reg = <0x56000000 0x80000>;
                        interrupts = <0 144 4>;
Quoted 1 line

Lastly, is the pin-setting "aout1", "aout1b" correct ?

Yes, according to the schematics of Akebi96(*), it is connected to aout1b(XIRQ*) instead of aout1(AO1*).

(*) https://www.96boards.org/documentation/enterprise/akebi96/hardware-docs/akebi96-schematics.pdf

Best regards,

Quoted 6 lines

--
Best Regards
Masahiro Yamada

--
Masami Hiramatsu

#6 lore raw

Re: [PATCH v2 2/2] arm64: dts: uniphier: Add support for Akebi96

Quoted 14 lines · Masami Hiramatsu
Quoted 14 lines

index f93519793bfb..afa90b762ea9 100644

arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +1 -1
@@ -337,7 +337,7 @@ gpio: gpio@55000000 {
                                                     <21 217 3>;
                };
 
-               audio: audio@56000000 {
+               audio@56000000 {
                        compatible = "socionext,uniphier-ld20-aio";
                        reg = <0x56000000 0x80000>;
                        interrupts = <0 144 4>;
Quoted 6 lines
Quoted 1 line

Lastly, is the pin-setting "aout1", "aout1b" correct ?

Yes, according to the schematics of Akebi96(*), it is connected to aout1b(XIRQ*) instead of aout1(AO1*).

(*) https://www.96boards.org/documentation/enterprise/akebi96/hardware-docs/akebi96-schematics.pdf

So, I was asking about "aout1", not "aout1b".

According to the schematic, nothing is connected to AO1*. See sheet 6.

Why do you need to assign the apparently unused pins?

Signature · 2 lines
Best Regards
Masahiro Yamada
#7 lore raw

Re: [PATCH v2 2/2] arm64: dts: uniphier: Add support for Akebi96

Hi Yamada-san,

2020年4月21日(火) 21:57 Masahiro Yamada <[email protected]>:

Quoted 17 lines
Quoted 14 lines · Masami Hiramatsu
Quoted 14 lines

index f93519793bfb..afa90b762ea9 100644

arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +1 -1
@@ -337,7 +337,7 @@ gpio: gpio@55000000 {
                                                     <21 217 3>;
                };
 
-               audio: audio@56000000 {
+               audio@56000000 {
                        compatible = "socionext,uniphier-ld20-aio";
                        reg = <0x56000000 0x80000>;
                        interrupts = <0 144 4>;
Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Lastly, is the pin-setting "aout1", "aout1b" correct ?

Yes, according to the schematics of Akebi96(*), it is connected to aout1b(XIRQ*) instead of aout1(AO1*).

(*) https://www.96boards.org/documentation/enterprise/akebi96/hardware-docs/akebi96-schematics.pdf

So, I was asking about "aout1", not "aout1b".

Ah, I got it.

Quoted 5 lines

According to the schematic, nothing is connected to AO1*. See sheet 6.

Why do you need to assign the apparently unused pins?

No, we don't need it. I confirmed we only need groups = "aout1b". I'll update the series with that fix.

Thank you!

Quoted 6 lines

--
Best Regards
Masahiro Yamada

Signature · 1 line
Masami Hiramatsu