Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ properties:
compatible:
enum:
- thead,th1520-clk-ap
- thead,th1520-clk-misc
- thead,th1520-clk-vo

reg:
Expand All @@ -32,8 +33,8 @@ properties:
items:
- description: |
One input clock:
- For "thead,th1520-clk-ap": the clock input must be the 24 MHz
main oscillator.
- For "thead,th1520-clk-ap" and "thead,th1520-clk-misc": the clock
input must be the 24 MHz main oscillator.
- For "thead,th1520-clk-vo": the clock input must be the VIDEO_PLL,
which is configured by the AP clock controller. According to the
TH1520 manual, VIDEO_PLL is a Silicon Creations Sigma-Delta PLL
Expand Down
6 changes: 6 additions & 0 deletions Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ patternProperties:
'#interrupt-cells':
const: 2

patternProperties:
"^.+-hog(-[0-9]+)?$":
type: object
required:
- gpio-hog

required:
- compatible
- reg
Expand Down
74 changes: 74 additions & 0 deletions Documentation/devicetree/bindings/phy/thead,th1520-usb-phy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/phy/thead,th1520-usb-phy.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: T-Head TH1520 USB PHY

description: |
The T-HEAD TH1520 USB PHY is a Synopsys USB 3.0 FemtoPHY glued with some
custom logic to configure PHY parameters.

maintainers:
- Icenowy Zheng <zhengxingda@iscas.ac.cn>
- Wei Fu <wefu@redhat.com>
- Drew Fustini <dfustini@tenstorrent.com>

properties:
compatible:
const: thead,th1520-usb-phy

reg:
maxItems: 1

"#phy-cells":
const: 0

clocks:
items:
- description: PHY bus clock
- description: PHY reference clock

clock-names:
items:
- const: bus
- const: ref

resets:
items:
- description: PHY bus reset
- description: PHY reset

reset-names:
items:
- const: bus
- const: phy

avdd33-usb3-supply:
description: |
3.3V power supply for the PHY, named AVDD33_USB3 in the SoC pin list.

required:
- compatible
- "#phy-cells"
- clocks
- clock-names
- resets
- reset-names
- avdd33-usb3-supply

additionalProperties: false

examples:
- |
phy@ec030000 {
compatible = "thead,th1520-usb-phy";
reg = <0xec030000 0x10000>;
#phy-cells = <0>;
clocks = <&clk_misc 1>, <&clk_misc 3>;
clock-names = "bus", "ref";
resets = <&rst_misc 6>, <&rst_misc 7>;
reset-names = "bus", "phy";
avdd33-usb3-supply = <&avdd33_usb3>;
};
4 changes: 3 additions & 1 deletion Documentation/devicetree/bindings/usb/vialab,vl817.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ maintainers:
- Anand Moon <linux.amoon@gmail.com>

allOf:
- $ref: usb-device.yaml#
- $ref: usb-hub.yaml#

properties:
compatible:
Expand All @@ -34,6 +34,8 @@ properties:
description:
phandle to the peer hub on the controller.

ports: true

required:
- compatible
- reg
Expand Down
15 changes: 15 additions & 0 deletions arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@
device_type = "memory";
reg = <0x0 0x00000000 0x2 0x00000000>;
};

/* TODO: Switch to AON regulator when it's available. */
avdd33_usb3: regulator-avdd33-usb3 {
compatible = "regulator-fixed";
regulator-name = "AVDD33_USB3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
/* Marked as always on on the schematics */
regulator-always-on;
};
};

&osc {
Expand Down Expand Up @@ -202,3 +212,8 @@
max-frequency = <198000000>;
status = "okay";
};

&usb_phy {
avdd33-usb3-supply = <&avdd33_usb3>;
status = "okay";
};
Loading
Loading