Jagan Teki | 89a897f | 2018-07-29 00:03:31 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ or MIT) |
| 2 | /* |
| 3 | * Copyright (C) 2018 Amarula Solutions |
| 4 | * Author: Jagan Teki <jagan@amarulasolutions.com> |
| 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | |
| 9 | #include "sun50i-h6.dtsi" |
| 10 | |
| 11 | #include <dt-bindings/gpio/gpio.h> |
| 12 | |
| 13 | / { |
| 14 | model = "OrangePi One Plus"; |
| 15 | compatible = "xunlong,orangepi-one-plus", "allwinner,sun50i-h6"; |
| 16 | |
| 17 | aliases { |
| 18 | serial0 = &uart0; |
| 19 | }; |
| 20 | |
| 21 | chosen { |
| 22 | stdout-path = "serial0:115200n8"; |
| 23 | }; |
| 24 | }; |
| 25 | |
| 26 | &mmc0 { |
| 27 | pinctrl-names = "default"; |
| 28 | pinctrl-0 = <&mmc0_pins>; |
| 29 | vmmc-supply = <®_cldo1>; |
| 30 | cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; |
| 31 | bus-width = <4>; |
| 32 | status = "okay"; |
| 33 | }; |
| 34 | |
| 35 | &r_i2c { |
| 36 | status = "okay"; |
| 37 | |
| 38 | axp805: pmic@36 { |
| 39 | compatible = "x-powers,axp805", "x-powers,axp806"; |
| 40 | reg = <0x36>; |
| 41 | interrupt-parent = <&r_intc>; |
| 42 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
| 43 | interrupt-controller; |
| 44 | #interrupt-cells = <1>; |
| 45 | x-powers,self-working-mode; |
| 46 | |
| 47 | regulators { |
| 48 | reg_aldo1: aldo1 { |
| 49 | regulator-always-on; |
| 50 | regulator-min-microvolt = <3300000>; |
| 51 | regulator-max-microvolt = <3300000>; |
| 52 | regulator-name = "vcc-pl"; |
| 53 | }; |
| 54 | |
| 55 | reg_aldo2: aldo2 { |
| 56 | regulator-min-microvolt = <3300000>; |
| 57 | regulator-max-microvolt = <3300000>; |
| 58 | regulator-name = "vcc-ac200"; |
| 59 | }; |
| 60 | |
| 61 | reg_aldo3: aldo3 { |
| 62 | regulator-always-on; |
| 63 | regulator-min-microvolt = <3300000>; |
| 64 | regulator-max-microvolt = <3300000>; |
| 65 | regulator-name = "vcc25-dram"; |
| 66 | }; |
| 67 | |
| 68 | reg_bldo1: bldo1 { |
| 69 | regulator-always-on; |
| 70 | regulator-min-microvolt = <1800000>; |
| 71 | regulator-max-microvolt = <1800000>; |
| 72 | regulator-name = "vcc-bias-pll"; |
| 73 | }; |
| 74 | |
| 75 | reg_bldo2: bldo2 { |
| 76 | regulator-always-on; |
| 77 | regulator-min-microvolt = <1800000>; |
| 78 | regulator-max-microvolt = <1800000>; |
| 79 | regulator-name = "vcc-efuse-pcie-hdmi-io"; |
| 80 | }; |
| 81 | |
| 82 | reg_bldo3: bldo3 { |
| 83 | regulator-always-on; |
| 84 | regulator-min-microvolt = <1800000>; |
| 85 | regulator-max-microvolt = <1800000>; |
| 86 | regulator-name = "vcc-dcxoio"; |
| 87 | }; |
| 88 | |
| 89 | bldo4 { |
| 90 | /* unused */ |
| 91 | }; |
| 92 | |
| 93 | reg_cldo1: cldo1 { |
| 94 | regulator-always-on; |
| 95 | regulator-min-microvolt = <3300000>; |
| 96 | regulator-max-microvolt = <3300000>; |
| 97 | regulator-name = "vcc-3v3"; |
| 98 | }; |
| 99 | |
| 100 | reg_cldo2: cldo2 { |
| 101 | regulator-min-microvolt = <3300000>; |
| 102 | regulator-max-microvolt = <3300000>; |
| 103 | regulator-name = "vcc-wifi-1"; |
| 104 | }; |
| 105 | |
| 106 | reg_cldo3: cldo3 { |
| 107 | regulator-min-microvolt = <3300000>; |
| 108 | regulator-max-microvolt = <3300000>; |
| 109 | regulator-name = "vcc-wifi-2"; |
| 110 | }; |
| 111 | |
| 112 | reg_dcdca: dcdca { |
| 113 | regulator-always-on; |
| 114 | regulator-min-microvolt = <810000>; |
| 115 | regulator-max-microvolt = <1080000>; |
| 116 | regulator-name = "vdd-cpu"; |
| 117 | }; |
| 118 | |
| 119 | reg_dcdcc: dcdcc { |
| 120 | regulator-min-microvolt = <810000>; |
| 121 | regulator-max-microvolt = <1080000>; |
| 122 | regulator-name = "vdd-gpu"; |
| 123 | }; |
| 124 | |
| 125 | reg_dcdcd: dcdcd { |
| 126 | regulator-always-on; |
| 127 | regulator-min-microvolt = <960000>; |
| 128 | regulator-max-microvolt = <960000>; |
| 129 | regulator-name = "vdd-sys"; |
| 130 | }; |
| 131 | |
| 132 | reg_dcdce: dcdce { |
| 133 | regulator-always-on; |
| 134 | regulator-min-microvolt = <1200000>; |
| 135 | regulator-max-microvolt = <1200000>; |
| 136 | regulator-name = "vcc-dram"; |
| 137 | }; |
| 138 | |
| 139 | sw { |
| 140 | /* unused */ |
| 141 | }; |
| 142 | }; |
| 143 | }; |
| 144 | }; |
| 145 | |
| 146 | &uart0 { |
| 147 | pinctrl-names = "default"; |
| 148 | pinctrl-0 = <&uart0_ph_pins>; |
| 149 | status = "okay"; |
| 150 | }; |