Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Maxime Ripard |
| 3 | * |
| 4 | * Maxime Ripard <maxime.ripard@free-electrons.com> |
| 5 | * |
| 6 | * The code contained herein is licensed under the GNU General Public |
| 7 | * License. You may obtain a copy of the GNU General Public License |
| 8 | * Version 2 or later at the following locations: |
| 9 | * |
| 10 | * http://www.opensource.org/licenses/gpl-license.html |
| 11 | * http://www.gnu.org/copyleft/gpl.html |
| 12 | */ |
| 13 | |
| 14 | /dts-v1/; |
Maxime Ripard | 7145570 | 2014-12-16 22:59:54 +0100 | [diff] [blame] | 15 | #include "sun7i-a20.dtsi" |
| 16 | #include "sunxi-common-regulators.dtsi" |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 17 | |
Maxime Ripard | bca1292 | 2014-12-16 22:59:55 +0100 | [diff] [blame] | 18 | #include <dt-bindings/gpio/gpio.h> |
Maxime Ripard | a6bac9e | 2014-12-16 22:59:59 +0100 | [diff] [blame] | 19 | #include <dt-bindings/interrupt-controller/irq.h> |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 20 | #include <dt-bindings/pinctrl/sun4i-a10.h> |
Maxime Ripard | bca1292 | 2014-12-16 22:59:55 +0100 | [diff] [blame] | 21 | |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 22 | / { |
| 23 | model = "Cubietech Cubieboard2"; |
| 24 | compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20"; |
| 25 | |
| 26 | soc@01c00000 { |
Hans de Goede | c621183 | 2014-05-02 17:57:28 +0200 | [diff] [blame] | 27 | mmc0: mmc@01c0f000 { |
| 28 | pinctrl-names = "default"; |
| 29 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |
Hans de Goede | 0ed9eab | 2014-05-11 09:46:57 +0200 | [diff] [blame] | 30 | vmmc-supply = <®_vcc3v3>; |
Hans de Goede | c621183 | 2014-05-02 17:57:28 +0200 | [diff] [blame] | 31 | bus-width = <4>; |
Maxime Ripard | bca1292 | 2014-12-16 22:59:55 +0100 | [diff] [blame] | 32 | cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ |
Hans de Goede | c621183 | 2014-05-02 17:57:28 +0200 | [diff] [blame] | 33 | cd-inverted; |
| 34 | status = "okay"; |
| 35 | }; |
| 36 | |
Roman Byshko | 52305e2 | 2014-03-01 20:26:35 +0100 | [diff] [blame] | 37 | usbphy: phy@01c13400 { |
| 38 | usb1_vbus-supply = <®_usb1_vbus>; |
| 39 | usb2_vbus-supply = <®_usb2_vbus>; |
| 40 | status = "okay"; |
| 41 | }; |
| 42 | |
| 43 | ehci0: usb@01c14000 { |
| 44 | status = "okay"; |
| 45 | }; |
| 46 | |
| 47 | ohci0: usb@01c14400 { |
| 48 | status = "okay"; |
| 49 | }; |
| 50 | |
Hans de Goede | 902febf | 2014-03-01 20:26:22 +0100 | [diff] [blame] | 51 | ahci: sata@01c18000 { |
| 52 | target-supply = <®_ahci_5v>; |
| 53 | status = "okay"; |
| 54 | }; |
| 55 | |
Roman Byshko | 52305e2 | 2014-03-01 20:26:35 +0100 | [diff] [blame] | 56 | ehci1: usb@01c1c000 { |
| 57 | status = "okay"; |
| 58 | }; |
| 59 | |
| 60 | ohci1: usb@01c1c400 { |
| 61 | status = "okay"; |
| 62 | }; |
| 63 | |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 64 | pinctrl@01c20800 { |
| 65 | led_pins_cubieboard2: led_pins@0 { |
| 66 | allwinner,pins = "PH20", "PH21"; |
| 67 | allwinner,function = "gpio_out"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 68 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 69 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 70 | }; |
| 71 | }; |
| 72 | |
Alexander Bersenev | 0256452 | 2014-06-09 00:08:13 +0600 | [diff] [blame] | 73 | ir0: ir@01c21800 { |
| 74 | pinctrl-names = "default"; |
| 75 | pinctrl-0 = <&ir0_pins_a>; |
| 76 | status = "okay"; |
| 77 | }; |
| 78 | |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 79 | uart0: serial@01c28000 { |
| 80 | pinctrl-names = "default"; |
| 81 | pinctrl-0 = <&uart0_pins_a>; |
| 82 | status = "okay"; |
| 83 | }; |
Maxime Ripard | ce0106c | 2013-08-31 23:12:58 +0200 | [diff] [blame] | 84 | |
| 85 | i2c0: i2c@01c2ac00 { |
| 86 | pinctrl-names = "default"; |
| 87 | pinctrl-0 = <&i2c0_pins_a>; |
| 88 | status = "okay"; |
Carlo Caione | ec0c933 | 2014-06-30 23:57:53 +0200 | [diff] [blame] | 89 | |
| 90 | axp209: pmic@34 { |
Carlo Caione | ec0c933 | 2014-06-30 23:57:53 +0200 | [diff] [blame] | 91 | reg = <0x34>; |
| 92 | interrupt-parent = <&nmi_intc>; |
Maxime Ripard | a6bac9e | 2014-12-16 22:59:59 +0100 | [diff] [blame] | 93 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
Carlo Caione | ec0c933 | 2014-06-30 23:57:53 +0200 | [diff] [blame] | 94 | }; |
Maxime Ripard | ce0106c | 2013-08-31 23:12:58 +0200 | [diff] [blame] | 95 | }; |
| 96 | |
| 97 | i2c1: i2c@01c2b000 { |
| 98 | pinctrl-names = "default"; |
| 99 | pinctrl-0 = <&i2c1_pins_a>; |
| 100 | status = "okay"; |
| 101 | }; |
Chen-Yu Tsai | 5e71892 | 2014-02-10 18:35:52 +0800 | [diff] [blame] | 102 | |
| 103 | gmac: ethernet@01c50000 { |
| 104 | pinctrl-names = "default"; |
| 105 | pinctrl-0 = <&gmac_pins_mii_a>; |
| 106 | phy = <&phy1>; |
| 107 | phy-mode = "mii"; |
| 108 | status = "okay"; |
| 109 | |
| 110 | phy1: ethernet-phy@1 { |
| 111 | reg = <1>; |
| 112 | }; |
| 113 | }; |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 114 | }; |
| 115 | |
| 116 | leds { |
| 117 | compatible = "gpio-leds"; |
| 118 | pinctrl-names = "default"; |
| 119 | pinctrl-0 = <&led_pins_cubieboard2>; |
| 120 | |
| 121 | blue { |
| 122 | label = "cubieboard2:blue:usr"; |
Maxime Ripard | bca1292 | 2014-12-16 22:59:55 +0100 | [diff] [blame] | 123 | gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 124 | }; |
| 125 | |
| 126 | green { |
| 127 | label = "cubieboard2:green:usr"; |
Maxime Ripard | bca1292 | 2014-12-16 22:59:55 +0100 | [diff] [blame] | 128 | gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 129 | }; |
| 130 | }; |
Hans de Goede | 902febf | 2014-03-01 20:26:22 +0100 | [diff] [blame] | 131 | |
| 132 | reg_ahci_5v: ahci-5v { |
| 133 | status = "okay"; |
| 134 | }; |
Roman Byshko | 52305e2 | 2014-03-01 20:26:35 +0100 | [diff] [blame] | 135 | |
| 136 | reg_usb1_vbus: usb1-vbus { |
| 137 | status = "okay"; |
| 138 | }; |
| 139 | |
| 140 | reg_usb2_vbus: usb2-vbus { |
| 141 | status = "okay"; |
| 142 | }; |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 143 | }; |
Chen-Yu Tsai | ae265c8 | 2015-01-12 12:34:04 +0800 | [diff] [blame^] | 144 | |
| 145 | #include "axp209.dtsi" |
| 146 | |
| 147 | &cpu0 { |
| 148 | cpu-supply = <®_dcdc2>; |
| 149 | }; |
| 150 | |
| 151 | ®_dcdc2 { |
| 152 | regulator-always-on; |
| 153 | regulator-min-microvolt = <1000000>; |
| 154 | regulator-max-microvolt = <1450000>; |
| 155 | regulator-name = "vdd-cpu"; |
| 156 | }; |
| 157 | |
| 158 | ®_dcdc3 { |
| 159 | regulator-always-on; |
| 160 | regulator-min-microvolt = <1000000>; |
| 161 | regulator-max-microvolt = <1400000>; |
| 162 | regulator-name = "vdd-int-dll"; |
| 163 | }; |
| 164 | |
| 165 | ®_ldo1 { |
| 166 | regulator-name = "vdd-rtc"; |
| 167 | }; |
| 168 | |
| 169 | ®_ldo2 { |
| 170 | regulator-always-on; |
| 171 | regulator-min-microvolt = <3000000>; |
| 172 | regulator-max-microvolt = <3000000>; |
| 173 | regulator-name = "avcc"; |
| 174 | }; |