Skip to contentSkip to conversation

dts: uniphier: Add Akebi96 Board support

PATCH Superseded Masami Hiramatsu 2 participants 5 messages Apr 22, 2020

Subsystems (2)

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v4 cover dts: uniphier: Add Akebi96 Board support

Hello,

Here is the 4th version of the patches to add a devicetree for Akebi96 board.

This version fixes pinctrl_aout1 to remove unnecessary "aout1" since which is not connected on the board.

The Akebi96 is a certified 96boards which is based on Socionext UniPhier LD20 SoC. Most of the part is similar to LD20 reference board, but there are some changes.

- 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 installed firmware.

See https://www.96boards.org/product/akebi96/ for details.

Thank you,

---

Masami Hiramatsu (2):
dt-bindings: arm: Add Akebi96 board support
arm64: dts: uniphier: Add support for Akebi96

 .../bindings/arm/socionext/uniphier.yaml           |    1 
 arch/arm64/boot/dts/socionext/Makefile             |    1 
 .../boot/dts/socionext/uniphier-ld20-akebi96.dts   |  190 ++++++++++++++++++++
 3 files changed, 192 insertions(+)
 create mode 100644 arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts

--
Masami Hiramatsu <[email protected]>

#1 lore raw

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

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 v4 2/2 arm64: dts: uniphier: Add support for Akebi96

In reply to 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/ )

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 installed firmware.

---
Changes in v4:
- Fix to remove unnecessary "aout1" from pinctrl_aout1.

---
 arch/arm64/boot/dts/socionext/Makefile             |    1 
 .../boot/dts/socionext/uniphier-ld20-akebi96.dts   |  190 ++++++++++++++++++++
 2 files changed, 191 insertions(+)
 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 +190 -0

190 lines not on this page · raw message

#3 lore raw

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

Hiramatsu-san

arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts line 129

Quoted 5 lines · Masami Hiramatsu
arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts new file +5 -0
+
+&eth {
+       status = "okay";
+       phy-mode = "rgmii";
+       pinctrl-0 = <&pinctrl_ether_rgmii>;

These two lines are actually redundant because RGMII is the default in uniphier-ld20.dtsi
(and uniphier-ld20-ref.dts skips them.)

Did you intentionally make it verbose?

Quoted 21 lines
arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts new file +21 -0
+       phy-handle = <&ethphy>;
+};
+
+&mdio {
+       ethphy: ethphy@0 {
+               reg = <0>;
+       };
+};
+
+&usb {
+       status = "okay";
+};
+
+&pcie {
+       status = "okay";
+};
+
+&i2c0 {
+       /* LS connector I2C0 */
+       status = "okay";
+};

arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts line 160

Quoted 10 lines
arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts new file +10 -0
+
+&i2c1 {
+       /* LS connector I2C1 */
+       status = "okay";
+};
+
+&spi3 {
+       status = "okay";
+       #address-cells = <1>;
+       #size-cells = <0>;

Adding #address-cells and #size-sizes to a board DTS is strange.

I will apply this:
https://lore.kernel.org/patchwork/patch/1229497/
then delete the lines above.

--
Best Regards

Masahiro Yamada

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#4 lore raw

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

Hello Yamada-san,

2020年4月23日(木) 0:10 Masahiro Yamada <[email protected]>:

Quoted 12 lines

Hiramatsu-san

arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts line 129

Quoted 5 lines · Masami Hiramatsu
arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts new file +5 -0
+
+&eth {
+       status = "okay";
+       phy-mode = "rgmii";
+       pinctrl-0 = <&pinctrl_ether_rgmii>;
Quoted 5 lines

These two lines are actually redundant because RGMII is the default in uniphier-ld20.dtsi
(and uniphier-ld20-ref.dts skips them.)

Did you intentionally make it verbose?

Oops, no, we don't need it. It's a legacy code (IIRC, there's a historical reason).

Quoted 7 lines

arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts line 160

Quoted 4 lines

+&spi3 {

arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts new file +3 -0
+       status = "okay";
+       #address-cells = <1>;
+       #size-cells = <0>;

Adding #address-cells and #size-sizes to a board DTS is strange.

Indeed.

Quoted 3 lines

I will apply this:
https://lore.kernel.org/patchwork/patch/1229497/
then delete the lines above.

OK, I'll update.

Thank you,

Signature · 1 line
Masami Hiramatsu