Searched +full:cv1800b +full:- +full:rtc (Results 1 – 7 of 7) sorted by relevance
/linux/Documentation/devicetree/bindings/rtc/ |
H A D | sophgo,cv1800b-rtc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/rtc/sophgo,cv1800b-rtc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 The RTC (Real Time Clock) is an independently powered module in the chip. It 11 contains a 32KHz oscillator and a Power-On-Reset (POR) sub-module, which can 14 power-on, power-off and reset. 22 https://github.com/sophgo/sophgo-doc/tree/main/SG200X/TRM 25 - sophgo@lists.linux.dev 28 - $ref: /schemas/rtc/rtc.yaml# [all …]
|
/linux/arch/riscv/boot/dts/sophgo/ |
H A D | cv1800b.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 8 #include <dt-bindings/pinctrl/pinctrl-cv1800b.h> 9 #include "cv180x-cpus.dtsi" 13 compatible = "sophgo,cv1800b"; 21 interrupt-parent = <&plic>; 22 dma-noncoherent; 25 compatible = "sophgo,cv1800b-pinctrl"; 28 reg-names = "sys", "rtc"; 31 clk: clock-controller@3002000 { 32 compatible = "sophgo,cv1800b-clk"; [all …]
|
H A D | cv180x.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 7 #include <dt-bindings/clock/sophgo,cv1800.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include "cv18xx-reset.h" 13 #address-cells = <1>; 14 #size-cells = <1>; 17 compatible = "fixed-clock"; 18 clock-output-names = "osc_25m"; 19 #clock-cells = <0>; [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | sophgo,cv1800-pinctrl.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/sophgo,cv1800-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Inochi Amaoto <inochiama@outlook.com> 15 - sophgo,cv1800b-pinctrl 16 - sophgo,cv1812h-pinctrl 17 - sophgo,sg2000-pinctrl 18 - sophgo,sg2002-pinctrl 22 - description: pinctrl for system domain [all …]
|
/linux/drivers/soc/sophgo/ |
H A D | cv1800-rtcsys.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for Sophgo CV1800 series SoC RTC subsystem 5 * The RTC module comprises a 32kHz oscillator, Power-on-Reset (PoR) sub-module, 6 * HW state machine to control chip power-on, power-off and reset. Furthermore, 24 .name = "cv1800b-rtc", 40 return devm_mfd_add_devices(&pdev->dev, PLATFORM_DEVID_AUTO, in cv1800_rtcsys_probe() 47 { .compatible = "sophgo,cv1800b-rtc" }, 62 MODULE_DESCRIPTION("Sophgo CV1800 series SoC RTC subsystem driver");
|
/linux/drivers/rtc/ |
H A D | rtc-cv1800.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rtc-cv1800.c: RTC driver for Sophgo cv1800 RTC 16 #include <linux/rtc.h> 47 regmap_read(info->rtc_map, SEC_PULSE_GEN, ®); in cv1800_rtc_enabled() 57 regmap_update_bits(info->rtc_map, SEC_PULSE_GEN, SEL_SEC_PULSE, 0); in cv1800_rtc_enable() 64 regmap_write(info->rtc_map, ALARM_ENABLE, enabled); in cv1800_rtc_alarm_irq_enable() 74 alarm_time = rtc_tm_to_time64(&alrm->time); in cv1800_rtc_set_alarm() 78 regmap_write(info->rtc_map, ALARM_TIME, alarm_time); in cv1800_rtc_set_alarm() 80 cv1800_rtc_alarm_irq_enable(dev, alrm->enabled); in cv1800_rtc_set_alarm() 92 alarm->enabled = 0; in cv1800_rtc_read_alarm() [all …]
|
/linux/drivers/clk/sophgo/ |
H A D | clk-cv1800.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/clk-provider.h> 12 #include "clk-cv1800.h" 14 #include "clk-cv18xx-common.h" 15 #include "clk-cv18xx-ip.h" 16 #include "clk-cv18xx-pll.h" 302 /* RTC */ 913 -1, /* osc */ 984 -1, /* osc */ 1460 ctrl->desc = desc; in cv1800_clk_init_ctrl() [all …]
|