1 // SPDX-License-Identifier: GPL-2.0 OR MIT
3 * Copyright (C) 2022 StarFive Technology Co., Ltd.
4 * Copyright (C) 2022 Emil Renner Berthing <kernel@esmil.dk>
9 #include "jh7110-pinfunc.h"
10 #include <dt-bindings/gpio/gpio.h>
22 stdout-path = "serial0:115200n8";
26 timebase-frequency = <4000000>;
30 device_type = "memory";
31 reg = <0x0 0x40000000 0x1 0x0>;
35 compatible = "gpio-restart";
36 gpios = <&sysgpio 35 GPIO_ACTIVE_HIGH>;
42 clock-frequency = <74250000>;
46 clock-frequency = <125000000>;
50 clock-frequency = <50000000>;
54 clock-frequency = <125000000>;
58 clock-frequency = <50000000>;
62 clock-frequency = <297000000>;
66 clock-frequency = <12288000>;
70 clock-frequency = <192000>;
74 clock-frequency = <12288000>;
78 clock-frequency = <192000>;
82 clock-frequency = <12288000>;
86 clock-frequency = <24000000>;
90 clock-frequency = <32768>;
94 clock-frequency = <49152000>;
98 clock-frequency = <100000>;
99 i2c-sda-hold-time-ns = <300>;
100 i2c-sda-falling-time-ns = <510>;
101 i2c-scl-falling-time-ns = <510>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&i2c0_pins>;
108 clock-frequency = <100000>;
109 i2c-sda-hold-time-ns = <300>;
110 i2c-sda-falling-time-ns = <510>;
111 i2c-scl-falling-time-ns = <510>;
112 pinctrl-names = "default";
113 pinctrl-0 = <&i2c2_pins>;
118 clock-frequency = <100000>;
119 i2c-sda-hold-time-ns = <300>;
120 i2c-sda-falling-time-ns = <510>;
121 i2c-scl-falling-time-ns = <510>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&i2c5_pins>;
128 clock-frequency = <100000>;
129 i2c-sda-hold-time-ns = <300>;
130 i2c-sda-falling-time-ns = <510>;
131 i2c-scl-falling-time-ns = <510>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&i2c6_pins>;
138 max-frequency = <100000000>;
145 post-power-on-delay-ms = <200>;
150 max-frequency = <100000000>;
156 post-power-on-delay-ms = <200>;
161 pinctrl-names = "default";
162 pinctrl-0 = <&pwm_pins>;
169 pinmux = <GPIOMUX(57, GPOUT_LOW,
172 <GPIOMUX(58, GPOUT_LOW,
175 bias-disable; /* external pull-up */
177 input-schmitt-enable;
183 pinmux = <GPIOMUX(3, GPOUT_LOW,
186 <GPIOMUX(2, GPOUT_LOW,
189 bias-disable; /* external pull-up */
191 input-schmitt-enable;
197 pinmux = <GPIOMUX(19, GPOUT_LOW,
200 <GPIOMUX(20, GPOUT_LOW,
203 bias-disable; /* external pull-up */
205 input-schmitt-enable;
211 pinmux = <GPIOMUX(16, GPOUT_LOW,
214 <GPIOMUX(17, GPOUT_LOW,
217 bias-disable; /* external pull-up */
219 input-schmitt-enable;
225 pinmux = <GPIOMUX(46, GPOUT_SYS_PWM_CHANNEL0,
226 GPOEN_SYS_PWM0_CHANNEL0, GPI_NONE)>,
227 <GPIOMUX(59, GPOUT_SYS_PWM_CHANNEL1,
228 GPOEN_SYS_PWM0_CHANNEL1, GPI_NONE)>;
230 drive-strength = <12>;
232 input-schmitt-disable;
237 uart0_pins: uart0-0 {
239 pinmux = <GPIOMUX(5, GPOUT_SYS_UART0_TX,
243 drive-strength = <12>;
245 input-schmitt-disable;
250 pinmux = <GPIOMUX(6, GPOUT_LOW,
253 bias-disable; /* external pull-up */
254 drive-strength = <2>;
256 input-schmitt-enable;
263 pinctrl-names = "default";
264 pinctrl-0 = <&uart0_pins>;