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> |
| 19 | |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 20 | / { |
| 21 | model = "Cubietech Cubieboard2"; |
| 22 | compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20"; |
| 23 | |
| 24 | soc@01c00000 { |
Hans de Goede | c621183 | 2014-05-02 17:57:28 +0200 | [diff] [blame] | 25 | mmc0: mmc@01c0f000 { |
| 26 | pinctrl-names = "default"; |
| 27 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |
Hans de Goede | 0ed9eab | 2014-05-11 09:46:57 +0200 | [diff] [blame] | 28 | vmmc-supply = <®_vcc3v3>; |
Hans de Goede | c621183 | 2014-05-02 17:57:28 +0200 | [diff] [blame] | 29 | bus-width = <4>; |
Maxime Ripard | bca1292 | 2014-12-16 22:59:55 +0100 | [diff] [blame^] | 30 | cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ |
Hans de Goede | c621183 | 2014-05-02 17:57:28 +0200 | [diff] [blame] | 31 | cd-inverted; |
| 32 | status = "okay"; |
| 33 | }; |
| 34 | |
Roman Byshko | 52305e2 | 2014-03-01 20:26:35 +0100 | [diff] [blame] | 35 | usbphy: phy@01c13400 { |
| 36 | usb1_vbus-supply = <®_usb1_vbus>; |
| 37 | usb2_vbus-supply = <®_usb2_vbus>; |
| 38 | status = "okay"; |
| 39 | }; |
| 40 | |
| 41 | ehci0: usb@01c14000 { |
| 42 | status = "okay"; |
| 43 | }; |
| 44 | |
| 45 | ohci0: usb@01c14400 { |
| 46 | status = "okay"; |
| 47 | }; |
| 48 | |
Hans de Goede | 902febf | 2014-03-01 20:26:22 +0100 | [diff] [blame] | 49 | ahci: sata@01c18000 { |
| 50 | target-supply = <®_ahci_5v>; |
| 51 | status = "okay"; |
| 52 | }; |
| 53 | |
Roman Byshko | 52305e2 | 2014-03-01 20:26:35 +0100 | [diff] [blame] | 54 | ehci1: usb@01c1c000 { |
| 55 | status = "okay"; |
| 56 | }; |
| 57 | |
| 58 | ohci1: usb@01c1c400 { |
| 59 | status = "okay"; |
| 60 | }; |
| 61 | |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 62 | pinctrl@01c20800 { |
| 63 | led_pins_cubieboard2: led_pins@0 { |
| 64 | allwinner,pins = "PH20", "PH21"; |
| 65 | allwinner,function = "gpio_out"; |
| 66 | allwinner,drive = <0>; |
| 67 | allwinner,pull = <0>; |
| 68 | }; |
| 69 | }; |
| 70 | |
Alexander Bersenev | 0256452 | 2014-06-09 00:08:13 +0600 | [diff] [blame] | 71 | ir0: ir@01c21800 { |
| 72 | pinctrl-names = "default"; |
| 73 | pinctrl-0 = <&ir0_pins_a>; |
| 74 | status = "okay"; |
| 75 | }; |
| 76 | |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 77 | uart0: serial@01c28000 { |
| 78 | pinctrl-names = "default"; |
| 79 | pinctrl-0 = <&uart0_pins_a>; |
| 80 | status = "okay"; |
| 81 | }; |
Maxime Ripard | ce0106c | 2013-08-31 23:12:58 +0200 | [diff] [blame] | 82 | |
| 83 | i2c0: i2c@01c2ac00 { |
| 84 | pinctrl-names = "default"; |
| 85 | pinctrl-0 = <&i2c0_pins_a>; |
| 86 | status = "okay"; |
Carlo Caione | ec0c933 | 2014-06-30 23:57:53 +0200 | [diff] [blame] | 87 | |
| 88 | axp209: pmic@34 { |
| 89 | compatible = "x-powers,axp209"; |
| 90 | reg = <0x34>; |
| 91 | interrupt-parent = <&nmi_intc>; |
| 92 | interrupts = <0 8>; |
| 93 | |
| 94 | interrupt-controller; |
| 95 | #interrupt-cells = <1>; |
| 96 | }; |
Maxime Ripard | ce0106c | 2013-08-31 23:12:58 +0200 | [diff] [blame] | 97 | }; |
| 98 | |
| 99 | i2c1: i2c@01c2b000 { |
| 100 | pinctrl-names = "default"; |
| 101 | pinctrl-0 = <&i2c1_pins_a>; |
| 102 | status = "okay"; |
| 103 | }; |
Chen-Yu Tsai | 5e71892 | 2014-02-10 18:35:52 +0800 | [diff] [blame] | 104 | |
| 105 | gmac: ethernet@01c50000 { |
| 106 | pinctrl-names = "default"; |
| 107 | pinctrl-0 = <&gmac_pins_mii_a>; |
| 108 | phy = <&phy1>; |
| 109 | phy-mode = "mii"; |
| 110 | status = "okay"; |
| 111 | |
| 112 | phy1: ethernet-phy@1 { |
| 113 | reg = <1>; |
| 114 | }; |
| 115 | }; |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 116 | }; |
| 117 | |
| 118 | leds { |
| 119 | compatible = "gpio-leds"; |
| 120 | pinctrl-names = "default"; |
| 121 | pinctrl-0 = <&led_pins_cubieboard2>; |
| 122 | |
| 123 | blue { |
| 124 | label = "cubieboard2:blue:usr"; |
Maxime Ripard | bca1292 | 2014-12-16 22:59:55 +0100 | [diff] [blame^] | 125 | gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 126 | }; |
| 127 | |
| 128 | green { |
| 129 | label = "cubieboard2:green:usr"; |
Maxime Ripard | bca1292 | 2014-12-16 22:59:55 +0100 | [diff] [blame^] | 130 | gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 131 | }; |
| 132 | }; |
Hans de Goede | 902febf | 2014-03-01 20:26:22 +0100 | [diff] [blame] | 133 | |
| 134 | reg_ahci_5v: ahci-5v { |
| 135 | status = "okay"; |
| 136 | }; |
Roman Byshko | 52305e2 | 2014-03-01 20:26:35 +0100 | [diff] [blame] | 137 | |
| 138 | reg_usb1_vbus: usb1-vbus { |
| 139 | status = "okay"; |
| 140 | }; |
| 141 | |
| 142 | reg_usb2_vbus: usb2-vbus { |
| 143 | status = "okay"; |
| 144 | }; |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 145 | }; |