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 bindings for SP7021 clock driver

Add documentation to describe Sunplus SP7021 clock driver bindings.

Signed-off-by: Qin Jian <qinjian@cqplus1.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Qin Jian and committed by
Arnd Bergmann
5543604a dbf018be

+142
+52
Documentation/devicetree/bindings/clock/sunplus,sp7021-clkc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + # Copyright (C) Sunplus Co., Ltd. 2021 3 + %YAML 1.2 4 + --- 5 + $id: http://devicetree.org/schemas/clock/sunplus,sp7021-clkc.yaml# 6 + $schema: http://devicetree.org/meta-schemas/core.yaml# 7 + 8 + title: Sunplus SP7021 SoC Clock Controller 9 + 10 + maintainers: 11 + - Qin Jian <qinjian@cqplus1.com> 12 + 13 + properties: 14 + compatible: 15 + const: sunplus,sp7021-clkc 16 + 17 + reg: 18 + maxItems: 3 19 + 20 + clocks: 21 + maxItems: 1 22 + 23 + "#clock-cells": 24 + const: 1 25 + 26 + required: 27 + - compatible 28 + - reg 29 + - clocks 30 + - "#clock-cells" 31 + 32 + additionalProperties: false 33 + 34 + examples: 35 + - | 36 + extclk: osc0 { 37 + compatible = "fixed-clock"; 38 + #clock-cells = <0>; 39 + clock-frequency = <27000000>; 40 + clock-output-names = "extclk"; 41 + }; 42 + 43 + clkc: clock-controller@9c000004 { 44 + compatible = "sunplus,sp7021-clkc"; 45 + reg = <0x9c000004 0x28>, 46 + <0x9c000200 0x44>, 47 + <0x9c000268 0x08>; 48 + clocks = <&extclk>; 49 + #clock-cells = <1>; 50 + }; 51 + 52 + ...
+2
MAINTAINERS
··· 2831 2831 S: Maintained 2832 2832 W: https://sunplus-tibbo.atlassian.net/wiki/spaces/doc/overview 2833 2833 F: Documentation/devicetree/bindings/arm/sunplus,sp7021.yaml 2834 + F: Documentation/devicetree/bindings/clock/sunplus,sp7021-clkc.yaml 2834 2835 F: Documentation/devicetree/bindings/reset/sunplus,reset.yaml 2835 2836 F: drivers/reset/reset-sunplus.c 2837 + F: include/dt-bindings/clock/sunplus,sp7021-clkc.h 2836 2838 F: include/dt-bindings/reset/sunplus,sp7021-reset.h 2837 2839 2838 2840 ARM/Synaptics SoC support
+88
include/dt-bindings/clock/sunplus,sp7021-clkc.h
··· 1 + /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 + /* 3 + * Copyright (C) Sunplus Technology Co., Ltd. 4 + * All rights reserved. 5 + */ 6 + #ifndef _DT_BINDINGS_CLOCK_SUNPLUS_SP7021_H 7 + #define _DT_BINDINGS_CLOCK_SUNPLUS_SP7021_H 8 + 9 + /* gates */ 10 + #define CLK_RTC 0 11 + #define CLK_OTPRX 1 12 + #define CLK_NOC 2 13 + #define CLK_BR 3 14 + #define CLK_SPIFL 4 15 + #define CLK_PERI0 5 16 + #define CLK_PERI1 6 17 + #define CLK_STC0 7 18 + #define CLK_STC_AV0 8 19 + #define CLK_STC_AV1 9 20 + #define CLK_STC_AV2 10 21 + #define CLK_UA0 11 22 + #define CLK_UA1 12 23 + #define CLK_UA2 13 24 + #define CLK_UA3 14 25 + #define CLK_UA4 15 26 + #define CLK_HWUA 16 27 + #define CLK_DDC0 17 28 + #define CLK_UADMA 18 29 + #define CLK_CBDMA0 19 30 + #define CLK_CBDMA1 20 31 + #define CLK_SPI_COMBO_0 21 32 + #define CLK_SPI_COMBO_1 22 33 + #define CLK_SPI_COMBO_2 23 34 + #define CLK_SPI_COMBO_3 24 35 + #define CLK_AUD 25 36 + #define CLK_USBC0 26 37 + #define CLK_USBC1 27 38 + #define CLK_UPHY0 28 39 + #define CLK_UPHY1 29 40 + #define CLK_I2CM0 30 41 + #define CLK_I2CM1 31 42 + #define CLK_I2CM2 32 43 + #define CLK_I2CM3 33 44 + #define CLK_PMC 34 45 + #define CLK_CARD_CTL0 35 46 + #define CLK_CARD_CTL1 36 47 + #define CLK_CARD_CTL4 37 48 + #define CLK_BCH 38 49 + #define CLK_DDFCH 39 50 + #define CLK_CSIIW0 40 51 + #define CLK_CSIIW1 41 52 + #define CLK_MIPICSI0 42 53 + #define CLK_MIPICSI1 43 54 + #define CLK_HDMI_TX 44 55 + #define CLK_VPOST 45 56 + #define CLK_TGEN 46 57 + #define CLK_DMIX 47 58 + #define CLK_TCON 48 59 + #define CLK_GPIO 49 60 + #define CLK_MAILBOX 50 61 + #define CLK_SPIND 51 62 + #define CLK_I2C2CBUS 52 63 + #define CLK_SEC 53 64 + #define CLK_DVE 54 65 + #define CLK_GPOST0 55 66 + #define CLK_OSD0 56 67 + #define CLK_DISP_PWM 57 68 + #define CLK_UADBG 58 69 + #define CLK_FIO_CTL 59 70 + #define CLK_FPGA 60 71 + #define CLK_L2SW 61 72 + #define CLK_ICM 62 73 + #define CLK_AXI_GLOBAL 63 74 + 75 + /* plls */ 76 + #define PLL_A 64 77 + #define PLL_E 65 78 + #define PLL_E_2P5 66 79 + #define PLL_E_25 67 80 + #define PLL_E_112P5 68 81 + #define PLL_F 69 82 + #define PLL_TV 70 83 + #define PLL_TV_A 71 84 + #define PLL_SYS 72 85 + 86 + #define CLK_MAX 73 87 + 88 + #endif