Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /dts-v1/;
0003 
0004 #include "x1830.dtsi"
0005 #include <dt-bindings/gpio/gpio.h>
0006 #include <dt-bindings/clock/ingenic,sysost.h>
0007 #include <dt-bindings/interrupt-controller/irq.h>
0008 
0009 / {
0010         compatible = "yna,cu1830-neo", "ingenic,x1830";
0011         model = "YSH & ATIL General Board CU1830-Neo";
0012 
0013         aliases {
0014                 serial1 = &uart1;
0015         };
0016 
0017         chosen {
0018                 stdout-path = "serial1:115200n8";
0019         };
0020 
0021         memory {
0022                 device_type = "memory";
0023                 reg = <0x0 0x08000000>;
0024         };
0025 
0026         leds {
0027                 compatible = "gpio-leds";
0028                 led-0 {
0029                         gpios = <&gpc 17 GPIO_ACTIVE_HIGH>;
0030                         linux,default-trigger = "mmc0";
0031                 };
0032         };
0033 
0034         wlan_pwrseq: msc1-pwrseq {
0035                 compatible = "mmc-pwrseq-simple";
0036 
0037                 reset-gpios = <&gpc 13 GPIO_ACTIVE_LOW>;
0038                 post-power-on-delay-ms = <200>;
0039         };
0040 };
0041 
0042 &exclk {
0043         clock-frequency = <24000000>;
0044 };
0045 
0046 &cgu {
0047         /*
0048          * Use the 32.768 kHz oscillator as the parent of the RTC for a higher
0049          * precision.
0050          */
0051         assigned-clocks = <&cgu X1830_CLK_RTC>;
0052         assigned-clock-parents = <&cgu X1830_CLK_RTCLK>;
0053 };
0054 
0055 &ost {
0056         /* 1500 kHz for the system timer and clocksource */
0057         assigned-clocks = <&ost OST_CLK_EVENT_TIMER>, <&ost OST_CLK_GLOBAL_TIMER>;
0058         assigned-clock-rates = <1500000>, <1500000>;
0059 };
0060 
0061 &uart1 {
0062         status = "okay";
0063 
0064         pinctrl-names = "default";
0065         pinctrl-0 = <&pins_uart1>;
0066 };
0067 
0068 &ssi0 {
0069         status = "okay";
0070 
0071         num-cs = <2>;
0072 
0073         pinctrl-names = "default";
0074         pinctrl-0 = <&pins_ssi0>;
0075 
0076         sc16is752: expander@0 {
0077                 compatible = "nxp,sc16is752";
0078                 reg = <0>; /* CE0 */
0079 
0080                 spi-rx-bus-width = <1>;
0081                 spi-tx-bus-width = <1>;
0082                 spi-max-frequency = <4000000>;
0083 
0084                 clocks = <&exclk_sc16is752>;
0085 
0086                 interrupt-parent = <&gpb>;
0087                 interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
0088 
0089                 gpio-controller;
0090                 #gpio-cells = <2>;
0091 
0092                 exclk_sc16is752: sc16is752 {
0093                         compatible = "fixed-clock";
0094                         #clock-cells = <0>;
0095                         clock-frequency = <48000000>;
0096                 };
0097         };
0098 };
0099 
0100 &i2c0 {
0101         status = "okay";
0102 
0103         clock-frequency = <400000>;
0104 
0105         pinctrl-names = "default";
0106         pinctrl-0 = <&pins_i2c0>;
0107 
0108         ads7830: adc@48 {
0109                 compatible = "ti,ads7830";
0110                 reg = <0x48>;
0111         };
0112 };
0113 
0114 &dtrng {
0115         status = "okay";
0116 };
0117 
0118 &msc0 {
0119         status = "okay";
0120 
0121         bus-width = <4>;
0122         max-frequency = <50000000>;
0123 
0124         pinctrl-names = "default";
0125         pinctrl-0 = <&pins_msc0>;
0126 
0127         non-removable;
0128 };
0129 
0130 &msc1 {
0131         status = "okay";
0132 
0133         #address-cells = <1>;
0134         #size-cells = <0>;
0135         bus-width = <4>;
0136         max-frequency = <50000000>;
0137 
0138         pinctrl-names = "default";
0139         pinctrl-0 = <&pins_msc1>;
0140 
0141         non-removable;
0142 
0143         mmc-pwrseq = <&wlan_pwrseq>;
0144 
0145         ap6212a: wifi@1 {
0146                 compatible = "brcm,bcm4329-fmac";
0147                 reg = <1>;
0148 
0149                 interrupt-parent = <&gpc>;
0150                 interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
0151                 interrupt-names = "host-wake";
0152 
0153                 brcm,drive-strength = <10>;
0154         };
0155 };
0156 
0157 &mac {
0158         status = "okay";
0159 
0160         phy-mode = "rmii";
0161         phy-handle = <&ip101gr>;
0162 
0163         pinctrl-names = "default";
0164         pinctrl-0 = <&pins_mac>;
0165 
0166         snps,reset-gpio = <&gpb 28 GPIO_ACTIVE_LOW>; /* PB28 */
0167         snps,reset-active-low;
0168         snps,reset-delays-us = <0 10000 30000>;
0169 };
0170 
0171 &mdio {
0172         status = "okay";
0173 
0174         ip101gr: ethernet-phy@0 {
0175                 compatible = "ethernet-phy-id0243.0c54", "ethernet-phy-ieee802.3-c22";
0176                 reg = <0>;
0177         };
0178 };
0179 
0180 &otg_phy {
0181         status = "okay";
0182 };
0183 
0184 &otg {
0185         status = "okay";
0186 };
0187 
0188 &pinctrl {
0189         pins_uart1: uart1 {
0190                 function = "uart1";
0191                 groups = "uart1-data";
0192                 bias-pull-up;
0193         };
0194 
0195         pins_ssi0: ssi0 {
0196                 function = "ssi0";
0197                 groups = "ssi0-dt", "ssi0-dr", "ssi0-clk", "ssi0-ce0", "ssi0-ce1";
0198                 bias-disable;
0199         };
0200 
0201         pins_i2c0: i2c0 {
0202                 function = "i2c0";
0203                 groups = "i2c0-data";
0204                 bias-pull-up;
0205         };
0206 
0207         pins_msc0: msc0 {
0208                 function = "mmc0";
0209                 groups = "mmc0-1bit", "mmc0-4bit";
0210                 bias-disable;
0211         };
0212 
0213         pins_msc1: msc1 {
0214                 function = "mmc1";
0215                 groups = "mmc1-1bit", "mmc1-4bit";
0216                 bias-disable;
0217         };
0218 
0219         pins_mac: mac {
0220                 function = "mac";
0221                 groups = "mac";
0222                 bias-disable;
0223         };
0224 };