1// SPDX-License-Identifier: GPL-2.0 2/dts-v1/; 3 4#include "x1830.dtsi" 5#include <dt-bindings/gpio/gpio.h> 6#include <dt-bindings/clock/ingenic,sysost.h> 7#include <dt-bindings/interrupt-controller/irq.h> 8 9/ { 10 compatible = "yna,cu1830-neo", "ingenic,x1830"; 11 model = "YSH & ATIL General Board CU1830-Neo"; 12 13 aliases { 14 serial1 = &uart1; 15 }; 16 17 chosen { 18 stdout-path = "serial1:115200n8"; 19 }; 20 21 memory { 22 device_type = "memory"; 23 reg = <0x0 0x08000000>; 24 }; 25 26 leds { 27 compatible = "gpio-leds"; 28 led-0 { 29 gpios = <&gpc 17 GPIO_ACTIVE_HIGH>; 30 linux,default-trigger = "mmc0"; 31 }; 32 }; 33 34 ssi0: spi-gpio { 35 compatible = "spi-gpio"; 36 #address-cells = <1>; 37 #size-cells = <0>; 38 num-chipselects = <1>; 39 40 mosi-gpios = <&gpc 12 GPIO_ACTIVE_HIGH>; 41 miso-gpios = <&gpc 11 GPIO_ACTIVE_HIGH>; 42 sck-gpios = <&gpc 15 GPIO_ACTIVE_HIGH>; 43 cs-gpios = <&gpc 16 GPIO_ACTIVE_HIGH>; 44 45 status = "okay"; 46 47 spi-max-frequency = <50000000>; 48 49 sc16is752: expander@0 { 50 compatible = "nxp,sc16is752"; 51 reg = <0>; /* CE0 */ 52 spi-max-frequency = <4000000>; 53 54 clocks = <&exclk_sc16is752>; 55 56 interrupt-parent = <&gpb>; 57 interrupts = <18 IRQ_TYPE_EDGE_FALLING>; 58 59 gpio-controller; 60 #gpio-cells = <2>; 61 62 exclk_sc16is752: sc16is752 { 63 compatible = "fixed-clock"; 64 #clock-cells = <0>; 65 clock-frequency = <48000000>; 66 }; 67 }; 68 }; 69 70 wlan_pwrseq: msc1-pwrseq { 71 compatible = "mmc-pwrseq-simple"; 72 73 reset-gpios = <&gpc 13 GPIO_ACTIVE_LOW>; 74 post-power-on-delay-ms = <200>; 75 }; 76}; 77 78&exclk { 79 clock-frequency = <24000000>; 80}; 81 82&cgu { 83 /* 84 * Use the 32.768 kHz oscillator as the parent of the RTC for a higher 85 * precision. 86 */ 87 assigned-clocks = <&cgu X1830_CLK_RTC>; 88 assigned-clock-parents = <&cgu X1830_CLK_RTCLK>; 89}; 90 91&ost { 92 /* 1500 kHz for the system timer and clocksource */ 93 assigned-clocks = <&ost OST_CLK_PERCPU_TIMER>, <&ost OST_CLK_GLOBAL_TIMER>; 94 assigned-clock-rates = <1500000>, <1500000>; 95}; 96 97&uart1 { 98 status = "okay"; 99 100 pinctrl-names = "default"; 101 pinctrl-0 = <&pins_uart1>; 102}; 103 104&i2c0 { 105 status = "okay"; 106 107 clock-frequency = <400000>; 108 109 pinctrl-names = "default"; 110 pinctrl-0 = <&pins_i2c0>; 111 112 ads7830: adc@48 { 113 compatible = "ti,ads7830"; 114 reg = <0x48>; 115 }; 116}; 117 118&dtrng { 119 status = "okay"; 120}; 121 122&msc0 { 123 status = "okay"; 124 125 bus-width = <4>; 126 max-frequency = <50000000>; 127 128 pinctrl-names = "default"; 129 pinctrl-0 = <&pins_msc0>; 130 131 non-removable; 132}; 133 134&msc1 { 135 status = "okay"; 136 137 #address-cells = <1>; 138 #size-cells = <0>; 139 bus-width = <4>; 140 max-frequency = <50000000>; 141 142 pinctrl-names = "default"; 143 pinctrl-0 = <&pins_msc1>; 144 145 non-removable; 146 147 mmc-pwrseq = <&wlan_pwrseq>; 148 149 ap6212a: wifi@1 { 150 compatible = "brcm,bcm4329-fmac"; 151 reg = <1>; 152 153 interrupt-parent = <&gpc>; 154 interrupts = <25 IRQ_TYPE_EDGE_FALLING>; 155 interrupt-names = "host-wake"; 156 157 brcm,drive-strength = <10>; 158 }; 159}; 160 161&mac { 162 status = "okay"; 163 164 phy-mode = "rmii"; 165 phy-handle = <&ip101gr>; 166 167 pinctrl-names = "default"; 168 pinctrl-0 = <&pins_mac>; 169 170 snps,reset-gpio = <&gpb 28 GPIO_ACTIVE_LOW>; /* PB28 */ 171 snps,reset-active-low; 172 snps,reset-delays-us = <0 10000 30000>; 173}; 174 175&mdio { 176 status = "okay"; 177 178 ip101gr: ethernet-phy@0 { 179 compatible = "ethernet-phy-id0243.0c54", "ethernet-phy-ieee802.3-c22"; 180 reg = <0>; 181 }; 182}; 183 184&otg_phy { 185 status = "okay"; 186}; 187 188&otg { 189 status = "okay"; 190}; 191 192&pinctrl { 193 pins_uart1: uart1 { 194 function = "uart1"; 195 groups = "uart1-data"; 196 bias-pull-up; 197 }; 198 199 pins_i2c0: i2c0 { 200 function = "i2c0"; 201 groups = "i2c0-data"; 202 bias-pull-up; 203 }; 204 205 pins_msc0: msc0 { 206 function = "mmc0"; 207 groups = "mmc0-1bit", "mmc0-4bit"; 208 bias-disable; 209 }; 210 211 pins_msc1: msc1 { 212 function = "mmc1"; 213 groups = "mmc1-1bit", "mmc1-4bit"; 214 bias-disable; 215 }; 216 217 pins_mac: mac { 218 function = "mac"; 219 groups = "mac"; 220 bias-disable; 221 }; 222}; 223