[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251230023725.15966-3-jiayu.riscv@isrc.iscas.ac.cn>
Date: Tue, 30 Dec 2025 10:37:21 +0800
From: Jiayu Du <jiayu.riscv@...c.iscas.ac.cn>
To: conor@...nel.org
Cc: vkoul@...nel.org,
gregkh@...uxfoundation.org,
pjw@...nel.org,
palmer@...belt.com,
aou@...s.berkeley.edu,
alex@...ti.fr,
neil.armstrong@...aro.org,
krzk+dt@...nel.org,
jiayu.riscv@...c.iscas.ac.cn,
linux-riscv@...ts.infradead.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-phy@...ts.infradead.org,
linux-usb@...r.kernel.org
Subject: [PATCH 2/5] dt-bindings: soc: canaan: Add top syscon for Canaan K230 SoC
The Canaan K230 SoC top system controller provides register access
to configure related modules. It includes a USB2 PHY and eMMC/SDIO PHY.
Signed-off-by: Jiayu Du <jiayu.riscv@...c.iscas.ac.cn>
---
.../soc/canaan/canaan,k230-hisys-cfg.yaml | 68 +++++++++++++++++++
1 file changed, 68 insertions(+)
create mode 100644 Documentation/devicetree/bindings/soc/canaan/canaan,k230-hisys-cfg.yaml
diff --git a/Documentation/devicetree/bindings/soc/canaan/canaan,k230-hisys-cfg.yaml b/Documentation/devicetree/bindings/soc/canaan/canaan,k230-hisys-cfg.yaml
new file mode 100644
index 000000000000..77875f2d4f48
--- /dev/null
+++ b/Documentation/devicetree/bindings/soc/canaan/canaan,k230-hisys-cfg.yaml
@@ -0,0 +1,68 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/soc/canaan/canaan,k230-hisys-cfg.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Canaan K230 HiSysConfig system controller
+
+maintainers:
+ - Jiayu Du <jiayu.riscv@...c.iscas.ac.cn>
+
+description:
+ The Canaan K230 HiSysConfig system controller provides register access to
+ configure high-speed peripherals (e.g. eMMC/SDIO PHY tuning) and USB PHY
+ configuration.
+
+properties:
+ compatible:
+ items:
+ - const: canaan,k230-hisys-cfg
+ - const: syscon
+ - const: simple-mfd
+
+ reg:
+ maxItems: 1
+
+ "#address-cells":
+ const: 1
+
+ "#size-cells":
+ const: 1
+
+ usb-phy@70:
+ $ref: schemas/phy/canaan,k230-usb-phy.yaml#
+ unevaluatedProperties: false
+
+ usb-phy@90:
+ $ref: schemas/phy/canaan,k230-usb-phy.yaml#
+ unevaluatedProperties: false
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ hi_sys_config: syscon@...85000 {
+ compatible = "canaan,k230-hisys-cfg", "syscon", "simple-mfd";
+ reg = <0x91585000 0x400>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ usbphy0: usb-phy@70 {
+ compatible = "canaan,k230-usb-phy";
+ reg = <0x70 0x1C>, <0xb0 0x8>;
+ clocks = <&sysclk K230_HS_USB0_AHB_GATE>;
+ #phy-cells = <0>;
+ };
+
+ usbphy1: usb-phy@90 {
+ compatible = "canaan,k230-usb-phy";
+ reg = <0x90 0x1C>, <0xb8 0x8>;
+ clocks = <&sysclk K230_HS_USB1_AHB_GATE>;
+ #phy-cells = <0>;
+ };
+ };
--
2.52.0
Powered by blists - more mailing lists