diff --git a/arch/arm/boot/dts/rk3188-lr097.dts b/arch/arm/boot/dts/rk3188-lr097.dts deleted file mode 100644 index f426dddff7bc..000000000000 --- a/arch/arm/boot/dts/rk3188-lr097.dts +++ /dev/null @@ -1,516 +0,0 @@ -// SPDX-License-Identifier: (GPL-2.0+ OR MIT) -/dts-v1/; - -#include "rk3188.dtsi" -#include "lcd-LP097Qx1.dtsi" - -/ { - memory { - device_type = "memory"; - reg = <0x60000000 0x80000000>; - }; - - chosen { - bootargs = "clk_ignore_unused"; - }; - - fiq-debugger { - status = "okay"; - }; - - wireless-wlan { - compatible = "wlan-platdata"; - - wifi_chip_type = ""; - sdio_vref = <28000>; - - //power_ctrl_by_pmu; - pmu_regulator = "act_ldo3"; - pmu_enable_level = <1>; //1->HIGH, 0->LOW - - WIFI,poweren_gpio = <&gpio3 GPIO_D0 GPIO_ACTIVE_HIGH>; - WIFI,host_wake_irq = <&gpio3 GPIO_D2 GPIO_ACTIVE_HIGH>; - //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>; - - status = "okay"; - }; - - wireless-bluetooth { - compatible = "bluetooth-platdata"; - - support_uart_rts_ctrl; - uart_rts_gpios = <&gpio1 GPIO_A3 GPIO_ACTIVE_LOW>; - pinctrl-names = "default"; - pinctrl-0 = <&uart0_rts>; - - BT,power_gpio = <&gpio3 GPIO_C7 GPIO_ACTIVE_HIGH>; - BT,reset_gpio = <&gpio3 GPIO_D1 GPIO_ACTIVE_HIGH>; - BT,wake_gpio = <&gpio3 GPIO_C6 GPIO_ACTIVE_HIGH>; - BT,wake_host_irq = <&gpio0 GPIO_A5 GPIO_ACTIVE_LOW>; - - status = "okay"; - }; - - backlight { - compatible = "pwm-backlight"; - pwms = <&pwm3 0 25000>; - brightness-levels = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255>; - default-brightness-level = <128>; - enable-gpios = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>; - }; - - codec_hdmi_i2s: codec-hdmi-i2s { - compatible = "hdmi-i2s"; - }; - - codec_hdmi_spdif: codec-hdmi-spdif { - compatible = "hdmi-spdif"; - }; - - rockchip-rt5631 { - compatible = "rockchip-rt5631"; - dais { - dai0 { - audio-codec = <&rt5631>; - audio-controller = <&i2s0>; - format = "i2s"; - //continuous-clock; - //bitclock-inversion; - //frame-inversion; - //bitclock-master; - //frame-master; - }; - }; - }; - - rockchip-rk610 { - compatible = "rockchip-rk610"; - dais { - dai0 { - audio-codec = <&rk610_codec>; - audio-controller = <&i2s0>; - format = "i2s"; - //continuous-clock; - //bitclock-inversion; - //frame-inversion; - //bitclock-master; - //frame-master; - }; - }; - }; - - rockchip-hdmi-i2s { - compatible = "rockchip-hdmi-i2s"; - dais { - dai0 { - audio-codec = <&codec_hdmi_i2s>; - audio-controller = <&i2s0>; - format = "i2s"; - //continuous-clock; - //bitclock-inversion; - //frame-inversion; - //bitclock-master; - //frame-master; - }; - }; - }; - - rockchip-hdmi-spdif { - compatible = "rockchip-hdmi-spdif"; - }; - - vmac-phy { - compatible = "rockchip,vmac-phy"; - power-gpios = <&gpio0 GPIO_C0 GPIO_ACTIVE_HIGH>; - }; -}; - -&uart0 { - status = "okay"; - dma-names = "!tx", "!rx"; -}; - - -&uart3 { - status = "okay"; - dma-names = "!tx", "!rx"; -}; - -&watchdog { - rockchip,timeout = <50>; - rockchip,debug = <1>; - status = "disabled"; -}; - -&i2c0 { - status = "okay"; - rt5631: rt5631@1a { - compatible = "rt5631"; - reg = <0x1a>; - }; - - rk610ctl@40 { - compatible = "rk610_ctl"; - reg = <0x40>; - rk610-reset-io = <&gpio3 GPIO_B2 GPIO_ACTIVE_HIGH>; - clocks = <&clk_i2s>; - clock-names = "i2s_clk"; - }; - - rk610_codec: rk610codec@60 {//RK610_CODEC addr from 0x60 to 0x80 (0x60~0x80) - compatible = "rk610_codec"; - reg = <0x60>; - spk_ctl_io = <&gpio2 GPIO_D7 GPIO_ACTIVE_HIGH>; - boot_depop = <1>; - pa_enable_time = <1000>; - }; - - sensor@1d { - compatible = "gs_mma8452"; - reg = <0x1d>; - type = ; - irq-gpio = <&gpio0 GPIO_B7 IRQ_TYPE_EDGE_FALLING>; - irq_enable = <1>; - poll_delay_ms = <30>; - layout = <1>; - }; -}; - -&i2c1 { - status = "okay"; - rtc@51 { - compatible = "nxp,pcf8563"; - reg = <0x51>; - }; - - act8846: act8846@5a { - reg = <0x5a>; - status = "okay"; - }; - rk808: rk808@1b { - reg = <0x1b>; - status = "okay"; - }; -}; - -&i2c2 { - status = "okay"; - edp@39 { - compatible = "analogix,anx6345"; - reg = <0x39>; - dvdd33-gpio = <&gpio0 GPIO_B0 GPIO_ACTIVE_LOW>; - dvdd18-gpio = <&gpio3 GPIO_D4 GPIO_ACTIVE_HIGH>; - reset-gpio = <&gpio0 GPIO_B4 GPIO_ACTIVE_LOW>; - }; - - ts@01 { - compatible = "ct,ct36x"; - reg = <0x01>; - ct-model = <363>; - touch-gpio = <&gpio1 GPIO_B7 IRQ_TYPE_LEVEL_LOW>; - reset-gpio = <&gpio0 GPIO_B6 GPIO_ACTIVE_HIGH>; - max-x = <2048>; - max-y = <1536>; - orientation=<1 0 0 1>; - }; -}; - -&i2c3 { - status = "okay"; -}; - -&fb { - rockchip,disp-mode = ; -}; - -&rk_screen { - display-timings = <&disp_timings>; -}; - -&lcdc0 { - status = "okay"; -}; - -&lcdc1 { - status = "okay"; -}; - -&adc { - status = "okay"; - - key { - compatible = "rockchip,key"; - io-channels = <&adc 1>; - - vol-up-key { - linux,code = <115>; - label = "volume up"; - rockchip,adc_value = <1>; - }; - - vol-down-key { - linux,code = <114>; - label = "volume down"; - rockchip,adc_value = <145>; - }; - - power-key { - gpios = <&gpio0 GPIO_A4 GPIO_ACTIVE_LOW>; - linux,code = <116>; - label = "power"; - gpio-key,wakeup; - }; - - - home-key { - linux,code = <102>; - label = "home"; - rockchip,adc_value = <355>; - }; - - }; -}; - -&pwm3 { - status = "okay"; -}; - -&clk_core_dvfs_table { - operating-points = < - /* KHz uV */ - 312000 1100000 - 504000 1100000 - 816000 1100000 - 1008000 1100000 - 1200000 1200000 - 1416000 1300000 - 1608000 1350000 - >; -}; - -&clk_gpu_dvfs_table { - operating-points = < - /* KHz uV */ - 200000 1200000 - 300000 1200000 - 400000 1200000 - >; -}; - -&clk_ddr_dvfs_table { - operating-points = < - /* KHz uV */ - 200000 1200000 - 300000 1200000 - 400000 1200000 - >; - - freq_table = < - /*status freq(KHz)*/ - SYS_STATUS_NORMAL 400000 - SYS_STATUS_SUSPEND 200000 - SYS_STATUS_VIDEO 300000 - SYS_STATUS_DUALVIEW 500000 - >; -}; - -/include/ "act8846.dtsi" -&act8846 { - gpios =<&gpio3 GPIO_D3 GPIO_ACTIVE_LOW>; - -regulators { - - dcdc1_reg: regulator@0{ - regulator-name= "act_dcdc1"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-always-on; - regulator-boot-on; - }; - - dcdc2_reg: regulator@1 { - regulator-name= "vdd_logic"; - regulator-always-on; - regulator-boot-on; - }; - - dcdc3_reg: regulator@2 { - regulator-name= "vdd_arm"; - regulator-always-on; - regulator-boot-on; - }; - - dcdc4_reg: regulator@3 { - regulator-name= "vccio"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - regulator-boot-on; - }; - - ldo1_reg: regulator@4 { - regulator-name= "act_ldo1"; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1000000>; - regulator-always-on; - regulator-boot-on; - }; - - ldo2_reg: regulator@5 { - regulator-name= "act_ldo2"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-always-on; - regulator-boot-on; - }; - - ldo3_reg: regulator@6 { - regulator-name= "act_ldo3"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - regulator-boot-on; - }; - - ldo4_reg:regulator@7 { - regulator-name= "act_ldo4"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - regulator-boot-on; - }; - - ldo5_reg: regulator@8 { - regulator-name= "act_ldo5"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - regulator-boot-on; - }; - - ldo6_reg: regulator@9 { - regulator-name= "act_ldo6"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - regulator-boot-on; - }; - - ldo7_reg: regulator@10 { - regulator-name= "act_ldo7"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - regulator-boot-on; - }; - - ldo8_reg: regulator@11 { - regulator-name= "act_ldo8"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - regulator-always-on; - regulator-boot-on; - }; - }; -}; -/include/ "rk808.dtsi" -&rk808{ - gpios =<&gpio0 GPIO_B3 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_A1 GPIO_ACTIVE_LOW>; - -regulators { - - rk808_dcdc1_reg: regulator@0{ - regulator-name= "vdd_arm"; - regulator-always-on; - regulator-boot-on; - }; - - rk808_dcdc2_reg: regulator@1 { - regulator-name= "vdd_logic"; - regulator-always-on; - regulator-boot-on; - }; - - rk808_dcdc3_reg: regulator@2 { - regulator-name= "rk_dcdc3"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-always-on; - regulator-boot-on; - }; - - rk808_dcdc4_reg: regulator@3 { - regulator-name= "vccio"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - regulator-boot-on; - }; - - rk808_ldo1_reg: regulator@4 { - regulator-name= "rk_ldo1"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - regulator-boot-on; - }; - - rk808_ldo2_reg: regulator@5 { - regulator-name= "rk_ldo2"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - regulator-boot-on; - }; - - rk808_ldo3_reg: regulator@6 { - regulator-name= "rk_ldo3"; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1000000>; - regulator-always-on; - regulator-boot-on; - }; - - rk808_ldo4_reg:regulator@7 { - regulator-name= "rk_ldo4"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - regulator-boot-on; - }; - - rk808_ldo5_reg: regulator@8 { - regulator-name= "rk_ldo5"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - regulator-always-on; - regulator-boot-on; - }; - - rk808_ldo6_reg: regulator@9 { - regulator-name= "rk_ldo6"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-always-on; - regulator-boot-on; - }; - - rk808_ldo7_reg: regulator@10 { - regulator-name= "rk_ldo7"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - regulator-boot-on; - }; - - rk808_ldo8_reg: regulator@11 { - regulator-name= "rk_ldo8"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - regulator-boot-on; - }; - }; -}; - - diff --git a/arch/arm/boot/dts/rk3188-pinctrl.dtsi b/arch/arm/boot/dts/rk3188-pinctrl.dtsi deleted file mode 100644 index e2422da47e53..000000000000 --- a/arch/arm/boot/dts/rk3188-pinctrl.dtsi +++ /dev/null @@ -1,918 +0,0 @@ -// SPDX-License-Identifier: (GPL-2.0+ OR MIT) -#include -#include -#include -#include - -/ { - pinctrl: pinctrl@20008000 { - compatible = "rockchip,rk3188-pinctrl"; - reg = <0x20008000 0x60>, - <0x20008060 0x40>, - <0x20008164 0x40>, - <0x200080f4 0x10>; - reg-names = "base", "mux", "pull", "drv"; - #address-cells = <1>; - #size-cells = <1>; - ranges; - - gpio0: gpio0@0x2000a000 { - compatible = "rockchip,rk3188-gpio-bank0"; - reg = <0x2000a000 0x100>, - <0x20004064 0x8>; - reg-names = "base", "pull_bank0"; - interrupts = ; - clocks = <&clk_gates8 9>; - - gpio-controller; - #gpio-cells = <2>; - - interrupt-controller; - #interrupt-cells = <2>; - }; - - gpio1: gpio1@0x2003c000 { - compatible = "rockchip,gpio-bank"; - reg = <0x2003c000 0x100>; - interrupts = ; - clocks = <&clk_gates8 10>; - - gpio-controller; - #gpio-cells = <2>; - - interrupt-controller; - #interrupt-cells = <2>; - }; - - gpio2: gpio2@2003e000 { - compatible = "rockchip,gpio-bank"; - reg = <0x2003e000 0x100>; - interrupts = ; - clocks = <&clk_gates8 11>; - - gpio-controller; - #gpio-cells = <2>; - - interrupt-controller; - #interrupt-cells = <2>; - }; - - gpio3: gpio3@20080000 { - compatible = "rockchip,gpio-bank"; - reg = <0x20080000 0x100>; - interrupts = ; - clocks = <&clk_gates8 12>; - - gpio-controller; - #gpio-cells = <2>; - - interrupt-controller; - #interrupt-cells = <2>; - }; - - gpio15: gpio15@20082000 { - compatible = "rockchip,gpio-bank"; - reg = <0x20082000 0x100>; - interrupts = ;//127 = 160-32-1 - clocks = <&clk_gates8 12>; - - gpio-controller; - #gpio-cells = <2>; - - interrupt-controller; - #interrupt-cells = <2>; - }; - - pcfg_pull_up: pcfg_pull_up { - bias-pull-up; - }; - - pcfg_pull_down: pcfg_pull_down { - bias-pull-down; - }; - - pcfg_pull_none: pcfg_pull_none { - bias-disable; - }; - - gpio1_uart0 { - uart0_xfer: uart0-xfer { - rockchip,pins = , - ; - rockchip,pull = ; - rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - uart0_cts: uart0-cts { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - uart0_rts: uart0-rts { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - uart0_rts_gpio: uart0-rts-gpio { - rockchip,pins = ; - rockchip,drive = ; - }; - }; - - gpio1_uart1 { - uart1_xfer: uart1-xfer { - rockchip,pins = , - ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - uart1_cts: uart1-cts { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - uart1_rts: uart1-rts { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - uart1_rts_gpio: uart1-rts-gpio { - rockchip,pins = ; - rockchip,drive = ; - }; - }; - - gpio1_uart2 { - uart2_xfer: uart2-xfer { - rockchip,pins = , - ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - /* no rts / cts for uart2 */ - }; - - gpio1_uart3 { - uart3_xfer: uart3-xfer { - rockchip,pins = , - ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - uart3_cts: uart3-cts { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - uart3_rts: uart3-rts { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - uart3_rts_gpio: uart3-rts-gpio { - rockchip,pins = ; - rockchip,drive = ; - }; - }; - - gpio1_i2c0 { - i2c0_sda:i2c0-sda { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - i2c0_scl:i2c0-scl { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - i2c0_gpio: i2c0-gpio { - rockchip,pins = , ; - rockchip,drive = ; - }; - }; - - gpio1_i2c1 { - i2c1_sda:i2c1-sda { - rockchip,pins = ; - rockchip,pull = ; - rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - i2c1_scl:i2c1-scl { - rockchip,pins = ; - rockchip,pull = ; - rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - i2c1_gpio: i2c1-gpio { - rockchip,pins = , ; - rockchip,drive = ; - }; - }; - - gpio1_i2c2 { - i2c2_sda:i2c2-sda { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - i2c2_scl:i2c2-scl { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - i2c2_gpio: i2c2-gpio { - rockchip,pins = , ; - rockchip,drive = ; - }; - }; - - gpio3_i2c3 { - i2c3_sda:i2c3-sda { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - i2c3_scl:i2c3-scl { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - i2c3_gpio: i2c3-gpio { - rockchip,pins = , ; - rockchip,drive = ; - }; - }; - - gpio1_i2c4 { - i2c4_sda:i2c4-sda { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - i2c4_scl:i2c4-scl { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - i2c4_gpio: i2c4-gpio { - rockchip,pins = , ; - rockchip,drive = ; - }; - }; - - gpio1_spi0 { - spi0_txd:spi0-txd { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - spi0_rxd:spi0-rxd { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - spi0_clk:spi0-clk { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - spi0_cs0:spi0-cs0 { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - spi0_cs1:spi0-cs1 { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - }; - - gpio1_spi1 { - spi1_txd:spi1-txd { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - spi1_rxd:spi1-rxd { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - spi1_clk:spi1-clk { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - spi1_cs0:spi1-cs0 { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - spi1_cs1:spi1-cs1 { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - }; - - gpio1_i2s0 { - - i2s0_mclk:i2s0-mclk { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - - }; - - i2s0_sclk:i2s0-sclk { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - - }; - - i2s0_lrckrx:i2s0-lrckrx { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - - }; - - i2s0_lrcktx:i2s0-lrcktx { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - - }; - - i2s0_sdo:i2s0-sdo { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - - }; - - i2s0_sdi:i2s0-sdi { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - - }; - - i2s0_gpio: i2s0-gpio { - rockchip,pins = , - , - , - , - , - ; - rockchip,drive = ; - }; - }; - - gpio2_lcdc1 { - lcdc1_lcdc:lcdc1-lcdc { - rockchip,pins = , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - ; - rockchip,pull = ; - rockchip,drive = ; - }; - - lcdc1_gpio:lcdc1-gpio { - rockchip,pins = , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - ; - rockchip,pull = ; - rockchip,drive = ; - - }; - - }; - - gpio1_spdif { - spdif_tx: spdif-tx { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - - }; - }; - - gpio3_pwm { - pwm0_pin:pwm0 { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - - }; - - - pwm1_pin:pwm1 { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - - pwm2_pin:pwm2 { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - - pwm3_pin:pwm3 { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - }; - - - gpio3_sdio { - sd0_clk: sd0-clk { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - sd0_cmd: sd0-cmd { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - sd0_cd: sd0-cd { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - sd0_cd_gpio:sd0_cd_gpio{ - rockchip,pins = ; - rockchip,pull = ; - rockchip,drive = ; - }; - - sd0_wp: sd0-wp { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - sd0_pwr: sd0-pwr { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - sd0_bus1: sd0-bus-width1 { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - sd0_bus4: sd0-bus-width4 { - rockchip,pins = , - , - , - ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - }; - - gpio3_sdmmc { - sd1_clk: sd1-clk { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - sd1_cmd: sd1-cmd { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - sd1_cd: sd1-cd { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - sd1_wp: sd1-wp { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - sd1_bus1: sd1-bus-width1 { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - sd1_bus4: sd1-bus-width4 { - rockchip,pins = , - , - , - ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - }; - - gpio3_rmii { - rmii_clkoutpin: rmii-clkoutpin { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - rmii_clkinpin: rmii-clkinpin { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - rmii_txpins: rmii-txpins { - rockchip,pins = , , ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - rmii_rxpins: rmii-rxpins { - rockchip,pins = , , , ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - - rmii_mdpins: rmii-mdpins { - rockchip,pins = , ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - }; - }; - - gpio1_gps { - gps_mag:gps-mag { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - - }; - - gps_sig:gps-sig { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - - }; - - - gps_rfclk:gps-rfclk { - rockchip,pins = ; - rockchip,pull = ; - //rockchip,voltage = ; - rockchip,drive = ; - //rockchip,tristate = ; - - }; - - }; - - vol_domain { - ap0_vcc:ap0-vcc { - rockchip,pins = ; - rockchip,voltage = ; - }; - - ap1_vcc:ap1-vcc { - rockchip,pins = ; - rockchip,voltage = ; - }; - - cif_vcc:cif-vcc { - rockchip,pins = ; - rockchip,voltage = ; - }; - - flash_vcc:flash-vcc { - rockchip,pins = ; - rockchip,voltage = ; - }; - - vccio0_vcc:vccio0-vcc { - rockchip,pins = ; - rockchip,voltage = ; - }; - - vccio1_vcc:vccio1-vcc { - rockchip,pins = ; - rockchip,voltage = ; - }; - - lcdc0_vcc:lcdc0-vcc { - rockchip,pins = ; - rockchip,voltage = ; - }; - - lcdc1_vcc:lcdc1-vcc { - rockchip,pins = ; - rockchip,voltage = ; - }; - - - - ap0_vcc_18:ap0-vcc-18 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - ap1_vcc_18:ap1-vcc-18 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - cif_vcc_18:cif-vcc-18 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - flash_vcc_18:flash-vcc-18 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - vccio0_vcc_18:vccio0-vcc-18 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - vccio1_vcc_18:vccio1-vcc-18 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - lcdc0_vcc_18:lcdc0-vcc-18 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - lcdc1_vcc_18:lcdc1-vcc-18 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - - - ap0_vcc_33:ap0-vcc-33 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - ap1_vcc_33:ap1-vcc-33 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - cif_vcc_33:cif-vcc-33 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - flash_vcc_33:flash-vcc-33 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - vccio0_vcc_33:vccio0-vcc-33 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - vccio1_vcc_33:vccio1-vcc-33 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - lcdc0_vcc_33:lcdc0-vcc-33 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - lcdc1_vcc_33:lcdc1-vcc-33 { - rockchip,pins = ; - rockchip,voltage = ; - }; - - - }; - - //to add - }; -}; diff --git a/arch/arm/boot/dts/rk3188-tb.dts b/arch/arm/boot/dts/rk3188-tb.dts deleted file mode 100644 index 799695b8cd4a..000000000000 --- a/arch/arm/boot/dts/rk3188-tb.dts +++ /dev/null @@ -1,806 +0,0 @@ -// SPDX-License-Identifier: (GPL-2.0+ OR MIT) -/dts-v1/; - -#include "rk3188.dtsi" -#include "lcd-b101ew05.dtsi" - -/ { - memory { - device_type = "memory"; - reg = <0x60000000 0x40000000>; - }; - - chosen { - bootargs = "clk_ignore_unused"; - }; - - fiq-debugger { - status = "okay"; - }; - - - wireless-wlan { - compatible = "wlan-platdata"; - - wifi_chip_type = ""; - sdio_vref = <28000>; - - //power_ctrl_by_pmu; - pmu_regulator = "act_ldo3"; - pmu_enable_level = <1>; //1->HIGH, 0->LOW - - WIFI,poweren_gpio = <&gpio3 GPIO_D0 GPIO_ACTIVE_HIGH>; - WIFI,host_wake_irq = <&gpio3 GPIO_D2 GPIO_ACTIVE_HIGH>; - //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>; - - status = "okay"; - }; - - wireless-bluetooth { - compatible = "bluetooth-platdata"; - - uart_rts_gpios = <&gpio1 GPIO_A3 GPIO_ACTIVE_LOW>; - pinctrl-names = "default","rts_gpio"; - pinctrl-0 = <&uart0_rts>; - pinctrl-1 = <&uart0_rts_gpio>; - - BT,power_gpio = <&gpio3 GPIO_C7 GPIO_ACTIVE_HIGH>; - BT,reset_gpio = <&gpio3 GPIO_D1 GPIO_ACTIVE_HIGH>; - BT,wake_gpio = <&gpio3 GPIO_C6 GPIO_ACTIVE_HIGH>; - BT,wake_host_irq = <&gpio0 GPIO_A5 GPIO_ACTIVE_LOW>; - - status = "okay"; - }; - - backlight { - compatible = "pwm-backlight"; - pwms = <&pwm3 0 25000>; - brightness-levels = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255>; - default-brightness-level = <128>; - enable-gpios = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>; - }; - - pwm_regulator { - compatible = "rockchip_pwm_regulator"; - pwms = <&pwm0 0 25000>; - rockchip,pwm_id= <0>; - rockchip,pwm_voltage_map= <925000 950000 975000 1000000 1025000 1050000 1075000 1100000 1125000 1150000 1175000 1200000 1225000 1250000 1275000 1300000 1325000 1350000 1375000 1400000>; - rockchip,pwm_voltage= <1000000>; - rockchip,pwm_min_voltage= <925000>; - rockchip,pwm_max_voltage= <1400000>; - rockchip,pwm_suspend_voltage= <950000>; - rockchip,pwm_coefficient= <475>; - regulators { - #address-cells = <1>; - #size-cells = <0>; - pwm_reg0: regulator@0{ - regulator-compatible = "pwm_dcdc1"; - regulator-name= "vdd_gpu"; - regulator-min-microvolt = <925000>; - regulator-max-microvolt = <1400000>; - regulator-always-on; - regulator-boot-on; - }; - }; - }; - - - codec_hdmi_i2s: codec-hdmi-i2s { - compatible = "hdmi-i2s"; - }; - - codec_hdmi_spdif: codec-hdmi-spdif { - compatible = "hdmi-spdif"; - }; - - rockchip-rt5631 { - compatible = "rockchip-rt5631"; - dais { - dai0 { - audio-codec = <&rt5631>; - audio-controller = <&i2s0>; - format = "i2s"; - //continuous-clock; - //bitclock-inversion; - //frame-inversion; - //bitclock-master; - //frame-master; - }; - }; - }; - - rockchip-rk610 { - compatible = "rockchip-rk610"; - dais { - dai0 { - audio-codec = <&rk610_codec>; - audio-controller = <&i2s0>; - format = "i2s"; - //continuous-clock; - //bitclock-inversion; - //frame-inversion; - //bitclock-master; - //frame-master; - }; - }; - }; - - rockchip-hdmi-i2s { - compatible = "rockchip-hdmi-i2s"; - dais { - dai0 { - audio-codec = <&codec_hdmi_i2s>; - audio-controller = <&i2s0>; - format = "i2s"; - //continuous-clock; - //bitclock-inversion; - //frame-inversion; - //bitclock-master; - //frame-master; - }; - }; - }; - - rockchip-hdmi-spdif { - compatible = "rockchip-hdmi-spdif"; - dais { - dai0 { - audio-codec = <&codec_hdmi_spdif>; - audio-controller = <&spdif>; - }; - }; - }; - - vmac-phy { - compatible = "rockchip,vmac-phy"; - power-gpios = <&gpio0 GPIO_C0 GPIO_ACTIVE_HIGH>; - }; - -}; - -&pinctrl { - - gpio1_gpio { - gpio1_a2: gpio1-a2 { - rockchip,pins = ; - rockchip,pull = ; - }; - - //to add - }; - - //could add other pinctrl definition such as gpio - -}; - - -&emmc { - clock-frequency = <50000000>; - clock-freq-min-max = <400000 50000000>; - - supports-highspeed; - supports-emmc; - bootpart-no-access; - - status = "okay"; -}; - -&sdmmc { - clock-frequency = <50000000>; - lock-freq-min-max = <400000 50000000>; - - supports-highspeed; - supports-sd; - broken-cd; - card-detect-delay = <200>; - - pwr-gpios = <&gpio3 GPIO_A1 GPIO_ACTIVE_LOW>; /*pwr_en = GPIO3_A1*/ - - status = "okay"; -}; - -&sdio { - clock-frequency = <50000000>; - clock-freq-min-max = <200000 50000000>; - - supports-highspeed; - supports-sdio; - cap-sdio-irq; - status = "okay"; -}; - - -&uart0 { - status = "okay"; - dma-names = "!tx", "!rx"; - pinctrl-0 = <&uart0_xfer &uart0_cts>; -}; - -&uart3 { - status = "okay"; - dma-names = "!tx", "!rx"; -}; - -&watchdog { - rockchip,timeout = <50>; - rockchip,debug = <1>; - status = "disabled"; -}; - -&spi0 { - status = "okay"; - max-freq = <48000000>; - /* - spi_test@00 { - compatible = "rockchip,spi_test_bus0_cs0"; - reg = <0>; - spi-max-frequency = <24000000>; - poll_mode = <0>; - type = <0>; - enable_dma = <0>; - - }; - - spi_test@01 { - compatible = "rockchip,spi_test_bus0_cs1"; - reg = <1>; - spi-max-frequency = <24000000>; - poll_mode = <0>; - type = <0>; - enable_dma = <0>; - }; - */ -}; - -&spi1 { - status = "okay"; - max-freq = <48000000>; - /* - spi_test@10 { - compatible = "rockchip,spi_test_bus1_cs0"; - reg = <0>; - spi-max-frequency = <24000000>; - poll_mode = <0>; - type = <0>; - enable_dma = <0>; - }; - - spi_test@11 { - compatible = "rockchip,spi_test_bus1_cs1"; - reg = <1>; - spi-max-frequency = <24000000>; - poll_mode = <0>; - type = <0>; - enable_dma = <0>; - }; - */ -}; - - -&i2c0 { - status = "okay"; - rt5631: rt5631@1a { - compatible = "rt5631"; - reg = <0x1a>; - }; - - rk610ctl@40 { - compatible = "rk610_ctl"; - reg = <0x40>; - rk610-reset-io = <&gpio3 GPIO_B2 GPIO_ACTIVE_HIGH>; - clocks = <&clk_i2s>; - clock-names = "i2s_clk"; - }; - - rk610_codec: rk610codec@60 {//RK610_CODEC addr from 0x60 to 0x80 (0x60~0x80) - compatible = "rk610_codec"; - reg = <0x60>; - spk_ctl_io = <&gpio2 GPIO_D7 GPIO_ACTIVE_HIGH>; - boot_depop = <1>; - pa_enable_time = <1000>; - }; - - sensor@1d { - compatible = "gs_mma8452"; - reg = <0x1d>; - type = ; - irq-gpio = <&gpio0 GPIO_B7 IRQ_TYPE_EDGE_FALLING>; - irq_enable = <1>; - poll_delay_ms = <30>; - layout = <1>; - }; -}; - -&i2c1 { - status = "okay"; - rtc@51 { - compatible = "nxp,pcf8563"; - reg = <0x51>; - }; - - act8846: act8846@5a { - reg = <0x5a>; - status = "okay"; - }; - rk808: rk808@1b { - reg = <0x1b>; - status = "okay"; - }; - bq24296: bq24296@6b { - compatible = "ti,bq24296"; - reg = <0x6b>; -/* gpios = <&gpio0 GPIO_A7 GPIO_ACTIVE_HIGH>; */ - bq24296,chg_current = <1000 500 2000>; - status = "disable"; - }; - bq27320: bq27320@55 { - compatible = "ti,bq27320"; - reg = <0x55>; -/* gpios = <&gpio0 GPIO_A7 GPIO_ACTIVE_HIGH>; */ - status = "disable"; - }; -}; - -&i2c2 { - status = "okay"; - ts@55 { - compatible = "goodix,gt8xx"; - reg = <0x55>; - touch-gpio = <&gpio1 GPIO_B7 IRQ_TYPE_LEVEL_LOW>; - reset-gpio = <&gpio0 GPIO_B6 GPIO_ACTIVE_LOW>; - power-gpio = <&gpio0 GPIO_C5 GPIO_ACTIVE_LOW>; - max-x = <1280>; - max-y = <800>; - }; - ts@01 { - compatible = "ct,ct36x"; - reg = <0x01>; - ct-model = <365>; - touch-gpio = <&gpio1 GPIO_B7 IRQ_TYPE_LEVEL_LOW>; - reset-gpio = <&gpio0 GPIO_B6 GPIO_ACTIVE_HIGH>; - max-x = <1280>; - max-y = <800>; - orientation=<1 0 0 1>; - }; -}; - -&i2c3 { - status = "okay"; -}; - -&fb { - rockchip,disp-mode = ; -}; - -&rk_screen { - display-timings = <&disp_timings>; -}; - -&lcdc0 { - status = "okay"; - power_ctr: power_ctr { - rockchip,debug = <0>; - lcd_en:lcd_en { - rockchip,power_type = ; - gpios = <&gpio0 GPIO_B0 GPIO_ACTIVE_HIGH>; - rockchip,delay = <10>; - }; - - /*lcd_cs:lcd_cs { - rockchip,power_type = ; - gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>; - rockchip,delay = <10>; - }; - - lcd_rst:lcd_rst { - rockchip,power_type = ; - rockchip,delay = <5>; - };*/ - - }; -}; - -&lcdc1 { - status = "okay"; -}; - -&adc { - status = "okay"; - - key { - compatible = "rockchip,key"; - io-channels = <&adc 1>; - - vol-up-key { - linux,code = <115>; - label = "volume up"; - rockchip,adc_value = <1>; - }; - - vol-down-key { - linux,code = <114>; - label = "volume down"; - rockchip,adc_value = <170>; - }; - - power-key { - gpios = <&gpio0 GPIO_A4 GPIO_ACTIVE_LOW>; - linux,code = <116>; - label = "power"; - gpio-key,wakeup; - }; - - menu-key { - linux,code = <139>; - label = "menu"; - rockchip,adc_value = <355>; - }; - - home-key { - linux,code = <102>; - label = "home"; - rockchip,adc_value = <746>; - }; - - back-key { - linux,code = <158>; - label = "back"; - rockchip,adc_value = <560>; - }; - - camera-key { - linux,code = <212>; - label = "camera"; - rockchip,adc_value = <450>; - }; - }; -}; - -&pwm3 { - status = "okay"; -}; - -&pwm0 { - status = "disable"; -}; - -&clk_core_dvfs_table { - operating-points = < - /* KHz uV */ - 312000 1100000 - 504000 1100000 - 816000 1100000 - 1008000 1100000 - 1200000 1200000 - 1416000 1300000 - 1608000 1350000 - >; -}; - -&clk_gpu_dvfs_table { - operating-points = < - /* KHz uV */ - 200000 1200000 - 300000 1200000 - 400000 1200000 - >; -}; - -&clk_ddr_dvfs_table { - operating-points = < - /* KHz uV */ - 200000 1200000 - 300000 1200000 - 400000 1200000 - >; - - freq_table = < - /*status freq(KHz)*/ - SYS_STATUS_NORMAL 400000 - SYS_STATUS_SUSPEND 200000 - SYS_STATUS_VIDEO 300000 - SYS_STATUS_DUALVIEW 500000 - >; -}; - -/include/ "act8846.dtsi" -&act8846 { - gpios =<&gpio3 GPIO_D3 GPIO_ACTIVE_LOW>; - - regulators { - - dcdc1_reg: regulator@0{ - regulator-name= "act_dcdc1"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-always-on; - regulator-boot-on; - }; - - dcdc2_reg: regulator@1 { - regulator-name= "vdd_logic"; - regulator-min-microvolt = <700000>; - regulator-max-microvolt = <1500000>; - regulator-initial-state = <3>; - regulator-state-mem { - regulator-state-enabled; - regulator-state-uv = <1200000>; - }; - }; - - dcdc3_reg: regulator@2 { - regulator-name= "vdd_arm"; - regulator-min-microvolt = <700000>; - regulator-max-microvolt = <1500000>; - regulator-initial-state = <3>; - regulator-state-mem { - regulator-state-enabled; - regulator-state-uv = <1200000>; - }; - }; - - dcdc4_reg: regulator@3 { - regulator-name= "vccio"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; - regulator-initial-state = <3>; - regulator-state-mem { - regulator-state-enabled; - regulator-state-uv = <3300000>; - }; - }; - - ldo1_reg: regulator@4 { - regulator-name= "act_ldo1"; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1000000>; - - }; - - ldo2_reg: regulator@5 { - regulator-name= "act_ldo2"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - - }; - - ldo3_reg: regulator@6 { - regulator-name= "act_ldo3"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - - }; - - ldo4_reg:regulator@7 { - regulator-name= "act_ldo4"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - - }; - - ldo5_reg: regulator@8 { - regulator-name= "act_ldo5"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - - }; - - ldo6_reg: regulator@9 { - regulator-name= "act_ldo6"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - - }; - - ldo7_reg: regulator@10 { - regulator-name= "act_ldo7"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - - }; - - ldo8_reg: regulator@11 { - regulator-name= "act_ldo8"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - - }; - }; -}; - -/include/ "rk808.dtsi" -&rk808 { - gpios =<&gpio0 GPIO_B3 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_A1 GPIO_ACTIVE_LOW>; - - regulators { - - rk808_dcdc1_reg: regulator@0{ - regulator-name= "vdd_arm"; - regulator-min-microvolt = <700000>; - regulator-max-microvolt = <1500000>; - regulator-always-on; - regulator-boot-on; - regulator-initial-mode = <0x2>; - regulator-initial-state = <3>; - regulator-state-mem { - regulator-state-mode = <0x2>; - regulator-state-enabled; - regulator-state-uv = <900000>; - }; - }; - - rk808_dcdc2_reg: regulator@1 { - regulator-name= "vdd_logic"; - regulator-min-microvolt = <700000>; - regulator-max-microvolt = <1500000>; - regulator-always-on; - regulator-boot-on; - regulator-initial-mode = <0x2>; - regulator-initial-state = <3>; - regulator-state-mem { - regulator-state-mode = <0x2>; - regulator-state-enabled; - regulator-state-uv = <900000>; - }; - }; - - rk808_dcdc3_reg: regulator@2 { - regulator-name= "rk_dcdc3"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-always-on; - regulator-boot-on; - regulator-initial-mode = <0x2>; - regulator-initial-state = <3>; - regulator-state-mem { - regulator-state-mode = <0x2>; - regulator-state-enabled; - regulator-state-uv = <1200000>; - }; - }; - - rk808_dcdc4_reg: regulator@3 { - regulator-name= "vccio"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - regulator-boot-on; - regulator-initial-mode = <0x2>; - regulator-initial-state = <3>; - regulator-state-mem { - regulator-state-mode = <0x2>; - regulator-state-enabled; - regulator-state-uv = <2800000>; - }; - }; - - rk808_ldo1_reg: regulator@4 { - regulator-name= "rk_ldo1"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - regulator-boot-on; - regulator-initial-state = <3>; - regulator-state-mem { - regulator-state-enabled; - regulator-state-uv = <3300000>; - }; - }; - - rk808_ldo2_reg: regulator@5 { - regulator-name= "rk_ldo2"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - regulator-boot-on; - regulator-initial-state = <3>; - regulator-state-mem { - regulator-state-enabled; - regulator-state-uv = <3300000>; - }; - }; - - rk808_ldo3_reg: regulator@6 { - regulator-name= "rk_ldo3"; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1000000>; - regulator-always-on; - regulator-boot-on; - regulator-initial-state = <3>; - regulator-state-mem { - regulator-state-enabled; - regulator-state-uv = <1000000>; - }; - }; - - rk808_ldo4_reg:regulator@7 { - regulator-name= "rk_ldo4"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - regulator-boot-on; - regulator-initial-state = <3>; - regulator-state-mem { - regulator-state-disabled; - regulator-state-uv = <1800000>; - }; - }; - - rk808_ldo5_reg: regulator@8 { - regulator-name= "rk_ldo5"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - regulator-always-on; - regulator-boot-on; - regulator-initial-state = <3>; - regulator-state-mem { - regulator-state-enabled; - regulator-state-uv = <2800000>; - }; - }; - - rk808_ldo6_reg: regulator@9 { - regulator-name= "rk_ldo6"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-always-on; - regulator-boot-on; - regulator-initial-state = <3>; - regulator-state-mem { - regulator-state-disabled; - regulator-state-uv = <1200000>; - }; - }; - - rk808_ldo7_reg: regulator@10 { - regulator-name= "rk_ldo7"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - regulator-boot-on; - regulator-initial-state = <3>; - regulator-state-mem { - regulator-state-enabled; - regulator-state-uv = <1800000>; - }; - }; - - rk808_ldo8_reg: regulator@11 { - regulator-name= "rk_ldo8"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - regulator-boot-on; - regulator-initial-state = <3>; - regulator-state-mem { - regulator-state-enabled; - regulator-state-uv = <1800000>; - }; - }; - }; -}; - -&ap0_vcc_domain{ - regulator-name= "vccio_wl"; -}; -&ap1_vcc_domain{ - regulator-name= "vccio"; -}; -&cif_vcc_domain{ - regulator-name= "vcc18_cif"; -}; -&flash_vcc_domain{ - regulator-name= "vcc_flash"; -}; -&vccio0_vcc_domain{ - regulator-name= "vccio"; -}; -&vccio1_vcc_domain{ - regulator-name= "vccio"; -}; -&lcdc0_vcc_domain{ - regulator-name= "vcc_lcd"; -}; -&lcdc1_vcc_domain{ - regulator-name= "vccio"; -};