mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
4070e2a64c
This target adds support for the StarFive JH7100 and JH7110 SoCs, based on 6.1, as well as a couple boards equipped with these. Specifications: SoCs: JH7100: - StarFive JH7100 dual-core RISC-V (U74, RC64GC) - additional monitoring (S7) and control (E24) cores - 2Mb L2 cache JH7110: - StarFive JH7110 quad-core RISC-V (U74, RV64GC) - additional monitoring (S7) and control (E24) cores - 2Mb L2 cache Boards: VisionFive1: - JH7100 @ 1GHz - Memory: 8Gb LPDDR4 - 4x USB3.0 - 1x GBit ethernet - AMPak 6236 wifi / bluetooth - audio - powered via USB-C VisionFive2: - JH7110 @ 1.5GHz - Memory: 2/4/8Gb DDR4 - 2x Gbit ethernet - 2x USB3.0 / 2x USB2.0 - eMMC / SDIO - various multimedia input/outputs (MIPI CSI, HDMI, audio) - M.2 key M slot - PoE support - powered via USB-C 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>
148 lines
4.9 KiB
Diff
148 lines
4.9 KiB
Diff
From 96edc2f71ea7ac6683011609f6d1f51ae9ea0b7a Mon Sep 17 00:00:00 2001
|
|
From: Frank Sae <Frank.Sae@motor-comm.com>
|
|
Date: Thu, 2 Feb 2023 11:00:33 +0800
|
|
Subject: [PATCH 048/122] dt-bindings: net: Add Motorcomm yt8xxx ethernet phy
|
|
|
|
Add a YAML binding document for the Motorcomm yt8xxx Ethernet phy.
|
|
|
|
Signed-off-by: Frank Sae <Frank.Sae@motor-comm.com>
|
|
Reviewed-by: Rob Herring <robh@kernel.org>
|
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
---
|
|
.../bindings/net/motorcomm,yt8xxx.yaml | 117 ++++++++++++++++++
|
|
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
|
|
2 files changed, 119 insertions(+)
|
|
create mode 100644 Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml
|
|
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml
|
|
@@ -0,0 +1,117 @@
|
|
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
+%YAML 1.2
|
|
+---
|
|
+$id: http://devicetree.org/schemas/net/motorcomm,yt8xxx.yaml#
|
|
+$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
+
|
|
+title: MotorComm yt8xxx Ethernet PHY
|
|
+
|
|
+maintainers:
|
|
+ - Frank Sae <frank.sae@motor-comm.com>
|
|
+
|
|
+allOf:
|
|
+ - $ref: ethernet-phy.yaml#
|
|
+
|
|
+properties:
|
|
+ compatible:
|
|
+ enum:
|
|
+ - ethernet-phy-id4f51.e91a
|
|
+ - ethernet-phy-id4f51.e91b
|
|
+
|
|
+ rx-internal-delay-ps:
|
|
+ description: |
|
|
+ RGMII RX Clock Delay used only when PHY operates in RGMII mode with
|
|
+ internal delay (phy-mode is 'rgmii-id' or 'rgmii-rxid') in pico-seconds.
|
|
+ enum: [ 0, 150, 300, 450, 600, 750, 900, 1050, 1200, 1350, 1500, 1650,
|
|
+ 1800, 1900, 1950, 2050, 2100, 2200, 2250, 2350, 2500, 2650, 2800,
|
|
+ 2950, 3100, 3250, 3400, 3550, 3700, 3850, 4000, 4150 ]
|
|
+ default: 1950
|
|
+
|
|
+ tx-internal-delay-ps:
|
|
+ description: |
|
|
+ RGMII TX Clock Delay used only when PHY operates in RGMII mode with
|
|
+ internal delay (phy-mode is 'rgmii-id' or 'rgmii-txid') in pico-seconds.
|
|
+ enum: [ 0, 150, 300, 450, 600, 750, 900, 1050, 1200, 1350, 1500, 1650, 1800,
|
|
+ 1950, 2100, 2250 ]
|
|
+ default: 1950
|
|
+
|
|
+ motorcomm,clk-out-frequency-hz:
|
|
+ description: clock output on clock output pin.
|
|
+ enum: [0, 25000000, 125000000]
|
|
+ default: 0
|
|
+
|
|
+ motorcomm,keep-pll-enabled:
|
|
+ description: |
|
|
+ If set, keep the PLL enabled even if there is no link. Useful if you
|
|
+ want to use the clock output without an ethernet link.
|
|
+ type: boolean
|
|
+
|
|
+ motorcomm,auto-sleep-disabled:
|
|
+ description: |
|
|
+ If set, PHY will not enter sleep mode and close AFE after unplug cable
|
|
+ for a timer.
|
|
+ type: boolean
|
|
+
|
|
+ motorcomm,tx-clk-adj-enabled:
|
|
+ description: |
|
|
+ This configuration is mainly to adapt to VF2 with JH7110 SoC.
|
|
+ Useful if you want to use tx-clk-xxxx-inverted to adj the delay of tx clk.
|
|
+ type: boolean
|
|
+
|
|
+ motorcomm,tx-clk-10-inverted:
|
|
+ description: |
|
|
+ Use original or inverted RGMII Transmit PHY Clock to drive the RGMII
|
|
+ Transmit PHY Clock delay train configuration when speed is 10Mbps.
|
|
+ type: boolean
|
|
+
|
|
+ motorcomm,tx-clk-100-inverted:
|
|
+ description: |
|
|
+ Use original or inverted RGMII Transmit PHY Clock to drive the RGMII
|
|
+ Transmit PHY Clock delay train configuration when speed is 100Mbps.
|
|
+ type: boolean
|
|
+
|
|
+ motorcomm,tx-clk-1000-inverted:
|
|
+ description: |
|
|
+ Use original or inverted RGMII Transmit PHY Clock to drive the RGMII
|
|
+ Transmit PHY Clock delay train configuration when speed is 1000Mbps.
|
|
+ type: boolean
|
|
+
|
|
+unevaluatedProperties: false
|
|
+
|
|
+examples:
|
|
+ - |
|
|
+ mdio {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ phy-mode = "rgmii-id";
|
|
+ ethernet-phy@4 {
|
|
+ /* Only needed to make DT lint tools work. Do not copy/paste
|
|
+ * into real DTS files.
|
|
+ */
|
|
+ compatible = "ethernet-phy-id4f51.e91a";
|
|
+
|
|
+ reg = <4>;
|
|
+ rx-internal-delay-ps = <2100>;
|
|
+ tx-internal-delay-ps = <150>;
|
|
+ motorcomm,clk-out-frequency-hz = <0>;
|
|
+ motorcomm,keep-pll-enabled;
|
|
+ motorcomm,auto-sleep-disabled;
|
|
+ };
|
|
+ };
|
|
+ - |
|
|
+ mdio {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ phy-mode = "rgmii";
|
|
+ ethernet-phy@5 {
|
|
+ /* Only needed to make DT lint tools work. Do not copy/paste
|
|
+ * into real DTS files.
|
|
+ */
|
|
+ compatible = "ethernet-phy-id4f51.e91a";
|
|
+
|
|
+ reg = <5>;
|
|
+ motorcomm,clk-out-frequency-hz = <125000000>;
|
|
+ motorcomm,keep-pll-enabled;
|
|
+ motorcomm,auto-sleep-disabled;
|
|
+ };
|
|
+ };
|
|
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
|
|
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
|
|
@@ -831,6 +831,8 @@ patternProperties:
|
|
description: Moortec Semiconductor Ltd.
|
|
"^mosaixtech,.*":
|
|
description: Mosaix Technologies, Inc.
|
|
+ "^motorcomm,.*":
|
|
+ description: MotorComm, Inc.
|
|
"^motorola,.*":
|
|
description: Motorola, Inc.
|
|
"^moxa,.*":
|