openwrt/target/linux/d1/patches-6.1/0046-dt-bindings-hwlock-sun6i-Add-per-SoC-compatibles.patch
Zoltan HERPAI 99545b4bb1 d1: add new target
This target adds support for the Allwinner D1 RISC-V based SoCs.

 - RISC-V single-core T-Head C906 (RV64GCV)
 - Tensilica HiFi4 DSP
 - DDR2/DDR3 support
 - 10/100/1000M ethernet
 - usual peripherals like USB2, SPI, I2C, PWM, etc.

Four boards are supported:
 - Dongshan Nezha STU
    - 512Mb RAM
    - ethernet

 - LicheePi RV Dock
    - 512Mb RAM
    - wireless-only (RTL8723DS)

 - MangoPi MQ-Pro
    - 512Mb RAM
    - there are pads available for an SPI flash
    - wireless-only (RTL8723DS)

 - Nezha D1
    - 512Mb/1Gb/2Gb RAM
    - 256Mb NAND flash
    - ethernet, wireless

Installation:
Standard SD-card installation via dd-ing the generated image to
an SD-card of at least 256Mb.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2024-02-29 16:50:22 +01:00

40 lines
1.5 KiB
Diff

From e7b8c42c6bf02f4c2e24b015a12cd9edad094644 Mon Sep 17 00:00:00 2001
From: Samuel Holland <samuel@sholland.org>
Date: Sun, 14 Nov 2021 12:36:52 -0600
Subject: [PATCH 046/117] dt-bindings: hwlock: sun6i: Add per-SoC compatibles
While all implementations of this hardware appear to be indentical, it
is possible that some difference exists. To be safe, add a compatible
for each SoC integration, using the A31 compatible only as a fallback.
Signed-off-by: Samuel Holland <samuel@sholland.org>
---
.../hwlock/allwinner,sun6i-a31-hwspinlock.yaml | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
--- a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
+++ b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
@@ -15,7 +15,21 @@ description:
properties:
compatible:
- const: allwinner,sun6i-a31-hwspinlock
+ oneOf:
+ - items:
+ - enum:
+ - allwinner,sun8i-a23-hwspinlock
+ - allwinner,sun8i-a33-hwspinlock
+ - allwinner,sun8i-a50-hwspinlock
+ - allwinner,sun8i-a83t-hwspinlock
+ - allwinner,sun8i-h3-hwspinlock
+ - allwinner,sun9i-a80-hwspinlock
+ - allwinner,sun20i-d1-hwspinlock
+ - allwinner,sun50i-a64-hwspinlock
+ - allwinner,sun50i-h6-hwspinlock
+ - allwinner,sun50i-r329-hwspinlock
+ - const: allwinner,sun6i-a31-hwspinlock
+ - const: allwinner,sun6i-a31-hwspinlock
reg:
maxItems: 1