blob: df3712aedf8aad3aa1f1142af049ecbfe96fd85c [file] [log] [blame]
Jagan Teki29dac632020-06-10 16:06:57 +05301// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
4 * Copyright (c) 2019 Radxa Limited
5 * Copyright (c) 2019 Amarula Solutions(India)
6 */
7
8#include <dt-bindings/pwm/pwm.h>
9
10/ {
11 chosen {
12 stdout-path = "serial2:1500000n8";
13 };
14};
15
16&gmac {
17 status = "okay";
18};
19
20&i2c1 {
21 status = "okay";
22 i2c-scl-rising-time-ns = <140>;
23 i2c-scl-falling-time-ns = <30>;
24};
25
26&i2c2 {
27 status = "okay";
28 clock-frequency = <400000>;
29
30 hym8563: hym8563@51 {
31 compatible = "haoyu,hym8563";
32 reg = <0x51>;
33 #clock-cells = <0>;
34 clock-frequency = <32768>;
35 clock-output-names = "hym8563";
36 pinctrl-names = "default";
37 pinctrl-0 = <&hym8563_int>;
38 interrupt-parent = <&gpio4>;
39 interrupts = <30 IRQ_TYPE_LEVEL_LOW>;
40 };
41};
42
43&pwm0 {
44 status = "okay";
45};
46
47&pwm2 {
48 status = "okay";
49};
50
51&sdmmc {
52 bus-width = <4>;
53 cap-mmc-highspeed;
54 cap-sd-highspeed;
55 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
56 disable-wp;
57 vqmmc-supply = <&vccio_sd>;
58 max-frequency = <150000000>;
59 pinctrl-names = "default";
60 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
61 status = "okay";
62};
63
64&uart0 {
65 pinctrl-names = "default";
66 pinctrl-0 = <&uart0_xfer &uart0_cts>;
67 status = "okay";
68};
69
70&uart2 {
71 status = "okay";
72};
73
74&pinctrl {
75 hym8563 {
76 hym8563_int: hym8563-int {
77 rockchip,pins =
78 <4 RK_PD6 0 &pcfg_pull_up>;
79 };
80 };
81};