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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: clock: Add StarFive JH7110 Image-Signal-Process clock and reset generator

Add bindings for the Image-Signal-Process clock and reset
generator (ISPCRG) on the JH7110 RISC-V SoC by StarFive Ltd.

Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>

authored by

Xingyu Wu and committed by
Conor Dooley
9b3938c0 14b14a57

+121
+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 + };
+18
include/dt-bindings/clock/starfive,jh7110-crg.h
··· 258 258 259 259 #define JH7110_STGCLK_END 29 260 260 261 + /* ISPCRG clocks */ 262 + #define JH7110_ISPCLK_DOM4_APB_FUNC 0 263 + #define JH7110_ISPCLK_MIPI_RX0_PXL 1 264 + #define JH7110_ISPCLK_DVP_INV 2 265 + #define JH7110_ISPCLK_M31DPHY_CFG_IN 3 266 + #define JH7110_ISPCLK_M31DPHY_REF_IN 4 267 + #define JH7110_ISPCLK_M31DPHY_TX_ESC_LAN0 5 268 + #define JH7110_ISPCLK_VIN_APB 6 269 + #define JH7110_ISPCLK_VIN_SYS 7 270 + #define JH7110_ISPCLK_VIN_PIXEL_IF0 8 271 + #define JH7110_ISPCLK_VIN_PIXEL_IF1 9 272 + #define JH7110_ISPCLK_VIN_PIXEL_IF2 10 273 + #define JH7110_ISPCLK_VIN_PIXEL_IF3 11 274 + #define JH7110_ISPCLK_VIN_P_AXI_WR 12 275 + #define JH7110_ISPCLK_ISPV2_TOP_WRAPPER_C 13 276 + 277 + #define JH7110_ISPCLK_END 14 278 + 261 279 #endif /* __DT_BINDINGS_CLOCK_STARFIVE_JH7110_CRG_H__ */
+16
include/dt-bindings/reset/starfive,jh7110-crg.h
··· 179 179 180 180 #define JH7110_STGRST_END 23 181 181 182 + /* ISPCRG resets */ 183 + #define JH7110_ISPRST_ISPV2_TOP_WRAPPER_P 0 184 + #define JH7110_ISPRST_ISPV2_TOP_WRAPPER_C 1 185 + #define JH7110_ISPRST_M31DPHY_HW 2 186 + #define JH7110_ISPRST_M31DPHY_B09_AON 3 187 + #define JH7110_ISPRST_VIN_APB 4 188 + #define JH7110_ISPRST_VIN_PIXEL_IF0 5 189 + #define JH7110_ISPRST_VIN_PIXEL_IF1 6 190 + #define JH7110_ISPRST_VIN_PIXEL_IF2 7 191 + #define JH7110_ISPRST_VIN_PIXEL_IF3 8 192 + #define JH7110_ISPRST_VIN_SYS 9 193 + #define JH7110_ISPRST_VIN_P_AXI_RD 10 194 + #define JH7110_ISPRST_VIN_P_AXI_WR 11 195 + 196 + #define JH7110_ISPRST_END 12 197 + 182 198 #endif /* __DT_BINDINGS_RESET_STARFIVE_JH7110_CRG_H__ */