Skip to content

Add Anbernic RG-Nano

Chris Morgan linux-devicetree linux-sunxi 6 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 1 replyApplied
  2. v54 patches 10 repliesSuperseded
  3. v48 patches 15 repliesApplied
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v38 patches11 repliesSuperseded
v24 patches12 repliesSuperseded
v13 patches13 repliesSuperseded

Changes in v6 from the cover letter

- Removed references to "driver" in comments in device tree.

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/4arm: dts: sun8i: V3s: Add pinctrl for pwmarch/arm/boot/dts/allwinner/sun8i-v3s.dtsi+12 -00 replies
2/4ARM: dts: sun8i: v3s: add EHCI and OHCI to v3s dtsarch/arm/boot/dts/allwinner/sun8i-v3s.dtsi+23 -00 replies
3/4dt-bindings: arm: sunxi: add Anbernic RG-NanoDocumentation/devicetree/bindings/arm/sunxi.yaml+5 -00 replies
4/4ARM: dts: sunxi: add support for Anbernic RG-Nanoarch/arm/boot/dts/allwinner/Makefile arch/arm/boot/dts/allwinner/sun8i-v3s-anbernic-rg-nano.dts+277 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchAndre PrzywaraJernej SkrabecKrzysztof KozlowskiSamuel Holland
1/4R-b A-b
2/4R-b A-b
3/4R-b A-b
4/4R-b A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v6 thread

Cover letter [PATCH V6 0/4] Add Anbernic RG-Nano

From: Chris Morgan <[email protected]>

Add support for the Anbernic RG-Nano handheld gaming device

Changes since V5:
- Removed references to "driver" in comments in device tree.

Changes since V4:
- Rebased off main branch as some patches had been pulled into main.
- Re-enabled the internal RTC based on advice from maintainers.
- Removed "clocks" property from internal RTC based on advice from
- maintainers.
- Gave external RTC alias of rtc0 and internal RTC alias of rtc1 so priority would be given to the external RTC. The external RTC keeps accurate time, while the internal RTC lost 8 hours for me in a 24 hour period.

Changes since V3:
- Added PHY to the OHCI and EHCI nodes. Note that the PHY driver currently forces the PHY to host mode always; a correction to the PHY driver or removal of the phy values from the OHCI and EHCI nodes are necessary to get otg mode working properly.
- Disabled SoC RTC in favor of external clock. The SoC RTC is not set up correctly in hardware and runs fast, whereas the external RTC keeps accurate time. This matches the BSP.
- Added labels to GPIO pins to aid in readability.

Changes since V2:
- Add display support.
- Add USB host support.
- Removed CPU frequency and voltage parameters, as CPU regulator may be tied into additional areas that need further testing.
- Added regulator names back, as they appear to have been accidentally dropped in v2.
- Updated notes to denote all hardware tested and working.

Changes since V1:
- Added additional pwm pin configs to sun8i-v3s.dtsi and removed default config for pwm0 in lieu of defining it for each board.
- Noted in patch notes that additional hardware of UART debug port, USB port (in gadget mode) also work, and that USB host mode does not work.
- Identified GPIO responsible for enabling external speaker amplifier and defined it, allowing onboard audio to work.
- Removed ac_power_supply node.
- Set regulator min and max values to the same value as defined in the schematics.
- Removed definition for reg_ldo1. This regulator is hardware configured so the value did not affect anything, however the driver must be updated to support the correct value of 3.3v in this case.
- Removed usb0_id_det-gpios as I cannot confirm these are correct.

Chris Morgan (4):
arm: dts: sun8i: V3s: Add pinctrl for pwm
ARM: dts: sun8i: v3s: add EHCI and OHCI to v3s dts
dt-bindings: arm: sunxi: add Anbernic RG-Nano
ARM: dts: sunxi: add support for Anbernic RG-Nano

 .../devicetree/bindings/arm/sunxi.yaml        |   5 +
 arch/arm/boot/dts/allwinner/Makefile          |   1 +
 .../allwinner/sun8i-v3s-anbernic-rg-nano.dts  | 276 ++++++++++++++++++
 arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi    |  35 +++
 4 files changed, 317 insertions(+)
 create mode 100644 arch/arm/boot/dts/allwinner/sun8i-v3s-anbernic-rg-nano.dts
Signature · 1 line
2.34.1