| 1 |
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/soc/sophgo/sophgo,cv1800b-top-syscon.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Sophgo CV18XX/SG200X SoC top system controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Inochi Amaoto <[email protected]> |
| 11 |
|
| 12 |
description: |
| 13 |
The Sophgo CV18XX/SG200X SoC top misc system controller provides |
| 14 |
register access to configure related modules. |
| 15 |
|
| 16 |
properties: |
| 17 |
compatible: |
| 18 |
oneOf: |
| 19 |
- items: |
| 20 |
- const: sophgo,cv1800b-top-syscon |
| 21 |
- const: syscon |
| 22 |
- const: simple-mfd |
| 23 |
|
| 24 |
reg: |
| 25 |
maxItems: 1 |
| 26 |
|
| 27 |
"#address-cells": |
| 28 |
const: 1 |
| 29 |
|
| 30 |
"#size-cells": |
| 31 |
const: 1 |
| 32 |
|
| 33 |
ranges: true |
| 34 |
|
| 35 |
dma-router@154: |
| 36 |
$ref: /schemas/dma/sophgo,cv1800b-dmamux.yaml# |
| 37 |
unevaluatedProperties: false |
| 38 |
|
| 39 |
phy@48: |
| 40 |
$ref: /schemas/phy/sophgo,cv1800b-usb2-phy.yaml# |
| 41 |
unevaluatedProperties: false |
| 42 |
|
| 43 |
required: |
| 44 |
- compatible |
| 45 |
- reg |
| 46 |
- "#address-cells" |
| 47 |
- "#size-cells" |
| 48 |
|
| 49 |
additionalProperties: false |
| 50 |
|
| 51 |
examples: |
| 52 |
- | |
| 53 |
#include <dt-bindings/clock/sophgo,cv1800.h> |
| 54 |
|
| 55 |
syscon@3000000 { |
| 56 |
compatible = "sophgo,cv1800b-top-syscon", "syscon", "simple-mfd"; |
| 57 |
reg = <0x03000000 0x1000>; |
| 58 |
#address-cells = <1>; |
| 59 |
#size-cells = <1>; |
| 60 |
|
| 61 |
phy@48 { |
| 62 |
compatible = "sophgo,cv1800b-usb2-phy"; |
| 63 |
reg = <0x48 0x4>; |
| 64 |
#phy-cells = <0>; |
| 65 |
clocks = <&clk CLK_USB_125M>, |
| 66 |
<&clk CLK_USB_33K>, |
| 67 |
<&clk CLK_USB_12M>; |
| 68 |
clock-names = "app", "stb", "lpm"; |
| 69 |
resets = <&rst 58>; |
| 70 |
}; |
| 71 |
|
| 72 |
dma-router@154 { |
| 73 |
compatible = "sophgo,cv1800b-dmamux"; |
| 74 |
reg = <0x154 0x8>, <0x298 0x4>; |
| 75 |
#dma-cells = <2>; |
| 76 |
dma-masters = <&dmac>; |
| 77 |
}; |
| 78 |
}; |
| 79 |
|
| 80 |
... |