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>
26 stdout-path = "serial0:115200n8";
30 timebase-frequency = <4000000>;
34 device_type = "memory";
35 reg = <0x0 0x40000000 0x1 0x0>;
40 polling-delay-passive = <250>;
41 polling-delay = <15000>;
43 thermal-sensors = <&sfctemp>;
49 cpu_alert0: cpu_alert0 {
51 temperature = <75000>;
58 temperature = <90000>;
67 compatible = "gpio-restart";
68 gpios = <&sysgpio 35 GPIO_ACTIVE_HIGH>;
74 clock-frequency = <74250000>;
78 clock-frequency = <125000000>;
82 clock-frequency = <50000000>;
86 clock-frequency = <125000000>;
90 clock-frequency = <50000000>;
94 clock-frequency = <297000000>;
98 clock-frequency = <12288000>;
102 clock-frequency = <192000>;
106 clock-frequency = <12288000>;
110 clock-frequency = <192000>;
114 clock-frequency = <12288000>;
118 clock-frequency = <24000000>;
122 clock-frequency = <32768>;
126 clock-frequency = <49152000>;
130 phy-handle = <&phy0>;
131 phy-mode = "rgmii-id";
135 #address-cells = <1>;
137 compatible = "snps,dwmac-mdio";
139 phy0: ethernet-phy@0 {
146 phy-handle = <&phy1>;
147 phy-mode = "rgmii-id";
151 #address-cells = <1>;
153 compatible = "snps,dwmac-mdio";
155 phy1: ethernet-phy@1 {
162 clock-frequency = <100000>;
163 i2c-sda-hold-time-ns = <300>;
164 i2c-sda-falling-time-ns = <510>;
165 i2c-scl-falling-time-ns = <510>;
166 pinctrl-names = "default";
167 pinctrl-0 = <&i2c0_pins>;
172 clock-frequency = <100000>;
173 i2c-sda-hold-time-ns = <300>;
174 i2c-sda-falling-time-ns = <510>;
175 i2c-scl-falling-time-ns = <510>;
176 pinctrl-names = "default";
177 pinctrl-0 = <&i2c2_pins>;
182 clock-frequency = <100000>;
183 i2c-sda-hold-time-ns = <300>;
184 i2c-sda-falling-time-ns = <510>;
185 i2c-scl-falling-time-ns = <510>;
186 pinctrl-names = "default";
187 pinctrl-0 = <&i2c5_pins>;
191 compatible = "x-powers,axp15060";
197 regulator-min-microvolt = <500000>;
198 regulator-max-microvolt = <1540000>;
199 regulator-name = "vdd-cpu";
206 clock-frequency = <100000>;
207 i2c-sda-hold-time-ns = <300>;
208 i2c-sda-falling-time-ns = <510>;
209 i2c-scl-falling-time-ns = <510>;
210 pinctrl-names = "default";
211 pinctrl-0 = <&i2c6_pins>;
216 max-frequency = <100000000>;
223 post-power-on-delay-ms = <200>;
228 max-frequency = <100000000>;
234 post-power-on-delay-ms = <200>;
239 pinctrl-names = "default";
240 reset-gpios = <&sysgpio 26 GPIO_ACTIVE_LOW>;
246 pinctrl-names = "default";
247 reset-gpios = <&sysgpio 28 GPIO_ACTIVE_LOW>;
253 pinctrl-names = "default";
254 pinctrl-0 = <&pwm_pins>;
261 pinmux = <GPIOMUX(57, GPOUT_LOW,
264 <GPIOMUX(58, GPOUT_LOW,
267 bias-disable; /* external pull-up */
269 input-schmitt-enable;
275 pinmux = <GPIOMUX(3, GPOUT_LOW,
278 <GPIOMUX(2, GPOUT_LOW,
281 bias-disable; /* external pull-up */
283 input-schmitt-enable;
289 pinmux = <GPIOMUX(19, GPOUT_LOW,
292 <GPIOMUX(20, GPOUT_LOW,
295 bias-disable; /* external pull-up */
297 input-schmitt-enable;
303 pinmux = <GPIOMUX(16, GPOUT_LOW,
306 <GPIOMUX(17, GPOUT_LOW,
309 bias-disable; /* external pull-up */
311 input-schmitt-enable;
315 pcie0_wake_default: pcie0_wake_default {
317 pinmux = <GPIOMUX(32, GPOUT_HIGH, GPOEN_ENABLE, GPI_NONE)>;
319 drive-strength = <2>;
321 input-schmitt-disable;
326 pcie0_clkreq_default: pcie0_clkreq_default {
329 pinmux = <GPIOMUX(27, GPOUT_HIGH, GPOEN_ENABLE, GPI_NONE)>;
330 drive-strength = <2>;
332 input-schmitt-disable;
337 pcie1_wake_default: pcie1_wake_default {
340 pinmux = <GPIOMUX(21, GPOUT_HIGH, GPOEN_ENABLE, GPI_NONE)>;
341 drive-strength = <2>;
343 input-schmitt-disable;
348 pcie1_clkreq_default: pcie1_clkreq_default {
351 pinmux = <GPIOMUX(29, GPOUT_HIGH, GPOEN_ENABLE, GPI_NONE)>;
352 drive-strength = <2>;
354 input-schmitt-disable;
361 pinmux = <GPIOMUX(46, GPOUT_SYS_PWM_CHANNEL0,
362 GPOEN_SYS_PWM0_CHANNEL0, GPI_NONE)>,
363 <GPIOMUX(59, GPOUT_SYS_PWM_CHANNEL1,
364 GPOEN_SYS_PWM0_CHANNEL1, GPI_NONE)>;
366 drive-strength = <12>;
368 input-schmitt-disable;
373 uart0_pins: uart0-0 {
375 pinmux = <GPIOMUX(5, GPOUT_SYS_UART0_TX,
379 drive-strength = <12>;
381 input-schmitt-disable;
386 pinmux = <GPIOMUX(6, GPOUT_LOW,
389 bias-disable; /* external pull-up */
390 drive-strength = <2>;
392 input-schmitt-enable;
397 mclk_ext_pins: mclk-ext-pins {
399 pinmux = <GPIOMUX(4, GPOUT_HIGH,
405 pwmdac0_pins: pwmdac0-pins {
407 pinmux = <GPIOMUX(33, GPOUT_SYS_PWMDAC_LEFT,
413 pinmux = <GPIOMUX(34, GPOUT_SYS_PWMDAC_RIGHT,
421 pinctrl-names = "default";
422 pinctrl-0 = <&uart0_pins>;
428 usbdrd_cdns3: usb@0 {
429 dr_mode = "peripheral";
434 cpu-supply = <&vdd_cpu>;
438 cpu-supply = <&vdd_cpu>;
442 cpu-supply = <&vdd_cpu>;
446 cpu-supply = <&vdd_cpu>;
450 pinctrl-names = "default";
451 pinctrl-0 = <&mclk_ext_pins>;
456 simple-audio-card,dai-link@0 {
459 bitclock-master = <&sndcpu0>;
460 frame-master = <&sndcpu0>;
464 sound-dai = <&pwmdac>;
468 sound-dai = <&pwmdac_codec>;
474 pinctrl-names = "default";
475 pinctrl-0 = <&pwmdac0_pins>;