1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 /* 2 /* 3 * Samsung's Exynos4412 based p4note device fa 3 * Samsung's Exynos4412 based p4note device family base DT. 4 * Based on exynos4412-midas.dtsi. 4 * Based on exynos4412-midas.dtsi. 5 * 5 * 6 * Copyright (c) 2013 Samsung Electronics Co., 6 * Copyright (c) 2013 Samsung Electronics Co., Ltd. 7 * http://www.samsung.com 7 * http://www.samsung.com 8 */ 8 */ 9 9 10 /dts-v1/; 10 /dts-v1/; 11 #include "exynos4412.dtsi" 11 #include "exynos4412.dtsi" 12 #include "exynos4412-ppmu-common.dtsi" 12 #include "exynos4412-ppmu-common.dtsi" 13 13 14 #include <dt-bindings/clock/maxim,max77686.h> 14 #include <dt-bindings/clock/maxim,max77686.h> 15 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/input/linux-event-codes. 16 #include <dt-bindings/input/linux-event-codes.h> 17 #include <dt-bindings/interrupt-controller/irq 17 #include <dt-bindings/interrupt-controller/irq.h> 18 #include <dt-bindings/power/summit,smb347-char 18 #include <dt-bindings/power/summit,smb347-charger.h> 19 #include "exynos-pinctrl.h" 19 #include "exynos-pinctrl.h" 20 20 21 / { 21 / { 22 compatible = "samsung,p4note", "samsun 22 compatible = "samsung,p4note", "samsung,exynos4412", "samsung,exynos4"; 23 23 24 memory@40000000 { 24 memory@40000000 { 25 device_type = "memory"; 25 device_type = "memory"; 26 reg = <0x40000000 0x7fc00000>; !! 26 reg = <0x40000000 0x80000000>; 27 }; 27 }; 28 28 29 aliases { 29 aliases { 30 mmc0 = &mshc_0; 30 mmc0 = &mshc_0; 31 mmc2 = &sdhci_2; 31 mmc2 = &sdhci_2; 32 mmc3 = &sdhci_3; 32 mmc3 = &sdhci_3; 33 }; 33 }; 34 34 35 chosen { 35 chosen { 36 stdout-path = &serial_2; 36 stdout-path = &serial_2; 37 }; 37 }; 38 38 39 firmware@204f000 { 39 firmware@204f000 { 40 compatible = "samsung,secure-f 40 compatible = "samsung,secure-firmware"; 41 reg = <0x0204f000 0x1000>; 41 reg = <0x0204f000 0x1000>; 42 }; 42 }; 43 43 44 fixed-rate-clocks { 44 fixed-rate-clocks { 45 xxti { 45 xxti { 46 compatible = "samsung, 46 compatible = "samsung,clock-xxti"; 47 clock-frequency = <0>; 47 clock-frequency = <0>; 48 }; 48 }; 49 49 50 xusbxti { 50 xusbxti { 51 compatible = "samsung, 51 compatible = "samsung,clock-xusbxti"; 52 clock-frequency = <240 52 clock-frequency = <24000000>; 53 }; 53 }; 54 }; 54 }; 55 55 56 gpio-keys { 56 gpio-keys { 57 compatible = "gpio-keys"; 57 compatible = "gpio-keys"; 58 pinctrl-names = "default"; 58 pinctrl-names = "default"; 59 pinctrl-0 = <&gpio_keys>; 59 pinctrl-0 = <&gpio_keys>; 60 60 61 key-down { 61 key-down { 62 gpios = <&gpx2 2 GPIO_ 62 gpios = <&gpx2 2 GPIO_ACTIVE_LOW>; 63 linux,code = <KEY_VOLU 63 linux,code = <KEY_VOLUMEDOWN>; 64 label = "volume down"; 64 label = "volume down"; 65 debounce-interval = <1 65 debounce-interval = <10>; 66 }; 66 }; 67 67 68 key-up { 68 key-up { 69 gpios = <&gpx3 3 GPIO_ 69 gpios = <&gpx3 3 GPIO_ACTIVE_LOW>; 70 linux,code = <KEY_VOLU 70 linux,code = <KEY_VOLUMEUP>; 71 label = "volume up"; 71 label = "volume up"; 72 debounce-interval = <1 72 debounce-interval = <10>; 73 }; 73 }; 74 74 75 key-power { 75 key-power { 76 gpios = <&gpx2 7 GPIO_ 76 gpios = <&gpx2 7 GPIO_ACTIVE_LOW>; 77 linux,code = <KEY_POWE 77 linux,code = <KEY_POWER>; 78 label = "power"; 78 label = "power"; 79 debounce-interval = <1 79 debounce-interval = <10>; 80 wakeup-source; 80 wakeup-source; 81 }; 81 }; 82 }; 82 }; 83 83 84 voltage-regulator-1 { 84 voltage-regulator-1 { 85 compatible = "regulator-fixed" 85 compatible = "regulator-fixed"; 86 regulator-name = "TSP_LDO1"; 86 regulator-name = "TSP_LDO1"; 87 pinctrl-names = "default"; 87 pinctrl-names = "default"; 88 pinctrl-0 = <&tsp_reg_gpio_1>; 88 pinctrl-0 = <&tsp_reg_gpio_1>; 89 gpios = <&gpm4 5 GPIO_ACTIVE_H 89 gpios = <&gpm4 5 GPIO_ACTIVE_HIGH>; 90 enable-active-high; 90 enable-active-high; 91 regulator-always-on; 91 regulator-always-on; 92 }; 92 }; 93 93 94 voltage-regulator-2 { 94 voltage-regulator-2 { 95 compatible = "regulator-fixed" 95 compatible = "regulator-fixed"; 96 regulator-name = "TSP_LDO2"; 96 regulator-name = "TSP_LDO2"; 97 pinctrl-names = "default"; 97 pinctrl-names = "default"; 98 pinctrl-0 = <&tsp_reg_gpio_2>; 98 pinctrl-0 = <&tsp_reg_gpio_2>; 99 gpios = <&gpb 5 GPIO_ACTIVE_HI 99 gpios = <&gpb 5 GPIO_ACTIVE_HIGH>; 100 enable-active-high; 100 enable-active-high; 101 regulator-always-on; 101 regulator-always-on; 102 }; 102 }; 103 103 104 voltage-regulator-3 { 104 voltage-regulator-3 { 105 compatible = "regulator-fixed" 105 compatible = "regulator-fixed"; 106 regulator-name = "TSP_LDO3"; 106 regulator-name = "TSP_LDO3"; 107 pinctrl-names = "default"; 107 pinctrl-names = "default"; 108 pinctrl-0 = <&tsp_reg_gpio_3>; 108 pinctrl-0 = <&tsp_reg_gpio_3>; 109 gpios = <&gpb 7 GPIO_ACTIVE_HI 109 gpios = <&gpb 7 GPIO_ACTIVE_HIGH>; 110 startup-delay-us = <20000>; 110 startup-delay-us = <20000>; 111 enable-active-high; 111 enable-active-high; 112 regulator-always-on; 112 regulator-always-on; 113 }; 113 }; 114 114 115 panel_vdd: voltage-regulator-4 { 115 panel_vdd: voltage-regulator-4 { 116 compatible = "regulator-fixed" 116 compatible = "regulator-fixed"; 117 regulator-name = "LCD_ENABLE"; 117 regulator-name = "LCD_ENABLE"; 118 pinctrl-names = "default"; 118 pinctrl-names = "default"; 119 pinctrl-0 = <&lcd_enable>; 119 pinctrl-0 = <&lcd_enable>; 120 gpios = <&gpc0 1 GPIO_ACTIVE_H 120 gpios = <&gpc0 1 GPIO_ACTIVE_HIGH>; 121 enable-active-high; 121 enable-active-high; 122 regulator-boot-on; 122 regulator-boot-on; 123 }; 123 }; 124 124 125 wlan_pwrseq: sdhci3-pwrseq { 125 wlan_pwrseq: sdhci3-pwrseq { 126 compatible = "mmc-pwrseq-simpl 126 compatible = "mmc-pwrseq-simple"; 127 reset-gpios = <&gpm3 5 GPIO_AC 127 reset-gpios = <&gpm3 5 GPIO_ACTIVE_LOW>; 128 pinctrl-0 = <&wifi_reset>; 128 pinctrl-0 = <&wifi_reset>; 129 pinctrl-names = "default"; 129 pinctrl-names = "default"; 130 clocks = <&max77686 MAX77686_C 130 clocks = <&max77686 MAX77686_CLK_PMIC>; 131 clock-names = "ext_clock"; 131 clock-names = "ext_clock"; 132 }; 132 }; 133 133 134 battery_cell: battery-cell { 134 battery_cell: battery-cell { 135 compatible = "simple-battery"; 135 compatible = "simple-battery"; 136 device-chemistry = "lithium-io 136 device-chemistry = "lithium-ion"; 137 constant-charge-current-max-mi 137 constant-charge-current-max-microamp = <2200000>; 138 precharge-current-microamp = < 138 precharge-current-microamp = <250000>; 139 charge-term-current-microamp = 139 charge-term-current-microamp = <250000>; 140 constant-charge-voltage-max-mi 140 constant-charge-voltage-max-microvolt = <4200000>; 141 }; 141 }; 142 142 143 i2c-gpio-1 { 143 i2c-gpio-1 { 144 compatible = "i2c-gpio"; 144 compatible = "i2c-gpio"; 145 sda-gpios = <&gpy2 4 (GPIO_ACT 145 sda-gpios = <&gpy2 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 146 scl-gpios = <&gpy2 5 (GPIO_ACT 146 scl-gpios = <&gpy2 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 147 i2c-gpio,delay-us = <2>; 147 i2c-gpio,delay-us = <2>; 148 #address-cells = <1>; 148 #address-cells = <1>; 149 #size-cells = <0>; 149 #size-cells = <0>; 150 150 151 magnetometer@c { 151 magnetometer@c { 152 compatible = "asahi-ka 152 compatible = "asahi-kasei,ak8975"; 153 reg = <0x0c>; 153 reg = <0x0c>; 154 pinctrl-0 = <&ak8975_i 154 pinctrl-0 = <&ak8975_irq>; 155 pinctrl-names = "defau 155 pinctrl-names = "default"; 156 interrupt-parent = <&g 156 interrupt-parent = <&gpm4>; 157 interrupts = <7 IRQ_TY 157 interrupts = <7 IRQ_TYPE_EDGE_RISING>; 158 }; 158 }; 159 }; 159 }; 160 160 161 i2c-gpio-2 { 161 i2c-gpio-2 { 162 compatible = "i2c-gpio"; 162 compatible = "i2c-gpio"; 163 sda-gpios = <&gpy0 2 (GPIO_ACT 163 sda-gpios = <&gpy0 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 164 scl-gpios = <&gpy0 3 (GPIO_ACT 164 scl-gpios = <&gpy0 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 165 i2c-gpio,delay-us = <2>; 165 i2c-gpio,delay-us = <2>; 166 #address-cells = <1>; 166 #address-cells = <1>; 167 #size-cells = <0>; 167 #size-cells = <0>; 168 168 169 fuel-gauge@36 { 169 fuel-gauge@36 { 170 compatible = "maxim,ma 170 compatible = "maxim,max17042"; 171 reg = <0x36>; 171 reg = <0x36>; 172 pinctrl-0 = <&fuel_ale 172 pinctrl-0 = <&fuel_alert_irq>; 173 pinctrl-names = "defau 173 pinctrl-names = "default"; 174 interrupt-parent = <&g 174 interrupt-parent = <&gpx2>; 175 interrupts = <3 IRQ_TY 175 interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 176 maxim,rsns-microohm = 176 maxim,rsns-microohm = <10000>; 177 maxim,over-heat-temp = 177 maxim,over-heat-temp = <600>; 178 maxim,over-volt = <430 178 maxim,over-volt = <4300>; 179 }; 179 }; 180 }; 180 }; 181 181 182 i2c-gpio-3 { 182 i2c-gpio-3 { 183 compatible = "i2c-gpio"; 183 compatible = "i2c-gpio"; 184 sda-gpios = <&gpm4 1 (GPIO_ACT 184 sda-gpios = <&gpm4 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 185 scl-gpios = <&gpm4 0 (GPIO_ACT 185 scl-gpios = <&gpm4 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 186 i2c-gpio,delay-us = <5>; 186 i2c-gpio,delay-us = <5>; 187 #address-cells = <1>; 187 #address-cells = <1>; 188 #size-cells = <0>; 188 #size-cells = <0>; 189 189 190 adc@41 { 190 adc@41 { 191 compatible = "st,stmpe 191 compatible = "st,stmpe811"; 192 reg = <0x41>; 192 reg = <0x41>; 193 pinctrl-0 = <&stmpe_ad 193 pinctrl-0 = <&stmpe_adc_irq>; 194 pinctrl-names = "defau 194 pinctrl-names = "default"; 195 interrupt-parent = <&g 195 interrupt-parent = <&gpx0>; 196 interrupts = <1 IRQ_TY 196 interrupts = <1 IRQ_TYPE_LEVEL_LOW>; 197 st,adc-freq = <3>; 197 st,adc-freq = <3>; 198 st,mod-12b = <1>; 198 st,mod-12b = <1>; 199 st,ref-sel = <0>; 199 st,ref-sel = <0>; 200 st,sample-time = <3>; 200 st,sample-time = <3>; 201 201 202 adc { 202 adc { 203 compatible = " 203 compatible = "st,stmpe-adc"; 204 #io-channel-ce 204 #io-channel-cells = <1>; 205 st,norequest-m 205 st,norequest-mask = <0x2f>; 206 }; 206 }; 207 }; 207 }; 208 }; 208 }; 209 209 210 i2c-gpio-4 { 210 i2c-gpio-4 { 211 compatible = "i2c-gpio"; 211 compatible = "i2c-gpio"; 212 sda-gpios = <&gpm2 0 (GPIO_ACT 212 sda-gpios = <&gpm2 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 213 scl-gpios = <&gpm2 1 (GPIO_ACT 213 scl-gpios = <&gpm2 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 214 214 215 i2c-gpio,delay-us = <2>; 215 i2c-gpio,delay-us = <2>; 216 #address-cells = <1>; 216 #address-cells = <1>; 217 #size-cells = <0>; 217 #size-cells = <0>; 218 218 219 power_supply: charger@6 { 219 power_supply: charger@6 { 220 compatible = "summit,s 220 compatible = "summit,smb347"; 221 reg = <0x6>; 221 reg = <0x6>; 222 summit,enable-usb-char 222 summit,enable-usb-charging; 223 summit,enable-charge-c 223 summit,enable-charge-control = <SMB3XX_CHG_ENABLE_SW>; 224 summit,fast-voltage-th 224 summit,fast-voltage-threshold-microvolt = <2600000>; 225 summit,chip-temperatur 225 summit,chip-temperature-threshold-celsius = <130>; 226 summit,usb-current-lim 226 summit,usb-current-limit-microamp = <1800000>; 227 227 228 monitored-battery = <& 228 monitored-battery = <&battery_cell>; 229 }; 229 }; 230 }; 230 }; 231 231 232 panel { 232 panel { 233 compatible = "samsung,ltl101al 233 compatible = "samsung,ltl101al01"; 234 pinctrl-0 = <&lvds_nshdn>; 234 pinctrl-0 = <&lvds_nshdn>; 235 pinctrl-names = "default"; 235 pinctrl-names = "default"; 236 power-supply = <&panel_vdd>; 236 power-supply = <&panel_vdd>; 237 enable-gpios = <&gpm0 5 GPIO_A 237 enable-gpios = <&gpm0 5 GPIO_ACTIVE_HIGH>; 238 backlight = <&backlight>; 238 backlight = <&backlight>; 239 239 240 port { 240 port { 241 lcd_ep: endpoint { 241 lcd_ep: endpoint { 242 remote-endpoin 242 remote-endpoint = <&fimd_ep>; 243 }; 243 }; 244 }; 244 }; 245 }; 245 }; 246 246 247 backlight: backlight { 247 backlight: backlight { 248 compatible = "pwm-backlight"; 248 compatible = "pwm-backlight"; 249 pinctrl-0 = <&led_bl_reset>; 249 pinctrl-0 = <&led_bl_reset>; 250 pinctrl-names = "default"; 250 pinctrl-names = "default"; 251 enable-gpios = <&gpm0 1 GPIO_A 251 enable-gpios = <&gpm0 1 GPIO_ACTIVE_HIGH>; 252 power-supply = <&panel_vdd>; 252 power-supply = <&panel_vdd>; 253 pwms = <&pwm 1 78770 0>; 253 pwms = <&pwm 1 78770 0>; 254 brightness-levels = <0 48 128 254 brightness-levels = <0 48 128 255>; 255 num-interpolated-steps = <8>; 255 num-interpolated-steps = <8>; 256 default-brightness-level = <12 256 default-brightness-level = <12>; 257 }; 257 }; 258 }; 258 }; 259 259 260 &adc { 260 &adc { 261 vdd-supply = <&ldo3_reg>; 261 vdd-supply = <&ldo3_reg>; 262 /* not verified */ 262 /* not verified */ 263 status = "okay"; 263 status = "okay"; 264 }; 264 }; 265 265 266 &bus_dmc { 266 &bus_dmc { 267 devfreq-events = <&ppmu_dmc0_3>, <&ppm 267 devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>; 268 vdd-supply = <&buck1_reg>; 268 vdd-supply = <&buck1_reg>; 269 status = "okay"; 269 status = "okay"; 270 }; 270 }; 271 271 272 &bus_acp { 272 &bus_acp { 273 devfreq = <&bus_dmc>; 273 devfreq = <&bus_dmc>; 274 status = "okay"; 274 status = "okay"; 275 }; 275 }; 276 276 277 &bus_c2c { 277 &bus_c2c { 278 devfreq = <&bus_dmc>; 278 devfreq = <&bus_dmc>; 279 status = "okay"; 279 status = "okay"; 280 }; 280 }; 281 281 282 &bus_leftbus { 282 &bus_leftbus { 283 devfreq-events = <&ppmu_leftbus_3>, <& 283 devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>; 284 vdd-supply = <&buck3_reg>; 284 vdd-supply = <&buck3_reg>; 285 status = "okay"; 285 status = "okay"; 286 }; 286 }; 287 287 288 &bus_rightbus { 288 &bus_rightbus { 289 devfreq = <&bus_leftbus>; 289 devfreq = <&bus_leftbus>; 290 status = "okay"; 290 status = "okay"; 291 }; 291 }; 292 292 293 &bus_display { 293 &bus_display { 294 devfreq = <&bus_leftbus>; 294 devfreq = <&bus_leftbus>; 295 status = "okay"; 295 status = "okay"; 296 }; 296 }; 297 297 298 &bus_fsys { 298 &bus_fsys { 299 devfreq = <&bus_leftbus>; 299 devfreq = <&bus_leftbus>; 300 status = "okay"; 300 status = "okay"; 301 }; 301 }; 302 302 303 &bus_peri { 303 &bus_peri { 304 devfreq = <&bus_leftbus>; 304 devfreq = <&bus_leftbus>; 305 status = "okay"; 305 status = "okay"; 306 }; 306 }; 307 307 308 &bus_mfc { 308 &bus_mfc { 309 devfreq = <&bus_leftbus>; 309 devfreq = <&bus_leftbus>; 310 status = "okay"; 310 status = "okay"; 311 }; 311 }; 312 312 313 &cpu0 { 313 &cpu0 { 314 cpu0-supply = <&buck2_reg>; 314 cpu0-supply = <&buck2_reg>; 315 }; 315 }; 316 316 317 &cpu_thermal { 317 &cpu_thermal { 318 cooling-maps { 318 cooling-maps { 319 map0 { 319 map0 { 320 /* Corresponds to 800M 320 /* Corresponds to 800MHz at freq_table */ 321 cooling-device = <&cpu 321 cooling-device = <&cpu0 7 7>, <&cpu1 7 7>, 322 <&cpu 322 <&cpu2 7 7>, <&cpu3 7 7>; 323 }; 323 }; 324 map1 { 324 map1 { 325 /* Corresponds to 200M 325 /* Corresponds to 200MHz at freq_table */ 326 cooling-device = <&cpu 326 cooling-device = <&cpu0 13 13>, <&cpu1 13 13>, 327 <&cpu 327 <&cpu2 13 13>, <&cpu3 13 13>; 328 }; 328 }; 329 }; 329 }; 330 }; 330 }; 331 331 332 &exynos_usbphy { 332 &exynos_usbphy { 333 status = "okay"; 333 status = "okay"; 334 }; 334 }; 335 335 336 &fimd { 336 &fimd { 337 pinctrl-0 = <&lcd_clk &lcd_data24>; 337 pinctrl-0 = <&lcd_clk &lcd_data24>; 338 pinctrl-names = "default"; 338 pinctrl-names = "default"; 339 #address-cells = <1>; 339 #address-cells = <1>; 340 #size-cells = <0>; 340 #size-cells = <0>; 341 status = "okay"; 341 status = "okay"; 342 342 343 samsung,invert-vclk; 343 samsung,invert-vclk; 344 344 345 port@3 { 345 port@3 { 346 reg = <3>; 346 reg = <3>; 347 347 348 fimd_ep: endpoint { 348 fimd_ep: endpoint { 349 remote-endpoint = <&lc 349 remote-endpoint = <&lcd_ep>; 350 }; 350 }; 351 }; 351 }; 352 }; 352 }; 353 353 354 &gpu { 354 &gpu { 355 mali-supply = <&buck4_reg>; 355 mali-supply = <&buck4_reg>; 356 status = "okay"; 356 status = "okay"; 357 }; 357 }; 358 358 359 &hsotg { 359 &hsotg { 360 vusb_a-supply = <&ldo12_reg>; 360 vusb_a-supply = <&ldo12_reg>; 361 dr_mode = "peripheral"; 361 dr_mode = "peripheral"; 362 status = "okay"; 362 status = "okay"; 363 }; 363 }; 364 364 365 &i2c_1 { << 366 samsung,i2c-sda-delay = <100>; << 367 samsung,i2c-slave-addr = <0x10>; << 368 samsung,i2c-max-bus-freq = <400000>; << 369 pinctrl-0 = <&i2c1_bus>; << 370 pinctrl-names = "default"; << 371 status = "okay"; << 372 << 373 accelerometer@19 { << 374 compatible = "st,lsm330dlc-acc << 375 reg = <0x19>; << 376 interrupt-parent = <&gpx0>; << 377 interrupts = <0 IRQ_TYPE_EDGE_ << 378 pinctrl-0 = <&accelerometer_ir << 379 pinctrl-names = "default"; << 380 mount-matrix = "1", "0", "0 << 381 "0", "-1", "0 << 382 "0", "0", "-1 << 383 }; << 384 << 385 gyro@6b { << 386 compatible = "st,lsm330dlc-gyr << 387 reg = <0x6b>; << 388 interrupt-parent = <&gpx0>; << 389 interrupts = <6 IRQ_TYPE_EDGE_ << 390 pinctrl-0 = <&gyro_data_enable << 391 pinctrl-names = "default"; << 392 mount-matrix = "1", "0", "0 << 393 "0", "-1", "0 << 394 "0", "0", "-1 << 395 }; << 396 }; << 397 << 398 &i2c_3 { 365 &i2c_3 { 399 samsung,i2c-sda-delay = <100>; 366 samsung,i2c-sda-delay = <100>; 400 samsung,i2c-slave-addr = <0x10>; 367 samsung,i2c-slave-addr = <0x10>; 401 samsung,i2c-max-bus-freq = <400000>; 368 samsung,i2c-max-bus-freq = <400000>; 402 pinctrl-0 = <&i2c3_bus>; 369 pinctrl-0 = <&i2c3_bus>; 403 pinctrl-names = "default"; 370 pinctrl-names = "default"; 404 status = "okay"; 371 status = "okay"; 405 372 406 touchscreen@4a { 373 touchscreen@4a { 407 compatible = "atmel,maxtouch"; 374 compatible = "atmel,maxtouch"; 408 reg = <0x4a>; 375 reg = <0x4a>; 409 pinctrl-0 = <&tsp_rst &tsp_irq 376 pinctrl-0 = <&tsp_rst &tsp_irq>; 410 pinctrl-names = "default"; 377 pinctrl-names = "default"; 411 interrupt-parent = <&gpm2>; 378 interrupt-parent = <&gpm2>; 412 interrupts = <3 IRQ_TYPE_LEVEL 379 interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 413 reset-gpios = <&gpm0 4 GPIO_AC 380 reset-gpios = <&gpm0 4 GPIO_ACTIVE_LOW>; 414 }; 381 }; 415 }; 382 }; 416 383 417 &i2c_7 { 384 &i2c_7 { 418 samsung,i2c-sda-delay = <100>; 385 samsung,i2c-sda-delay = <100>; 419 samsung,i2c-slave-addr = <0x10>; 386 samsung,i2c-slave-addr = <0x10>; 420 samsung,i2c-max-bus-freq = <400000>; 387 samsung,i2c-max-bus-freq = <400000>; 421 pinctrl-0 = <&i2c7_bus>; 388 pinctrl-0 = <&i2c7_bus>; 422 pinctrl-names = "default"; 389 pinctrl-names = "default"; 423 status = "okay"; 390 status = "okay"; 424 391 425 max77686: pmic@9 { 392 max77686: pmic@9 { 426 compatible = "maxim,max77686"; 393 compatible = "maxim,max77686"; 427 interrupt-parent = <&gpx0>; 394 interrupt-parent = <&gpx0>; 428 interrupts = <7 IRQ_TYPE_LEVEL 395 interrupts = <7 IRQ_TYPE_LEVEL_LOW>; 429 pinctrl-0 = <&max77686_irq>; 396 pinctrl-0 = <&max77686_irq>; 430 pinctrl-names = "default"; 397 pinctrl-names = "default"; 431 wakeup-source; 398 wakeup-source; 432 reg = <0x09>; 399 reg = <0x09>; 433 #clock-cells = <1>; 400 #clock-cells = <1>; 434 401 435 voltage-regulators { 402 voltage-regulators { 436 ldo1_reg: LDO1 { 403 ldo1_reg: LDO1 { 437 regulator-name 404 regulator-name = "ldo1"; 438 regulator-alwa 405 regulator-always-on; 439 }; 406 }; 440 407 441 ldo2_reg: LDO2 { 408 ldo2_reg: LDO2 { 442 regulator-name 409 regulator-name = "ldo2"; 443 regulator-alwa 410 regulator-always-on; 444 }; 411 }; 445 412 446 /* WM8994 audio */ 413 /* WM8994 audio */ 447 ldo3_reg: LDO3 { 414 ldo3_reg: LDO3 { 448 regulator-name 415 regulator-name = "VCC_1.8V_AP"; 449 regulator-min- 416 regulator-min-microvolt = <1800000>; 450 regulator-max- 417 regulator-max-microvolt = <1800000>; 451 regulator-alwa 418 regulator-always-on; 452 regulator-boot 419 regulator-boot-on; 453 420 454 regulator-stat 421 regulator-state-mem { 455 regula 422 regulator-on-in-suspend; 456 }; 423 }; 457 }; 424 }; 458 425 459 ldo4_reg: LDO4 { 426 ldo4_reg: LDO4 { 460 regulator-name 427 regulator-name = "ldo4"; 461 regulator-alwa 428 regulator-always-on; 462 }; 429 }; 463 430 464 ldo5_reg: LDO5 { 431 ldo5_reg: LDO5 { 465 regulator-name 432 regulator-name = "VCC_1.8V_IO"; 466 regulator-min- 433 regulator-min-microvolt = <1800000>; 467 regulator-max- 434 regulator-max-microvolt = <1800000>; 468 435 469 regulator-stat 436 regulator-state-mem { 470 regula 437 regulator-off-in-suspend; 471 }; 438 }; 472 }; 439 }; 473 440 474 ldo6_reg: LDO6 { 441 ldo6_reg: LDO6 { 475 regulator-name 442 regulator-name = "ldo6"; 476 regulator-alwa 443 regulator-always-on; 477 }; 444 }; 478 445 479 ldo7_reg: LDO7 { 446 ldo7_reg: LDO7 { 480 regulator-name 447 regulator-name = "ldo7"; 481 regulator-alwa 448 regulator-always-on; 482 }; 449 }; 483 450 484 /* CSI IP block */ 451 /* CSI IP block */ 485 ldo8_reg: LDO8 { 452 ldo8_reg: LDO8 { 486 regulator-name 453 regulator-name = "VMIPI_1.0V"; 487 regulator-min- 454 regulator-min-microvolt = <1000000>; 488 regulator-max- 455 regulator-max-microvolt = <1000000>; 489 regulator-alwa 456 regulator-always-on; 490 regulator-boot 457 regulator-boot-on; 491 458 492 regulator-stat 459 regulator-state-mem { 493 regula 460 regulator-on-in-suspend; 494 }; 461 }; 495 }; 462 }; 496 463 497 /* IR LED on/off */ 464 /* IR LED on/off */ 498 ldo9_reg: LDO9 { 465 ldo9_reg: LDO9 { 499 regulator-name 466 regulator-name = "VLED_IC_1.9V"; 500 regulator-min- 467 regulator-min-microvolt = <1950000>; 501 regulator-max- 468 regulator-max-microvolt = <1950000>; 502 469 503 regulator-stat 470 regulator-state-mem { 504 regula 471 regulator-off-in-suspend; 505 }; 472 }; 506 }; 473 }; 507 474 508 /* CSI IP block */ 475 /* CSI IP block */ 509 ldo10_reg: LDO10 { 476 ldo10_reg: LDO10 { 510 regulator-name 477 regulator-name = "VMIPI_1.8V"; 511 regulator-min- 478 regulator-min-microvolt = <1800000>; 512 regulator-max- 479 regulator-max-microvolt = <1800000>; 513 regulator-alwa 480 regulator-always-on; 514 regulator-boot 481 regulator-boot-on; 515 482 516 regulator-stat 483 regulator-state-mem { 517 regula 484 regulator-on-in-suspend; 518 }; 485 }; 519 }; 486 }; 520 487 521 ldo11_reg: LDO11 { 488 ldo11_reg: LDO11 { 522 regulator-name 489 regulator-name = "VABB1_1.9V"; 523 regulator-min- 490 regulator-min-microvolt = <1950000>; 524 regulator-max- 491 regulator-max-microvolt = <1950000>; 525 regulator-alwa 492 regulator-always-on; 526 regulator-boot 493 regulator-boot-on; 527 494 528 regulator-stat 495 regulator-state-mem { 529 regula 496 regulator-off-in-suspend; 530 }; 497 }; 531 }; 498 }; 532 499 533 /* USB OTG */ 500 /* USB OTG */ 534 ldo12_reg: LDO12 { 501 ldo12_reg: LDO12 { 535 regulator-name 502 regulator-name = "VUOTG_3.0V"; 536 regulator-min- 503 regulator-min-microvolt = <3000000>; 537 regulator-max- 504 regulator-max-microvolt = <3000000>; 538 regulator-alwa 505 regulator-always-on; 539 regulator-boot 506 regulator-boot-on; 540 507 541 regulator-stat 508 regulator-state-mem { 542 regula 509 regulator-on-in-suspend; 543 }; 510 }; 544 }; 511 }; 545 512 546 /* not connected */ 513 /* not connected */ 547 ldo13_reg: LDO13 { 514 ldo13_reg: LDO13 { 548 regulator-name 515 regulator-name = "ldo13"; 549 }; 516 }; 550 517 551 ldo14_reg: LDO14 { 518 ldo14_reg: LDO14 { 552 regulator-name 519 regulator-name = "VABB2_1.9V"; 553 regulator-min- 520 regulator-min-microvolt = <1950000>; 554 regulator-max- 521 regulator-max-microvolt = <1950000>; 555 regulator-alwa 522 regulator-always-on; 556 regulator-boot 523 regulator-boot-on; 557 524 558 regulator-stat 525 regulator-state-mem { 559 regula 526 regulator-off-in-suspend; 560 }; 527 }; 561 }; 528 }; 562 529 563 ldo15_reg: LDO15 { 530 ldo15_reg: LDO15 { 564 regulator-name 531 regulator-name = "ldo15"; 565 regulator-alwa 532 regulator-always-on; 566 }; 533 }; 567 534 568 ldo16_reg: LDO16 { 535 ldo16_reg: LDO16 { 569 regulator-name 536 regulator-name = "ldo16"; 570 regulator-alwa 537 regulator-always-on; 571 }; 538 }; 572 539 573 /* not connected */ 540 /* not connected */ 574 ldo17_reg: LDO17 { 541 ldo17_reg: LDO17 { 575 regulator-name 542 regulator-name = "ldo17"; 576 }; 543 }; 577 544 578 /* Camera ISX012 */ 545 /* Camera ISX012 */ 579 ldo18_reg: LDO18 { 546 ldo18_reg: LDO18 { 580 regulator-name 547 regulator-name = "CAM_IO_1.8V"; 581 regulator-min- 548 regulator-min-microvolt = <1800000>; 582 regulator-max- 549 regulator-max-microvolt = <1800000>; 583 550 584 regulator-stat 551 regulator-state-mem { 585 regula 552 regulator-off-in-suspend; 586 }; 553 }; 587 }; 554 }; 588 555 589 /* Camera S5K6A3 */ 556 /* Camera S5K6A3 */ 590 ldo19_reg: LDO19 { 557 ldo19_reg: LDO19 { 591 regulator-name 558 regulator-name = "VT_CORE_1.8V"; 592 regulator-min- 559 regulator-min-microvolt = <1800000>; 593 regulator-max- 560 regulator-max-microvolt = <1800000>; 594 561 595 regulator-stat 562 regulator-state-mem { 596 regula 563 regulator-off-in-suspend; 597 }; 564 }; 598 }; 565 }; 599 566 600 /* not connected */ 567 /* not connected */ 601 ldo20_reg: LDO20 { 568 ldo20_reg: LDO20 { 602 regulator-name 569 regulator-name = "ldo20"; 603 }; 570 }; 604 571 605 /* MMC2 */ 572 /* MMC2 */ 606 ldo21_reg: LDO21 { 573 ldo21_reg: LDO21 { 607 regulator-name 574 regulator-name = "VTF_2.8V"; 608 regulator-min- 575 regulator-min-microvolt = <2800000>; 609 regulator-max- 576 regulator-max-microvolt = <2800000>; 610 maxim,ena-gpio 577 maxim,ena-gpios = <&gpy2 0 GPIO_ACTIVE_HIGH>; 611 }; 578 }; 612 579 613 /* not connected */ 580 /* not connected */ 614 ldo22_reg: LDO22 { 581 ldo22_reg: LDO22 { 615 regulator-name 582 regulator-name = "ldo22"; 616 }; 583 }; 617 584 618 /* ADC */ 585 /* ADC */ 619 ldo23_reg: LDO23 { 586 ldo23_reg: LDO23 { 620 regulator-name 587 regulator-name = "VDD_ADC_3.3V"; 621 regulator-min- 588 regulator-min-microvolt = <3300000>; 622 regulator-max- 589 regulator-max-microvolt = <3300000>; 623 regulator-alwa 590 regulator-always-on; 624 regulator-boot 591 regulator-boot-on; 625 592 626 regulator-stat 593 regulator-state-mem { 627 regula 594 regulator-off-in-suspend; 628 }; 595 }; 629 }; 596 }; 630 597 631 /* Camera S5K6A3 */ 598 /* Camera S5K6A3 */ 632 ldo24_reg: LDO24 { 599 ldo24_reg: LDO24 { 633 regulator-name 600 regulator-name = "CAM_A2.8V"; 634 regulator-min- 601 regulator-min-microvolt = <2800000>; 635 regulator-max- 602 regulator-max-microvolt = <2800000>; 636 603 637 regulator-stat 604 regulator-state-mem { 638 regula 605 regulator-off-in-suspend; 639 }; 606 }; 640 }; 607 }; 641 608 642 ldo25_reg: LDO25 { 609 ldo25_reg: LDO25 { 643 regulator-name 610 regulator-name = "VLED_3.3V"; 644 regulator-min- 611 regulator-min-microvolt = <3300000>; 645 regulator-max- 612 regulator-max-microvolt = <3300000>; 646 613 647 regulator-stat 614 regulator-state-mem { 648 regula 615 regulator-off-in-suspend; 649 }; 616 }; 650 }; 617 }; 651 618 652 /* Camera ISX012 */ 619 /* Camera ISX012 */ 653 ldo26_reg: LDO26 { 620 ldo26_reg: LDO26 { 654 regulator-name 621 regulator-name = "3MP_AF_2.8V"; 655 regulator-min- 622 regulator-min-microvolt = <2800000>; 656 regulator-max- 623 regulator-max-microvolt = <2800000>; 657 624 658 regulator-stat 625 regulator-state-mem { 659 regula 626 regulator-off-in-suspend; 660 }; 627 }; 661 }; 628 }; 662 629 663 buck1_reg: BUCK1 { 630 buck1_reg: BUCK1 { 664 regulator-name 631 regulator-name = "VDD_MIF"; 665 regulator-min- 632 regulator-min-microvolt = <850000>; 666 regulator-max- 633 regulator-max-microvolt = <1050000>; 667 regulator-alwa 634 regulator-always-on; 668 regulator-boot 635 regulator-boot-on; 669 }; 636 }; 670 637 671 buck2_reg: BUCK2 { 638 buck2_reg: BUCK2 { 672 regulator-name 639 regulator-name = "VDD_ARM"; 673 regulator-min- 640 regulator-min-microvolt = <850000>; 674 regulator-max- 641 regulator-max-microvolt = <1500000>; 675 regulator-alwa 642 regulator-always-on; 676 regulator-boot 643 regulator-boot-on; 677 }; 644 }; 678 645 679 buck3_reg: BUCK3 { 646 buck3_reg: BUCK3 { 680 regulator-name 647 regulator-name = "VDD_INT"; 681 regulator-min- 648 regulator-min-microvolt = <850000>; 682 regulator-max- 649 regulator-max-microvolt = <1100000>; 683 regulator-alwa 650 regulator-always-on; 684 regulator-boot 651 regulator-boot-on; 685 }; 652 }; 686 653 687 buck4_reg: BUCK4 { 654 buck4_reg: BUCK4 { 688 regulator-name 655 regulator-name = "VDD_G3D"; 689 regulator-min- 656 regulator-min-microvolt = <850000>; 690 regulator-max- 657 regulator-max-microvolt = <1075000>; 691 regulator-boot 658 regulator-boot-on; 692 }; 659 }; 693 660 694 buck5_reg: BUCK5 { 661 buck5_reg: BUCK5 { 695 regulator-name 662 regulator-name = "buck5"; 696 regulator-alwa 663 regulator-always-on; 697 }; 664 }; 698 665 699 buck6_reg: BUCK6 { 666 buck6_reg: BUCK6 { 700 regulator-name 667 regulator-name = "buck6"; 701 regulator-alwa 668 regulator-always-on; 702 }; 669 }; 703 670 704 buck7_reg: BUCK7 { 671 buck7_reg: BUCK7 { 705 regulator-name 672 regulator-name = "buck7"; 706 regulator-alwa 673 regulator-always-on; 707 }; 674 }; 708 675 709 /* not connected */ 676 /* not connected */ 710 buck8_reg: BUCK8 { 677 buck8_reg: BUCK8 { 711 regulator-name 678 regulator-name = "buck8"; 712 }; 679 }; 713 680 714 buck9_reg: BUCK9 { 681 buck9_reg: BUCK9 { 715 regulator-name 682 regulator-name = "3MP_CORE_1.2V"; 716 regulator-min- 683 regulator-min-microvolt = <1200000>; 717 regulator-max- 684 regulator-max-microvolt = <1200000>; 718 685 719 regulator-stat 686 regulator-state-mem { 720 regula 687 regulator-off-in-suspend; 721 }; 688 }; 722 }; 689 }; 723 }; 690 }; 724 }; 691 }; 725 }; 692 }; 726 693 727 &mshc_0 { 694 &mshc_0 { 728 broken-cd; 695 broken-cd; 729 non-removable; 696 non-removable; 730 card-detect-delay = <200>; 697 card-detect-delay = <200>; 731 clock-frequency = <400000000>; 698 clock-frequency = <400000000>; 732 samsung,dw-mshc-ciu-div = <0>; 699 samsung,dw-mshc-ciu-div = <0>; 733 samsung,dw-mshc-sdr-timing = <2 3>; 700 samsung,dw-mshc-sdr-timing = <2 3>; 734 samsung,dw-mshc-ddr-timing = <1 2>; 701 samsung,dw-mshc-ddr-timing = <1 2>; 735 mmc-ddr-1_8v; 702 mmc-ddr-1_8v; 736 pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bu 703 pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>; 737 pinctrl-names = "default"; 704 pinctrl-names = "default"; 738 bus-width = <4>; 705 bus-width = <4>; 739 cap-mmc-highspeed; 706 cap-mmc-highspeed; 740 cap-sd-highspeed; 707 cap-sd-highspeed; 741 status = "okay"; 708 status = "okay"; 742 }; 709 }; 743 710 744 &pinctrl_0 { 711 &pinctrl_0 { 745 pinctrl-names = "default"; 712 pinctrl-names = "default"; 746 pinctrl-0 = <&sleep0>; 713 pinctrl-0 = <&sleep0>; 747 714 748 tsp_reg_gpio_2: tsp-reg-gpio-2-pins { 715 tsp_reg_gpio_2: tsp-reg-gpio-2-pins { 749 samsung,pins = "gpb-5"; 716 samsung,pins = "gpb-5"; 750 samsung,pin-function = <EXYNOS 717 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 751 samsung,pin-pud = <EXYNOS_PIN_ 718 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 752 }; 719 }; 753 720 754 tsp_reg_gpio_3: tsp-reg-gpio-3-pins { 721 tsp_reg_gpio_3: tsp-reg-gpio-3-pins { 755 samsung,pins = "gpb-7"; 722 samsung,pins = "gpb-7"; 756 samsung,pin-function = <EXYNOS 723 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 757 samsung,pin-pud = <EXYNOS_PIN_ 724 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 758 }; 725 }; 759 726 760 lcd_enable: lcd-enable-pins { 727 lcd_enable: lcd-enable-pins { 761 samsung,pins = "gpc0-1"; 728 samsung,pins = "gpc0-1"; 762 samsung,pin-function = <EXYNOS 729 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 763 samsung,pin-pud = <EXYNOS_PIN_ 730 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 764 }; 731 }; 765 732 766 sleep0: sleep-state { 733 sleep0: sleep-state { 767 PIN_SLP(gpa0-0, INPUT, NONE); 734 PIN_SLP(gpa0-0, INPUT, NONE); 768 PIN_SLP(gpa0-1, OUT0, NONE); 735 PIN_SLP(gpa0-1, OUT0, NONE); 769 PIN_SLP(gpa0-2, INPUT, NONE); 736 PIN_SLP(gpa0-2, INPUT, NONE); 770 PIN_SLP(gpa0-3, INPUT, UP); 737 PIN_SLP(gpa0-3, INPUT, UP); 771 PIN_SLP(gpa0-4, INPUT, NONE); 738 PIN_SLP(gpa0-4, INPUT, NONE); 772 PIN_SLP(gpa0-5, INPUT, DOWN); 739 PIN_SLP(gpa0-5, INPUT, DOWN); 773 PIN_SLP(gpa0-6, INPUT, DOWN); 740 PIN_SLP(gpa0-6, INPUT, DOWN); 774 PIN_SLP(gpa0-7, INPUT, UP); 741 PIN_SLP(gpa0-7, INPUT, UP); 775 742 776 PIN_SLP(gpa1-0, INPUT, DOWN); 743 PIN_SLP(gpa1-0, INPUT, DOWN); 777 PIN_SLP(gpa1-1, INPUT, DOWN); 744 PIN_SLP(gpa1-1, INPUT, DOWN); 778 PIN_SLP(gpa1-2, INPUT, DOWN); 745 PIN_SLP(gpa1-2, INPUT, DOWN); 779 PIN_SLP(gpa1-3, INPUT, DOWN); 746 PIN_SLP(gpa1-3, INPUT, DOWN); 780 PIN_SLP(gpa1-4, INPUT, DOWN); 747 PIN_SLP(gpa1-4, INPUT, DOWN); 781 PIN_SLP(gpa1-5, INPUT, DOWN); 748 PIN_SLP(gpa1-5, INPUT, DOWN); 782 749 783 PIN_SLP(gpb-0, INPUT, NONE); 750 PIN_SLP(gpb-0, INPUT, NONE); 784 PIN_SLP(gpb-1, INPUT, NONE); 751 PIN_SLP(gpb-1, INPUT, NONE); 785 PIN_SLP(gpb-2, INPUT, NONE); 752 PIN_SLP(gpb-2, INPUT, NONE); 786 PIN_SLP(gpb-3, INPUT, NONE); 753 PIN_SLP(gpb-3, INPUT, NONE); 787 PIN_SLP(gpb-4, INPUT, DOWN); 754 PIN_SLP(gpb-4, INPUT, DOWN); 788 PIN_SLP(gpb-5, INPUT, DOWN); 755 PIN_SLP(gpb-5, INPUT, DOWN); 789 PIN_SLP(gpb-6, INPUT, DOWN); 756 PIN_SLP(gpb-6, INPUT, DOWN); 790 PIN_SLP(gpb-7, INPUT, DOWN); 757 PIN_SLP(gpb-7, INPUT, DOWN); 791 758 792 PIN_SLP(gpc0-0, INPUT, DOWN); 759 PIN_SLP(gpc0-0, INPUT, DOWN); 793 PIN_SLP(gpc0-1, INPUT, DOWN); 760 PIN_SLP(gpc0-1, INPUT, DOWN); 794 PIN_SLP(gpc0-2, INPUT, DOWN); 761 PIN_SLP(gpc0-2, INPUT, DOWN); 795 PIN_SLP(gpc0-3, INPUT, DOWN); 762 PIN_SLP(gpc0-3, INPUT, DOWN); 796 PIN_SLP(gpc0-4, INPUT, DOWN); 763 PIN_SLP(gpc0-4, INPUT, DOWN); 797 764 798 PIN_SLP(gpc1-0, INPUT, UP); 765 PIN_SLP(gpc1-0, INPUT, UP); 799 PIN_SLP(gpc1-1, PREV, NONE); 766 PIN_SLP(gpc1-1, PREV, NONE); 800 PIN_SLP(gpc1-2, INPUT, UP); 767 PIN_SLP(gpc1-2, INPUT, UP); 801 PIN_SLP(gpc1-3, INPUT, UP); 768 PIN_SLP(gpc1-3, INPUT, UP); 802 PIN_SLP(gpc1-4, INPUT, UP); 769 PIN_SLP(gpc1-4, INPUT, UP); 803 770 804 PIN_SLP(gpd0-0, INPUT, DOWN); 771 PIN_SLP(gpd0-0, INPUT, DOWN); 805 PIN_SLP(gpd0-1, OUT0, NONE); 772 PIN_SLP(gpd0-1, OUT0, NONE); 806 PIN_SLP(gpd0-2, INPUT, NONE); 773 PIN_SLP(gpd0-2, INPUT, NONE); 807 PIN_SLP(gpd0-3, INPUT, NONE); 774 PIN_SLP(gpd0-3, INPUT, NONE); 808 775 809 PIN_SLP(gpd1-0, INPUT, DOWN); 776 PIN_SLP(gpd1-0, INPUT, DOWN); 810 PIN_SLP(gpd1-1, INPUT, DOWN); 777 PIN_SLP(gpd1-1, INPUT, DOWN); 811 PIN_SLP(gpd1-2, INPUT, NONE); 778 PIN_SLP(gpd1-2, INPUT, NONE); 812 PIN_SLP(gpd1-3, INPUT, NONE); 779 PIN_SLP(gpd1-3, INPUT, NONE); 813 780 814 PIN_SLP(gpf0-0, OUT0, NONE); 781 PIN_SLP(gpf0-0, OUT0, NONE); 815 PIN_SLP(gpf0-1, OUT0, NONE); 782 PIN_SLP(gpf0-1, OUT0, NONE); 816 PIN_SLP(gpf0-2, OUT0, NONE); 783 PIN_SLP(gpf0-2, OUT0, NONE); 817 PIN_SLP(gpf0-3, OUT0, NONE); 784 PIN_SLP(gpf0-3, OUT0, NONE); 818 PIN_SLP(gpf0-4, OUT0, NONE); 785 PIN_SLP(gpf0-4, OUT0, NONE); 819 PIN_SLP(gpf0-5, OUT0, NONE); 786 PIN_SLP(gpf0-5, OUT0, NONE); 820 PIN_SLP(gpf0-6, OUT0, NONE); 787 PIN_SLP(gpf0-6, OUT0, NONE); 821 PIN_SLP(gpf0-7, OUT0, NONE); 788 PIN_SLP(gpf0-7, OUT0, NONE); 822 789 823 PIN_SLP(gpf1-0, OUT0, NONE); 790 PIN_SLP(gpf1-0, OUT0, NONE); 824 PIN_SLP(gpf1-1, OUT0, NONE); 791 PIN_SLP(gpf1-1, OUT0, NONE); 825 PIN_SLP(gpf1-2, OUT0, NONE); 792 PIN_SLP(gpf1-2, OUT0, NONE); 826 PIN_SLP(gpf1-3, OUT0, NONE); 793 PIN_SLP(gpf1-3, OUT0, NONE); 827 PIN_SLP(gpf1-4, OUT0, NONE); 794 PIN_SLP(gpf1-4, OUT0, NONE); 828 PIN_SLP(gpf1-5, OUT0, NONE); 795 PIN_SLP(gpf1-5, OUT0, NONE); 829 PIN_SLP(gpf1-6, OUT0, NONE); 796 PIN_SLP(gpf1-6, OUT0, NONE); 830 PIN_SLP(gpf1-7, OUT0, NONE); 797 PIN_SLP(gpf1-7, OUT0, NONE); 831 798 832 PIN_SLP(gpf2-0, OUT0, NONE); 799 PIN_SLP(gpf2-0, OUT0, NONE); 833 PIN_SLP(gpf2-1, OUT0, NONE); 800 PIN_SLP(gpf2-1, OUT0, NONE); 834 PIN_SLP(gpf2-2, OUT0, NONE); 801 PIN_SLP(gpf2-2, OUT0, NONE); 835 PIN_SLP(gpf2-3, OUT0, NONE); 802 PIN_SLP(gpf2-3, OUT0, NONE); 836 PIN_SLP(gpf2-4, OUT0, NONE); 803 PIN_SLP(gpf2-4, OUT0, NONE); 837 PIN_SLP(gpf2-5, OUT0, NONE); 804 PIN_SLP(gpf2-5, OUT0, NONE); 838 PIN_SLP(gpf2-6, OUT0, NONE); 805 PIN_SLP(gpf2-6, OUT0, NONE); 839 PIN_SLP(gpf2-7, OUT0, NONE); 806 PIN_SLP(gpf2-7, OUT0, NONE); 840 807 841 PIN_SLP(gpf3-0, OUT0, NONE); 808 PIN_SLP(gpf3-0, OUT0, NONE); 842 PIN_SLP(gpf3-1, OUT0, NONE); 809 PIN_SLP(gpf3-1, OUT0, NONE); 843 PIN_SLP(gpf3-2, OUT0, NONE); 810 PIN_SLP(gpf3-2, OUT0, NONE); 844 PIN_SLP(gpf3-3, OUT0, NONE); 811 PIN_SLP(gpf3-3, OUT0, NONE); 845 PIN_SLP(gpf3-4, OUT0, NONE); 812 PIN_SLP(gpf3-4, OUT0, NONE); 846 PIN_SLP(gpf3-5, OUT0, NONE); 813 PIN_SLP(gpf3-5, OUT0, NONE); 847 814 848 PIN_SLP(gpj0-0, INPUT, DOWN); 815 PIN_SLP(gpj0-0, INPUT, DOWN); 849 PIN_SLP(gpj0-1, INPUT, DOWN); 816 PIN_SLP(gpj0-1, INPUT, DOWN); 850 PIN_SLP(gpj0-2, INPUT, DOWN); 817 PIN_SLP(gpj0-2, INPUT, DOWN); 851 PIN_SLP(gpj0-3, PREV, NONE); 818 PIN_SLP(gpj0-3, PREV, NONE); 852 PIN_SLP(gpj0-4, PREV, NONE); 819 PIN_SLP(gpj0-4, PREV, NONE); 853 PIN_SLP(gpj0-5, OUT0, NONE); 820 PIN_SLP(gpj0-5, OUT0, NONE); 854 PIN_SLP(gpj0-6, OUT0, NONE); 821 PIN_SLP(gpj0-6, OUT0, NONE); 855 PIN_SLP(gpj0-7, OUT0, NONE); 822 PIN_SLP(gpj0-7, OUT0, NONE); 856 823 857 PIN_SLP(gpj1-0, OUT0, NONE); 824 PIN_SLP(gpj1-0, OUT0, NONE); 858 PIN_SLP(gpj1-1, INPUT, DOWN); 825 PIN_SLP(gpj1-1, INPUT, DOWN); 859 PIN_SLP(gpj1-2, PREV, NONE); 826 PIN_SLP(gpj1-2, PREV, NONE); 860 PIN_SLP(gpj1-3, OUT0, NONE); 827 PIN_SLP(gpj1-3, OUT0, NONE); 861 }; 828 }; 862 }; 829 }; 863 830 864 &pinctrl_1 { 831 &pinctrl_1 { 865 pinctrl-names = "default"; 832 pinctrl-names = "default"; 866 pinctrl-0 = <&sleep1>; 833 pinctrl-0 = <&sleep1>; 867 834 868 sd3_wifi: sd3-wifi-pins { 835 sd3_wifi: sd3-wifi-pins { 869 samsung,pins = "gpk3-3", "gpk3 836 samsung,pins = "gpk3-3", "gpk3-4", "gpk3-5", "gpk3-6"; 870 samsung,pin-function = <EXYNOS 837 samsung,pin-function = <EXYNOS_PIN_FUNC_2>; 871 samsung,pin-pud = <EXYNOS_PIN_ 838 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 872 }; 839 }; 873 840 874 bt_shutdown: bt-shutdown-pins { 841 bt_shutdown: bt-shutdown-pins { 875 samsung,pins = "gpl0-6"; 842 samsung,pins = "gpl0-6"; 876 samsung,pin-function = <EXYNOS 843 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 877 samsung,pin-pud = <EXYNOS_PIN_ 844 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 878 }; 845 }; 879 846 880 gyro_data_enable: gyro-data-enable-pin << 881 samsung,pins = "gpl2-0"; << 882 samsung,pin-function = <EXYNOS << 883 samsung,pin-pud = <EXYNOS_PIN_ << 884 }; << 885 << 886 uart_sel: uart-sel-pins { 847 uart_sel: uart-sel-pins { 887 samsung,pins = "gpl2-7"; 848 samsung,pins = "gpl2-7"; 888 samsung,pin-function = <EXYNOS 849 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 889 samsung,pin-pud = <EXYNOS_PIN_ 850 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 890 samsung,pin-val = <1>; 851 samsung,pin-val = <1>; 891 /* 0 = CP, 1 = AP (serial outp 852 /* 0 = CP, 1 = AP (serial output) */ 892 }; 853 }; 893 854 894 led_bl_reset: led-bl-reset-pins { 855 led_bl_reset: led-bl-reset-pins { 895 samsung,pins = "gpm0-1"; 856 samsung,pins = "gpm0-1"; 896 samsung,pin-function = <EXYNOS 857 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 897 samsung,pin-pud = <EXYNOS_PIN_ 858 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 898 }; 859 }; 899 860 900 tsp_rst: tsp-rst-pins { 861 tsp_rst: tsp-rst-pins { 901 samsung,pins = "gpm0-4"; 862 samsung,pins = "gpm0-4"; 902 samsung,pin-function = <EXYNOS 863 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 903 samsung,pin-pud = <EXYNOS_PIN_ 864 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 904 }; 865 }; 905 866 906 lvds_nshdn: lvds-nshdn-pins { 867 lvds_nshdn: lvds-nshdn-pins { 907 samsung,pins = "gpm0-5"; 868 samsung,pins = "gpm0-5"; 908 samsung,pin-function = <EXYNOS 869 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 909 samsung,pin-pud = <EXYNOS_PIN_ 870 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 910 }; 871 }; 911 872 912 tsp_irq: tsp-irq-pins { 873 tsp_irq: tsp-irq-pins { 913 samsung,pins = "gpm2-3"; 874 samsung,pins = "gpm2-3"; 914 samsung,pin-function = <EXYNOS 875 samsung,pin-function = <EXYNOS_PIN_FUNC_F>; 915 samsung,pin-pud = <EXYNOS_PIN_ 876 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 916 }; 877 }; 917 878 918 wifi_reset: wifi-reset-pins { 879 wifi_reset: wifi-reset-pins { 919 samsung,pins = "gpm3-5"; 880 samsung,pins = "gpm3-5"; 920 samsung,pin-function = <EXYNOS 881 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 921 samsung,pin-pud = <EXYNOS_PIN_ 882 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 922 }; 883 }; 923 884 924 tsp_reg_gpio_1: tsp-reg-gpio-1-pins { 885 tsp_reg_gpio_1: tsp-reg-gpio-1-pins { 925 samsung,pins = "gpm4-5"; 886 samsung,pins = "gpm4-5"; 926 samsung,pin-function = <EXYNOS 887 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 927 samsung,pin-pud = <EXYNOS_PIN_ 888 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 928 }; 889 }; 929 890 930 ak8975_irq: ak8975-irq-pins { 891 ak8975_irq: ak8975-irq-pins { 931 samsung,pins = "gpm4-7"; 892 samsung,pins = "gpm4-7"; 932 samsung,pin-function = <EXYNOS 893 samsung,pin-function = <EXYNOS_PIN_FUNC_F>; 933 samsung,pin-pud = <EXYNOS_PIN_ 894 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; 934 }; 895 }; 935 896 936 accelerometer_irq: accelerometer-irq-p << 937 samsung,pins = "gpx0-0"; << 938 samsung,pin-function = <EXYNOS << 939 samsung,pin-pud = <EXYNOS_PIN_ << 940 }; << 941 << 942 stmpe_adc_irq: stmpe-adc-irq-pins { 897 stmpe_adc_irq: stmpe-adc-irq-pins { 943 samsung,pins = "gpx0-1"; 898 samsung,pins = "gpx0-1"; 944 samsung,pin-function = <EXYNOS << 945 samsung,pin-pud = <EXYNOS_PIN_ << 946 }; << 947 << 948 gyro_irq: gyro-irq-pins { << 949 samsung,pins = "gpx0-6"; << 950 samsung,pin-function = <EXYNOS 899 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; 951 samsung,pin-pud = <EXYNOS_PIN_ 900 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 952 }; 901 }; 953 902 954 max77686_irq: max77686-irq-pins { 903 max77686_irq: max77686-irq-pins { 955 samsung,pins = "gpx0-7"; 904 samsung,pins = "gpx0-7"; 956 samsung,pin-pud = <EXYNOS_PIN_ 905 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 957 }; 906 }; 958 907 959 gpio_keys: gpio-keys-pins { 908 gpio_keys: gpio-keys-pins { 960 samsung,pins = "gpx2-2", "gpx2 909 samsung,pins = "gpx2-2", "gpx2-7", "gpx3-3"; 961 samsung,pin-pud = <EXYNOS_PIN_ 910 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 962 }; 911 }; 963 912 964 fuel_alert_irq: fuel-alert-irq-pins { 913 fuel_alert_irq: fuel-alert-irq-pins { 965 samsung,pins = "gpx2-3"; 914 samsung,pins = "gpx2-3"; 966 samsung,pin-function = <EXYNOS 915 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; 967 samsung,pin-pud = <EXYNOS_PIN_ 916 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 968 }; 917 }; 969 918 970 wifi_host_wake: wifi-host-wake-pins { 919 wifi_host_wake: wifi-host-wake-pins { 971 samsung,pins = "gpx2-5"; 920 samsung,pins = "gpx2-5"; 972 samsung,pin-function = <EXYNOS 921 samsung,pin-function = <EXYNOS_PIN_FUNC_F>; 973 samsung,pin-pud = <EXYNOS_PIN_ 922 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; 974 }; 923 }; 975 924 976 bt_host_wakeup: bt-host-wakeup-pins { 925 bt_host_wakeup: bt-host-wakeup-pins { 977 samsung,pins = "gpx2-6"; 926 samsung,pins = "gpx2-6"; 978 samsung,pin-function = <EXYNOS 927 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; 979 samsung,pin-pud = <EXYNOS_PIN_ 928 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 980 }; 929 }; 981 930 982 bt_device_wakeup: bt-device-wakeup-pin 931 bt_device_wakeup: bt-device-wakeup-pins { 983 samsung,pins = "gpx3-1"; 932 samsung,pins = "gpx3-1"; 984 samsung,pin-function = <EXYNOS 933 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 985 samsung,pin-pud = <EXYNOS_PIN_ 934 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 986 }; 935 }; 987 936 988 sdhci2_cd: sdhci2-cd-pins { 937 sdhci2_cd: sdhci2-cd-pins { 989 samsung,pins = "gpx3-4"; 938 samsung,pins = "gpx3-4"; 990 samsung,pin-pud = <EXYNOS_PIN_ 939 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 991 }; 940 }; 992 941 993 sleep1: sleep-state { 942 sleep1: sleep-state { 994 PIN_SLP(gpk0-0, PREV, NONE); 943 PIN_SLP(gpk0-0, PREV, NONE); 995 PIN_SLP(gpk0-1, PREV, NONE); 944 PIN_SLP(gpk0-1, PREV, NONE); 996 PIN_SLP(gpk0-2, PREV, NONE); 945 PIN_SLP(gpk0-2, PREV, NONE); 997 PIN_SLP(gpk0-3, PREV, NONE); 946 PIN_SLP(gpk0-3, PREV, NONE); 998 PIN_SLP(gpk0-4, PREV, NONE); 947 PIN_SLP(gpk0-4, PREV, NONE); 999 PIN_SLP(gpk0-5, PREV, NONE); 948 PIN_SLP(gpk0-5, PREV, NONE); 1000 PIN_SLP(gpk0-6, PREV, NONE); 949 PIN_SLP(gpk0-6, PREV, NONE); 1001 950 1002 PIN_SLP(gpk1-0, INPUT, DOWN); 951 PIN_SLP(gpk1-0, INPUT, DOWN); 1003 PIN_SLP(gpk1-1, INPUT, DOWN); 952 PIN_SLP(gpk1-1, INPUT, DOWN); 1004 PIN_SLP(gpk1-2, INPUT, DOWN); 953 PIN_SLP(gpk1-2, INPUT, DOWN); 1005 PIN_SLP(gpk1-3, PREV, NONE); 954 PIN_SLP(gpk1-3, PREV, NONE); 1006 PIN_SLP(gpk1-4, PREV, NONE); 955 PIN_SLP(gpk1-4, PREV, NONE); 1007 PIN_SLP(gpk1-5, PREV, NONE); 956 PIN_SLP(gpk1-5, PREV, NONE); 1008 PIN_SLP(gpk1-6, PREV, NONE); 957 PIN_SLP(gpk1-6, PREV, NONE); 1009 958 1010 PIN_SLP(gpk2-0, INPUT, DOWN); 959 PIN_SLP(gpk2-0, INPUT, DOWN); 1011 PIN_SLP(gpk2-1, INPUT, DOWN); 960 PIN_SLP(gpk2-1, INPUT, DOWN); 1012 PIN_SLP(gpk2-2, INPUT, DOWN); 961 PIN_SLP(gpk2-2, INPUT, DOWN); 1013 PIN_SLP(gpk2-3, INPUT, DOWN); 962 PIN_SLP(gpk2-3, INPUT, DOWN); 1014 PIN_SLP(gpk2-4, INPUT, DOWN); 963 PIN_SLP(gpk2-4, INPUT, DOWN); 1015 PIN_SLP(gpk2-5, INPUT, DOWN); 964 PIN_SLP(gpk2-5, INPUT, DOWN); 1016 PIN_SLP(gpk2-6, INPUT, DOWN); 965 PIN_SLP(gpk2-6, INPUT, DOWN); 1017 966 1018 PIN_SLP(gpk3-0, OUT0, NONE); 967 PIN_SLP(gpk3-0, OUT0, NONE); 1019 PIN_SLP(gpk3-1, INPUT, NONE); 968 PIN_SLP(gpk3-1, INPUT, NONE); 1020 PIN_SLP(gpk3-2, INPUT, DOWN); 969 PIN_SLP(gpk3-2, INPUT, DOWN); 1021 PIN_SLP(gpk3-3, INPUT, NONE); 970 PIN_SLP(gpk3-3, INPUT, NONE); 1022 PIN_SLP(gpk3-4, INPUT, NONE); 971 PIN_SLP(gpk3-4, INPUT, NONE); 1023 PIN_SLP(gpk3-5, INPUT, NONE); 972 PIN_SLP(gpk3-5, INPUT, NONE); 1024 PIN_SLP(gpk3-6, INPUT, NONE); 973 PIN_SLP(gpk3-6, INPUT, NONE); 1025 974 1026 PIN_SLP(gpl0-0, OUT0, NONE); 975 PIN_SLP(gpl0-0, OUT0, NONE); 1027 PIN_SLP(gpl0-1, INPUT, NONE); 976 PIN_SLP(gpl0-1, INPUT, NONE); 1028 PIN_SLP(gpl0-2, INPUT, NONE); 977 PIN_SLP(gpl0-2, INPUT, NONE); 1029 PIN_SLP(gpl0-3, INPUT, DOWN); 978 PIN_SLP(gpl0-3, INPUT, DOWN); 1030 PIN_SLP(gpl0-4, PREV, NONE); 979 PIN_SLP(gpl0-4, PREV, NONE); 1031 PIN_SLP(gpl0-6, PREV, NONE); 980 PIN_SLP(gpl0-6, PREV, NONE); 1032 981 1033 PIN_SLP(gpl1-0, OUT0, NONE); 982 PIN_SLP(gpl1-0, OUT0, NONE); 1034 PIN_SLP(gpl1-1, OUT0, NONE); 983 PIN_SLP(gpl1-1, OUT0, NONE); 1035 984 1036 PIN_SLP(gpl2-0, INPUT, DOWN); 985 PIN_SLP(gpl2-0, INPUT, DOWN); 1037 PIN_SLP(gpl2-1, INPUT, DOWN); 986 PIN_SLP(gpl2-1, INPUT, DOWN); 1038 PIN_SLP(gpl2-2, INPUT, DOWN); 987 PIN_SLP(gpl2-2, INPUT, DOWN); 1039 PIN_SLP(gpl2-3, INPUT, DOWN); 988 PIN_SLP(gpl2-3, INPUT, DOWN); 1040 PIN_SLP(gpl2-4, OUT0, NONE); 989 PIN_SLP(gpl2-4, OUT0, NONE); 1041 PIN_SLP(gpl2-5, INPUT, DOWN); 990 PIN_SLP(gpl2-5, INPUT, DOWN); 1042 PIN_SLP(gpl2-6, PREV, NONE); 991 PIN_SLP(gpl2-6, PREV, NONE); 1043 PIN_SLP(gpl2-7, PREV, NONE); 992 PIN_SLP(gpl2-7, PREV, NONE); 1044 993 1045 PIN_SLP(gpm0-0, PREV, NONE); 994 PIN_SLP(gpm0-0, PREV, NONE); 1046 PIN_SLP(gpm0-1, OUT0, NONE); 995 PIN_SLP(gpm0-1, OUT0, NONE); 1047 PIN_SLP(gpm0-2, INPUT, DOWN); 996 PIN_SLP(gpm0-2, INPUT, DOWN); 1048 PIN_SLP(gpm0-3, INPUT, NONE); 997 PIN_SLP(gpm0-3, INPUT, NONE); 1049 PIN_SLP(gpm0-4, OUT0, NONE); 998 PIN_SLP(gpm0-4, OUT0, NONE); 1050 PIN_SLP(gpm0-5, OUT0, NONE); 999 PIN_SLP(gpm0-5, OUT0, NONE); 1051 PIN_SLP(gpm0-6, INPUT, DOWN); 1000 PIN_SLP(gpm0-6, INPUT, DOWN); 1052 PIN_SLP(gpm0-7, OUT0, NONE); 1001 PIN_SLP(gpm0-7, OUT0, NONE); 1053 1002 1054 PIN_SLP(gpm1-0, INPUT, NONE); 1003 PIN_SLP(gpm1-0, INPUT, NONE); 1055 PIN_SLP(gpm1-1, INPUT, NONE); 1004 PIN_SLP(gpm1-1, INPUT, NONE); 1056 PIN_SLP(gpm1-2, INPUT, NONE); 1005 PIN_SLP(gpm1-2, INPUT, NONE); 1057 PIN_SLP(gpm1-3, INPUT, NONE); 1006 PIN_SLP(gpm1-3, INPUT, NONE); 1058 PIN_SLP(gpm1-4, INPUT, NONE); 1007 PIN_SLP(gpm1-4, INPUT, NONE); 1059 PIN_SLP(gpm1-5, INPUT, NONE); 1008 PIN_SLP(gpm1-5, INPUT, NONE); 1060 PIN_SLP(gpm1-6, INPUT, DOWN); 1009 PIN_SLP(gpm1-6, INPUT, DOWN); 1061 1010 1062 PIN_SLP(gpm2-0, INPUT, NONE); 1011 PIN_SLP(gpm2-0, INPUT, NONE); 1063 PIN_SLP(gpm2-1, INPUT, NONE); 1012 PIN_SLP(gpm2-1, INPUT, NONE); 1064 PIN_SLP(gpm2-2, OUT0, NONE); 1013 PIN_SLP(gpm2-2, OUT0, NONE); 1065 PIN_SLP(gpm2-3, OUT0, DOWN); 1014 PIN_SLP(gpm2-3, OUT0, DOWN); 1066 PIN_SLP(gpm2-4, INPUT, DOWN); 1015 PIN_SLP(gpm2-4, INPUT, DOWN); 1067 1016 1068 PIN_SLP(gpm3-0, PREV, NONE); 1017 PIN_SLP(gpm3-0, PREV, NONE); 1069 PIN_SLP(gpm3-1, PREV, NONE); 1018 PIN_SLP(gpm3-1, PREV, NONE); 1070 PIN_SLP(gpm3-2, PREV, NONE); 1019 PIN_SLP(gpm3-2, PREV, NONE); 1071 PIN_SLP(gpm3-3, OUT1, NONE); 1020 PIN_SLP(gpm3-3, OUT1, NONE); 1072 PIN_SLP(gpm3-4, OUT0, DOWN); 1021 PIN_SLP(gpm3-4, OUT0, DOWN); 1073 PIN_SLP(gpm3-5, PREV, NONE); 1022 PIN_SLP(gpm3-5, PREV, NONE); 1074 PIN_SLP(gpm3-6, PREV, NONE); 1023 PIN_SLP(gpm3-6, PREV, NONE); 1075 PIN_SLP(gpm3-7, OUT0, NONE); 1024 PIN_SLP(gpm3-7, OUT0, NONE); 1076 1025 1077 PIN_SLP(gpm4-0, INPUT, NONE); 1026 PIN_SLP(gpm4-0, INPUT, NONE); 1078 PIN_SLP(gpm4-1, INPUT, NONE); 1027 PIN_SLP(gpm4-1, INPUT, NONE); 1079 PIN_SLP(gpm4-2, INPUT, DOWN); 1028 PIN_SLP(gpm4-2, INPUT, DOWN); 1080 PIN_SLP(gpm4-3, INPUT, DOWN); 1029 PIN_SLP(gpm4-3, INPUT, DOWN); 1081 PIN_SLP(gpm4-4, PREV, NONE); 1030 PIN_SLP(gpm4-4, PREV, NONE); 1082 PIN_SLP(gpm4-5, OUT0, NONE); 1031 PIN_SLP(gpm4-5, OUT0, NONE); 1083 PIN_SLP(gpm4-6, OUT0, NONE); 1032 PIN_SLP(gpm4-6, OUT0, NONE); 1084 PIN_SLP(gpm4-7, INPUT, DOWN); 1033 PIN_SLP(gpm4-7, INPUT, DOWN); 1085 1034 1086 PIN_SLP(gpy0-0, INPUT, DOWN); 1035 PIN_SLP(gpy0-0, INPUT, DOWN); 1087 PIN_SLP(gpy0-1, INPUT, DOWN); 1036 PIN_SLP(gpy0-1, INPUT, DOWN); 1088 PIN_SLP(gpy0-2, INPUT, NONE); 1037 PIN_SLP(gpy0-2, INPUT, NONE); 1089 PIN_SLP(gpy0-3, INPUT, NONE); 1038 PIN_SLP(gpy0-3, INPUT, NONE); 1090 PIN_SLP(gpy0-4, INPUT, NONE); 1039 PIN_SLP(gpy0-4, INPUT, NONE); 1091 PIN_SLP(gpy0-5, INPUT, NONE); 1040 PIN_SLP(gpy0-5, INPUT, NONE); 1092 1041 1093 PIN_SLP(gpy1-0, INPUT, DOWN); 1042 PIN_SLP(gpy1-0, INPUT, DOWN); 1094 PIN_SLP(gpy1-1, INPUT, DOWN); 1043 PIN_SLP(gpy1-1, INPUT, DOWN); 1095 PIN_SLP(gpy1-2, INPUT, DOWN); 1044 PIN_SLP(gpy1-2, INPUT, DOWN); 1096 PIN_SLP(gpy1-3, INPUT, DOWN); 1045 PIN_SLP(gpy1-3, INPUT, DOWN); 1097 1046 1098 PIN_SLP(gpy2-0, PREV, NONE); 1047 PIN_SLP(gpy2-0, PREV, NONE); 1099 PIN_SLP(gpy2-1, INPUT, DOWN); 1048 PIN_SLP(gpy2-1, INPUT, DOWN); 1100 PIN_SLP(gpy2-2, INPUT, NONE); 1049 PIN_SLP(gpy2-2, INPUT, NONE); 1101 PIN_SLP(gpy2-3, INPUT, NONE); 1050 PIN_SLP(gpy2-3, INPUT, NONE); 1102 PIN_SLP(gpy2-4, INPUT, NONE); 1051 PIN_SLP(gpy2-4, INPUT, NONE); 1103 PIN_SLP(gpy2-5, INPUT, NONE); 1052 PIN_SLP(gpy2-5, INPUT, NONE); 1104 1053 1105 PIN_SLP(gpy3-0, INPUT, DOWN); 1054 PIN_SLP(gpy3-0, INPUT, DOWN); 1106 PIN_SLP(gpy3-1, INPUT, DOWN); 1055 PIN_SLP(gpy3-1, INPUT, DOWN); 1107 PIN_SLP(gpy3-2, INPUT, DOWN); 1056 PIN_SLP(gpy3-2, INPUT, DOWN); 1108 PIN_SLP(gpy3-3, INPUT, DOWN); 1057 PIN_SLP(gpy3-3, INPUT, DOWN); 1109 PIN_SLP(gpy3-4, INPUT, DOWN); 1058 PIN_SLP(gpy3-4, INPUT, DOWN); 1110 PIN_SLP(gpy3-5, INPUT, DOWN); 1059 PIN_SLP(gpy3-5, INPUT, DOWN); 1111 PIN_SLP(gpy3-6, INPUT, DOWN); 1060 PIN_SLP(gpy3-6, INPUT, DOWN); 1112 PIN_SLP(gpy3-7, INPUT, DOWN); 1061 PIN_SLP(gpy3-7, INPUT, DOWN); 1113 1062 1114 PIN_SLP(gpy4-0, INPUT, DOWN); 1063 PIN_SLP(gpy4-0, INPUT, DOWN); 1115 PIN_SLP(gpy4-1, INPUT, DOWN); 1064 PIN_SLP(gpy4-1, INPUT, DOWN); 1116 PIN_SLP(gpy4-2, INPUT, DOWN); 1065 PIN_SLP(gpy4-2, INPUT, DOWN); 1117 PIN_SLP(gpy4-3, INPUT, DOWN); 1066 PIN_SLP(gpy4-3, INPUT, DOWN); 1118 PIN_SLP(gpy4-4, INPUT, DOWN); 1067 PIN_SLP(gpy4-4, INPUT, DOWN); 1119 PIN_SLP(gpy4-5, INPUT, DOWN); 1068 PIN_SLP(gpy4-5, INPUT, DOWN); 1120 PIN_SLP(gpy4-6, INPUT, DOWN); 1069 PIN_SLP(gpy4-6, INPUT, DOWN); 1121 PIN_SLP(gpy4-7, INPUT, DOWN); 1070 PIN_SLP(gpy4-7, INPUT, DOWN); 1122 1071 1123 PIN_SLP(gpy5-0, INPUT, DOWN); 1072 PIN_SLP(gpy5-0, INPUT, DOWN); 1124 PIN_SLP(gpy5-1, INPUT, DOWN); 1073 PIN_SLP(gpy5-1, INPUT, DOWN); 1125 PIN_SLP(gpy5-2, INPUT, DOWN); 1074 PIN_SLP(gpy5-2, INPUT, DOWN); 1126 PIN_SLP(gpy5-3, INPUT, DOWN); 1075 PIN_SLP(gpy5-3, INPUT, DOWN); 1127 PIN_SLP(gpy5-4, INPUT, DOWN); 1076 PIN_SLP(gpy5-4, INPUT, DOWN); 1128 PIN_SLP(gpy5-5, INPUT, DOWN); 1077 PIN_SLP(gpy5-5, INPUT, DOWN); 1129 PIN_SLP(gpy5-6, INPUT, DOWN); 1078 PIN_SLP(gpy5-6, INPUT, DOWN); 1130 PIN_SLP(gpy5-7, INPUT, DOWN); 1079 PIN_SLP(gpy5-7, INPUT, DOWN); 1131 1080 1132 PIN_SLP(gpy6-0, INPUT, DOWN); 1081 PIN_SLP(gpy6-0, INPUT, DOWN); 1133 PIN_SLP(gpy6-1, INPUT, DOWN); 1082 PIN_SLP(gpy6-1, INPUT, DOWN); 1134 PIN_SLP(gpy6-2, INPUT, DOWN); 1083 PIN_SLP(gpy6-2, INPUT, DOWN); 1135 PIN_SLP(gpy6-3, INPUT, DOWN); 1084 PIN_SLP(gpy6-3, INPUT, DOWN); 1136 PIN_SLP(gpy6-4, INPUT, DOWN); 1085 PIN_SLP(gpy6-4, INPUT, DOWN); 1137 PIN_SLP(gpy6-5, INPUT, DOWN); 1086 PIN_SLP(gpy6-5, INPUT, DOWN); 1138 PIN_SLP(gpy6-6, INPUT, DOWN); 1087 PIN_SLP(gpy6-6, INPUT, DOWN); 1139 PIN_SLP(gpy6-7, INPUT, DOWN); 1088 PIN_SLP(gpy6-7, INPUT, DOWN); 1140 }; 1089 }; 1141 }; 1090 }; 1142 1091 1143 &pinctrl_2 { 1092 &pinctrl_2 { 1144 pinctrl-names = "default"; 1093 pinctrl-names = "default"; 1145 pinctrl-0 = <&sleep2>; 1094 pinctrl-0 = <&sleep2>; 1146 1095 1147 sleep2: sleep-state { 1096 sleep2: sleep-state { 1148 PIN_SLP(gpz-0, INPUT, DOWN); 1097 PIN_SLP(gpz-0, INPUT, DOWN); 1149 PIN_SLP(gpz-1, INPUT, DOWN); 1098 PIN_SLP(gpz-1, INPUT, DOWN); 1150 PIN_SLP(gpz-2, INPUT, DOWN); 1099 PIN_SLP(gpz-2, INPUT, DOWN); 1151 PIN_SLP(gpz-3, INPUT, DOWN); 1100 PIN_SLP(gpz-3, INPUT, DOWN); 1152 PIN_SLP(gpz-4, INPUT, DOWN); 1101 PIN_SLP(gpz-4, INPUT, DOWN); 1153 PIN_SLP(gpz-5, INPUT, DOWN); 1102 PIN_SLP(gpz-5, INPUT, DOWN); 1154 PIN_SLP(gpz-6, INPUT, DOWN); 1103 PIN_SLP(gpz-6, INPUT, DOWN); 1155 }; 1104 }; 1156 }; 1105 }; 1157 1106 1158 &pinctrl_3 { 1107 &pinctrl_3 { 1159 pinctrl-names = "default"; 1108 pinctrl-names = "default"; 1160 pinctrl-0 = <&sleep3>; 1109 pinctrl-0 = <&sleep3>; 1161 1110 1162 sleep3: sleep-state { 1111 sleep3: sleep-state { 1163 PIN_SLP(gpv0-0, INPUT, DOWN); 1112 PIN_SLP(gpv0-0, INPUT, DOWN); 1164 PIN_SLP(gpv0-1, INPUT, DOWN); 1113 PIN_SLP(gpv0-1, INPUT, DOWN); 1165 PIN_SLP(gpv0-2, INPUT, DOWN); 1114 PIN_SLP(gpv0-2, INPUT, DOWN); 1166 PIN_SLP(gpv0-3, INPUT, DOWN); 1115 PIN_SLP(gpv0-3, INPUT, DOWN); 1167 PIN_SLP(gpv0-4, INPUT, DOWN); 1116 PIN_SLP(gpv0-4, INPUT, DOWN); 1168 PIN_SLP(gpv0-5, INPUT, DOWN); 1117 PIN_SLP(gpv0-5, INPUT, DOWN); 1169 PIN_SLP(gpv0-6, INPUT, DOWN); 1118 PIN_SLP(gpv0-6, INPUT, DOWN); 1170 PIN_SLP(gpv0-7, INPUT, DOWN); 1119 PIN_SLP(gpv0-7, INPUT, DOWN); 1171 1120 1172 PIN_SLP(gpv1-0, INPUT, DOWN); 1121 PIN_SLP(gpv1-0, INPUT, DOWN); 1173 PIN_SLP(gpv1-1, INPUT, DOWN); 1122 PIN_SLP(gpv1-1, INPUT, DOWN); 1174 PIN_SLP(gpv1-2, INPUT, DOWN); 1123 PIN_SLP(gpv1-2, INPUT, DOWN); 1175 PIN_SLP(gpv1-3, INPUT, DOWN); 1124 PIN_SLP(gpv1-3, INPUT, DOWN); 1176 PIN_SLP(gpv1-4, INPUT, DOWN); 1125 PIN_SLP(gpv1-4, INPUT, DOWN); 1177 PIN_SLP(gpv1-5, INPUT, DOWN); 1126 PIN_SLP(gpv1-5, INPUT, DOWN); 1178 PIN_SLP(gpv1-6, INPUT, DOWN); 1127 PIN_SLP(gpv1-6, INPUT, DOWN); 1179 PIN_SLP(gpv1-7, INPUT, DOWN); 1128 PIN_SLP(gpv1-7, INPUT, DOWN); 1180 1129 1181 PIN_SLP(gpv2-0, INPUT, DOWN); 1130 PIN_SLP(gpv2-0, INPUT, DOWN); 1182 PIN_SLP(gpv2-1, INPUT, DOWN); 1131 PIN_SLP(gpv2-1, INPUT, DOWN); 1183 PIN_SLP(gpv2-2, INPUT, DOWN); 1132 PIN_SLP(gpv2-2, INPUT, DOWN); 1184 PIN_SLP(gpv2-3, INPUT, DOWN); 1133 PIN_SLP(gpv2-3, INPUT, DOWN); 1185 PIN_SLP(gpv2-4, INPUT, DOWN); 1134 PIN_SLP(gpv2-4, INPUT, DOWN); 1186 PIN_SLP(gpv2-5, INPUT, DOWN); 1135 PIN_SLP(gpv2-5, INPUT, DOWN); 1187 PIN_SLP(gpv2-6, INPUT, DOWN); 1136 PIN_SLP(gpv2-6, INPUT, DOWN); 1188 PIN_SLP(gpv2-7, INPUT, DOWN); 1137 PIN_SLP(gpv2-7, INPUT, DOWN); 1189 1138 1190 PIN_SLP(gpv3-0, INPUT, DOWN); 1139 PIN_SLP(gpv3-0, INPUT, DOWN); 1191 PIN_SLP(gpv3-1, INPUT, DOWN); 1140 PIN_SLP(gpv3-1, INPUT, DOWN); 1192 PIN_SLP(gpv3-2, INPUT, DOWN); 1141 PIN_SLP(gpv3-2, INPUT, DOWN); 1193 PIN_SLP(gpv3-3, INPUT, DOWN); 1142 PIN_SLP(gpv3-3, INPUT, DOWN); 1194 PIN_SLP(gpv3-4, INPUT, DOWN); 1143 PIN_SLP(gpv3-4, INPUT, DOWN); 1195 PIN_SLP(gpv3-5, INPUT, DOWN); 1144 PIN_SLP(gpv3-5, INPUT, DOWN); 1196 PIN_SLP(gpv3-6, INPUT, DOWN); 1145 PIN_SLP(gpv3-6, INPUT, DOWN); 1197 PIN_SLP(gpv3-7, INPUT, DOWN); 1146 PIN_SLP(gpv3-7, INPUT, DOWN); 1198 1147 1199 PIN_SLP(gpv4-0, INPUT, DOWN); 1148 PIN_SLP(gpv4-0, INPUT, DOWN); 1200 PIN_SLP(gpv4-1, INPUT, DOWN); 1149 PIN_SLP(gpv4-1, INPUT, DOWN); 1201 }; 1150 }; 1202 }; 1151 }; 1203 1152 1204 &pmu_system_controller { 1153 &pmu_system_controller { 1205 assigned-clocks = <&pmu_system_contro 1154 assigned-clocks = <&pmu_system_controller 0>; 1206 assigned-clock-parents = <&clock CLK_ 1155 assigned-clock-parents = <&clock CLK_XUSBXTI>; 1207 }; 1156 }; 1208 1157 1209 &pwm { 1158 &pwm { 1210 pinctrl-0 = <&pwm1_out>; 1159 pinctrl-0 = <&pwm1_out>; 1211 pinctrl-names = "default"; 1160 pinctrl-names = "default"; 1212 samsung,pwm-outputs = <1>; 1161 samsung,pwm-outputs = <1>; 1213 status = "okay"; 1162 status = "okay"; 1214 }; 1163 }; 1215 1164 1216 &rtc { 1165 &rtc { 1217 clocks = <&clock CLK_RTC>, <&max77686 1166 clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>; 1218 clock-names = "rtc", "rtc_src"; 1167 clock-names = "rtc", "rtc_src"; 1219 status = "okay"; 1168 status = "okay"; 1220 }; 1169 }; 1221 1170 1222 &sdhci_2 { 1171 &sdhci_2 { 1223 bus-width = <4>; 1172 bus-width = <4>; 1224 cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>; 1173 cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>; 1225 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_b 1174 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sdhci2_cd>; 1226 pinctrl-names = "default"; 1175 pinctrl-names = "default"; 1227 vmmc-supply = <&ldo21_reg>; 1176 vmmc-supply = <&ldo21_reg>; 1228 status = "okay"; 1177 status = "okay"; 1229 }; 1178 }; 1230 1179 1231 &sdhci_3 { 1180 &sdhci_3 { 1232 #address-cells = <1>; 1181 #address-cells = <1>; 1233 #size-cells = <0>; 1182 #size-cells = <0>; 1234 non-removable; 1183 non-removable; 1235 bus-width = <4>; 1184 bus-width = <4>; 1236 mmc-pwrseq = <&wlan_pwrseq>; 1185 mmc-pwrseq = <&wlan_pwrseq>; 1237 1186 1238 pinctrl-names = "default"; 1187 pinctrl-names = "default"; 1239 pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_w 1188 pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_wifi>; 1240 status = "okay"; 1189 status = "okay"; 1241 1190 1242 wifi@1 { 1191 wifi@1 { 1243 compatible = "brcm,bcm4329-fm 1192 compatible = "brcm,bcm4329-fmac"; 1244 reg = <0x1>; 1193 reg = <0x1>; 1245 pinctrl-names = "default"; 1194 pinctrl-names = "default"; 1246 pinctrl-0 = <&wifi_host_wake> 1195 pinctrl-0 = <&wifi_host_wake>; 1247 interrupt-parent = <&gpx2>; 1196 interrupt-parent = <&gpx2>; 1248 interrupts = <5 IRQ_TYPE_LEVE 1197 interrupts = <5 IRQ_TYPE_LEVEL_HIGH>; 1249 interrupt-names = "host-wake" 1198 interrupt-names = "host-wake"; 1250 }; 1199 }; 1251 }; 1200 }; 1252 1201 1253 &serial_0 { 1202 &serial_0 { 1254 pinctrl-0 = <&uart0_data &uart0_fctl> 1203 pinctrl-0 = <&uart0_data &uart0_fctl>; 1255 pinctrl-names = "default"; 1204 pinctrl-names = "default"; 1256 status = "okay"; 1205 status = "okay"; 1257 1206 1258 bluetooth { 1207 bluetooth { 1259 compatible = "brcm,bcm4330-bt 1208 compatible = "brcm,bcm4330-bt"; 1260 pinctrl-0 = <&bt_shutdown &bt 1209 pinctrl-0 = <&bt_shutdown &bt_device_wakeup &bt_host_wakeup>; 1261 pinctrl-names = "default"; 1210 pinctrl-names = "default"; 1262 1211 1263 max-speed = <2000000>; 1212 max-speed = <2000000>; 1264 shutdown-gpios = <&gpl0 6 GPI 1213 shutdown-gpios = <&gpl0 6 GPIO_ACTIVE_HIGH>; 1265 device-wakeup-gpios = <&gpx3 1214 device-wakeup-gpios = <&gpx3 1 GPIO_ACTIVE_HIGH>; 1266 host-wakeup-gpios = <&gpx2 6 1215 host-wakeup-gpios = <&gpx2 6 GPIO_ACTIVE_HIGH>; 1267 clocks = <&max77686 MAX77686_ 1216 clocks = <&max77686 MAX77686_CLK_PMIC>; 1268 clock-names = "lpo"; 1217 clock-names = "lpo"; 1269 }; 1218 }; 1270 }; 1219 }; 1271 1220 1272 &serial_2 { 1221 &serial_2 { 1273 pinctrl-0 = <&uart_sel>; 1222 pinctrl-0 = <&uart_sel>; 1274 pinctrl-names = "default"; 1223 pinctrl-names = "default"; 1275 status = "okay"; 1224 status = "okay"; 1276 }; 1225 }; 1277 1226 1278 &tmu { 1227 &tmu { 1279 status = "okay"; 1228 status = "okay"; 1280 }; 1229 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.