add devicetree for Forlinx FETA40i-C & OKA40i-C
Subsystems (3)
v4 cover add devicetree for Forlinx FETA40i-C & OKA40i-C
This patch series adds devicetree support for the Forlinx FETA40i-C SoM and OKA40i-C carrier board/devboard.
The FETA40i-C is an "industrial/automotive" SoM by Forlinx.
SoM specs:
- SoC: R40 or A40i
- PMIC: AXP221S
- RAM: 1GiB/2GiB DDR3 (dual-rank)
- eMMC: 8GB,
- Mates with carrier board via four 80-pin connectors (AXK6F80337YG).
OKA40i-C is a carrier board by the same manufacturer for this SoM, whose main purpose is as a development board with a variety of peripherals:
- Power: DC5V barrel or USB OTG or 4.2V Lipo battery
- Video out: HDMI, TV out, LVDS
- WiFi+Bluetooth: RL-UM02WBS-8723BU-V1.2 (802.11 b/g/n, BT V2.1/3.0/4.0)
- Ethernet: 10/100Mbps
- Storage: µSD, fullsize SD, eMMC (on SoM), SATA
- USB: 3 x USB2.0 Host (2 via hub, 1 native), 1 x USB2.0 OTG (micro-B)
- UART: RS232, RS485, 4 3.3v uarts (of which 2 have RTS/CTS)
- Other I/O: SPI x2, TWI, SDIO header, GPIO header, JTAG header
- Mini PCIe slot with sim holder for WLAN modem
- Smart card holder
- RTC (RX8010SJ)
- Two user LEDs
- Three user buttons (via KeyADC).
Of the board features listed above, support for the following has *NOT* been tested:
- TV out & LVDS
- SATA
- Smart cards
- KeyADC buttons (no support)
The series consists of five patches, with dependencies as follows:
* Patch 4 depends on patch 3;
* Patch 5 depends on patches 2&4.
The rest are independent, however patch 2 may refuse to apply without patch 1.
---
Changelog:
v4:
* split dt-bindings patch into separate parts for vendor and device
* add /omit-if-no-ref/ to the mmc3 pins node as well
* add clarifying comment on the naming of user led nodes
v3:
* add compatible string for the SoM
* move regulators aldo3, dcdc{2,3,5}, eldo{2,3} to the SoM .dtsi
v2:
* split patch into series
* edits to sun8i-r40.dtsi are now in separate patch
* add dt bindings for compatible strings (in separate patch)
* add /omit-if-no-ref/ to the new uart pin nodes
* preliminary patch adds the keyword to existing nodes for UART0 & UART3
* whitespace fixes as suggested by checkpatch.pl
(draft2 ->) v1:
* fix indentation from spaces to tabs
* remove commented properties and other extraneous comments
* enable uarts 2,4,5&7 and alias uart3
* update the user-LED bindings
* remove mmc1 & add mmc3 binding
* bring together the max/min microvolts on three regulators
* The reported 2.5v value in ALDO2 comes from U-Boot, where apparently this is the KConfig default for this regulator. The correct voltage is 1.8v.
* remove extraneous always-ons from regulators dldo1 and eldo2/3
* remove reg_dldo3 node entirely
---
Ivan Uvarov (5):
ARM: dts: sun8i: r40: add /omit-if-no-ref/ to pinmux nodes for UARTs 0&3
ARM: dts: sun8i: r40: add pinmux settings for MMC3 and UARTs 2,4,5&7
dt-bindings: add compatible vendor prefix for Forlinx
dt-bindings: arm: add compatible for Forlinx OKA40i-C and FETA40i-C
ARM: dts: sun8i: r40: add devicetree for Forlinx FETA40i-C & OKA40i-C
.../devicetree/bindings/arm/sunxi.yaml | 6 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun8i-r40-feta40i.dtsi | 106 +++++++++ arch/arm/boot/dts/sun8i-r40-oka40i-c.dts | 203 ++++++++++++++++++ arch/arm/boot/dts/sun8i-r40.dtsi | 44 ++++ 6 files changed, 362 insertions(+) create mode 100644 arch/arm/boot/dts/sun8i-r40-feta40i.dtsi create mode 100644 arch/arm/boot/dts/sun8i-r40-oka40i-c.dts
--
2.25.1
PATCH v4 1/5 ARM: dts: sun8i: r40: add /omit-if-no-ref/ to pinmux nodes for UARTs 0&3
This patch adds the /omit-if-no-ref/ keyword to the pio nodes for UART0 and UART3 pins of the R40 SoC, which would reduce the fdt size on boards which do not use these UARTs.
1 file changed, 3 insertions(+)
arch/arm/boot/dts/sun8i-r40.dtsi +3 -0
@@ -631,16 +631,19 @@ spi1_cs1_pi_pin: spi1-cs1-pi-pin { function = "spi1"; }; + /omit-if-no-ref/ uart0_pb_pins: uart0-pb-pins { pins = "PB22", "PB23"; function = "uart0"; }; + /omit-if-no-ref/ uart3_pg_pins: uart3-pg-pins { pins = "PG6", "PG7"; function = "uart3"; }; + /omit-if-no-ref/ uart3_rts_cts_pg_pins: uart3-rts-cts-pg-pins { pins = "PG8", "PG9"; function = "uart3";
Signature · 1 line
2.25.1
PATCH v4 2/5 ARM: dts: sun8i: r40: add pinmux settings for MMC3 and UARTs 2, 4, 5&7
In reply to Ivan UvarovThe Forlinx OKA40i-C devboard makes use of UARTs 0,2,3,4,5 and 7 of the R40 SoC, of which UART 0 is connected to an RS232 converter, UART 5 routed to an RS485 converter, and the rest broken out directly via labeled headers. The board also contains a micro-SD slot connected to SDC3.
This patch adds settings to R40's pinmux node for MMC3 and those UARTs that were not already mapped, which would allow us to make use of all available UARTs and the micro-SD slot on this board in a further patch.
1 file changed, 41 insertions(+)
arch/arm/boot/dts/sun8i-r40.dtsi +41 -0
@@ -357,6 +357,8 @@ mmc3: mmc@1c12000 { clock-names = "ahb", "mmc"; resets = <&ccu RST_BUS_MMC3>; reset-names = "ahb"; + pinctrl-0 = <&mmc3_pins>; + pinctrl-names = "default"; interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; #address-cells = <1>;
@@ -601,6 +603,15 @@ mmc2_pins: mmc2-pins { bias-pull-up; }; + /omit-if-no-ref/ + mmc3_pins: mmc3-pins { + pins = "PI4", "PI5", "PI6", + "PI7", "PI8", "PI9"; + function = "mmc3"; + drive-strength = <30>; + bias-pull-up; + }; + /omit-if-no-ref/ spi0_pc_pins: spi0-pc-pins { pins = "PC0", "PC1", "PC2";
@@ -637,6 +648,18 @@ uart0_pb_pins: uart0-pb-pins { function = "uart0"; }; + /omit-if-no-ref/ + uart2_pi_pins: uart2-pi-pins { + pins = "PI18", "PI19"; + function = "uart2"; + }; + + /omit-if-no-ref/ + uart2_rts_cts_pi_pins: uart2-rts-cts-pi-pins{ + pins = "PI16", "PI17"; + function = "uart2"; + }; + /omit-if-no-ref/ uart3_pg_pins: uart3-pg-pins { pins = "PG6", "PG7";
@@ -648,6 +671,24 @@ uart3_rts_cts_pg_pins: uart3-rts-cts-pg-pins { pins = "PG8", "PG9"; function = "uart3"; }; + + /omit-if-no-ref/ + uart4_pg_pins: uart4-pg-pins { + pins = "PG10", "PG11"; + function = "uart4"; + }; + + /omit-if-no-ref/ + uart5_ph_pins: uart5-ph-pins { + pins = "PH6", "PH7"; + function = "uart5"; + }; + + /omit-if-no-ref/ + uart7_pi_pins: uart7-pi-pins { + pins = "PI20", "PI21"; + function = "uart7"; + }; }; wdt: watchdog@1c20c90 {
Signature · 1 line
2.25.1
PATCH v4 3/5 dt-bindings: add compatible vendor prefix for Forlinx
In reply to Ivan UvarovBaoding Forlinx Embedded Technology Co., Ltd. is the manufacturer of the Allwinner R40/A40i-powered FETA40i-C SoM and the OKA40i-C dev/carrier board based on it.
This patch adds the DT vendor prefix for Forlinx in preparation for a further patch, which includes a devicetree for the OKA40i-C board.
1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -403,6 +403,8 @@ patternProperties: description: Firefly "^focaltech,.*": description: FocalTech Systems Co.,Ltd + "^forlinx,.*": + description: Baoding Forlinx Embedded Technology Co., Ltd. "^frida,.*": description: Shenzhen Frida LCD Co., Ltd. "^friendlyarm,.*":
Signature · 1 line
2.25.1
Re: [PATCH v4 3/5] dt-bindings: add compatible vendor prefix for Forlinx
Quoted 11 lines · Ivan Uvarov
Baoding Forlinx Embedded Technology Co., Ltd. is the manufacturer of the Allwinner R40/A40i-powered FETA40i-C SoM and the OKA40i-C dev/carrier board based on it.
This patch adds the DT vendor prefix for Forlinx in preparation for a further patch, which includes a devicetree for the OKA40i-C board.
Signed-off-by Ivan Uvarov <[email protected]>1 file changed, 2 insertions(+)
PATCH v4 4/5 dt-bindings: arm: add compatible for Forlinx OKA40i-C and FETA40i-C
In reply to Ivan UvarovThe FETA40i-C is a SoM by Forlinx based on the Allwinner R40/A40i SoC. The OKA40i-C is a carrier/development board by the same company based on this SoM.
This patch adds compatible strings for these two devices in preparation for the next patch containing a devicetree for them.
1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/sunxi.yaml +6 -0
@@ -224,6 +224,12 @@ properties: - const: empire-electronix,m712 - const: allwinner,sun5i-a13 + - description: Forlinx OKA40i-C Development board + items: + - const: forlinx,oka40i-c + - const: forlinx,feta40i-c + - const: allwinner,sun8i-r40 + - description: FriendlyARM NanoPi A64 items: - const: friendlyarm,nanopi-a64
Signature · 1 line
2.25.1
Re: [PATCH v4 4/5] dt-bindings: arm: add compatible for Forlinx OKA40i-C and FETA40i-C
Quoted 11 lines · Ivan Uvarov
The FETA40i-C is a SoM by Forlinx based on the Allwinner R40/A40i SoC. The OKA40i-C is a carrier/development board by the same company based on this SoM.
This patch adds compatible strings for these two devices in preparation for the next patch containing a devicetree for them.
Signed-off-by Ivan Uvarov <[email protected]>1 file changed, 6 insertions(+)
PATCH v4 5/5 ARM: dts: sun8i: r40: add devicetree for Forlinx FETA40i-C & OKA40i-C
In reply to Ivan UvarovThe FETA40i-C is a SoM by Forlinx based on the Allwinner R40/A40i.
SoM specifications:
- SoC: R40 or A40i
- PMIC: AXP221S
- RAM: 1GiB/2GiB DDR3 (dual-rank)
- eMMC: 8GB,
- Mates with carrier board via four 80-pin connectors (AXK6F80337YG).
OKA40i-C is a carrier board by the same manufacturer for this SoM, whose main purpose is as a development board with a wide variety of peripherals:
- Power: DC5V barrel or USB OTG or 4.2V Lipo battery
- Video out: HDMI, TV out, LVDS
- WiFi+Bluetooth: RL-UM02WBS-8723BU-V1.2 (802.11 b/g/n, BT V2.1/3.0/4.0)
- Ethernet: 10/100Mbps
- Storage: µSD, fullsize SD, eMMC (on SoM), SATA
- USB: 3 x USB2.0 Host (2 via hub, 1 native), 1 x USB2.0 OTG (micro-B)
- UART: RS232, RS485, 4 3.3v uarts (of which 2 have RTS/CTS)
- Other I/O: SPI x2, TWI, SDIO header, GPIO header, JTAG header
- Mini PCIe slot with sim holder for WLAN modem
- Smart card holder
- RTC (RX8010SJ)
- Two user LEDs
- Three user buttons (via KeyADC).
This patch adds a devicetree for the aforementioned SoM and devboard. In order to reflect the modularity of this devboard and simplify adding support for future hardware based on the same SoM, the devicetree is split:
Everything pertaining to the SoM itself is described in a separate .dtsi file, which is included by the devboard's .dts.
3 files changed, 310 insertions(+)
arch/arm/boot/dts/Makefile +1 -0
@@ -1222,6 +1222,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \ sun8i-r16-nintendo-super-nes-classic.dtb \ sun8i-r16-parrot.dtb \ sun8i-r40-bananapi-m2-ultra.dtb \ + sun8i-r40-oka40i-c.dtb \ sun8i-s3-elimo-initium.dtb \ sun8i-s3-lichee-zero-plus.dtb \ sun8i-s3-pinecube.dtb \
arch/arm/boot/dts/sun8i-r40-feta40i.dtsi new file +106 -0
106 lines not on this page · raw message
arch/arm/boot/dts/sun8i-r40-oka40i-c.dts new file +203 -0
203 lines not on this page · raw message
Signature · 1 line
2.25.1
Maxime Ripard
AppliedQuoted 39 lines · Ivan Uvarov
This patch series adds devicetree support for the Forlinx FETA40i-C SoM and OKA40i-C carrier board/devboard.
The FETA40i-C is an "industrial/automotive" SoM by Forlinx.
SoM specs:
- SoC: R40 or A40i
- PMIC: AXP221S
- RAM: 1GiB/2GiB DDR3 (dual-rank)
- eMMC: 8GB,
- Mates with carrier board via four 80-pin connectors (AXK6F80337YG).OKA40i-C is a carrier board by the same manufacturer for this SoM, whose main purpose is as a development board with a variety of peripherals:
- Power: DC5V barrel or USB OTG or 4.2V Lipo battery
- Video out: HDMI, TV out, LVDS
- WiFi+Bluetooth: RL-UM02WBS-8723BU-V1.2 (802.11 b/g/n, BT V2.1/3.0/4.0)
- Ethernet: 10/100Mbps
- Storage: µSD, fullsize SD, eMMC (on SoM), SATA
- USB: 3 x USB2.0 Host (2 via hub, 1 native), 1 x USB2.0 OTG (micro-B)
- UART: RS232, RS485, 4 3.3v uarts (of which 2 have RTS/CTS)
- Other I/O: SPI x2, TWI, SDIO header, GPIO header, JTAG header
- Mini PCIe slot with sim holder for WLAN modem
- Smart card holder
- RTC (RX8010SJ)
- Two user LEDs
- Three user buttons (via KeyADC).Of the board features listed above, support for the following has *NOT* been tested:
- TV out & LVDS
- SATA
- Smart cards
- KeyADC buttons (no support)The series consists of five patches, with dependencies as follows:
Quoted 7 lines
* Patch 4 depends on patch 3;
* Patch 5 depends on patches 2&4.The rest are independent, however patch 2 may refuse to apply without patch 1.
Signed-off-by Ivan Uvarov <[email protected]>
Applied, thanks
Maxime