1/dts-v1/; 2#include <dt-bindings/gpio/gpio.h> 3#include <dt-bindings/input/input.h> 4 5/ { 6 model = "C-SKY gx6605s"; 7 compatible = "csky,gx6605s"; 8 #address-cells = <1>; 9 #size-cells = <1>; 10 11 memory { 12 device_type = "memory"; 13 reg = <0x10000000 0x04000000>; 14 }; 15 16 soc { 17 #address-cells = <1>; 18 #size-cells = <1>; 19 compatible = "simple-bus"; 20 ranges; 21 22 dummy_apb: apb-clock { 23 compatible = "fixed-clock"; 24 clock-frequency = <27000000>; 25 clock-output-names = "dummy_apb"; 26 #clock-cells = <0>; 27 }; 28 29 intc: interrupt-controller@500000 { 30 compatible = "csky,gx6605s-intc"; 31 reg = <0x00500000 0x400>; 32 interrupt-controller; 33 #interrupt-cells = <1>; 34 }; 35 36 timer@20a000 { 37 compatible = "csky,gx6605s-timer"; 38 reg = <0x0020a000 0x400>; 39 clocks = <&dummy_apb>; 40 interrupts = <10>; 41 interrupt-parent = <&intc>; 42 }; 43 44 ehci-hcd@900000 { 45 compatible = "generic-ehci"; 46 reg = <0x00900000 0x400>; 47 interrupt-parent = <&intc>; 48 interrupts = <59>; 49 }; 50 51 ohci-hcd0@a00000 { 52 compatible = "generic-ohci"; 53 reg = <0x00a00000 0x400>; 54 interrupt-parent = <&intc>; 55 interrupts = <58>; 56 }; 57 58 ohci-hcd1@b00000 { 59 compatible = "generic-ohci"; 60 reg = <0x00b00000 0x400>; 61 interrupt-parent = <&intc>; 62 interrupts = <57>; 63 }; 64 65 serial@403000 { 66 compatible = "ns16550a"; 67 reg = <0x00403000 0x400>; 68 interrupt-parent = <&intc>; 69 interrupts = <15>; 70 clock-frequency = <29491200>; 71 baud = <115200>; 72 reg-shift = <2>; 73 reg-io-width = <1>; 74 }; 75 76 gpio0: gpio@305000 { 77 compatible = "wd,mbl-gpio"; 78 reg-names = "dirout", "dat", "set", "clr"; 79 reg = <0x305000 4>, <0x305004 4>, <0x305008 4>, <0x30500c 4>; 80 bgpio-base = <0>; 81 #gpio-cells = <2>; 82 gpio-controller; 83 }; 84 85 gpio_buttons { 86 compatible = "gpio-keys-polled"; 87 #address-cells = <1>; 88 #size-cells = <0>; 89 poll-interval = <100>; 90 autorepeat; 91 92 button0 { 93 label = "button8"; 94 linux,code = <KEY_LEFT>; 95 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; 96 }; 97 98 button1 { 99 label = "button6"; 100 linux,code = <KEY_RIGHT>; 101 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; 102 }; 103 104 button2 { 105 label = "button5"; 106 linux,code = <KEY_UP>; 107 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; 108 }; 109 110 button3 { 111 label = "button9"; 112 linux,code = <KEY_DOWN>; 113 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; 114 }; 115 116 button4 { 117 label = "button7"; 118 linux,code = <KEY_ENTER>; 119 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; 120 }; 121 }; 122 123 gpio_leds { 124 compatible = "gpio-leds"; 125 126 led0 { 127 label = "led10"; 128 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; 129 linux,default-trigger = "heartbeat"; 130 }; 131 132 led1 { 133 label = "led11"; 134 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; 135 linux,default-trigger = "timer"; 136 }; 137 138 led2 { 139 label = "led12"; 140 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; 141 linux,default-trigger = "default-on"; 142 }; 143 144 led3 { 145 label = "led13"; 146 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; 147 linux,default-trigger = "default-on"; 148 }; 149 }; 150 }; 151 152 chosen { 153 bootargs = "console=ttyS0,115200 init=/sbin/init root=/dev/sda2 rw rootwait"; 154 }; 155}; 156