Skip to main content
Sign in
Snippets Groups Projects
Commit 40058d95 authored by Detlev Casanova's avatar Detlev Casanova
Browse files

wip: add documentation

parent b6cf4561
Branches
Tags
No related merge requests found
Pipeline #104696 failed
Showing
with 142 additions and 2 deletions
...@@ -49,6 +49,11 @@ properties: ...@@ -49,6 +49,11 @@ properties:
- anbernic,rg-arc-s - anbernic,rg-arc-s
- const: rockchip,rk3566 - const: rockchip,rk3566
- description: ArmSoM Sige5 board
items:
- const: armsom,sige5
- const: rockchip,rk3576
- description: ArmSoM Sige7 board - description: ArmSoM Sige7 board
items: items:
- const: armsom,sige7 - const: armsom,sige7
... ...
......
...@@ -26,6 +26,7 @@ select: ...@@ -26,6 +26,7 @@ select:
- rockchip,rk3368-pmu - rockchip,rk3368-pmu
- rockchip,rk3399-pmu - rockchip,rk3399-pmu
- rockchip,rk3568-pmu - rockchip,rk3568-pmu
- rockchip,rk3576-pmu
- rockchip,rk3588-pmu - rockchip,rk3588-pmu
- rockchip,rv1126-pmu - rockchip,rv1126-pmu
...@@ -43,6 +44,7 @@ properties: ...@@ -43,6 +44,7 @@ properties:
- rockchip,rk3368-pmu - rockchip,rk3368-pmu
- rockchip,rk3399-pmu - rockchip,rk3399-pmu
- rockchip,rk3568-pmu - rockchip,rk3568-pmu
- rockchip,rk3576-pmu
- rockchip,rk3588-pmu - rockchip,rk3588-pmu
- rockchip,rv1126-pmu - rockchip,rv1126-pmu
- const: syscon - const: syscon
... ...
......
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/rockchip,rk3576-cru.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Rockchip rk3576 Family Clock and Reset Control Module
maintainers:
- Elaine Zhang <zhangqing@rock-chips.com>
- Heiko Stuebner <heiko@sntech.de>
description: |
The RK3576 clock controller generates the clock and also implements a reset
controller for SoC peripherals. For example it provides SCLK_UART2 and
PCLK_UART2, as well as SRST_P_UART2 and SRST_S_UART2 for the second UART
module.
Each clock is assigned an identifier and client nodes can use this identifier
to specify the clock which they consume. All available clock and reset IDs
are defined as preprocessor macros in dt-binding headers.
properties:
compatible:
enum:
- rockchip,rk3576-cru
reg:
maxItems: 1
"#clock-cells":
const: 1
"#reset-cells":
const: 1
clocks:
minItems: 2
maxItems: 2
clock-names:
items:
- const: xin24m
- const: xin32k
assigned-clocks: true
assigned-clock-rates: true
assigned-clock-parents: true
rockchip,grf:
$ref: /schemas/types.yaml#/definitions/phandle
description: >
phandle to the syscon managing the "general register files". It is used
for GRF muxes, if missing any muxes present in the GRF will not be
available.
required:
- compatible
- reg
- "#clock-cells"
- "#reset-cells"
additionalProperties: false
examples:
- |
cru: clock-controller@27200000 {
compatible = "rockchip,rk3576-cru";
reg = <0xfd7c0000 0x5c000>;
#clock-cells = <1>;
#reset-cells = <1>;
};
...@@ -38,6 +38,7 @@ properties: ...@@ -38,6 +38,7 @@ properties:
- rockchip,rk3308-i2c - rockchip,rk3308-i2c
- rockchip,rk3328-i2c - rockchip,rk3328-i2c
- rockchip,rk3568-i2c - rockchip,rk3568-i2c
- rockchip,rk3576-i2c
- rockchip,rk3588-i2c - rockchip,rk3588-i2c
- rockchip,rv1126-i2c - rockchip,rv1126-i2c
- const: rockchip,rk3399-i2c - const: rockchip,rk3399-i2c
... ...
......
...@@ -16,6 +16,9 @@ properties: ...@@ -16,6 +16,9 @@ properties:
- const: rockchip,rk3066-tsadc - const: rockchip,rk3066-tsadc
- const: rockchip,rk3399-saradc - const: rockchip,rk3399-saradc
- const: rockchip,rk3588-saradc - const: rockchip,rk3588-saradc
- items:
- const: rockchip,rk3576-saradc
- const: rockchip,rk3588-saradc
- items: - items:
- enum: - enum:
- rockchip,px30-saradc - rockchip,px30-saradc
... ...
......
...@@ -103,6 +103,7 @@ select: ...@@ -103,6 +103,7 @@ select:
- rockchip,rk3368-qos - rockchip,rk3368-qos
- rockchip,rk3399-qos - rockchip,rk3399-qos
- rockchip,rk3568-qos - rockchip,rk3568-qos
- rockchip,rk3576-qos
- rockchip,rk3588-qos - rockchip,rk3588-qos
- rockchip,rv1126-qos - rockchip,rv1126-qos
- st,spear1340-misc - st,spear1340-misc
...@@ -198,6 +199,7 @@ properties: ...@@ -198,6 +199,7 @@ properties:
- rockchip,rk3368-qos - rockchip,rk3368-qos
- rockchip,rk3399-qos - rockchip,rk3399-qos
- rockchip,rk3568-qos - rockchip,rk3568-qos
- rockchip,rk3576-qos
- rockchip,rk3588-qos - rockchip,rk3588-qos
- rockchip,rv1126-qos - rockchip,rv1126-qos
- st,spear1340-misc - st,spear1340-misc
... ...
......
...@@ -39,6 +39,7 @@ properties: ...@@ -39,6 +39,7 @@ properties:
- rockchip,rk3368-dw-mshc - rockchip,rk3368-dw-mshc
- rockchip,rk3399-dw-mshc - rockchip,rk3399-dw-mshc
- rockchip,rk3568-dw-mshc - rockchip,rk3568-dw-mshc
- rockchip,rk3576-dw-mshc
- rockchip,rk3588-dw-mshc - rockchip,rk3588-dw-mshc
- rockchip,rv1108-dw-mshc - rockchip,rv1108-dw-mshc
- rockchip,rv1126-dw-mshc - rockchip,rv1126-dw-mshc
...@@ -95,6 +96,16 @@ properties: ...@@ -95,6 +96,16 @@ properties:
If not specified, the host will do tuning for 360 times, If not specified, the host will do tuning for 360 times,
namely tuning for each degree. namely tuning for each degree.
rockchip,use-v2-tuning:
$ref: /schemas/types.yaml#/definitions/flag
description:
If present, use tuning version 2.
v2 tuning will inherit pre-stage loader's phase settings for the first
time, and do re-tune if necessary.
Re-tune will still try the rough degrees, for instance, 90, 180, 270,
360 but continue to do the fine tuning if sample window isn't good
enough.
required: required:
- compatible - compatible
- reg - reg
... ...
......
...@@ -14,17 +14,18 @@ properties: ...@@ -14,17 +14,18 @@ properties:
enum: enum:
- rockchip,px30-otp - rockchip,px30-otp
- rockchip,rk3308-otp - rockchip,rk3308-otp
- rockchip,rk3576-otp
- rockchip,rk3588-otp - rockchip,rk3588-otp
reg: reg:
maxItems: 1 maxItems: 1
clocks: clocks:
minItems: 3 minItems: 2
maxItems: 4 maxItems: 4
clock-names: clock-names:
minItems: 3 minItems: 2
items: items:
- const: otp - const: otp
- const: apb_pclk - const: apb_pclk
...@@ -68,6 +69,23 @@ allOf: ...@@ -68,6 +69,23 @@ allOf:
items: items:
- const: phy - const: phy
- if:
properties:
compatible:
contains:
enum:
- rockchip,rk3576-otp
then:
properties:
clocks:
minItems: 2
resets:
minItems: 2
reset-names:
items:
- const: otp
- const: apb
- if: - if:
properties: properties:
compatible: compatible:
... ...
......
...@@ -45,6 +45,7 @@ properties: ...@@ -45,6 +45,7 @@ properties:
- rockchip,rk3368-pinctrl - rockchip,rk3368-pinctrl
- rockchip,rk3399-pinctrl - rockchip,rk3399-pinctrl
- rockchip,rk3568-pinctrl - rockchip,rk3568-pinctrl
- rockchip,rk3576-pinctrl
- rockchip,rk3588-pinctrl - rockchip,rk3588-pinctrl
- rockchip,rv1108-pinctrl - rockchip,rv1108-pinctrl
- rockchip,rv1126-pinctrl - rockchip,rv1126-pinctrl
...@@ -54,6 +55,11 @@ properties: ...@@ -54,6 +55,11 @@ properties:
description: description:
The phandle of the syscon node for the GRF registers. The phandle of the syscon node for the GRF registers.
rockchip,sys-grf:
$ref: /schemas/types.yaml#/definitions/phandle
description:
The phandle of the syscon node for the SYS GRF registers.
rockchip,pmu: rockchip,pmu:
$ref: /schemas/types.yaml#/definitions/phandle $ref: /schemas/types.yaml#/definitions/phandle
description: description:
... ...
......
...@@ -41,6 +41,7 @@ properties: ...@@ -41,6 +41,7 @@ properties:
- rockchip,rk3368-power-controller - rockchip,rk3368-power-controller
- rockchip,rk3399-power-controller - rockchip,rk3399-power-controller
- rockchip,rk3568-power-controller - rockchip,rk3568-power-controller
- rockchip,rk3576-power-controller
- rockchip,rk3588-power-controller - rockchip,rk3588-power-controller
- rockchip,rv1126-power-controller - rockchip,rv1126-power-controller
... ...
......
...@@ -49,6 +49,7 @@ properties: ...@@ -49,6 +49,7 @@ properties:
- rockchip,rk3368-uart - rockchip,rk3368-uart
- rockchip,rk3399-uart - rockchip,rk3399-uart
- rockchip,rk3568-uart - rockchip,rk3568-uart
- rockchip,rk3576-uart
- rockchip,rk3588-uart - rockchip,rk3588-uart
- rockchip,rv1108-uart - rockchip,rv1108-uart
- rockchip,rv1126-uart - rockchip,rv1126-uart
... ...
......
...@@ -20,6 +20,20 @@ properties: ...@@ -20,6 +20,20 @@ properties:
- rockchip,rk3568-pipe-grf - rockchip,rk3568-pipe-grf
- rockchip,rk3568-pipe-phy-grf - rockchip,rk3568-pipe-phy-grf
- rockchip,rk3568-usb2phy-grf - rockchip,rk3568-usb2phy-grf
- rockchip,rk3576-bigcore-grf
- rockchip,rk3576-cci-grf
- rockchip,rk3576-litcore-grf
- rockchip,rk3576-gpu-grf
- rockchip,rk3576-npu-grf
- rockchip,rk3576-pmu1-grf
- rockchip,rk3576-php-grf
- rockchip,rk3576-pipe-phy-grf
- rockchip,rk3576-sdgmac-grf
- rockchip,rk3576-sys-grf
- rockchip,rk3576-usb-grf
- rockchip,rk3576-usbdpphy-grf
- rockchip,rk3576-vo0-grf
- rockchip,rk3576-vop-grf
- rockchip,rk3588-bigcore0-grf - rockchip,rk3588-bigcore0-grf
- rockchip,rk3588-bigcore1-grf - rockchip,rk3588-bigcore1-grf
- rockchip,rk3588-hdptxphy-grf - rockchip,rk3588-hdptxphy-grf
...@@ -58,6 +72,8 @@ properties: ...@@ -58,6 +72,8 @@ properties:
- rockchip,rk3399-pmugrf - rockchip,rk3399-pmugrf
- rockchip,rk3568-grf - rockchip,rk3568-grf
- rockchip,rk3568-pmugrf - rockchip,rk3568-pmugrf
- rockchip,rk3576-ioc-grf
- rockchip,rk3576-pmu0-grf
- rockchip,rk3588-usb2phy-grf - rockchip,rk3588-usb2phy-grf
- rockchip,rv1108-grf - rockchip,rv1108-grf
- rockchip,rv1108-pmugrf - rockchip,rv1108-pmugrf
... ...
......
...@@ -24,6 +24,7 @@ properties: ...@@ -24,6 +24,7 @@ properties:
- rockchip,rk3228-timer - rockchip,rk3228-timer
- rockchip,rk3229-timer - rockchip,rk3229-timer
- rockchip,rk3368-timer - rockchip,rk3368-timer
- rockchip,rk3576-timer
- rockchip,rk3588-timer - rockchip,rk3588-timer
- rockchip,px30-timer - rockchip,px30-timer
- const: rockchip,rk3288-timer - const: rockchip,rk3288-timer
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment