Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'riscv-dt-for-v6.6' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux into soc/dt

RISC-V Devicetrees for v6.6

StarFive:
There's only StarFive stuff this time around, starting with some
bindings to get clock ID defines out of the binding headers. Getting
these (and the syscon bindings) in unblocked a swathe of stuff sitting
on the list. Added are: new clock controllers and sycons, ethernet
support, thermal sensors, USB and PCIe PHYs, hwrng, mmc and a few more
besides for the VisionFive v2. The original VisionFive and BeagleV
Starlight got some the thermal sensor support too, as that is supported
by the same driver. These changes make the board actually usable with
something other than an initramfs.
Overlay support by way of the -@ flag set during dtb building, is added
also.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>

* tag 'riscv-dt-for-v6.6' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux: (26 commits)
riscv: dts: starfive: jh7110: Fix GMAC configuration
riscv: dts: starfive - Add hwrng node for JH7110 SoC
riscv: dts: starfive - Add crypto and DMA node for JH7110
riscv: dts: starfive: Add mmc nodes on VisionFive 2 board
riscv: dts: starfive: enable DCDC1&ALDO4 node in axp15060
riscv: dts: starfive: Add QSPI controller node for StarFive JH7110 SoC
riscv: dts: starfive: jh7110: add the node and pins configuration for tdm
riscv: dts: starfive: jh7110: add dma controller node
riscv: dts: starfive: Add spi node and pins configuration
riscv: dts: starfive: Add USB dts node for JH7110
riscv: dts: starfive: Add USB and PCIe PHY nodes for JH7110
riscv: dts: starfive: jh7110: Add temperature sensor node and thermal-zones
riscv: dts: starfive: jh7100: Add temperature sensor node and thermal-zones
riscv: dts: starfive: visionfive 2: Add configuration of gmac and phy
riscv: dts: starfive: jh7110: Add ethernet device nodes
riscv: dts: starfive: jh7110: Add PLL clocks source in SYSCRG node
riscv: dts: starfive: jh7110: Add syscon nodes
riscv: dts: starfive: jh7110: Add STGCRG/ISPCRG/VOUTCRG nodes
riscv: dts: starfive: jh7110: Add DVP and HDMI TX pixel external clocks
dt-bindings: clock: Add StarFive JH7110 Video-Output clock and reset generator
...

Link: https://lore.kernel.org/r/20230813-naturist-fragment-ac7d10c453ba@spud
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+1433 -4
+87
Documentation/devicetree/bindings/clock/starfive,jh7110-ispcrg.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/starfive,jh7110-ispcrg.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: StarFive JH7110 Image-Signal-Process Clock and Reset Generator 8 + 9 + maintainers: 10 + - Xingyu Wu <xingyu.wu@starfivetech.com> 11 + 12 + properties: 13 + compatible: 14 + const: starfive,jh7110-ispcrg 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + clocks: 20 + items: 21 + - description: ISP Top core 22 + - description: ISP Top Axi 23 + - description: NOC ISP Bus 24 + - description: external DVP 25 + 26 + clock-names: 27 + items: 28 + - const: isp_top_core 29 + - const: isp_top_axi 30 + - const: noc_bus_isp_axi 31 + - const: dvp_clk 32 + 33 + resets: 34 + items: 35 + - description: ISP Top core 36 + - description: ISP Top Axi 37 + - description: NOC ISP Bus 38 + 39 + '#clock-cells': 40 + const: 1 41 + description: 42 + See <dt-bindings/clock/starfive,jh7110-crg.h> for valid indices. 43 + 44 + '#reset-cells': 45 + const: 1 46 + description: 47 + See <dt-bindings/reset/starfive,jh7110-crg.h> for valid indices. 48 + 49 + power-domains: 50 + maxItems: 1 51 + description: 52 + ISP domain power 53 + 54 + required: 55 + - compatible 56 + - reg 57 + - clocks 58 + - clock-names 59 + - resets 60 + - '#clock-cells' 61 + - '#reset-cells' 62 + - power-domains 63 + 64 + additionalProperties: false 65 + 66 + examples: 67 + - | 68 + #include <dt-bindings/clock/starfive,jh7110-crg.h> 69 + #include <dt-bindings/power/starfive,jh7110-pmu.h> 70 + #include <dt-bindings/reset/starfive,jh7110-crg.h> 71 + 72 + ispcrg: clock-controller@19810000 { 73 + compatible = "starfive,jh7110-ispcrg"; 74 + reg = <0x19810000 0x10000>; 75 + clocks = <&syscrg JH7110_SYSCLK_ISP_TOP_CORE>, 76 + <&syscrg JH7110_SYSCLK_ISP_TOP_AXI>, 77 + <&syscrg JH7110_SYSCLK_NOC_BUS_ISP_AXI>, 78 + <&dvp_clk>; 79 + clock-names = "isp_top_core", "isp_top_axi", 80 + "noc_bus_isp_axi", "dvp_clk"; 81 + resets = <&syscrg JH7110_SYSRST_ISP_TOP>, 82 + <&syscrg JH7110_SYSRST_ISP_TOP_AXI>, 83 + <&syscrg JH7110_SYSRST_NOC_BUS_ISP_AXI>; 84 + #clock-cells = <1>; 85 + #reset-cells = <1>; 86 + power-domains = <&pwrc JH7110_PD_ISP>; 87 + };
+46
Documentation/devicetree/bindings/clock/starfive,jh7110-pll.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/starfive,jh7110-pll.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: StarFive JH7110 PLL Clock Generator 8 + 9 + description: 10 + These PLLs are high speed, low jitter frequency synthesizers in the JH7110. 11 + Each PLL works in integer mode or fraction mode, with configuration 12 + registers in the sys syscon. So the PLLs node should be a child of 13 + SYS-SYSCON node. 14 + The formula for calculating frequency is 15 + Fvco = Fref * (NI + NF) / M / Q1 16 + 17 + maintainers: 18 + - Xingyu Wu <xingyu.wu@starfivetech.com> 19 + 20 + properties: 21 + compatible: 22 + const: starfive,jh7110-pll 23 + 24 + clocks: 25 + maxItems: 1 26 + description: Main Oscillator (24 MHz) 27 + 28 + '#clock-cells': 29 + const: 1 30 + description: 31 + See <dt-bindings/clock/starfive,jh7110-crg.h> for valid indices. 32 + 33 + required: 34 + - compatible 35 + - clocks 36 + - '#clock-cells' 37 + 38 + additionalProperties: false 39 + 40 + examples: 41 + - | 42 + clock-controller { 43 + compatible = "starfive,jh7110-pll"; 44 + clocks = <&osc>; 45 + #clock-cells = <1>; 46 + };
+82
Documentation/devicetree/bindings/clock/starfive,jh7110-stgcrg.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/starfive,jh7110-stgcrg.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: StarFive JH7110 System-Top-Group Clock and Reset Generator 8 + 9 + maintainers: 10 + - Xingyu Wu <xingyu.wu@starfivetech.com> 11 + 12 + properties: 13 + compatible: 14 + const: starfive,jh7110-stgcrg 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + clocks: 20 + items: 21 + - description: Main Oscillator (24 MHz) 22 + - description: HIFI4 core 23 + - description: STG AXI/AHB 24 + - description: USB (125 MHz) 25 + - description: CPU Bus 26 + - description: HIFI4 Axi 27 + - description: NOC STG Bus 28 + - description: APB Bus 29 + 30 + clock-names: 31 + items: 32 + - const: osc 33 + - const: hifi4_core 34 + - const: stg_axiahb 35 + - const: usb_125m 36 + - const: cpu_bus 37 + - const: hifi4_axi 38 + - const: nocstg_bus 39 + - const: apb_bus 40 + 41 + '#clock-cells': 42 + const: 1 43 + description: 44 + See <dt-bindings/clock/starfive,jh7110-crg.h> for valid indices. 45 + 46 + '#reset-cells': 47 + const: 1 48 + description: 49 + See <dt-bindings/reset/starfive,jh7110-crg.h> for valid indices. 50 + 51 + required: 52 + - compatible 53 + - reg 54 + - clocks 55 + - clock-names 56 + - '#clock-cells' 57 + - '#reset-cells' 58 + 59 + additionalProperties: false 60 + 61 + examples: 62 + - | 63 + #include <dt-bindings/clock/starfive,jh7110-crg.h> 64 + 65 + stgcrg: clock-controller@10230000 { 66 + compatible = "starfive,jh7110-stgcrg"; 67 + reg = <0x10230000 0x10000>; 68 + clocks = <&osc>, 69 + <&syscrg JH7110_SYSCLK_HIFI4_CORE>, 70 + <&syscrg JH7110_SYSCLK_STG_AXIAHB>, 71 + <&syscrg JH7110_SYSCLK_USB_125M>, 72 + <&syscrg JH7110_SYSCLK_CPU_BUS>, 73 + <&syscrg JH7110_SYSCLK_HIFI4_AXI>, 74 + <&syscrg JH7110_SYSCLK_NOCSTG_BUS>, 75 + <&syscrg JH7110_SYSCLK_APB_BUS>; 76 + clock-names = "osc", "hifi4_core", 77 + "stg_axiahb", "usb_125m", 78 + "cpu_bus", "hifi4_axi", 79 + "nocstg_bus", "apb_bus"; 80 + #clock-cells = <1>; 81 + #reset-cells = <1>; 82 + };
+16 -2
Documentation/devicetree/bindings/clock/starfive,jh7110-syscrg.yaml
··· 27 27 - description: External I2S RX left/right channel clock 28 28 - description: External TDM clock 29 29 - description: External audio master clock 30 + - description: PLL0 31 + - description: PLL1 32 + - description: PLL2 30 33 31 34 - items: 32 35 - description: Main Oscillator (24 MHz) ··· 41 38 - description: External I2S RX left/right channel clock 42 39 - description: External TDM clock 43 40 - description: External audio master clock 41 + - description: PLL0 42 + - description: PLL1 43 + - description: PLL2 44 44 45 45 clock-names: 46 46 oneOf: ··· 58 52 - const: i2srx_lrck_ext 59 53 - const: tdm_ext 60 54 - const: mclk_ext 55 + - const: pll0_out 56 + - const: pll1_out 57 + - const: pll2_out 61 58 62 59 - items: 63 60 - const: osc ··· 72 63 - const: i2srx_lrck_ext 73 64 - const: tdm_ext 74 65 - const: mclk_ext 66 + - const: pll0_out 67 + - const: pll1_out 68 + - const: pll2_out 75 69 76 70 '#clock-cells': 77 71 const: 1 ··· 105 93 <&gmac1_rgmii_rxin>, 106 94 <&i2stx_bclk_ext>, <&i2stx_lrck_ext>, 107 95 <&i2srx_bclk_ext>, <&i2srx_lrck_ext>, 108 - <&tdm_ext>, <&mclk_ext>; 96 + <&tdm_ext>, <&mclk_ext>, 97 + <&pllclk 0>, <&pllclk 1>, <&pllclk 2>; 109 98 clock-names = "osc", "gmac1_rmii_refin", 110 99 "gmac1_rgmii_rxin", 111 100 "i2stx_bclk_ext", "i2stx_lrck_ext", 112 101 "i2srx_bclk_ext", "i2srx_lrck_ext", 113 - "tdm_ext", "mclk_ext"; 102 + "tdm_ext", "mclk_ext", 103 + "pll0_out", "pll1_out", "pll2_out"; 114 104 #clock-cells = <1>; 115 105 #reset-cells = <1>; 116 106 };
+90
Documentation/devicetree/bindings/clock/starfive,jh7110-voutcrg.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/starfive,jh7110-voutcrg.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: StarFive JH7110 Video-Output Clock and Reset Generator 8 + 9 + maintainers: 10 + - Xingyu Wu <xingyu.wu@starfivetech.com> 11 + 12 + properties: 13 + compatible: 14 + const: starfive,jh7110-voutcrg 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + clocks: 20 + items: 21 + - description: Vout Top core 22 + - description: Vout Top Ahb 23 + - description: Vout Top Axi 24 + - description: Vout Top HDMI MCLK 25 + - description: I2STX0 BCLK 26 + - description: external HDMI pixel 27 + 28 + clock-names: 29 + items: 30 + - const: vout_src 31 + - const: vout_top_ahb 32 + - const: vout_top_axi 33 + - const: vout_top_hdmitx0_mclk 34 + - const: i2stx0_bclk 35 + - const: hdmitx0_pixelclk 36 + 37 + resets: 38 + maxItems: 1 39 + description: Vout Top core 40 + 41 + '#clock-cells': 42 + const: 1 43 + description: 44 + See <dt-bindings/clock/starfive,jh7110-crg.h> for valid indices. 45 + 46 + '#reset-cells': 47 + const: 1 48 + description: 49 + See <dt-bindings/reset/starfive,jh7110-crg.h> for valid indices. 50 + 51 + power-domains: 52 + maxItems: 1 53 + description: 54 + Vout domain power 55 + 56 + required: 57 + - compatible 58 + - reg 59 + - clocks 60 + - clock-names 61 + - resets 62 + - '#clock-cells' 63 + - '#reset-cells' 64 + - power-domains 65 + 66 + additionalProperties: false 67 + 68 + examples: 69 + - | 70 + #include <dt-bindings/clock/starfive,jh7110-crg.h> 71 + #include <dt-bindings/power/starfive,jh7110-pmu.h> 72 + #include <dt-bindings/reset/starfive,jh7110-crg.h> 73 + 74 + voutcrg: clock-controller@295C0000 { 75 + compatible = "starfive,jh7110-voutcrg"; 76 + reg = <0x295C0000 0x10000>; 77 + clocks = <&syscrg JH7110_SYSCLK_VOUT_SRC>, 78 + <&syscrg JH7110_SYSCLK_VOUT_TOP_AHB>, 79 + <&syscrg JH7110_SYSCLK_VOUT_TOP_AXI>, 80 + <&syscrg JH7110_SYSCLK_VOUT_TOP_HDMITX0_MCLK>, 81 + <&syscrg JH7110_SYSCLK_I2STX0_BCLK>, 82 + <&hdmitx0_pixelclk>; 83 + clock-names = "vout_src", "vout_top_ahb", 84 + "vout_top_axi", "vout_top_hdmitx0_mclk", 85 + "i2stx0_bclk", "hdmitx0_pixelclk"; 86 + resets = <&syscrg JH7110_SYSRST_VOUT_TOP_SRC>; 87 + #clock-cells = <1>; 88 + #reset-cells = <1>; 89 + power-domains = <&pwrc JH7110_PD_VOUT>; 90 + };
+93
Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/soc/starfive/starfive,jh7110-syscon.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: StarFive JH7110 SoC system controller 8 + 9 + maintainers: 10 + - William Qiu <william.qiu@starfivetech.com> 11 + 12 + description: 13 + The StarFive JH7110 SoC system controller provides register information such 14 + as offset, mask and shift to configure related modules such as MMC and PCIe. 15 + 16 + properties: 17 + compatible: 18 + oneOf: 19 + - items: 20 + - const: starfive,jh7110-sys-syscon 21 + - const: syscon 22 + - const: simple-mfd 23 + - items: 24 + - enum: 25 + - starfive,jh7110-aon-syscon 26 + - starfive,jh7110-stg-syscon 27 + - const: syscon 28 + 29 + reg: 30 + maxItems: 1 31 + 32 + clock-controller: 33 + $ref: /schemas/clock/starfive,jh7110-pll.yaml# 34 + type: object 35 + 36 + "#power-domain-cells": 37 + const: 1 38 + 39 + required: 40 + - compatible 41 + - reg 42 + 43 + allOf: 44 + - if: 45 + properties: 46 + compatible: 47 + contains: 48 + const: starfive,jh7110-sys-syscon 49 + then: 50 + required: 51 + - clock-controller 52 + else: 53 + properties: 54 + clock-controller: false 55 + - if: 56 + properties: 57 + compatible: 58 + contains: 59 + const: starfive,jh7110-aon-syscon 60 + then: 61 + required: 62 + - "#power-domain-cells" 63 + else: 64 + properties: 65 + "#power-domain-cells": false 66 + 67 + additionalProperties: false 68 + 69 + examples: 70 + - | 71 + syscon@10240000 { 72 + compatible = "starfive,jh7110-stg-syscon", "syscon"; 73 + reg = <0x10240000 0x1000>; 74 + }; 75 + 76 + syscon@13030000 { 77 + compatible = "starfive,jh7110-sys-syscon", "syscon", "simple-mfd"; 78 + reg = <0x13030000 0x1000>; 79 + 80 + clock-controller { 81 + compatible = "starfive,jh7110-pll"; 82 + clocks = <&osc>; 83 + #clock-cells = <1>; 84 + }; 85 + }; 86 + 87 + syscon@17010000 { 88 + compatible = "starfive,jh7110-aon-syscon", "syscon"; 89 + reg = <0x17010000 0x1000>; 90 + #power-domain-cells = <1>; 91 + }; 92 + 93 + ...
+7
MAINTAINERS
··· 20282 20282 F: Documentation/devicetree/bindings/mmc/starfive* 20283 20283 F: drivers/mmc/host/dw_mmc-starfive.c 20284 20284 20285 + STARFIVE JH7110 SYSCON 20286 + M: William Qiu <william.qiu@starfivetech.com> 20287 + M: Xingyu Wu <xingyu.wu@starfivetech.com> 20288 + S: Supported 20289 + F: Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml 20290 + 20285 20291 STARFIVE JH7110 TDM DRIVER 20286 20292 M: Walker Chen <walker.chen@starfivetech.com> 20287 20293 S: Maintained ··· 20337 20331 M: Conor Dooley <conor@kernel.org> 20338 20332 S: Maintained 20339 20333 T: git https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git/ 20334 + F: Documentation/devicetree/bindings/soc/starfive/ 20340 20335 F: drivers/soc/starfive/ 20341 20336 20342 20337 STARFIVE TRNG DRIVER
+6
arch/riscv/boot/dts/starfive/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + # Enables support for device-tree overlays 3 + DTC_FLAGS_jh7100-beaglev-starlight := -@ 4 + DTC_FLAGS_jh7100-starfive-visionfive-v1 := -@ 5 + DTC_FLAGS_jh7110-starfive-visionfive-2-v1.2a := -@ 6 + DTC_FLAGS_jh7110-starfive-visionfive-2-v1.3b := -@ 7 + 2 8 dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-beaglev-starlight.dtb 3 9 dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-starfive-visionfive-v1.dtb 4 10
+37
arch/riscv/boot/dts/starfive/jh7100.dtsi
··· 80 80 }; 81 81 }; 82 82 83 + thermal-zones { 84 + cpu-thermal { 85 + polling-delay-passive = <250>; 86 + polling-delay = <15000>; 87 + 88 + thermal-sensors = <&sfctemp>; 89 + 90 + trips { 91 + cpu_alert0 { 92 + /* milliCelsius */ 93 + temperature = <75000>; 94 + hysteresis = <2000>; 95 + type = "passive"; 96 + }; 97 + 98 + cpu_crit { 99 + /* milliCelsius */ 100 + temperature = <90000>; 101 + hysteresis = <2000>; 102 + type = "critical"; 103 + }; 104 + }; 105 + }; 106 + }; 107 + 83 108 osc_sys: osc_sys { 84 109 compatible = "fixed-clock"; 85 110 #clock-cells = <0>; ··· 272 247 clock-names = "apb", "core"; 273 248 resets = <&rstgen JH7100_RSTN_WDTIMER_APB>, 274 249 <&rstgen JH7100_RSTN_WDT>; 250 + }; 251 + 252 + sfctemp: temperature-sensor@124a0000 { 253 + compatible = "starfive,jh7100-temp"; 254 + reg = <0x0 0x124a0000 0x0 0x10000>; 255 + clocks = <&clkgen JH7100_CLK_TEMP_SENSE>, 256 + <&clkgen JH7100_CLK_TEMP_APB>; 257 + clock-names = "sense", "bus"; 258 + resets = <&rstgen JH7100_RSTN_TEMP_SENSE>, 259 + <&rstgen JH7100_RSTN_TEMP_APB>; 260 + reset-names = "sense", "bus"; 261 + #thermal-sensor-cells = <0>; 275 262 }; 276 263 }; 277 264 };
+13
arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2-v1.2a.dts
··· 11 11 model = "StarFive VisionFive 2 v1.2A"; 12 12 compatible = "starfive,visionfive-2-v1.2a", "starfive,jh7110"; 13 13 }; 14 + 15 + &gmac1 { 16 + phy-mode = "rmii"; 17 + assigned-clocks = <&syscrg JH7110_SYSCLK_GMAC1_TX>, 18 + <&syscrg JH7110_SYSCLK_GMAC1_RX>; 19 + assigned-clock-parents = <&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>, 20 + <&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>; 21 + }; 22 + 23 + &phy0 { 24 + rx-internal-delay-ps = <1900>; 25 + tx-internal-delay-ps = <1350>; 26 + };
+31
arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2-v1.3b.dts
··· 11 11 model = "StarFive VisionFive 2 v1.3B"; 12 12 compatible = "starfive,visionfive-2-v1.3b", "starfive,jh7110"; 13 13 }; 14 + 15 + &gmac0 { 16 + starfive,tx-use-rgmii-clk; 17 + assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>; 18 + assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>; 19 + }; 20 + 21 + &gmac1 { 22 + starfive,tx-use-rgmii-clk; 23 + assigned-clocks = <&syscrg JH7110_SYSCLK_GMAC1_TX>; 24 + assigned-clock-parents = <&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>; 25 + }; 26 + 27 + &phy0 { 28 + motorcomm,tx-clk-adj-enabled; 29 + motorcomm,tx-clk-100-inverted; 30 + motorcomm,tx-clk-1000-inverted; 31 + motorcomm,rx-clk-drv-microamp = <3970>; 32 + motorcomm,rx-data-drv-microamp = <2910>; 33 + rx-internal-delay-ps = <1500>; 34 + tx-internal-delay-ps = <1500>; 35 + }; 36 + 37 + &phy1 { 38 + motorcomm,tx-clk-adj-enabled; 39 + motorcomm,tx-clk-100-inverted; 40 + motorcomm,rx-clk-drv-microamp = <3970>; 41 + motorcomm,rx-data-drv-microamp = <2910>; 42 + rx-internal-delay-ps = <300>; 43 + tx-internal-delay-ps = <0>; 44 + };
+284
arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
··· 11 11 12 12 / { 13 13 aliases { 14 + ethernet0 = &gmac0; 15 + ethernet1 = &gmac1; 14 16 i2c0 = &i2c0; 15 17 i2c2 = &i2c2; 16 18 i2c5 = &i2c5; 17 19 i2c6 = &i2c6; 20 + mmc0 = &mmc0; 21 + mmc1 = &mmc1; 18 22 serial0 = &uart0; 19 23 }; 20 24 ··· 42 38 }; 43 39 }; 44 40 41 + &dvp_clk { 42 + clock-frequency = <74250000>; 43 + }; 44 + 45 45 &gmac0_rgmii_rxin { 46 46 clock-frequency = <125000000>; 47 47 }; ··· 60 52 61 53 &gmac1_rmii_refin { 62 54 clock-frequency = <50000000>; 55 + }; 56 + 57 + &hdmitx0_pixelclk { 58 + clock-frequency = <297000000>; 63 59 }; 64 60 65 61 &i2srx_bclk_ext { ··· 96 84 97 85 &tdm_ext { 98 86 clock-frequency = <49152000>; 87 + }; 88 + 89 + &gmac0 { 90 + phy-handle = <&phy0>; 91 + phy-mode = "rgmii-id"; 92 + status = "okay"; 93 + 94 + mdio { 95 + #address-cells = <1>; 96 + #size-cells = <0>; 97 + compatible = "snps,dwmac-mdio"; 98 + 99 + phy0: ethernet-phy@0 { 100 + reg = <0>; 101 + }; 102 + }; 103 + }; 104 + 105 + &gmac1 { 106 + phy-handle = <&phy1>; 107 + phy-mode = "rgmii-id"; 108 + status = "okay"; 109 + 110 + mdio { 111 + #address-cells = <1>; 112 + #size-cells = <0>; 113 + compatible = "snps,dwmac-mdio"; 114 + 115 + phy1: ethernet-phy@1 { 116 + reg = <0>; 117 + }; 118 + }; 99 119 }; 100 120 101 121 &i2c0 { ··· 167 123 #interrupt-cells = <1>; 168 124 169 125 regulators { 126 + vcc_3v3: dcdc1 { 127 + regulator-boot-on; 128 + regulator-always-on; 129 + regulator-min-microvolt = <3300000>; 130 + regulator-max-microvolt = <3300000>; 131 + regulator-name = "vcc_3v3"; 132 + }; 133 + 170 134 vdd_cpu: dcdc2 { 171 135 regulator-always-on; 172 136 regulator-min-microvolt = <500000>; 173 137 regulator-max-microvolt = <1540000>; 174 138 regulator-name = "vdd-cpu"; 139 + }; 140 + 141 + emmc_vdd: aldo4 { 142 + regulator-boot-on; 143 + regulator-always-on; 144 + regulator-min-microvolt = <1800000>; 145 + regulator-max-microvolt = <1800000>; 146 + regulator-name = "emmc_vdd"; 175 147 }; 176 148 }; 177 149 }; ··· 201 141 pinctrl-names = "default"; 202 142 pinctrl-0 = <&i2c6_pins>; 203 143 status = "okay"; 144 + }; 145 + 146 + &mmc0 { 147 + max-frequency = <100000000>; 148 + bus-width = <8>; 149 + cap-mmc-highspeed; 150 + mmc-ddr-1_8v; 151 + mmc-hs200-1_8v; 152 + non-removable; 153 + cap-mmc-hw-reset; 154 + post-power-on-delay-ms = <200>; 155 + pinctrl-names = "default"; 156 + pinctrl-0 = <&mmc0_pins>; 157 + vmmc-supply = <&vcc_3v3>; 158 + vqmmc-supply = <&emmc_vdd>; 159 + status = "okay"; 160 + }; 161 + 162 + &mmc1 { 163 + max-frequency = <100000000>; 164 + bus-width = <4>; 165 + no-sdio; 166 + no-mmc; 167 + broken-cd; 168 + cap-sd-highspeed; 169 + post-power-on-delay-ms = <200>; 170 + pinctrl-names = "default"; 171 + pinctrl-0 = <&mmc1_pins>; 172 + status = "okay"; 173 + }; 174 + 175 + &qspi { 176 + #address-cells = <1>; 177 + #size-cells = <0>; 178 + status = "okay"; 179 + 180 + nor_flash: flash@0 { 181 + compatible = "jedec,spi-nor"; 182 + reg = <0>; 183 + cdns,read-delay = <5>; 184 + spi-max-frequency = <12000000>; 185 + cdns,tshsl-ns = <1>; 186 + cdns,tsd2d-ns = <1>; 187 + cdns,tchsh-ns = <1>; 188 + cdns,tslch-ns = <1>; 189 + 190 + partitions { 191 + compatible = "fixed-partitions"; 192 + #address-cells = <1>; 193 + #size-cells = <1>; 194 + 195 + spl@0 { 196 + reg = <0x0 0x80000>; 197 + }; 198 + uboot-env@f0000 { 199 + reg = <0xf0000 0x10000>; 200 + }; 201 + uboot@100000 { 202 + reg = <0x100000 0x400000>; 203 + }; 204 + reserved-data@600000 { 205 + reg = <0x600000 0x1000000>; 206 + }; 207 + }; 208 + }; 209 + }; 210 + 211 + &spi0 { 212 + pinctrl-names = "default"; 213 + pinctrl-0 = <&spi0_pins>; 214 + status = "okay"; 215 + 216 + spi_dev0: spi@0 { 217 + compatible = "rohm,dh2228fv"; 218 + reg = <0>; 219 + spi-max-frequency = <10000000>; 220 + }; 204 221 }; 205 222 206 223 &sysgpio { ··· 337 200 }; 338 201 }; 339 202 203 + mmc0_pins: mmc0-0 { 204 + rst-pins { 205 + pinmux = <GPIOMUX(62, GPOUT_SYS_SDIO0_RST, 206 + GPOEN_ENABLE, 207 + GPI_NONE)>; 208 + bias-pull-up; 209 + drive-strength = <12>; 210 + input-disable; 211 + input-schmitt-disable; 212 + slew-rate = <0>; 213 + }; 214 + 215 + mmc-pins { 216 + pinmux = <PINMUX(64, 0)>, 217 + <PINMUX(65, 0)>, 218 + <PINMUX(66, 0)>, 219 + <PINMUX(67, 0)>, 220 + <PINMUX(68, 0)>, 221 + <PINMUX(69, 0)>, 222 + <PINMUX(70, 0)>, 223 + <PINMUX(71, 0)>, 224 + <PINMUX(72, 0)>, 225 + <PINMUX(73, 0)>; 226 + bias-pull-up; 227 + drive-strength = <12>; 228 + input-enable; 229 + }; 230 + }; 231 + 232 + mmc1_pins: mmc1-0 { 233 + clk-pins { 234 + pinmux = <GPIOMUX(10, GPOUT_SYS_SDIO1_CLK, 235 + GPOEN_ENABLE, 236 + GPI_NONE)>; 237 + bias-pull-up; 238 + drive-strength = <12>; 239 + input-disable; 240 + input-schmitt-disable; 241 + slew-rate = <0>; 242 + }; 243 + 244 + mmc-pins { 245 + pinmux = <GPIOMUX(9, GPOUT_SYS_SDIO1_CMD, 246 + GPOEN_SYS_SDIO1_CMD, 247 + GPI_SYS_SDIO1_CMD)>, 248 + <GPIOMUX(11, GPOUT_SYS_SDIO1_DATA0, 249 + GPOEN_SYS_SDIO1_DATA0, 250 + GPI_SYS_SDIO1_DATA0)>, 251 + <GPIOMUX(12, GPOUT_SYS_SDIO1_DATA1, 252 + GPOEN_SYS_SDIO1_DATA1, 253 + GPI_SYS_SDIO1_DATA1)>, 254 + <GPIOMUX(7, GPOUT_SYS_SDIO1_DATA2, 255 + GPOEN_SYS_SDIO1_DATA2, 256 + GPI_SYS_SDIO1_DATA2)>, 257 + <GPIOMUX(8, GPOUT_SYS_SDIO1_DATA3, 258 + GPOEN_SYS_SDIO1_DATA3, 259 + GPI_SYS_SDIO1_DATA3)>; 260 + bias-pull-up; 261 + drive-strength = <12>; 262 + input-enable; 263 + input-schmitt-enable; 264 + slew-rate = <0>; 265 + }; 266 + }; 267 + 268 + spi0_pins: spi0-0 { 269 + mosi-pins { 270 + pinmux = <GPIOMUX(52, GPOUT_SYS_SPI0_TXD, 271 + GPOEN_ENABLE, 272 + GPI_NONE)>; 273 + bias-disable; 274 + input-disable; 275 + input-schmitt-disable; 276 + }; 277 + 278 + miso-pins { 279 + pinmux = <GPIOMUX(53, GPOUT_LOW, 280 + GPOEN_DISABLE, 281 + GPI_SYS_SPI0_RXD)>; 282 + bias-pull-up; 283 + input-enable; 284 + input-schmitt-enable; 285 + }; 286 + 287 + sck-pins { 288 + pinmux = <GPIOMUX(48, GPOUT_SYS_SPI0_CLK, 289 + GPOEN_ENABLE, 290 + GPI_SYS_SPI0_CLK)>; 291 + bias-disable; 292 + input-disable; 293 + input-schmitt-disable; 294 + }; 295 + 296 + ss-pins { 297 + pinmux = <GPIOMUX(48, GPOUT_SYS_SPI0_FSS, 298 + GPOEN_ENABLE, 299 + GPI_SYS_SPI0_FSS)>; 300 + bias-disable; 301 + input-disable; 302 + input-schmitt-disable; 303 + }; 304 + }; 305 + 340 306 uart0_pins: uart0-0 { 341 307 tx-pins { 342 308 pinmux = <GPIOMUX(5, GPOUT_SYS_UART0_TX, ··· 463 223 slew-rate = <0>; 464 224 }; 465 225 }; 226 + 227 + tdm_pins: tdm-0 { 228 + tx-pins { 229 + pinmux = <GPIOMUX(44, GPOUT_SYS_TDM_TXD, 230 + GPOEN_ENABLE, 231 + GPI_NONE)>; 232 + bias-pull-up; 233 + drive-strength = <2>; 234 + input-disable; 235 + input-schmitt-disable; 236 + slew-rate = <0>; 237 + }; 238 + 239 + rx-pins { 240 + pinmux = <GPIOMUX(61, GPOUT_HIGH, 241 + GPOEN_DISABLE, 242 + GPI_SYS_TDM_RXD)>; 243 + input-enable; 244 + }; 245 + 246 + sync-pins { 247 + pinmux = <GPIOMUX(63, GPOUT_HIGH, 248 + GPOEN_DISABLE, 249 + GPI_SYS_TDM_SYNC)>; 250 + input-enable; 251 + }; 252 + 253 + pcmclk-pins { 254 + pinmux = <GPIOMUX(38, GPOUT_HIGH, 255 + GPOEN_DISABLE, 256 + GPI_SYS_TDM_CLK)>; 257 + input-enable; 258 + }; 259 + }; 260 + }; 261 + 262 + &tdm { 263 + pinctrl-names = "default"; 264 + pinctrl-0 = <&tdm_pins>; 265 + status = "okay"; 466 266 }; 467 267 468 268 &uart0 { 469 269 pinctrl-names = "default"; 470 270 pinctrl-0 = <&uart0_pins>; 471 271 status = "okay"; 272 + }; 273 + 274 + &usb0 { 275 + dr_mode = "peripheral"; 472 276 }; 473 277 474 278 &U74_1 {
+501 -2
arch/riscv/boot/dts/starfive/jh7110.dtsi
··· 6 6 7 7 /dts-v1/; 8 8 #include <dt-bindings/clock/starfive,jh7110-crg.h> 9 + #include <dt-bindings/power/starfive,jh7110-pmu.h> 9 10 #include <dt-bindings/reset/starfive,jh7110-crg.h> 11 + #include <dt-bindings/thermal/thermal.h> 10 12 11 13 / { 12 14 compatible = "starfive,jh7110"; ··· 58 56 operating-points-v2 = <&cpu_opp>; 59 57 clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>; 60 58 clock-names = "cpu"; 59 + #cooling-cells = <2>; 61 60 62 61 cpu1_intc: interrupt-controller { 63 62 compatible = "riscv,cpu-intc"; ··· 88 85 operating-points-v2 = <&cpu_opp>; 89 86 clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>; 90 87 clock-names = "cpu"; 88 + #cooling-cells = <2>; 91 89 92 90 cpu2_intc: interrupt-controller { 93 91 compatible = "riscv,cpu-intc"; ··· 118 114 operating-points-v2 = <&cpu_opp>; 119 115 clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>; 120 116 clock-names = "cpu"; 117 + #cooling-cells = <2>; 121 118 122 119 cpu3_intc: interrupt-controller { 123 120 compatible = "riscv,cpu-intc"; ··· 148 143 operating-points-v2 = <&cpu_opp>; 149 144 clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>; 150 145 clock-names = "cpu"; 146 + #cooling-cells = <2>; 151 147 152 148 cpu4_intc: interrupt-controller { 153 149 compatible = "riscv,cpu-intc"; ··· 203 197 }; 204 198 }; 205 199 200 + thermal-zones { 201 + cpu-thermal { 202 + polling-delay-passive = <250>; 203 + polling-delay = <15000>; 204 + 205 + thermal-sensors = <&sfctemp>; 206 + 207 + cooling-maps { 208 + map0 { 209 + trip = <&cpu_alert0>; 210 + cooling-device = 211 + <&U74_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 212 + <&U74_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 213 + <&U74_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 214 + <&U74_4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 215 + }; 216 + }; 217 + 218 + trips { 219 + cpu_alert0: cpu_alert0 { 220 + /* milliCelsius */ 221 + temperature = <85000>; 222 + hysteresis = <2000>; 223 + type = "passive"; 224 + }; 225 + 226 + cpu_crit { 227 + /* milliCelsius */ 228 + temperature = <100000>; 229 + hysteresis = <2000>; 230 + type = "critical"; 231 + }; 232 + }; 233 + }; 234 + }; 235 + 236 + dvp_clk: dvp-clock { 237 + compatible = "fixed-clock"; 238 + clock-output-names = "dvp_clk"; 239 + #clock-cells = <0>; 240 + }; 206 241 gmac0_rgmii_rxin: gmac0-rgmii-rxin-clock { 207 242 compatible = "fixed-clock"; 208 243 clock-output-names = "gmac0_rgmii_rxin"; ··· 265 218 gmac1_rmii_refin: gmac1-rmii-refin-clock { 266 219 compatible = "fixed-clock"; 267 220 clock-output-names = "gmac1_rmii_refin"; 221 + #clock-cells = <0>; 222 + }; 223 + 224 + hdmitx0_pixelclk: hdmitx0-pixel-clock { 225 + compatible = "fixed-clock"; 226 + clock-output-names = "hdmitx0_pixelclk"; 268 227 #clock-cells = <0>; 269 228 }; 270 229 ··· 314 261 compatible = "fixed-clock"; 315 262 clock-output-names = "rtc_osc"; 316 263 #clock-cells = <0>; 264 + }; 265 + 266 + stmmac_axi_setup: stmmac-axi-config { 267 + snps,lpi_en; 268 + snps,wr_osr_lmt = <15>; 269 + snps,rd_osr_lmt = <15>; 270 + snps,blen = <256 128 64 32 0 0 0>; 317 271 }; 318 272 319 273 tdm_ext: tdm-ext-clock { ··· 446 386 status = "disabled"; 447 387 }; 448 388 389 + spi0: spi@10060000 { 390 + compatible = "arm,pl022", "arm,primecell"; 391 + reg = <0x0 0x10060000 0x0 0x10000>; 392 + clocks = <&syscrg JH7110_SYSCLK_SPI0_APB>, 393 + <&syscrg JH7110_SYSCLK_SPI0_APB>; 394 + clock-names = "sspclk", "apb_pclk"; 395 + resets = <&syscrg JH7110_SYSRST_SPI0_APB>; 396 + interrupts = <38>; 397 + arm,primecell-periphid = <0x00041022>; 398 + num-cs = <1>; 399 + #address-cells = <1>; 400 + #size-cells = <0>; 401 + status = "disabled"; 402 + }; 403 + 404 + spi1: spi@10070000 { 405 + compatible = "arm,pl022", "arm,primecell"; 406 + reg = <0x0 0x10070000 0x0 0x10000>; 407 + clocks = <&syscrg JH7110_SYSCLK_SPI1_APB>, 408 + <&syscrg JH7110_SYSCLK_SPI1_APB>; 409 + clock-names = "sspclk", "apb_pclk"; 410 + resets = <&syscrg JH7110_SYSRST_SPI1_APB>; 411 + interrupts = <39>; 412 + arm,primecell-periphid = <0x00041022>; 413 + num-cs = <1>; 414 + #address-cells = <1>; 415 + #size-cells = <0>; 416 + status = "disabled"; 417 + }; 418 + 419 + spi2: spi@10080000 { 420 + compatible = "arm,pl022", "arm,primecell"; 421 + reg = <0x0 0x10080000 0x0 0x10000>; 422 + clocks = <&syscrg JH7110_SYSCLK_SPI2_APB>, 423 + <&syscrg JH7110_SYSCLK_SPI2_APB>; 424 + clock-names = "sspclk", "apb_pclk"; 425 + resets = <&syscrg JH7110_SYSRST_SPI2_APB>; 426 + interrupts = <40>; 427 + arm,primecell-periphid = <0x00041022>; 428 + num-cs = <1>; 429 + #address-cells = <1>; 430 + #size-cells = <0>; 431 + status = "disabled"; 432 + }; 433 + 434 + tdm: tdm@10090000 { 435 + compatible = "starfive,jh7110-tdm"; 436 + reg = <0x0 0x10090000 0x0 0x1000>; 437 + clocks = <&syscrg JH7110_SYSCLK_TDM_AHB>, 438 + <&syscrg JH7110_SYSCLK_TDM_APB>, 439 + <&syscrg JH7110_SYSCLK_TDM_INTERNAL>, 440 + <&syscrg JH7110_SYSCLK_TDM_TDM>, 441 + <&syscrg JH7110_SYSCLK_MCLK_INNER>, 442 + <&tdm_ext>; 443 + clock-names = "tdm_ahb", "tdm_apb", 444 + "tdm_internal", "tdm", 445 + "mclk_inner", "tdm_ext"; 446 + resets = <&syscrg JH7110_SYSRST_TDM_AHB>, 447 + <&syscrg JH7110_SYSRST_TDM_APB>, 448 + <&syscrg JH7110_SYSRST_TDM_CORE>; 449 + dmas = <&dma 20>, <&dma 21>; 450 + dma-names = "rx","tx"; 451 + #sound-dai-cells = <0>; 452 + status = "disabled"; 453 + }; 454 + 455 + usb0: usb@10100000 { 456 + compatible = "starfive,jh7110-usb"; 457 + ranges = <0x0 0x0 0x10100000 0x100000>; 458 + #address-cells = <1>; 459 + #size-cells = <1>; 460 + starfive,stg-syscon = <&stg_syscon 0x4>; 461 + clocks = <&stgcrg JH7110_STGCLK_USB0_LPM>, 462 + <&stgcrg JH7110_STGCLK_USB0_STB>, 463 + <&stgcrg JH7110_STGCLK_USB0_APB>, 464 + <&stgcrg JH7110_STGCLK_USB0_AXI>, 465 + <&stgcrg JH7110_STGCLK_USB0_UTMI_APB>; 466 + clock-names = "lpm", "stb", "apb", "axi", "utmi_apb"; 467 + resets = <&stgcrg JH7110_STGRST_USB0_PWRUP>, 468 + <&stgcrg JH7110_STGRST_USB0_APB>, 469 + <&stgcrg JH7110_STGRST_USB0_AXI>, 470 + <&stgcrg JH7110_STGRST_USB0_UTMI_APB>; 471 + reset-names = "pwrup", "apb", "axi", "utmi_apb"; 472 + status = "disabled"; 473 + 474 + usb_cdns3: usb@0 { 475 + compatible = "cdns,usb3"; 476 + reg = <0x0 0x10000>, 477 + <0x10000 0x10000>, 478 + <0x20000 0x10000>; 479 + reg-names = "otg", "xhci", "dev"; 480 + interrupts = <100>, <108>, <110>; 481 + interrupt-names = "host", "peripheral", "otg"; 482 + phys = <&usbphy0>; 483 + phy-names = "cdns3,usb2-phy"; 484 + }; 485 + }; 486 + 487 + usbphy0: phy@10200000 { 488 + compatible = "starfive,jh7110-usb-phy"; 489 + reg = <0x0 0x10200000 0x0 0x10000>; 490 + clocks = <&syscrg JH7110_SYSCLK_USB_125M>, 491 + <&stgcrg JH7110_STGCLK_USB0_APP_125>; 492 + clock-names = "125m", "app_125m"; 493 + #phy-cells = <0>; 494 + }; 495 + 496 + pciephy0: phy@10210000 { 497 + compatible = "starfive,jh7110-pcie-phy"; 498 + reg = <0x0 0x10210000 0x0 0x10000>; 499 + #phy-cells = <0>; 500 + }; 501 + 502 + pciephy1: phy@10220000 { 503 + compatible = "starfive,jh7110-pcie-phy"; 504 + reg = <0x0 0x10220000 0x0 0x10000>; 505 + #phy-cells = <0>; 506 + }; 507 + 508 + stgcrg: clock-controller@10230000 { 509 + compatible = "starfive,jh7110-stgcrg"; 510 + reg = <0x0 0x10230000 0x0 0x10000>; 511 + clocks = <&osc>, 512 + <&syscrg JH7110_SYSCLK_HIFI4_CORE>, 513 + <&syscrg JH7110_SYSCLK_STG_AXIAHB>, 514 + <&syscrg JH7110_SYSCLK_USB_125M>, 515 + <&syscrg JH7110_SYSCLK_CPU_BUS>, 516 + <&syscrg JH7110_SYSCLK_HIFI4_AXI>, 517 + <&syscrg JH7110_SYSCLK_NOCSTG_BUS>, 518 + <&syscrg JH7110_SYSCLK_APB_BUS>; 519 + clock-names = "osc", "hifi4_core", 520 + "stg_axiahb", "usb_125m", 521 + "cpu_bus", "hifi4_axi", 522 + "nocstg_bus", "apb_bus"; 523 + #clock-cells = <1>; 524 + #reset-cells = <1>; 525 + }; 526 + 527 + stg_syscon: syscon@10240000 { 528 + compatible = "starfive,jh7110-stg-syscon", "syscon"; 529 + reg = <0x0 0x10240000 0x0 0x1000>; 530 + }; 531 + 449 532 uart3: serial@12000000 { 450 533 compatible = "snps,dw-apb-uart"; 451 534 reg = <0x0 0x12000000 0x0 0x10000>; ··· 676 473 status = "disabled"; 677 474 }; 678 475 476 + qspi: spi@13010000 { 477 + compatible = "starfive,jh7110-qspi", "cdns,qspi-nor"; 478 + reg = <0x0 0x13010000 0x0 0x10000>, 479 + <0x0 0x21000000 0x0 0x400000>; 480 + interrupts = <25>; 481 + clocks = <&syscrg JH7110_SYSCLK_QSPI_REF>, 482 + <&syscrg JH7110_SYSCLK_QSPI_AHB>, 483 + <&syscrg JH7110_SYSCLK_QSPI_APB>; 484 + clock-names = "ref", "ahb", "apb"; 485 + resets = <&syscrg JH7110_SYSRST_QSPI_APB>, 486 + <&syscrg JH7110_SYSRST_QSPI_AHB>, 487 + <&syscrg JH7110_SYSRST_QSPI_REF>; 488 + reset-names = "qspi", "qspi-ocp", "rstc_ref"; 489 + cdns,fifo-depth = <256>; 490 + cdns,fifo-width = <4>; 491 + cdns,trigger-address = <0x0>; 492 + status = "disabled"; 493 + }; 494 + 495 + spi3: spi@12070000 { 496 + compatible = "arm,pl022", "arm,primecell"; 497 + reg = <0x0 0x12070000 0x0 0x10000>; 498 + clocks = <&syscrg JH7110_SYSCLK_SPI3_APB>, 499 + <&syscrg JH7110_SYSCLK_SPI3_APB>; 500 + clock-names = "sspclk", "apb_pclk"; 501 + resets = <&syscrg JH7110_SYSRST_SPI3_APB>; 502 + interrupts = <52>; 503 + arm,primecell-periphid = <0x00041022>; 504 + num-cs = <1>; 505 + #address-cells = <1>; 506 + #size-cells = <0>; 507 + status = "disabled"; 508 + }; 509 + 510 + spi4: spi@12080000 { 511 + compatible = "arm,pl022", "arm,primecell"; 512 + reg = <0x0 0x12080000 0x0 0x10000>; 513 + clocks = <&syscrg JH7110_SYSCLK_SPI4_APB>, 514 + <&syscrg JH7110_SYSCLK_SPI4_APB>; 515 + clock-names = "sspclk", "apb_pclk"; 516 + resets = <&syscrg JH7110_SYSRST_SPI4_APB>; 517 + interrupts = <53>; 518 + arm,primecell-periphid = <0x00041022>; 519 + num-cs = <1>; 520 + #address-cells = <1>; 521 + #size-cells = <0>; 522 + status = "disabled"; 523 + }; 524 + 525 + spi5: spi@12090000 { 526 + compatible = "arm,pl022", "arm,primecell"; 527 + reg = <0x0 0x12090000 0x0 0x10000>; 528 + clocks = <&syscrg JH7110_SYSCLK_SPI5_APB>, 529 + <&syscrg JH7110_SYSCLK_SPI5_APB>; 530 + clock-names = "sspclk", "apb_pclk"; 531 + resets = <&syscrg JH7110_SYSRST_SPI5_APB>; 532 + interrupts = <54>; 533 + arm,primecell-periphid = <0x00041022>; 534 + num-cs = <1>; 535 + #address-cells = <1>; 536 + #size-cells = <0>; 537 + status = "disabled"; 538 + }; 539 + 540 + spi6: spi@120a0000 { 541 + compatible = "arm,pl022", "arm,primecell"; 542 + reg = <0x0 0x120A0000 0x0 0x10000>; 543 + clocks = <&syscrg JH7110_SYSCLK_SPI6_APB>, 544 + <&syscrg JH7110_SYSCLK_SPI6_APB>; 545 + clock-names = "sspclk", "apb_pclk"; 546 + resets = <&syscrg JH7110_SYSRST_SPI6_APB>; 547 + interrupts = <55>; 548 + arm,primecell-periphid = <0x00041022>; 549 + num-cs = <1>; 550 + #address-cells = <1>; 551 + #size-cells = <0>; 552 + status = "disabled"; 553 + }; 554 + 555 + sfctemp: temperature-sensor@120e0000 { 556 + compatible = "starfive,jh7110-temp"; 557 + reg = <0x0 0x120e0000 0x0 0x10000>; 558 + clocks = <&syscrg JH7110_SYSCLK_TEMP_CORE>, 559 + <&syscrg JH7110_SYSCLK_TEMP_APB>; 560 + clock-names = "sense", "bus"; 561 + resets = <&syscrg JH7110_SYSRST_TEMP_CORE>, 562 + <&syscrg JH7110_SYSRST_TEMP_APB>; 563 + reset-names = "sense", "bus"; 564 + #thermal-sensor-cells = <0>; 565 + }; 566 + 679 567 syscrg: clock-controller@13020000 { 680 568 compatible = "starfive,jh7110-syscrg"; 681 569 reg = <0x0 0x13020000 0x0 0x10000>; ··· 774 480 <&gmac1_rgmii_rxin>, 775 481 <&i2stx_bclk_ext>, <&i2stx_lrck_ext>, 776 482 <&i2srx_bclk_ext>, <&i2srx_lrck_ext>, 777 - <&tdm_ext>, <&mclk_ext>; 483 + <&tdm_ext>, <&mclk_ext>, 484 + <&pllclk JH7110_PLLCLK_PLL0_OUT>, 485 + <&pllclk JH7110_PLLCLK_PLL1_OUT>, 486 + <&pllclk JH7110_PLLCLK_PLL2_OUT>; 778 487 clock-names = "osc", "gmac1_rmii_refin", 779 488 "gmac1_rgmii_rxin", 780 489 "i2stx_bclk_ext", "i2stx_lrck_ext", 781 490 "i2srx_bclk_ext", "i2srx_lrck_ext", 782 - "tdm_ext", "mclk_ext"; 491 + "tdm_ext", "mclk_ext", 492 + "pll0_out", "pll1_out", "pll2_out"; 783 493 #clock-cells = <1>; 784 494 #reset-cells = <1>; 495 + }; 496 + 497 + sys_syscon: syscon@13030000 { 498 + compatible = "starfive,jh7110-sys-syscon", "syscon", "simple-mfd"; 499 + reg = <0x0 0x13030000 0x0 0x1000>; 500 + 501 + pllclk: clock-controller { 502 + compatible = "starfive,jh7110-pll"; 503 + clocks = <&osc>; 504 + #clock-cells = <1>; 505 + }; 785 506 }; 786 507 787 508 sysgpio: pinctrl@13040000 { ··· 821 512 <&syscrg JH7110_SYSRST_WDT_CORE>; 822 513 }; 823 514 515 + crypto: crypto@16000000 { 516 + compatible = "starfive,jh7110-crypto"; 517 + reg = <0x0 0x16000000 0x0 0x4000>; 518 + clocks = <&stgcrg JH7110_STGCLK_SEC_AHB>, 519 + <&stgcrg JH7110_STGCLK_SEC_MISC_AHB>; 520 + clock-names = "hclk", "ahb"; 521 + interrupts = <28>; 522 + resets = <&stgcrg JH7110_STGRST_SEC_AHB>; 523 + dmas = <&sdma 1 2>, <&sdma 0 2>; 524 + dma-names = "tx", "rx"; 525 + }; 526 + 527 + sdma: dma-controller@16008000 { 528 + compatible = "arm,pl080", "arm,primecell"; 529 + arm,primecell-periphid = <0x00041080>; 530 + reg = <0x0 0x16008000 0x0 0x4000>; 531 + interrupts = <29>; 532 + clocks = <&stgcrg JH7110_STGCLK_SEC_AHB>; 533 + clock-names = "apb_pclk"; 534 + resets = <&stgcrg JH7110_STGRST_SEC_AHB>; 535 + lli-bus-interface-ahb1; 536 + mem-bus-interface-ahb1; 537 + memcpy-burst-size = <256>; 538 + memcpy-bus-width = <32>; 539 + #dma-cells = <2>; 540 + }; 541 + 542 + rng: rng@1600c000 { 543 + compatible = "starfive,jh7110-trng"; 544 + reg = <0x0 0x1600C000 0x0 0x4000>; 545 + clocks = <&stgcrg JH7110_STGCLK_SEC_AHB>, 546 + <&stgcrg JH7110_STGCLK_SEC_MISC_AHB>; 547 + clock-names = "hclk", "ahb"; 548 + resets = <&stgcrg JH7110_STGRST_SEC_AHB>; 549 + interrupts = <30>; 550 + }; 551 + 552 + mmc0: mmc@16010000 { 553 + compatible = "starfive,jh7110-mmc"; 554 + reg = <0x0 0x16010000 0x0 0x10000>; 555 + clocks = <&syscrg JH7110_SYSCLK_SDIO0_AHB>, 556 + <&syscrg JH7110_SYSCLK_SDIO0_SDCARD>; 557 + clock-names = "biu","ciu"; 558 + resets = <&syscrg JH7110_SYSRST_SDIO0_AHB>; 559 + reset-names = "reset"; 560 + interrupts = <74>; 561 + fifo-depth = <32>; 562 + fifo-watermark-aligned; 563 + data-addr = <0>; 564 + starfive,sysreg = <&sys_syscon 0x14 0x1a 0x7c000000>; 565 + status = "disabled"; 566 + }; 567 + 568 + mmc1: mmc@16020000 { 569 + compatible = "starfive,jh7110-mmc"; 570 + reg = <0x0 0x16020000 0x0 0x10000>; 571 + clocks = <&syscrg JH7110_SYSCLK_SDIO1_AHB>, 572 + <&syscrg JH7110_SYSCLK_SDIO1_SDCARD>; 573 + clock-names = "biu","ciu"; 574 + resets = <&syscrg JH7110_SYSRST_SDIO1_AHB>; 575 + reset-names = "reset"; 576 + interrupts = <75>; 577 + fifo-depth = <32>; 578 + fifo-watermark-aligned; 579 + data-addr = <0>; 580 + starfive,sysreg = <&sys_syscon 0x9c 0x1 0x3e>; 581 + status = "disabled"; 582 + }; 583 + 584 + gmac0: ethernet@16030000 { 585 + compatible = "starfive,jh7110-dwmac", "snps,dwmac-5.20"; 586 + reg = <0x0 0x16030000 0x0 0x10000>; 587 + clocks = <&aoncrg JH7110_AONCLK_GMAC0_AXI>, 588 + <&aoncrg JH7110_AONCLK_GMAC0_AHB>, 589 + <&syscrg JH7110_SYSCLK_GMAC0_PTP>, 590 + <&aoncrg JH7110_AONCLK_GMAC0_TX_INV>, 591 + <&syscrg JH7110_SYSCLK_GMAC0_GTXC>; 592 + clock-names = "stmmaceth", "pclk", "ptp_ref", 593 + "tx", "gtx"; 594 + resets = <&aoncrg JH7110_AONRST_GMAC0_AXI>, 595 + <&aoncrg JH7110_AONRST_GMAC0_AHB>; 596 + reset-names = "stmmaceth", "ahb"; 597 + interrupts = <7>, <6>, <5>; 598 + interrupt-names = "macirq", "eth_wake_irq", "eth_lpi"; 599 + rx-fifo-depth = <2048>; 600 + tx-fifo-depth = <2048>; 601 + snps,multicast-filter-bins = <64>; 602 + snps,perfect-filter-entries = <256>; 603 + snps,fixed-burst; 604 + snps,no-pbl-x8; 605 + snps,force_thresh_dma_mode; 606 + snps,axi-config = <&stmmac_axi_setup>; 607 + snps,tso; 608 + snps,en-tx-lpi-clockgating; 609 + snps,txpbl = <16>; 610 + snps,rxpbl = <16>; 611 + starfive,syscon = <&aon_syscon 0xc 0x12>; 612 + status = "disabled"; 613 + }; 614 + 615 + gmac1: ethernet@16040000 { 616 + compatible = "starfive,jh7110-dwmac", "snps,dwmac-5.20"; 617 + reg = <0x0 0x16040000 0x0 0x10000>; 618 + clocks = <&syscrg JH7110_SYSCLK_GMAC1_AXI>, 619 + <&syscrg JH7110_SYSCLK_GMAC1_AHB>, 620 + <&syscrg JH7110_SYSCLK_GMAC1_PTP>, 621 + <&syscrg JH7110_SYSCLK_GMAC1_TX_INV>, 622 + <&syscrg JH7110_SYSCLK_GMAC1_GTXC>; 623 + clock-names = "stmmaceth", "pclk", "ptp_ref", 624 + "tx", "gtx"; 625 + resets = <&syscrg JH7110_SYSRST_GMAC1_AXI>, 626 + <&syscrg JH7110_SYSRST_GMAC1_AHB>; 627 + reset-names = "stmmaceth", "ahb"; 628 + interrupts = <78>, <77>, <76>; 629 + interrupt-names = "macirq", "eth_wake_irq", "eth_lpi"; 630 + rx-fifo-depth = <2048>; 631 + tx-fifo-depth = <2048>; 632 + snps,multicast-filter-bins = <64>; 633 + snps,perfect-filter-entries = <256>; 634 + snps,fixed-burst; 635 + snps,no-pbl-x8; 636 + snps,force_thresh_dma_mode; 637 + snps,axi-config = <&stmmac_axi_setup>; 638 + snps,tso; 639 + snps,en-tx-lpi-clockgating; 640 + snps,txpbl = <16>; 641 + snps,rxpbl = <16>; 642 + starfive,syscon = <&sys_syscon 0x90 0x2>; 643 + status = "disabled"; 644 + }; 645 + 646 + dma: dma-controller@16050000 { 647 + compatible = "starfive,jh7110-axi-dma"; 648 + reg = <0x0 0x16050000 0x0 0x10000>; 649 + clocks = <&stgcrg JH7110_STGCLK_DMA1P_AXI>, 650 + <&stgcrg JH7110_STGCLK_DMA1P_AHB>; 651 + clock-names = "core-clk", "cfgr-clk"; 652 + resets = <&stgcrg JH7110_STGRST_DMA1P_AXI>, 653 + <&stgcrg JH7110_STGRST_DMA1P_AHB>; 654 + interrupts = <73>; 655 + #dma-cells = <1>; 656 + dma-channels = <4>; 657 + snps,dma-masters = <1>; 658 + snps,data-width = <3>; 659 + snps,block-size = <65536 65536 65536 65536>; 660 + snps,priority = <0 1 2 3>; 661 + snps,axi-max-burst-len = <16>; 662 + }; 663 + 824 664 aoncrg: clock-controller@17000000 { 825 665 compatible = "starfive,jh7110-aoncrg"; 826 666 reg = <0x0 0x17000000 0x0 0x10000>; ··· 985 527 "rtc_osc"; 986 528 #clock-cells = <1>; 987 529 #reset-cells = <1>; 530 + }; 531 + 532 + aon_syscon: syscon@17010000 { 533 + compatible = "starfive,jh7110-aon-syscon", "syscon"; 534 + reg = <0x0 0x17010000 0x0 0x1000>; 535 + #power-domain-cells = <1>; 988 536 }; 989 537 990 538 aongpio: pinctrl@17020000 { ··· 1009 545 reg = <0x0 0x17030000 0x0 0x10000>; 1010 546 interrupts = <111>; 1011 547 #power-domain-cells = <1>; 548 + }; 549 + 550 + ispcrg: clock-controller@19810000 { 551 + compatible = "starfive,jh7110-ispcrg"; 552 + reg = <0x0 0x19810000 0x0 0x10000>; 553 + clocks = <&syscrg JH7110_SYSCLK_ISP_TOP_CORE>, 554 + <&syscrg JH7110_SYSCLK_ISP_TOP_AXI>, 555 + <&syscrg JH7110_SYSCLK_NOC_BUS_ISP_AXI>, 556 + <&dvp_clk>; 557 + clock-names = "isp_top_core", "isp_top_axi", 558 + "noc_bus_isp_axi", "dvp_clk"; 559 + resets = <&syscrg JH7110_SYSRST_ISP_TOP>, 560 + <&syscrg JH7110_SYSRST_ISP_TOP_AXI>, 561 + <&syscrg JH7110_SYSRST_NOC_BUS_ISP_AXI>; 562 + #clock-cells = <1>; 563 + #reset-cells = <1>; 564 + power-domains = <&pwrc JH7110_PD_ISP>; 565 + }; 566 + 567 + voutcrg: clock-controller@295c0000 { 568 + compatible = "starfive,jh7110-voutcrg"; 569 + reg = <0x0 0x295c0000 0x0 0x10000>; 570 + clocks = <&syscrg JH7110_SYSCLK_VOUT_SRC>, 571 + <&syscrg JH7110_SYSCLK_VOUT_TOP_AHB>, 572 + <&syscrg JH7110_SYSCLK_VOUT_TOP_AXI>, 573 + <&syscrg JH7110_SYSCLK_VOUT_TOP_HDMITX0_MCLK>, 574 + <&syscrg JH7110_SYSCLK_I2STX0_BCLK>, 575 + <&hdmitx0_pixelclk>; 576 + clock-names = "vout_src", "vout_top_ahb", 577 + "vout_top_axi", "vout_top_hdmitx0_mclk", 578 + "i2stx0_bclk", "hdmitx0_pixelclk"; 579 + resets = <&syscrg JH7110_SYSRST_VOUT_TOP_SRC>; 580 + #clock-cells = <1>; 581 + #reset-cells = <1>; 582 + power-domains = <&pwrc JH7110_PD_VOUT>; 1012 583 }; 1013 584 }; 1014 585 };
+80
include/dt-bindings/clock/starfive,jh7110-crg.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 2 2 /* 3 3 * Copyright 2022 Emil Renner Berthing <kernel@esmil.dk> 4 + * Copyright 2022 StarFive Technology Co., Ltd. 4 5 */ 5 6 6 7 #ifndef __DT_BINDINGS_CLOCK_STARFIVE_JH7110_CRG_H__ 7 8 #define __DT_BINDINGS_CLOCK_STARFIVE_JH7110_CRG_H__ 9 + 10 + /* PLL clocks */ 11 + #define JH7110_PLLCLK_PLL0_OUT 0 12 + #define JH7110_PLLCLK_PLL1_OUT 1 13 + #define JH7110_PLLCLK_PLL2_OUT 2 14 + #define JH7110_PLLCLK_END 3 8 15 9 16 /* SYSCRG clocks */ 10 17 #define JH7110_SYSCLK_CPU_ROOT 0 ··· 224 217 #define JH7110_AONCLK_RTC_CAL 13 225 218 226 219 #define JH7110_AONCLK_END 14 220 + 221 + /* STGCRG clocks */ 222 + #define JH7110_STGCLK_HIFI4_CLK_CORE 0 223 + #define JH7110_STGCLK_USB0_APB 1 224 + #define JH7110_STGCLK_USB0_UTMI_APB 2 225 + #define JH7110_STGCLK_USB0_AXI 3 226 + #define JH7110_STGCLK_USB0_LPM 4 227 + #define JH7110_STGCLK_USB0_STB 5 228 + #define JH7110_STGCLK_USB0_APP_125 6 229 + #define JH7110_STGCLK_USB0_REFCLK 7 230 + #define JH7110_STGCLK_PCIE0_AXI_MST0 8 231 + #define JH7110_STGCLK_PCIE0_APB 9 232 + #define JH7110_STGCLK_PCIE0_TL 10 233 + #define JH7110_STGCLK_PCIE1_AXI_MST0 11 234 + #define JH7110_STGCLK_PCIE1_APB 12 235 + #define JH7110_STGCLK_PCIE1_TL 13 236 + #define JH7110_STGCLK_PCIE_SLV_MAIN 14 237 + #define JH7110_STGCLK_SEC_AHB 15 238 + #define JH7110_STGCLK_SEC_MISC_AHB 16 239 + #define JH7110_STGCLK_GRP0_MAIN 17 240 + #define JH7110_STGCLK_GRP0_BUS 18 241 + #define JH7110_STGCLK_GRP0_STG 19 242 + #define JH7110_STGCLK_GRP1_MAIN 20 243 + #define JH7110_STGCLK_GRP1_BUS 21 244 + #define JH7110_STGCLK_GRP1_STG 22 245 + #define JH7110_STGCLK_GRP1_HIFI 23 246 + #define JH7110_STGCLK_E2_RTC 24 247 + #define JH7110_STGCLK_E2_CORE 25 248 + #define JH7110_STGCLK_E2_DBG 26 249 + #define JH7110_STGCLK_DMA1P_AXI 27 250 + #define JH7110_STGCLK_DMA1P_AHB 28 251 + 252 + #define JH7110_STGCLK_END 29 253 + 254 + /* ISPCRG clocks */ 255 + #define JH7110_ISPCLK_DOM4_APB_FUNC 0 256 + #define JH7110_ISPCLK_MIPI_RX0_PXL 1 257 + #define JH7110_ISPCLK_DVP_INV 2 258 + #define JH7110_ISPCLK_M31DPHY_CFG_IN 3 259 + #define JH7110_ISPCLK_M31DPHY_REF_IN 4 260 + #define JH7110_ISPCLK_M31DPHY_TX_ESC_LAN0 5 261 + #define JH7110_ISPCLK_VIN_APB 6 262 + #define JH7110_ISPCLK_VIN_SYS 7 263 + #define JH7110_ISPCLK_VIN_PIXEL_IF0 8 264 + #define JH7110_ISPCLK_VIN_PIXEL_IF1 9 265 + #define JH7110_ISPCLK_VIN_PIXEL_IF2 10 266 + #define JH7110_ISPCLK_VIN_PIXEL_IF3 11 267 + #define JH7110_ISPCLK_VIN_P_AXI_WR 12 268 + #define JH7110_ISPCLK_ISPV2_TOP_WRAPPER_C 13 269 + 270 + #define JH7110_ISPCLK_END 14 271 + 272 + /* VOUTCRG clocks */ 273 + #define JH7110_VOUTCLK_APB 0 274 + #define JH7110_VOUTCLK_DC8200_PIX 1 275 + #define JH7110_VOUTCLK_DSI_SYS 2 276 + #define JH7110_VOUTCLK_TX_ESC 3 277 + #define JH7110_VOUTCLK_DC8200_AXI 4 278 + #define JH7110_VOUTCLK_DC8200_CORE 5 279 + #define JH7110_VOUTCLK_DC8200_AHB 6 280 + #define JH7110_VOUTCLK_DC8200_PIX0 7 281 + #define JH7110_VOUTCLK_DC8200_PIX1 8 282 + #define JH7110_VOUTCLK_DOM_VOUT_TOP_LCD 9 283 + #define JH7110_VOUTCLK_DSITX_APB 10 284 + #define JH7110_VOUTCLK_DSITX_SYS 11 285 + #define JH7110_VOUTCLK_DSITX_DPI 12 286 + #define JH7110_VOUTCLK_DSITX_TXESC 13 287 + #define JH7110_VOUTCLK_MIPITX_DPHY_TXESC 14 288 + #define JH7110_VOUTCLK_HDMI_TX_MCLK 15 289 + #define JH7110_VOUTCLK_HDMI_TX_BCLK 16 290 + #define JH7110_VOUTCLK_HDMI_TX_SYS 17 291 + 292 + #define JH7110_VOUTCLK_END 18 227 293 228 294 #endif /* __DT_BINDINGS_CLOCK_STARFIVE_JH7110_CRG_H__ */
+60
include/dt-bindings/reset/starfive,jh7110-crg.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 2 2 /* 3 3 * Copyright (C) 2022 Emil Renner Berthing <kernel@esmil.dk> 4 + * Copyright (C) 2022 StarFive Technology Co., Ltd. 4 5 */ 5 6 6 7 #ifndef __DT_BINDINGS_RESET_STARFIVE_JH7110_CRG_H__ ··· 151 150 #define JH7110_AONRST_RTC_32K 7 152 151 153 152 #define JH7110_AONRST_END 8 153 + 154 + /* STGCRG resets */ 155 + #define JH7110_STGRST_SYSCON 0 156 + #define JH7110_STGRST_HIFI4_CORE 1 157 + #define JH7110_STGRST_HIFI4_AXI 2 158 + #define JH7110_STGRST_SEC_AHB 3 159 + #define JH7110_STGRST_E24_CORE 4 160 + #define JH7110_STGRST_DMA1P_AXI 5 161 + #define JH7110_STGRST_DMA1P_AHB 6 162 + #define JH7110_STGRST_USB0_AXI 7 163 + #define JH7110_STGRST_USB0_APB 8 164 + #define JH7110_STGRST_USB0_UTMI_APB 9 165 + #define JH7110_STGRST_USB0_PWRUP 10 166 + #define JH7110_STGRST_PCIE0_AXI_MST0 11 167 + #define JH7110_STGRST_PCIE0_AXI_SLV0 12 168 + #define JH7110_STGRST_PCIE0_AXI_SLV 13 169 + #define JH7110_STGRST_PCIE0_BRG 14 170 + #define JH7110_STGRST_PCIE0_CORE 15 171 + #define JH7110_STGRST_PCIE0_APB 16 172 + #define JH7110_STGRST_PCIE1_AXI_MST0 17 173 + #define JH7110_STGRST_PCIE1_AXI_SLV0 18 174 + #define JH7110_STGRST_PCIE1_AXI_SLV 19 175 + #define JH7110_STGRST_PCIE1_BRG 20 176 + #define JH7110_STGRST_PCIE1_CORE 21 177 + #define JH7110_STGRST_PCIE1_APB 22 178 + 179 + #define JH7110_STGRST_END 23 180 + 181 + /* ISPCRG resets */ 182 + #define JH7110_ISPRST_ISPV2_TOP_WRAPPER_P 0 183 + #define JH7110_ISPRST_ISPV2_TOP_WRAPPER_C 1 184 + #define JH7110_ISPRST_M31DPHY_HW 2 185 + #define JH7110_ISPRST_M31DPHY_B09_AON 3 186 + #define JH7110_ISPRST_VIN_APB 4 187 + #define JH7110_ISPRST_VIN_PIXEL_IF0 5 188 + #define JH7110_ISPRST_VIN_PIXEL_IF1 6 189 + #define JH7110_ISPRST_VIN_PIXEL_IF2 7 190 + #define JH7110_ISPRST_VIN_PIXEL_IF3 8 191 + #define JH7110_ISPRST_VIN_SYS 9 192 + #define JH7110_ISPRST_VIN_P_AXI_RD 10 193 + #define JH7110_ISPRST_VIN_P_AXI_WR 11 194 + 195 + #define JH7110_ISPRST_END 12 196 + 197 + /* VOUTCRG resets */ 198 + #define JH7110_VOUTRST_DC8200_AXI 0 199 + #define JH7110_VOUTRST_DC8200_AHB 1 200 + #define JH7110_VOUTRST_DC8200_CORE 2 201 + #define JH7110_VOUTRST_DSITX_DPI 3 202 + #define JH7110_VOUTRST_DSITX_APB 4 203 + #define JH7110_VOUTRST_DSITX_RXESC 5 204 + #define JH7110_VOUTRST_DSITX_SYS 6 205 + #define JH7110_VOUTRST_DSITX_TXBYTEHS 7 206 + #define JH7110_VOUTRST_DSITX_TXESC 8 207 + #define JH7110_VOUTRST_HDMI_TX_HDMI 9 208 + #define JH7110_VOUTRST_MIPITX_DPHY_SYS 10 209 + #define JH7110_VOUTRST_MIPITX_DPHY_TXBYTEHS 11 210 + 211 + #define JH7110_VOUTRST_END 12 154 212 155 213 #endif /* __DT_BINDINGS_RESET_STARFIVE_JH7110_CRG_H__ */