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 0x7fc00000>; 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 { 365 &i2c_1 { 366 samsung,i2c-sda-delay = <100>; 366 samsung,i2c-sda-delay = <100>; 367 samsung,i2c-slave-addr = <0x10>; 367 samsung,i2c-slave-addr = <0x10>; 368 samsung,i2c-max-bus-freq = <400000>; 368 samsung,i2c-max-bus-freq = <400000>; 369 pinctrl-0 = <&i2c1_bus>; 369 pinctrl-0 = <&i2c1_bus>; 370 pinctrl-names = "default"; 370 pinctrl-names = "default"; 371 status = "okay"; 371 status = "okay"; 372 372 373 accelerometer@19 { 373 accelerometer@19 { 374 compatible = "st,lsm330dlc-acc 374 compatible = "st,lsm330dlc-accel"; 375 reg = <0x19>; 375 reg = <0x19>; 376 interrupt-parent = <&gpx0>; 376 interrupt-parent = <&gpx0>; 377 interrupts = <0 IRQ_TYPE_EDGE_ 377 interrupts = <0 IRQ_TYPE_EDGE_RISING>; 378 pinctrl-0 = <&accelerometer_ir 378 pinctrl-0 = <&accelerometer_irq>; 379 pinctrl-names = "default"; 379 pinctrl-names = "default"; 380 mount-matrix = "1", "0", "0 380 mount-matrix = "1", "0", "0", 381 "0", "-1", "0 381 "0", "-1", "0", 382 "0", "0", "-1 382 "0", "0", "-1"; 383 }; 383 }; 384 384 385 gyro@6b { 385 gyro@6b { 386 compatible = "st,lsm330dlc-gyr 386 compatible = "st,lsm330dlc-gyro"; 387 reg = <0x6b>; 387 reg = <0x6b>; 388 interrupt-parent = <&gpx0>; 388 interrupt-parent = <&gpx0>; 389 interrupts = <6 IRQ_TYPE_EDGE_ 389 interrupts = <6 IRQ_TYPE_EDGE_RISING>; 390 pinctrl-0 = <&gyro_data_enable 390 pinctrl-0 = <&gyro_data_enable &gyro_irq>; 391 pinctrl-names = "default"; 391 pinctrl-names = "default"; 392 mount-matrix = "1", "0", "0 392 mount-matrix = "1", "0", "0", 393 "0", "-1", "0 393 "0", "-1", "0", 394 "0", "0", "-1 394 "0", "0", "-1"; 395 }; 395 }; 396 }; 396 }; 397 397 398 &i2c_3 { 398 &i2c_3 { 399 samsung,i2c-sda-delay = <100>; 399 samsung,i2c-sda-delay = <100>; 400 samsung,i2c-slave-addr = <0x10>; 400 samsung,i2c-slave-addr = <0x10>; 401 samsung,i2c-max-bus-freq = <400000>; 401 samsung,i2c-max-bus-freq = <400000>; 402 pinctrl-0 = <&i2c3_bus>; 402 pinctrl-0 = <&i2c3_bus>; 403 pinctrl-names = "default"; 403 pinctrl-names = "default"; 404 status = "okay"; 404 status = "okay"; 405 405 406 touchscreen@4a { 406 touchscreen@4a { 407 compatible = "atmel,maxtouch"; 407 compatible = "atmel,maxtouch"; 408 reg = <0x4a>; 408 reg = <0x4a>; 409 pinctrl-0 = <&tsp_rst &tsp_irq 409 pinctrl-0 = <&tsp_rst &tsp_irq>; 410 pinctrl-names = "default"; 410 pinctrl-names = "default"; 411 interrupt-parent = <&gpm2>; 411 interrupt-parent = <&gpm2>; 412 interrupts = <3 IRQ_TYPE_LEVEL 412 interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 413 reset-gpios = <&gpm0 4 GPIO_AC 413 reset-gpios = <&gpm0 4 GPIO_ACTIVE_LOW>; 414 }; 414 }; 415 }; 415 }; 416 416 417 &i2c_7 { 417 &i2c_7 { 418 samsung,i2c-sda-delay = <100>; 418 samsung,i2c-sda-delay = <100>; 419 samsung,i2c-slave-addr = <0x10>; 419 samsung,i2c-slave-addr = <0x10>; 420 samsung,i2c-max-bus-freq = <400000>; 420 samsung,i2c-max-bus-freq = <400000>; 421 pinctrl-0 = <&i2c7_bus>; 421 pinctrl-0 = <&i2c7_bus>; 422 pinctrl-names = "default"; 422 pinctrl-names = "default"; 423 status = "okay"; 423 status = "okay"; 424 424 425 max77686: pmic@9 { 425 max77686: pmic@9 { 426 compatible = "maxim,max77686"; 426 compatible = "maxim,max77686"; 427 interrupt-parent = <&gpx0>; 427 interrupt-parent = <&gpx0>; 428 interrupts = <7 IRQ_TYPE_LEVEL 428 interrupts = <7 IRQ_TYPE_LEVEL_LOW>; 429 pinctrl-0 = <&max77686_irq>; 429 pinctrl-0 = <&max77686_irq>; 430 pinctrl-names = "default"; 430 pinctrl-names = "default"; 431 wakeup-source; 431 wakeup-source; 432 reg = <0x09>; 432 reg = <0x09>; 433 #clock-cells = <1>; 433 #clock-cells = <1>; 434 434 435 voltage-regulators { 435 voltage-regulators { 436 ldo1_reg: LDO1 { 436 ldo1_reg: LDO1 { 437 regulator-name 437 regulator-name = "ldo1"; 438 regulator-alwa 438 regulator-always-on; 439 }; 439 }; 440 440 441 ldo2_reg: LDO2 { 441 ldo2_reg: LDO2 { 442 regulator-name 442 regulator-name = "ldo2"; 443 regulator-alwa 443 regulator-always-on; 444 }; 444 }; 445 445 446 /* WM8994 audio */ 446 /* WM8994 audio */ 447 ldo3_reg: LDO3 { 447 ldo3_reg: LDO3 { 448 regulator-name 448 regulator-name = "VCC_1.8V_AP"; 449 regulator-min- 449 regulator-min-microvolt = <1800000>; 450 regulator-max- 450 regulator-max-microvolt = <1800000>; 451 regulator-alwa 451 regulator-always-on; 452 regulator-boot 452 regulator-boot-on; 453 453 454 regulator-stat 454 regulator-state-mem { 455 regula 455 regulator-on-in-suspend; 456 }; 456 }; 457 }; 457 }; 458 458 459 ldo4_reg: LDO4 { 459 ldo4_reg: LDO4 { 460 regulator-name 460 regulator-name = "ldo4"; 461 regulator-alwa 461 regulator-always-on; 462 }; 462 }; 463 463 464 ldo5_reg: LDO5 { 464 ldo5_reg: LDO5 { 465 regulator-name 465 regulator-name = "VCC_1.8V_IO"; 466 regulator-min- 466 regulator-min-microvolt = <1800000>; 467 regulator-max- 467 regulator-max-microvolt = <1800000>; 468 468 469 regulator-stat 469 regulator-state-mem { 470 regula 470 regulator-off-in-suspend; 471 }; 471 }; 472 }; 472 }; 473 473 474 ldo6_reg: LDO6 { 474 ldo6_reg: LDO6 { 475 regulator-name 475 regulator-name = "ldo6"; 476 regulator-alwa 476 regulator-always-on; 477 }; 477 }; 478 478 479 ldo7_reg: LDO7 { 479 ldo7_reg: LDO7 { 480 regulator-name 480 regulator-name = "ldo7"; 481 regulator-alwa 481 regulator-always-on; 482 }; 482 }; 483 483 484 /* CSI IP block */ 484 /* CSI IP block */ 485 ldo8_reg: LDO8 { 485 ldo8_reg: LDO8 { 486 regulator-name 486 regulator-name = "VMIPI_1.0V"; 487 regulator-min- 487 regulator-min-microvolt = <1000000>; 488 regulator-max- 488 regulator-max-microvolt = <1000000>; 489 regulator-alwa 489 regulator-always-on; 490 regulator-boot 490 regulator-boot-on; 491 491 492 regulator-stat 492 regulator-state-mem { 493 regula 493 regulator-on-in-suspend; 494 }; 494 }; 495 }; 495 }; 496 496 497 /* IR LED on/off */ 497 /* IR LED on/off */ 498 ldo9_reg: LDO9 { 498 ldo9_reg: LDO9 { 499 regulator-name 499 regulator-name = "VLED_IC_1.9V"; 500 regulator-min- 500 regulator-min-microvolt = <1950000>; 501 regulator-max- 501 regulator-max-microvolt = <1950000>; 502 502 503 regulator-stat 503 regulator-state-mem { 504 regula 504 regulator-off-in-suspend; 505 }; 505 }; 506 }; 506 }; 507 507 508 /* CSI IP block */ 508 /* CSI IP block */ 509 ldo10_reg: LDO10 { 509 ldo10_reg: LDO10 { 510 regulator-name 510 regulator-name = "VMIPI_1.8V"; 511 regulator-min- 511 regulator-min-microvolt = <1800000>; 512 regulator-max- 512 regulator-max-microvolt = <1800000>; 513 regulator-alwa 513 regulator-always-on; 514 regulator-boot 514 regulator-boot-on; 515 515 516 regulator-stat 516 regulator-state-mem { 517 regula 517 regulator-on-in-suspend; 518 }; 518 }; 519 }; 519 }; 520 520 521 ldo11_reg: LDO11 { 521 ldo11_reg: LDO11 { 522 regulator-name 522 regulator-name = "VABB1_1.9V"; 523 regulator-min- 523 regulator-min-microvolt = <1950000>; 524 regulator-max- 524 regulator-max-microvolt = <1950000>; 525 regulator-alwa 525 regulator-always-on; 526 regulator-boot 526 regulator-boot-on; 527 527 528 regulator-stat 528 regulator-state-mem { 529 regula 529 regulator-off-in-suspend; 530 }; 530 }; 531 }; 531 }; 532 532 533 /* USB OTG */ 533 /* USB OTG */ 534 ldo12_reg: LDO12 { 534 ldo12_reg: LDO12 { 535 regulator-name 535 regulator-name = "VUOTG_3.0V"; 536 regulator-min- 536 regulator-min-microvolt = <3000000>; 537 regulator-max- 537 regulator-max-microvolt = <3000000>; 538 regulator-alwa 538 regulator-always-on; 539 regulator-boot 539 regulator-boot-on; 540 540 541 regulator-stat 541 regulator-state-mem { 542 regula 542 regulator-on-in-suspend; 543 }; 543 }; 544 }; 544 }; 545 545 546 /* not connected */ 546 /* not connected */ 547 ldo13_reg: LDO13 { 547 ldo13_reg: LDO13 { 548 regulator-name 548 regulator-name = "ldo13"; 549 }; 549 }; 550 550 551 ldo14_reg: LDO14 { 551 ldo14_reg: LDO14 { 552 regulator-name 552 regulator-name = "VABB2_1.9V"; 553 regulator-min- 553 regulator-min-microvolt = <1950000>; 554 regulator-max- 554 regulator-max-microvolt = <1950000>; 555 regulator-alwa 555 regulator-always-on; 556 regulator-boot 556 regulator-boot-on; 557 557 558 regulator-stat 558 regulator-state-mem { 559 regula 559 regulator-off-in-suspend; 560 }; 560 }; 561 }; 561 }; 562 562 563 ldo15_reg: LDO15 { 563 ldo15_reg: LDO15 { 564 regulator-name 564 regulator-name = "ldo15"; 565 regulator-alwa 565 regulator-always-on; 566 }; 566 }; 567 567 568 ldo16_reg: LDO16 { 568 ldo16_reg: LDO16 { 569 regulator-name 569 regulator-name = "ldo16"; 570 regulator-alwa 570 regulator-always-on; 571 }; 571 }; 572 572 573 /* not connected */ 573 /* not connected */ 574 ldo17_reg: LDO17 { 574 ldo17_reg: LDO17 { 575 regulator-name 575 regulator-name = "ldo17"; 576 }; 576 }; 577 577 578 /* Camera ISX012 */ 578 /* Camera ISX012 */ 579 ldo18_reg: LDO18 { 579 ldo18_reg: LDO18 { 580 regulator-name 580 regulator-name = "CAM_IO_1.8V"; 581 regulator-min- 581 regulator-min-microvolt = <1800000>; 582 regulator-max- 582 regulator-max-microvolt = <1800000>; 583 583 584 regulator-stat 584 regulator-state-mem { 585 regula 585 regulator-off-in-suspend; 586 }; 586 }; 587 }; 587 }; 588 588 589 /* Camera S5K6A3 */ 589 /* Camera S5K6A3 */ 590 ldo19_reg: LDO19 { 590 ldo19_reg: LDO19 { 591 regulator-name 591 regulator-name = "VT_CORE_1.8V"; 592 regulator-min- 592 regulator-min-microvolt = <1800000>; 593 regulator-max- 593 regulator-max-microvolt = <1800000>; 594 594 595 regulator-stat 595 regulator-state-mem { 596 regula 596 regulator-off-in-suspend; 597 }; 597 }; 598 }; 598 }; 599 599 600 /* not connected */ 600 /* not connected */ 601 ldo20_reg: LDO20 { 601 ldo20_reg: LDO20 { 602 regulator-name 602 regulator-name = "ldo20"; 603 }; 603 }; 604 604 605 /* MMC2 */ 605 /* MMC2 */ 606 ldo21_reg: LDO21 { 606 ldo21_reg: LDO21 { 607 regulator-name 607 regulator-name = "VTF_2.8V"; 608 regulator-min- 608 regulator-min-microvolt = <2800000>; 609 regulator-max- 609 regulator-max-microvolt = <2800000>; 610 maxim,ena-gpio 610 maxim,ena-gpios = <&gpy2 0 GPIO_ACTIVE_HIGH>; 611 }; 611 }; 612 612 613 /* not connected */ 613 /* not connected */ 614 ldo22_reg: LDO22 { 614 ldo22_reg: LDO22 { 615 regulator-name 615 regulator-name = "ldo22"; 616 }; 616 }; 617 617 618 /* ADC */ 618 /* ADC */ 619 ldo23_reg: LDO23 { 619 ldo23_reg: LDO23 { 620 regulator-name 620 regulator-name = "VDD_ADC_3.3V"; 621 regulator-min- 621 regulator-min-microvolt = <3300000>; 622 regulator-max- 622 regulator-max-microvolt = <3300000>; 623 regulator-alwa 623 regulator-always-on; 624 regulator-boot 624 regulator-boot-on; 625 625 626 regulator-stat 626 regulator-state-mem { 627 regula 627 regulator-off-in-suspend; 628 }; 628 }; 629 }; 629 }; 630 630 631 /* Camera S5K6A3 */ 631 /* Camera S5K6A3 */ 632 ldo24_reg: LDO24 { 632 ldo24_reg: LDO24 { 633 regulator-name 633 regulator-name = "CAM_A2.8V"; 634 regulator-min- 634 regulator-min-microvolt = <2800000>; 635 regulator-max- 635 regulator-max-microvolt = <2800000>; 636 636 637 regulator-stat 637 regulator-state-mem { 638 regula 638 regulator-off-in-suspend; 639 }; 639 }; 640 }; 640 }; 641 641 642 ldo25_reg: LDO25 { 642 ldo25_reg: LDO25 { 643 regulator-name 643 regulator-name = "VLED_3.3V"; 644 regulator-min- 644 regulator-min-microvolt = <3300000>; 645 regulator-max- 645 regulator-max-microvolt = <3300000>; 646 646 647 regulator-stat 647 regulator-state-mem { 648 regula 648 regulator-off-in-suspend; 649 }; 649 }; 650 }; 650 }; 651 651 652 /* Camera ISX012 */ 652 /* Camera ISX012 */ 653 ldo26_reg: LDO26 { 653 ldo26_reg: LDO26 { 654 regulator-name 654 regulator-name = "3MP_AF_2.8V"; 655 regulator-min- 655 regulator-min-microvolt = <2800000>; 656 regulator-max- 656 regulator-max-microvolt = <2800000>; 657 657 658 regulator-stat 658 regulator-state-mem { 659 regula 659 regulator-off-in-suspend; 660 }; 660 }; 661 }; 661 }; 662 662 663 buck1_reg: BUCK1 { 663 buck1_reg: BUCK1 { 664 regulator-name 664 regulator-name = "VDD_MIF"; 665 regulator-min- 665 regulator-min-microvolt = <850000>; 666 regulator-max- 666 regulator-max-microvolt = <1050000>; 667 regulator-alwa 667 regulator-always-on; 668 regulator-boot 668 regulator-boot-on; 669 }; 669 }; 670 670 671 buck2_reg: BUCK2 { 671 buck2_reg: BUCK2 { 672 regulator-name 672 regulator-name = "VDD_ARM"; 673 regulator-min- 673 regulator-min-microvolt = <850000>; 674 regulator-max- 674 regulator-max-microvolt = <1500000>; 675 regulator-alwa 675 regulator-always-on; 676 regulator-boot 676 regulator-boot-on; 677 }; 677 }; 678 678 679 buck3_reg: BUCK3 { 679 buck3_reg: BUCK3 { 680 regulator-name 680 regulator-name = "VDD_INT"; 681 regulator-min- 681 regulator-min-microvolt = <850000>; 682 regulator-max- 682 regulator-max-microvolt = <1100000>; 683 regulator-alwa 683 regulator-always-on; 684 regulator-boot 684 regulator-boot-on; 685 }; 685 }; 686 686 687 buck4_reg: BUCK4 { 687 buck4_reg: BUCK4 { 688 regulator-name 688 regulator-name = "VDD_G3D"; 689 regulator-min- 689 regulator-min-microvolt = <850000>; 690 regulator-max- 690 regulator-max-microvolt = <1075000>; 691 regulator-boot 691 regulator-boot-on; 692 }; 692 }; 693 693 694 buck5_reg: BUCK5 { 694 buck5_reg: BUCK5 { 695 regulator-name 695 regulator-name = "buck5"; 696 regulator-alwa 696 regulator-always-on; 697 }; 697 }; 698 698 699 buck6_reg: BUCK6 { 699 buck6_reg: BUCK6 { 700 regulator-name 700 regulator-name = "buck6"; 701 regulator-alwa 701 regulator-always-on; 702 }; 702 }; 703 703 704 buck7_reg: BUCK7 { 704 buck7_reg: BUCK7 { 705 regulator-name 705 regulator-name = "buck7"; 706 regulator-alwa 706 regulator-always-on; 707 }; 707 }; 708 708 709 /* not connected */ 709 /* not connected */ 710 buck8_reg: BUCK8 { 710 buck8_reg: BUCK8 { 711 regulator-name 711 regulator-name = "buck8"; 712 }; 712 }; 713 713 714 buck9_reg: BUCK9 { 714 buck9_reg: BUCK9 { 715 regulator-name 715 regulator-name = "3MP_CORE_1.2V"; 716 regulator-min- 716 regulator-min-microvolt = <1200000>; 717 regulator-max- 717 regulator-max-microvolt = <1200000>; 718 718 719 regulator-stat 719 regulator-state-mem { 720 regula 720 regulator-off-in-suspend; 721 }; 721 }; 722 }; 722 }; 723 }; 723 }; 724 }; 724 }; 725 }; 725 }; 726 726 727 &mshc_0 { 727 &mshc_0 { 728 broken-cd; 728 broken-cd; 729 non-removable; 729 non-removable; 730 card-detect-delay = <200>; 730 card-detect-delay = <200>; 731 clock-frequency = <400000000>; 731 clock-frequency = <400000000>; 732 samsung,dw-mshc-ciu-div = <0>; 732 samsung,dw-mshc-ciu-div = <0>; 733 samsung,dw-mshc-sdr-timing = <2 3>; 733 samsung,dw-mshc-sdr-timing = <2 3>; 734 samsung,dw-mshc-ddr-timing = <1 2>; 734 samsung,dw-mshc-ddr-timing = <1 2>; 735 mmc-ddr-1_8v; 735 mmc-ddr-1_8v; 736 pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bu 736 pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>; 737 pinctrl-names = "default"; 737 pinctrl-names = "default"; 738 bus-width = <4>; 738 bus-width = <4>; 739 cap-mmc-highspeed; 739 cap-mmc-highspeed; 740 cap-sd-highspeed; 740 cap-sd-highspeed; 741 status = "okay"; 741 status = "okay"; 742 }; 742 }; 743 743 744 &pinctrl_0 { 744 &pinctrl_0 { 745 pinctrl-names = "default"; 745 pinctrl-names = "default"; 746 pinctrl-0 = <&sleep0>; 746 pinctrl-0 = <&sleep0>; 747 747 748 tsp_reg_gpio_2: tsp-reg-gpio-2-pins { 748 tsp_reg_gpio_2: tsp-reg-gpio-2-pins { 749 samsung,pins = "gpb-5"; 749 samsung,pins = "gpb-5"; 750 samsung,pin-function = <EXYNOS 750 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 751 samsung,pin-pud = <EXYNOS_PIN_ 751 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 752 }; 752 }; 753 753 754 tsp_reg_gpio_3: tsp-reg-gpio-3-pins { 754 tsp_reg_gpio_3: tsp-reg-gpio-3-pins { 755 samsung,pins = "gpb-7"; 755 samsung,pins = "gpb-7"; 756 samsung,pin-function = <EXYNOS 756 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 757 samsung,pin-pud = <EXYNOS_PIN_ 757 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 758 }; 758 }; 759 759 760 lcd_enable: lcd-enable-pins { 760 lcd_enable: lcd-enable-pins { 761 samsung,pins = "gpc0-1"; 761 samsung,pins = "gpc0-1"; 762 samsung,pin-function = <EXYNOS 762 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 763 samsung,pin-pud = <EXYNOS_PIN_ 763 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 764 }; 764 }; 765 765 766 sleep0: sleep-state { 766 sleep0: sleep-state { 767 PIN_SLP(gpa0-0, INPUT, NONE); 767 PIN_SLP(gpa0-0, INPUT, NONE); 768 PIN_SLP(gpa0-1, OUT0, NONE); 768 PIN_SLP(gpa0-1, OUT0, NONE); 769 PIN_SLP(gpa0-2, INPUT, NONE); 769 PIN_SLP(gpa0-2, INPUT, NONE); 770 PIN_SLP(gpa0-3, INPUT, UP); 770 PIN_SLP(gpa0-3, INPUT, UP); 771 PIN_SLP(gpa0-4, INPUT, NONE); 771 PIN_SLP(gpa0-4, INPUT, NONE); 772 PIN_SLP(gpa0-5, INPUT, DOWN); 772 PIN_SLP(gpa0-5, INPUT, DOWN); 773 PIN_SLP(gpa0-6, INPUT, DOWN); 773 PIN_SLP(gpa0-6, INPUT, DOWN); 774 PIN_SLP(gpa0-7, INPUT, UP); 774 PIN_SLP(gpa0-7, INPUT, UP); 775 775 776 PIN_SLP(gpa1-0, INPUT, DOWN); 776 PIN_SLP(gpa1-0, INPUT, DOWN); 777 PIN_SLP(gpa1-1, INPUT, DOWN); 777 PIN_SLP(gpa1-1, INPUT, DOWN); 778 PIN_SLP(gpa1-2, INPUT, DOWN); 778 PIN_SLP(gpa1-2, INPUT, DOWN); 779 PIN_SLP(gpa1-3, INPUT, DOWN); 779 PIN_SLP(gpa1-3, INPUT, DOWN); 780 PIN_SLP(gpa1-4, INPUT, DOWN); 780 PIN_SLP(gpa1-4, INPUT, DOWN); 781 PIN_SLP(gpa1-5, INPUT, DOWN); 781 PIN_SLP(gpa1-5, INPUT, DOWN); 782 782 783 PIN_SLP(gpb-0, INPUT, NONE); 783 PIN_SLP(gpb-0, INPUT, NONE); 784 PIN_SLP(gpb-1, INPUT, NONE); 784 PIN_SLP(gpb-1, INPUT, NONE); 785 PIN_SLP(gpb-2, INPUT, NONE); 785 PIN_SLP(gpb-2, INPUT, NONE); 786 PIN_SLP(gpb-3, INPUT, NONE); 786 PIN_SLP(gpb-3, INPUT, NONE); 787 PIN_SLP(gpb-4, INPUT, DOWN); 787 PIN_SLP(gpb-4, INPUT, DOWN); 788 PIN_SLP(gpb-5, INPUT, DOWN); 788 PIN_SLP(gpb-5, INPUT, DOWN); 789 PIN_SLP(gpb-6, INPUT, DOWN); 789 PIN_SLP(gpb-6, INPUT, DOWN); 790 PIN_SLP(gpb-7, INPUT, DOWN); 790 PIN_SLP(gpb-7, INPUT, DOWN); 791 791 792 PIN_SLP(gpc0-0, INPUT, DOWN); 792 PIN_SLP(gpc0-0, INPUT, DOWN); 793 PIN_SLP(gpc0-1, INPUT, DOWN); 793 PIN_SLP(gpc0-1, INPUT, DOWN); 794 PIN_SLP(gpc0-2, INPUT, DOWN); 794 PIN_SLP(gpc0-2, INPUT, DOWN); 795 PIN_SLP(gpc0-3, INPUT, DOWN); 795 PIN_SLP(gpc0-3, INPUT, DOWN); 796 PIN_SLP(gpc0-4, INPUT, DOWN); 796 PIN_SLP(gpc0-4, INPUT, DOWN); 797 797 798 PIN_SLP(gpc1-0, INPUT, UP); 798 PIN_SLP(gpc1-0, INPUT, UP); 799 PIN_SLP(gpc1-1, PREV, NONE); 799 PIN_SLP(gpc1-1, PREV, NONE); 800 PIN_SLP(gpc1-2, INPUT, UP); 800 PIN_SLP(gpc1-2, INPUT, UP); 801 PIN_SLP(gpc1-3, INPUT, UP); 801 PIN_SLP(gpc1-3, INPUT, UP); 802 PIN_SLP(gpc1-4, INPUT, UP); 802 PIN_SLP(gpc1-4, INPUT, UP); 803 803 804 PIN_SLP(gpd0-0, INPUT, DOWN); 804 PIN_SLP(gpd0-0, INPUT, DOWN); 805 PIN_SLP(gpd0-1, OUT0, NONE); 805 PIN_SLP(gpd0-1, OUT0, NONE); 806 PIN_SLP(gpd0-2, INPUT, NONE); 806 PIN_SLP(gpd0-2, INPUT, NONE); 807 PIN_SLP(gpd0-3, INPUT, NONE); 807 PIN_SLP(gpd0-3, INPUT, NONE); 808 808 809 PIN_SLP(gpd1-0, INPUT, DOWN); 809 PIN_SLP(gpd1-0, INPUT, DOWN); 810 PIN_SLP(gpd1-1, INPUT, DOWN); 810 PIN_SLP(gpd1-1, INPUT, DOWN); 811 PIN_SLP(gpd1-2, INPUT, NONE); 811 PIN_SLP(gpd1-2, INPUT, NONE); 812 PIN_SLP(gpd1-3, INPUT, NONE); 812 PIN_SLP(gpd1-3, INPUT, NONE); 813 813 814 PIN_SLP(gpf0-0, OUT0, NONE); 814 PIN_SLP(gpf0-0, OUT0, NONE); 815 PIN_SLP(gpf0-1, OUT0, NONE); 815 PIN_SLP(gpf0-1, OUT0, NONE); 816 PIN_SLP(gpf0-2, OUT0, NONE); 816 PIN_SLP(gpf0-2, OUT0, NONE); 817 PIN_SLP(gpf0-3, OUT0, NONE); 817 PIN_SLP(gpf0-3, OUT0, NONE); 818 PIN_SLP(gpf0-4, OUT0, NONE); 818 PIN_SLP(gpf0-4, OUT0, NONE); 819 PIN_SLP(gpf0-5, OUT0, NONE); 819 PIN_SLP(gpf0-5, OUT0, NONE); 820 PIN_SLP(gpf0-6, OUT0, NONE); 820 PIN_SLP(gpf0-6, OUT0, NONE); 821 PIN_SLP(gpf0-7, OUT0, NONE); 821 PIN_SLP(gpf0-7, OUT0, NONE); 822 822 823 PIN_SLP(gpf1-0, OUT0, NONE); 823 PIN_SLP(gpf1-0, OUT0, NONE); 824 PIN_SLP(gpf1-1, OUT0, NONE); 824 PIN_SLP(gpf1-1, OUT0, NONE); 825 PIN_SLP(gpf1-2, OUT0, NONE); 825 PIN_SLP(gpf1-2, OUT0, NONE); 826 PIN_SLP(gpf1-3, OUT0, NONE); 826 PIN_SLP(gpf1-3, OUT0, NONE); 827 PIN_SLP(gpf1-4, OUT0, NONE); 827 PIN_SLP(gpf1-4, OUT0, NONE); 828 PIN_SLP(gpf1-5, OUT0, NONE); 828 PIN_SLP(gpf1-5, OUT0, NONE); 829 PIN_SLP(gpf1-6, OUT0, NONE); 829 PIN_SLP(gpf1-6, OUT0, NONE); 830 PIN_SLP(gpf1-7, OUT0, NONE); 830 PIN_SLP(gpf1-7, OUT0, NONE); 831 831 832 PIN_SLP(gpf2-0, OUT0, NONE); 832 PIN_SLP(gpf2-0, OUT0, NONE); 833 PIN_SLP(gpf2-1, OUT0, NONE); 833 PIN_SLP(gpf2-1, OUT0, NONE); 834 PIN_SLP(gpf2-2, OUT0, NONE); 834 PIN_SLP(gpf2-2, OUT0, NONE); 835 PIN_SLP(gpf2-3, OUT0, NONE); 835 PIN_SLP(gpf2-3, OUT0, NONE); 836 PIN_SLP(gpf2-4, OUT0, NONE); 836 PIN_SLP(gpf2-4, OUT0, NONE); 837 PIN_SLP(gpf2-5, OUT0, NONE); 837 PIN_SLP(gpf2-5, OUT0, NONE); 838 PIN_SLP(gpf2-6, OUT0, NONE); 838 PIN_SLP(gpf2-6, OUT0, NONE); 839 PIN_SLP(gpf2-7, OUT0, NONE); 839 PIN_SLP(gpf2-7, OUT0, NONE); 840 840 841 PIN_SLP(gpf3-0, OUT0, NONE); 841 PIN_SLP(gpf3-0, OUT0, NONE); 842 PIN_SLP(gpf3-1, OUT0, NONE); 842 PIN_SLP(gpf3-1, OUT0, NONE); 843 PIN_SLP(gpf3-2, OUT0, NONE); 843 PIN_SLP(gpf3-2, OUT0, NONE); 844 PIN_SLP(gpf3-3, OUT0, NONE); 844 PIN_SLP(gpf3-3, OUT0, NONE); 845 PIN_SLP(gpf3-4, OUT0, NONE); 845 PIN_SLP(gpf3-4, OUT0, NONE); 846 PIN_SLP(gpf3-5, OUT0, NONE); 846 PIN_SLP(gpf3-5, OUT0, NONE); 847 847 848 PIN_SLP(gpj0-0, INPUT, DOWN); 848 PIN_SLP(gpj0-0, INPUT, DOWN); 849 PIN_SLP(gpj0-1, INPUT, DOWN); 849 PIN_SLP(gpj0-1, INPUT, DOWN); 850 PIN_SLP(gpj0-2, INPUT, DOWN); 850 PIN_SLP(gpj0-2, INPUT, DOWN); 851 PIN_SLP(gpj0-3, PREV, NONE); 851 PIN_SLP(gpj0-3, PREV, NONE); 852 PIN_SLP(gpj0-4, PREV, NONE); 852 PIN_SLP(gpj0-4, PREV, NONE); 853 PIN_SLP(gpj0-5, OUT0, NONE); 853 PIN_SLP(gpj0-5, OUT0, NONE); 854 PIN_SLP(gpj0-6, OUT0, NONE); 854 PIN_SLP(gpj0-6, OUT0, NONE); 855 PIN_SLP(gpj0-7, OUT0, NONE); 855 PIN_SLP(gpj0-7, OUT0, NONE); 856 856 857 PIN_SLP(gpj1-0, OUT0, NONE); 857 PIN_SLP(gpj1-0, OUT0, NONE); 858 PIN_SLP(gpj1-1, INPUT, DOWN); 858 PIN_SLP(gpj1-1, INPUT, DOWN); 859 PIN_SLP(gpj1-2, PREV, NONE); 859 PIN_SLP(gpj1-2, PREV, NONE); 860 PIN_SLP(gpj1-3, OUT0, NONE); 860 PIN_SLP(gpj1-3, OUT0, NONE); 861 }; 861 }; 862 }; 862 }; 863 863 864 &pinctrl_1 { 864 &pinctrl_1 { 865 pinctrl-names = "default"; 865 pinctrl-names = "default"; 866 pinctrl-0 = <&sleep1>; 866 pinctrl-0 = <&sleep1>; 867 867 868 sd3_wifi: sd3-wifi-pins { 868 sd3_wifi: sd3-wifi-pins { 869 samsung,pins = "gpk3-3", "gpk3 869 samsung,pins = "gpk3-3", "gpk3-4", "gpk3-5", "gpk3-6"; 870 samsung,pin-function = <EXYNOS 870 samsung,pin-function = <EXYNOS_PIN_FUNC_2>; 871 samsung,pin-pud = <EXYNOS_PIN_ 871 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 872 }; 872 }; 873 873 874 bt_shutdown: bt-shutdown-pins { 874 bt_shutdown: bt-shutdown-pins { 875 samsung,pins = "gpl0-6"; 875 samsung,pins = "gpl0-6"; 876 samsung,pin-function = <EXYNOS 876 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 877 samsung,pin-pud = <EXYNOS_PIN_ 877 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 878 }; 878 }; 879 879 880 gyro_data_enable: gyro-data-enable-pin 880 gyro_data_enable: gyro-data-enable-pins { 881 samsung,pins = "gpl2-0"; 881 samsung,pins = "gpl2-0"; 882 samsung,pin-function = <EXYNOS 882 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 883 samsung,pin-pud = <EXYNOS_PIN_ 883 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; 884 }; 884 }; 885 885 886 uart_sel: uart-sel-pins { 886 uart_sel: uart-sel-pins { 887 samsung,pins = "gpl2-7"; 887 samsung,pins = "gpl2-7"; 888 samsung,pin-function = <EXYNOS 888 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 889 samsung,pin-pud = <EXYNOS_PIN_ 889 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 890 samsung,pin-val = <1>; 890 samsung,pin-val = <1>; 891 /* 0 = CP, 1 = AP (serial outp 891 /* 0 = CP, 1 = AP (serial output) */ 892 }; 892 }; 893 893 894 led_bl_reset: led-bl-reset-pins { 894 led_bl_reset: led-bl-reset-pins { 895 samsung,pins = "gpm0-1"; 895 samsung,pins = "gpm0-1"; 896 samsung,pin-function = <EXYNOS 896 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 897 samsung,pin-pud = <EXYNOS_PIN_ 897 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 898 }; 898 }; 899 899 900 tsp_rst: tsp-rst-pins { 900 tsp_rst: tsp-rst-pins { 901 samsung,pins = "gpm0-4"; 901 samsung,pins = "gpm0-4"; 902 samsung,pin-function = <EXYNOS 902 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 903 samsung,pin-pud = <EXYNOS_PIN_ 903 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 904 }; 904 }; 905 905 906 lvds_nshdn: lvds-nshdn-pins { 906 lvds_nshdn: lvds-nshdn-pins { 907 samsung,pins = "gpm0-5"; 907 samsung,pins = "gpm0-5"; 908 samsung,pin-function = <EXYNOS 908 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 909 samsung,pin-pud = <EXYNOS_PIN_ 909 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 910 }; 910 }; 911 911 912 tsp_irq: tsp-irq-pins { 912 tsp_irq: tsp-irq-pins { 913 samsung,pins = "gpm2-3"; 913 samsung,pins = "gpm2-3"; 914 samsung,pin-function = <EXYNOS 914 samsung,pin-function = <EXYNOS_PIN_FUNC_F>; 915 samsung,pin-pud = <EXYNOS_PIN_ 915 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 916 }; 916 }; 917 917 918 wifi_reset: wifi-reset-pins { 918 wifi_reset: wifi-reset-pins { 919 samsung,pins = "gpm3-5"; 919 samsung,pins = "gpm3-5"; 920 samsung,pin-function = <EXYNOS 920 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 921 samsung,pin-pud = <EXYNOS_PIN_ 921 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 922 }; 922 }; 923 923 924 tsp_reg_gpio_1: tsp-reg-gpio-1-pins { 924 tsp_reg_gpio_1: tsp-reg-gpio-1-pins { 925 samsung,pins = "gpm4-5"; 925 samsung,pins = "gpm4-5"; 926 samsung,pin-function = <EXYNOS 926 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 927 samsung,pin-pud = <EXYNOS_PIN_ 927 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 928 }; 928 }; 929 929 930 ak8975_irq: ak8975-irq-pins { 930 ak8975_irq: ak8975-irq-pins { 931 samsung,pins = "gpm4-7"; 931 samsung,pins = "gpm4-7"; 932 samsung,pin-function = <EXYNOS 932 samsung,pin-function = <EXYNOS_PIN_FUNC_F>; 933 samsung,pin-pud = <EXYNOS_PIN_ 933 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; 934 }; 934 }; 935 935 936 accelerometer_irq: accelerometer-irq-p 936 accelerometer_irq: accelerometer-irq-pins { 937 samsung,pins = "gpx0-0"; 937 samsung,pins = "gpx0-0"; 938 samsung,pin-function = <EXYNOS 938 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; 939 samsung,pin-pud = <EXYNOS_PIN_ 939 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 940 }; 940 }; 941 941 942 stmpe_adc_irq: stmpe-adc-irq-pins { 942 stmpe_adc_irq: stmpe-adc-irq-pins { 943 samsung,pins = "gpx0-1"; 943 samsung,pins = "gpx0-1"; 944 samsung,pin-function = <EXYNOS 944 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; 945 samsung,pin-pud = <EXYNOS_PIN_ 945 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 946 }; 946 }; 947 947 948 gyro_irq: gyro-irq-pins { 948 gyro_irq: gyro-irq-pins { 949 samsung,pins = "gpx0-6"; 949 samsung,pins = "gpx0-6"; 950 samsung,pin-function = <EXYNOS 950 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; 951 samsung,pin-pud = <EXYNOS_PIN_ 951 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 952 }; 952 }; 953 953 954 max77686_irq: max77686-irq-pins { 954 max77686_irq: max77686-irq-pins { 955 samsung,pins = "gpx0-7"; 955 samsung,pins = "gpx0-7"; 956 samsung,pin-pud = <EXYNOS_PIN_ 956 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 957 }; 957 }; 958 958 959 gpio_keys: gpio-keys-pins { 959 gpio_keys: gpio-keys-pins { 960 samsung,pins = "gpx2-2", "gpx2 960 samsung,pins = "gpx2-2", "gpx2-7", "gpx3-3"; 961 samsung,pin-pud = <EXYNOS_PIN_ 961 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 962 }; 962 }; 963 963 964 fuel_alert_irq: fuel-alert-irq-pins { 964 fuel_alert_irq: fuel-alert-irq-pins { 965 samsung,pins = "gpx2-3"; 965 samsung,pins = "gpx2-3"; 966 samsung,pin-function = <EXYNOS 966 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; 967 samsung,pin-pud = <EXYNOS_PIN_ 967 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 968 }; 968 }; 969 969 970 wifi_host_wake: wifi-host-wake-pins { 970 wifi_host_wake: wifi-host-wake-pins { 971 samsung,pins = "gpx2-5"; 971 samsung,pins = "gpx2-5"; 972 samsung,pin-function = <EXYNOS 972 samsung,pin-function = <EXYNOS_PIN_FUNC_F>; 973 samsung,pin-pud = <EXYNOS_PIN_ 973 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; 974 }; 974 }; 975 975 976 bt_host_wakeup: bt-host-wakeup-pins { 976 bt_host_wakeup: bt-host-wakeup-pins { 977 samsung,pins = "gpx2-6"; 977 samsung,pins = "gpx2-6"; 978 samsung,pin-function = <EXYNOS 978 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; 979 samsung,pin-pud = <EXYNOS_PIN_ 979 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 980 }; 980 }; 981 981 982 bt_device_wakeup: bt-device-wakeup-pin 982 bt_device_wakeup: bt-device-wakeup-pins { 983 samsung,pins = "gpx3-1"; 983 samsung,pins = "gpx3-1"; 984 samsung,pin-function = <EXYNOS 984 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 985 samsung,pin-pud = <EXYNOS_PIN_ 985 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 986 }; 986 }; 987 987 988 sdhci2_cd: sdhci2-cd-pins { 988 sdhci2_cd: sdhci2-cd-pins { 989 samsung,pins = "gpx3-4"; 989 samsung,pins = "gpx3-4"; 990 samsung,pin-pud = <EXYNOS_PIN_ 990 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 991 }; 991 }; 992 992 993 sleep1: sleep-state { 993 sleep1: sleep-state { 994 PIN_SLP(gpk0-0, PREV, NONE); 994 PIN_SLP(gpk0-0, PREV, NONE); 995 PIN_SLP(gpk0-1, PREV, NONE); 995 PIN_SLP(gpk0-1, PREV, NONE); 996 PIN_SLP(gpk0-2, PREV, NONE); 996 PIN_SLP(gpk0-2, PREV, NONE); 997 PIN_SLP(gpk0-3, PREV, NONE); 997 PIN_SLP(gpk0-3, PREV, NONE); 998 PIN_SLP(gpk0-4, PREV, NONE); 998 PIN_SLP(gpk0-4, PREV, NONE); 999 PIN_SLP(gpk0-5, PREV, NONE); 999 PIN_SLP(gpk0-5, PREV, NONE); 1000 PIN_SLP(gpk0-6, PREV, NONE); 1000 PIN_SLP(gpk0-6, PREV, NONE); 1001 1001 1002 PIN_SLP(gpk1-0, INPUT, DOWN); 1002 PIN_SLP(gpk1-0, INPUT, DOWN); 1003 PIN_SLP(gpk1-1, INPUT, DOWN); 1003 PIN_SLP(gpk1-1, INPUT, DOWN); 1004 PIN_SLP(gpk1-2, INPUT, DOWN); 1004 PIN_SLP(gpk1-2, INPUT, DOWN); 1005 PIN_SLP(gpk1-3, PREV, NONE); 1005 PIN_SLP(gpk1-3, PREV, NONE); 1006 PIN_SLP(gpk1-4, PREV, NONE); 1006 PIN_SLP(gpk1-4, PREV, NONE); 1007 PIN_SLP(gpk1-5, PREV, NONE); 1007 PIN_SLP(gpk1-5, PREV, NONE); 1008 PIN_SLP(gpk1-6, PREV, NONE); 1008 PIN_SLP(gpk1-6, PREV, NONE); 1009 1009 1010 PIN_SLP(gpk2-0, INPUT, DOWN); 1010 PIN_SLP(gpk2-0, INPUT, DOWN); 1011 PIN_SLP(gpk2-1, INPUT, DOWN); 1011 PIN_SLP(gpk2-1, INPUT, DOWN); 1012 PIN_SLP(gpk2-2, INPUT, DOWN); 1012 PIN_SLP(gpk2-2, INPUT, DOWN); 1013 PIN_SLP(gpk2-3, INPUT, DOWN); 1013 PIN_SLP(gpk2-3, INPUT, DOWN); 1014 PIN_SLP(gpk2-4, INPUT, DOWN); 1014 PIN_SLP(gpk2-4, INPUT, DOWN); 1015 PIN_SLP(gpk2-5, INPUT, DOWN); 1015 PIN_SLP(gpk2-5, INPUT, DOWN); 1016 PIN_SLP(gpk2-6, INPUT, DOWN); 1016 PIN_SLP(gpk2-6, INPUT, DOWN); 1017 1017 1018 PIN_SLP(gpk3-0, OUT0, NONE); 1018 PIN_SLP(gpk3-0, OUT0, NONE); 1019 PIN_SLP(gpk3-1, INPUT, NONE); 1019 PIN_SLP(gpk3-1, INPUT, NONE); 1020 PIN_SLP(gpk3-2, INPUT, DOWN); 1020 PIN_SLP(gpk3-2, INPUT, DOWN); 1021 PIN_SLP(gpk3-3, INPUT, NONE); 1021 PIN_SLP(gpk3-3, INPUT, NONE); 1022 PIN_SLP(gpk3-4, INPUT, NONE); 1022 PIN_SLP(gpk3-4, INPUT, NONE); 1023 PIN_SLP(gpk3-5, INPUT, NONE); 1023 PIN_SLP(gpk3-5, INPUT, NONE); 1024 PIN_SLP(gpk3-6, INPUT, NONE); 1024 PIN_SLP(gpk3-6, INPUT, NONE); 1025 1025 1026 PIN_SLP(gpl0-0, OUT0, NONE); 1026 PIN_SLP(gpl0-0, OUT0, NONE); 1027 PIN_SLP(gpl0-1, INPUT, NONE); 1027 PIN_SLP(gpl0-1, INPUT, NONE); 1028 PIN_SLP(gpl0-2, INPUT, NONE); 1028 PIN_SLP(gpl0-2, INPUT, NONE); 1029 PIN_SLP(gpl0-3, INPUT, DOWN); 1029 PIN_SLP(gpl0-3, INPUT, DOWN); 1030 PIN_SLP(gpl0-4, PREV, NONE); 1030 PIN_SLP(gpl0-4, PREV, NONE); 1031 PIN_SLP(gpl0-6, PREV, NONE); 1031 PIN_SLP(gpl0-6, PREV, NONE); 1032 1032 1033 PIN_SLP(gpl1-0, OUT0, NONE); 1033 PIN_SLP(gpl1-0, OUT0, NONE); 1034 PIN_SLP(gpl1-1, OUT0, NONE); 1034 PIN_SLP(gpl1-1, OUT0, NONE); 1035 1035 1036 PIN_SLP(gpl2-0, INPUT, DOWN); 1036 PIN_SLP(gpl2-0, INPUT, DOWN); 1037 PIN_SLP(gpl2-1, INPUT, DOWN); 1037 PIN_SLP(gpl2-1, INPUT, DOWN); 1038 PIN_SLP(gpl2-2, INPUT, DOWN); 1038 PIN_SLP(gpl2-2, INPUT, DOWN); 1039 PIN_SLP(gpl2-3, INPUT, DOWN); 1039 PIN_SLP(gpl2-3, INPUT, DOWN); 1040 PIN_SLP(gpl2-4, OUT0, NONE); 1040 PIN_SLP(gpl2-4, OUT0, NONE); 1041 PIN_SLP(gpl2-5, INPUT, DOWN); 1041 PIN_SLP(gpl2-5, INPUT, DOWN); 1042 PIN_SLP(gpl2-6, PREV, NONE); 1042 PIN_SLP(gpl2-6, PREV, NONE); 1043 PIN_SLP(gpl2-7, PREV, NONE); 1043 PIN_SLP(gpl2-7, PREV, NONE); 1044 1044 1045 PIN_SLP(gpm0-0, PREV, NONE); 1045 PIN_SLP(gpm0-0, PREV, NONE); 1046 PIN_SLP(gpm0-1, OUT0, NONE); 1046 PIN_SLP(gpm0-1, OUT0, NONE); 1047 PIN_SLP(gpm0-2, INPUT, DOWN); 1047 PIN_SLP(gpm0-2, INPUT, DOWN); 1048 PIN_SLP(gpm0-3, INPUT, NONE); 1048 PIN_SLP(gpm0-3, INPUT, NONE); 1049 PIN_SLP(gpm0-4, OUT0, NONE); 1049 PIN_SLP(gpm0-4, OUT0, NONE); 1050 PIN_SLP(gpm0-5, OUT0, NONE); 1050 PIN_SLP(gpm0-5, OUT0, NONE); 1051 PIN_SLP(gpm0-6, INPUT, DOWN); 1051 PIN_SLP(gpm0-6, INPUT, DOWN); 1052 PIN_SLP(gpm0-7, OUT0, NONE); 1052 PIN_SLP(gpm0-7, OUT0, NONE); 1053 1053 1054 PIN_SLP(gpm1-0, INPUT, NONE); 1054 PIN_SLP(gpm1-0, INPUT, NONE); 1055 PIN_SLP(gpm1-1, INPUT, NONE); 1055 PIN_SLP(gpm1-1, INPUT, NONE); 1056 PIN_SLP(gpm1-2, INPUT, NONE); 1056 PIN_SLP(gpm1-2, INPUT, NONE); 1057 PIN_SLP(gpm1-3, INPUT, NONE); 1057 PIN_SLP(gpm1-3, INPUT, NONE); 1058 PIN_SLP(gpm1-4, INPUT, NONE); 1058 PIN_SLP(gpm1-4, INPUT, NONE); 1059 PIN_SLP(gpm1-5, INPUT, NONE); 1059 PIN_SLP(gpm1-5, INPUT, NONE); 1060 PIN_SLP(gpm1-6, INPUT, DOWN); 1060 PIN_SLP(gpm1-6, INPUT, DOWN); 1061 1061 1062 PIN_SLP(gpm2-0, INPUT, NONE); 1062 PIN_SLP(gpm2-0, INPUT, NONE); 1063 PIN_SLP(gpm2-1, INPUT, NONE); 1063 PIN_SLP(gpm2-1, INPUT, NONE); 1064 PIN_SLP(gpm2-2, OUT0, NONE); 1064 PIN_SLP(gpm2-2, OUT0, NONE); 1065 PIN_SLP(gpm2-3, OUT0, DOWN); 1065 PIN_SLP(gpm2-3, OUT0, DOWN); 1066 PIN_SLP(gpm2-4, INPUT, DOWN); 1066 PIN_SLP(gpm2-4, INPUT, DOWN); 1067 1067 1068 PIN_SLP(gpm3-0, PREV, NONE); 1068 PIN_SLP(gpm3-0, PREV, NONE); 1069 PIN_SLP(gpm3-1, PREV, NONE); 1069 PIN_SLP(gpm3-1, PREV, NONE); 1070 PIN_SLP(gpm3-2, PREV, NONE); 1070 PIN_SLP(gpm3-2, PREV, NONE); 1071 PIN_SLP(gpm3-3, OUT1, NONE); 1071 PIN_SLP(gpm3-3, OUT1, NONE); 1072 PIN_SLP(gpm3-4, OUT0, DOWN); 1072 PIN_SLP(gpm3-4, OUT0, DOWN); 1073 PIN_SLP(gpm3-5, PREV, NONE); 1073 PIN_SLP(gpm3-5, PREV, NONE); 1074 PIN_SLP(gpm3-6, PREV, NONE); 1074 PIN_SLP(gpm3-6, PREV, NONE); 1075 PIN_SLP(gpm3-7, OUT0, NONE); 1075 PIN_SLP(gpm3-7, OUT0, NONE); 1076 1076 1077 PIN_SLP(gpm4-0, INPUT, NONE); 1077 PIN_SLP(gpm4-0, INPUT, NONE); 1078 PIN_SLP(gpm4-1, INPUT, NONE); 1078 PIN_SLP(gpm4-1, INPUT, NONE); 1079 PIN_SLP(gpm4-2, INPUT, DOWN); 1079 PIN_SLP(gpm4-2, INPUT, DOWN); 1080 PIN_SLP(gpm4-3, INPUT, DOWN); 1080 PIN_SLP(gpm4-3, INPUT, DOWN); 1081 PIN_SLP(gpm4-4, PREV, NONE); 1081 PIN_SLP(gpm4-4, PREV, NONE); 1082 PIN_SLP(gpm4-5, OUT0, NONE); 1082 PIN_SLP(gpm4-5, OUT0, NONE); 1083 PIN_SLP(gpm4-6, OUT0, NONE); 1083 PIN_SLP(gpm4-6, OUT0, NONE); 1084 PIN_SLP(gpm4-7, INPUT, DOWN); 1084 PIN_SLP(gpm4-7, INPUT, DOWN); 1085 1085 1086 PIN_SLP(gpy0-0, INPUT, DOWN); 1086 PIN_SLP(gpy0-0, INPUT, DOWN); 1087 PIN_SLP(gpy0-1, INPUT, DOWN); 1087 PIN_SLP(gpy0-1, INPUT, DOWN); 1088 PIN_SLP(gpy0-2, INPUT, NONE); 1088 PIN_SLP(gpy0-2, INPUT, NONE); 1089 PIN_SLP(gpy0-3, INPUT, NONE); 1089 PIN_SLP(gpy0-3, INPUT, NONE); 1090 PIN_SLP(gpy0-4, INPUT, NONE); 1090 PIN_SLP(gpy0-4, INPUT, NONE); 1091 PIN_SLP(gpy0-5, INPUT, NONE); 1091 PIN_SLP(gpy0-5, INPUT, NONE); 1092 1092 1093 PIN_SLP(gpy1-0, INPUT, DOWN); 1093 PIN_SLP(gpy1-0, INPUT, DOWN); 1094 PIN_SLP(gpy1-1, INPUT, DOWN); 1094 PIN_SLP(gpy1-1, INPUT, DOWN); 1095 PIN_SLP(gpy1-2, INPUT, DOWN); 1095 PIN_SLP(gpy1-2, INPUT, DOWN); 1096 PIN_SLP(gpy1-3, INPUT, DOWN); 1096 PIN_SLP(gpy1-3, INPUT, DOWN); 1097 1097 1098 PIN_SLP(gpy2-0, PREV, NONE); 1098 PIN_SLP(gpy2-0, PREV, NONE); 1099 PIN_SLP(gpy2-1, INPUT, DOWN); 1099 PIN_SLP(gpy2-1, INPUT, DOWN); 1100 PIN_SLP(gpy2-2, INPUT, NONE); 1100 PIN_SLP(gpy2-2, INPUT, NONE); 1101 PIN_SLP(gpy2-3, INPUT, NONE); 1101 PIN_SLP(gpy2-3, INPUT, NONE); 1102 PIN_SLP(gpy2-4, INPUT, NONE); 1102 PIN_SLP(gpy2-4, INPUT, NONE); 1103 PIN_SLP(gpy2-5, INPUT, NONE); 1103 PIN_SLP(gpy2-5, INPUT, NONE); 1104 1104 1105 PIN_SLP(gpy3-0, INPUT, DOWN); 1105 PIN_SLP(gpy3-0, INPUT, DOWN); 1106 PIN_SLP(gpy3-1, INPUT, DOWN); 1106 PIN_SLP(gpy3-1, INPUT, DOWN); 1107 PIN_SLP(gpy3-2, INPUT, DOWN); 1107 PIN_SLP(gpy3-2, INPUT, DOWN); 1108 PIN_SLP(gpy3-3, INPUT, DOWN); 1108 PIN_SLP(gpy3-3, INPUT, DOWN); 1109 PIN_SLP(gpy3-4, INPUT, DOWN); 1109 PIN_SLP(gpy3-4, INPUT, DOWN); 1110 PIN_SLP(gpy3-5, INPUT, DOWN); 1110 PIN_SLP(gpy3-5, INPUT, DOWN); 1111 PIN_SLP(gpy3-6, INPUT, DOWN); 1111 PIN_SLP(gpy3-6, INPUT, DOWN); 1112 PIN_SLP(gpy3-7, INPUT, DOWN); 1112 PIN_SLP(gpy3-7, INPUT, DOWN); 1113 1113 1114 PIN_SLP(gpy4-0, INPUT, DOWN); 1114 PIN_SLP(gpy4-0, INPUT, DOWN); 1115 PIN_SLP(gpy4-1, INPUT, DOWN); 1115 PIN_SLP(gpy4-1, INPUT, DOWN); 1116 PIN_SLP(gpy4-2, INPUT, DOWN); 1116 PIN_SLP(gpy4-2, INPUT, DOWN); 1117 PIN_SLP(gpy4-3, INPUT, DOWN); 1117 PIN_SLP(gpy4-3, INPUT, DOWN); 1118 PIN_SLP(gpy4-4, INPUT, DOWN); 1118 PIN_SLP(gpy4-4, INPUT, DOWN); 1119 PIN_SLP(gpy4-5, INPUT, DOWN); 1119 PIN_SLP(gpy4-5, INPUT, DOWN); 1120 PIN_SLP(gpy4-6, INPUT, DOWN); 1120 PIN_SLP(gpy4-6, INPUT, DOWN); 1121 PIN_SLP(gpy4-7, INPUT, DOWN); 1121 PIN_SLP(gpy4-7, INPUT, DOWN); 1122 1122 1123 PIN_SLP(gpy5-0, INPUT, DOWN); 1123 PIN_SLP(gpy5-0, INPUT, DOWN); 1124 PIN_SLP(gpy5-1, INPUT, DOWN); 1124 PIN_SLP(gpy5-1, INPUT, DOWN); 1125 PIN_SLP(gpy5-2, INPUT, DOWN); 1125 PIN_SLP(gpy5-2, INPUT, DOWN); 1126 PIN_SLP(gpy5-3, INPUT, DOWN); 1126 PIN_SLP(gpy5-3, INPUT, DOWN); 1127 PIN_SLP(gpy5-4, INPUT, DOWN); 1127 PIN_SLP(gpy5-4, INPUT, DOWN); 1128 PIN_SLP(gpy5-5, INPUT, DOWN); 1128 PIN_SLP(gpy5-5, INPUT, DOWN); 1129 PIN_SLP(gpy5-6, INPUT, DOWN); 1129 PIN_SLP(gpy5-6, INPUT, DOWN); 1130 PIN_SLP(gpy5-7, INPUT, DOWN); 1130 PIN_SLP(gpy5-7, INPUT, DOWN); 1131 1131 1132 PIN_SLP(gpy6-0, INPUT, DOWN); 1132 PIN_SLP(gpy6-0, INPUT, DOWN); 1133 PIN_SLP(gpy6-1, INPUT, DOWN); 1133 PIN_SLP(gpy6-1, INPUT, DOWN); 1134 PIN_SLP(gpy6-2, INPUT, DOWN); 1134 PIN_SLP(gpy6-2, INPUT, DOWN); 1135 PIN_SLP(gpy6-3, INPUT, DOWN); 1135 PIN_SLP(gpy6-3, INPUT, DOWN); 1136 PIN_SLP(gpy6-4, INPUT, DOWN); 1136 PIN_SLP(gpy6-4, INPUT, DOWN); 1137 PIN_SLP(gpy6-5, INPUT, DOWN); 1137 PIN_SLP(gpy6-5, INPUT, DOWN); 1138 PIN_SLP(gpy6-6, INPUT, DOWN); 1138 PIN_SLP(gpy6-6, INPUT, DOWN); 1139 PIN_SLP(gpy6-7, INPUT, DOWN); 1139 PIN_SLP(gpy6-7, INPUT, DOWN); 1140 }; 1140 }; 1141 }; 1141 }; 1142 1142 1143 &pinctrl_2 { 1143 &pinctrl_2 { 1144 pinctrl-names = "default"; 1144 pinctrl-names = "default"; 1145 pinctrl-0 = <&sleep2>; 1145 pinctrl-0 = <&sleep2>; 1146 1146 1147 sleep2: sleep-state { 1147 sleep2: sleep-state { 1148 PIN_SLP(gpz-0, INPUT, DOWN); 1148 PIN_SLP(gpz-0, INPUT, DOWN); 1149 PIN_SLP(gpz-1, INPUT, DOWN); 1149 PIN_SLP(gpz-1, INPUT, DOWN); 1150 PIN_SLP(gpz-2, INPUT, DOWN); 1150 PIN_SLP(gpz-2, INPUT, DOWN); 1151 PIN_SLP(gpz-3, INPUT, DOWN); 1151 PIN_SLP(gpz-3, INPUT, DOWN); 1152 PIN_SLP(gpz-4, INPUT, DOWN); 1152 PIN_SLP(gpz-4, INPUT, DOWN); 1153 PIN_SLP(gpz-5, INPUT, DOWN); 1153 PIN_SLP(gpz-5, INPUT, DOWN); 1154 PIN_SLP(gpz-6, INPUT, DOWN); 1154 PIN_SLP(gpz-6, INPUT, DOWN); 1155 }; 1155 }; 1156 }; 1156 }; 1157 1157 1158 &pinctrl_3 { 1158 &pinctrl_3 { 1159 pinctrl-names = "default"; 1159 pinctrl-names = "default"; 1160 pinctrl-0 = <&sleep3>; 1160 pinctrl-0 = <&sleep3>; 1161 1161 1162 sleep3: sleep-state { 1162 sleep3: sleep-state { 1163 PIN_SLP(gpv0-0, INPUT, DOWN); 1163 PIN_SLP(gpv0-0, INPUT, DOWN); 1164 PIN_SLP(gpv0-1, INPUT, DOWN); 1164 PIN_SLP(gpv0-1, INPUT, DOWN); 1165 PIN_SLP(gpv0-2, INPUT, DOWN); 1165 PIN_SLP(gpv0-2, INPUT, DOWN); 1166 PIN_SLP(gpv0-3, INPUT, DOWN); 1166 PIN_SLP(gpv0-3, INPUT, DOWN); 1167 PIN_SLP(gpv0-4, INPUT, DOWN); 1167 PIN_SLP(gpv0-4, INPUT, DOWN); 1168 PIN_SLP(gpv0-5, INPUT, DOWN); 1168 PIN_SLP(gpv0-5, INPUT, DOWN); 1169 PIN_SLP(gpv0-6, INPUT, DOWN); 1169 PIN_SLP(gpv0-6, INPUT, DOWN); 1170 PIN_SLP(gpv0-7, INPUT, DOWN); 1170 PIN_SLP(gpv0-7, INPUT, DOWN); 1171 1171 1172 PIN_SLP(gpv1-0, INPUT, DOWN); 1172 PIN_SLP(gpv1-0, INPUT, DOWN); 1173 PIN_SLP(gpv1-1, INPUT, DOWN); 1173 PIN_SLP(gpv1-1, INPUT, DOWN); 1174 PIN_SLP(gpv1-2, INPUT, DOWN); 1174 PIN_SLP(gpv1-2, INPUT, DOWN); 1175 PIN_SLP(gpv1-3, INPUT, DOWN); 1175 PIN_SLP(gpv1-3, INPUT, DOWN); 1176 PIN_SLP(gpv1-4, INPUT, DOWN); 1176 PIN_SLP(gpv1-4, INPUT, DOWN); 1177 PIN_SLP(gpv1-5, INPUT, DOWN); 1177 PIN_SLP(gpv1-5, INPUT, DOWN); 1178 PIN_SLP(gpv1-6, INPUT, DOWN); 1178 PIN_SLP(gpv1-6, INPUT, DOWN); 1179 PIN_SLP(gpv1-7, INPUT, DOWN); 1179 PIN_SLP(gpv1-7, INPUT, DOWN); 1180 1180 1181 PIN_SLP(gpv2-0, INPUT, DOWN); 1181 PIN_SLP(gpv2-0, INPUT, DOWN); 1182 PIN_SLP(gpv2-1, INPUT, DOWN); 1182 PIN_SLP(gpv2-1, INPUT, DOWN); 1183 PIN_SLP(gpv2-2, INPUT, DOWN); 1183 PIN_SLP(gpv2-2, INPUT, DOWN); 1184 PIN_SLP(gpv2-3, INPUT, DOWN); 1184 PIN_SLP(gpv2-3, INPUT, DOWN); 1185 PIN_SLP(gpv2-4, INPUT, DOWN); 1185 PIN_SLP(gpv2-4, INPUT, DOWN); 1186 PIN_SLP(gpv2-5, INPUT, DOWN); 1186 PIN_SLP(gpv2-5, INPUT, DOWN); 1187 PIN_SLP(gpv2-6, INPUT, DOWN); 1187 PIN_SLP(gpv2-6, INPUT, DOWN); 1188 PIN_SLP(gpv2-7, INPUT, DOWN); 1188 PIN_SLP(gpv2-7, INPUT, DOWN); 1189 1189 1190 PIN_SLP(gpv3-0, INPUT, DOWN); 1190 PIN_SLP(gpv3-0, INPUT, DOWN); 1191 PIN_SLP(gpv3-1, INPUT, DOWN); 1191 PIN_SLP(gpv3-1, INPUT, DOWN); 1192 PIN_SLP(gpv3-2, INPUT, DOWN); 1192 PIN_SLP(gpv3-2, INPUT, DOWN); 1193 PIN_SLP(gpv3-3, INPUT, DOWN); 1193 PIN_SLP(gpv3-3, INPUT, DOWN); 1194 PIN_SLP(gpv3-4, INPUT, DOWN); 1194 PIN_SLP(gpv3-4, INPUT, DOWN); 1195 PIN_SLP(gpv3-5, INPUT, DOWN); 1195 PIN_SLP(gpv3-5, INPUT, DOWN); 1196 PIN_SLP(gpv3-6, INPUT, DOWN); 1196 PIN_SLP(gpv3-6, INPUT, DOWN); 1197 PIN_SLP(gpv3-7, INPUT, DOWN); 1197 PIN_SLP(gpv3-7, INPUT, DOWN); 1198 1198 1199 PIN_SLP(gpv4-0, INPUT, DOWN); 1199 PIN_SLP(gpv4-0, INPUT, DOWN); 1200 PIN_SLP(gpv4-1, INPUT, DOWN); 1200 PIN_SLP(gpv4-1, INPUT, DOWN); 1201 }; 1201 }; 1202 }; 1202 }; 1203 1203 1204 &pmu_system_controller { 1204 &pmu_system_controller { 1205 assigned-clocks = <&pmu_system_contro 1205 assigned-clocks = <&pmu_system_controller 0>; 1206 assigned-clock-parents = <&clock CLK_ 1206 assigned-clock-parents = <&clock CLK_XUSBXTI>; 1207 }; 1207 }; 1208 1208 1209 &pwm { 1209 &pwm { 1210 pinctrl-0 = <&pwm1_out>; 1210 pinctrl-0 = <&pwm1_out>; 1211 pinctrl-names = "default"; 1211 pinctrl-names = "default"; 1212 samsung,pwm-outputs = <1>; 1212 samsung,pwm-outputs = <1>; 1213 status = "okay"; 1213 status = "okay"; 1214 }; 1214 }; 1215 1215 1216 &rtc { 1216 &rtc { 1217 clocks = <&clock CLK_RTC>, <&max77686 1217 clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>; 1218 clock-names = "rtc", "rtc_src"; 1218 clock-names = "rtc", "rtc_src"; 1219 status = "okay"; 1219 status = "okay"; 1220 }; 1220 }; 1221 1221 1222 &sdhci_2 { 1222 &sdhci_2 { 1223 bus-width = <4>; 1223 bus-width = <4>; 1224 cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>; 1224 cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>; 1225 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_b 1225 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sdhci2_cd>; 1226 pinctrl-names = "default"; 1226 pinctrl-names = "default"; 1227 vmmc-supply = <&ldo21_reg>; 1227 vmmc-supply = <&ldo21_reg>; 1228 status = "okay"; 1228 status = "okay"; 1229 }; 1229 }; 1230 1230 1231 &sdhci_3 { 1231 &sdhci_3 { 1232 #address-cells = <1>; 1232 #address-cells = <1>; 1233 #size-cells = <0>; 1233 #size-cells = <0>; 1234 non-removable; 1234 non-removable; 1235 bus-width = <4>; 1235 bus-width = <4>; 1236 mmc-pwrseq = <&wlan_pwrseq>; 1236 mmc-pwrseq = <&wlan_pwrseq>; 1237 1237 1238 pinctrl-names = "default"; 1238 pinctrl-names = "default"; 1239 pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_w 1239 pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_wifi>; 1240 status = "okay"; 1240 status = "okay"; 1241 1241 1242 wifi@1 { 1242 wifi@1 { 1243 compatible = "brcm,bcm4329-fm 1243 compatible = "brcm,bcm4329-fmac"; 1244 reg = <0x1>; 1244 reg = <0x1>; 1245 pinctrl-names = "default"; 1245 pinctrl-names = "default"; 1246 pinctrl-0 = <&wifi_host_wake> 1246 pinctrl-0 = <&wifi_host_wake>; 1247 interrupt-parent = <&gpx2>; 1247 interrupt-parent = <&gpx2>; 1248 interrupts = <5 IRQ_TYPE_LEVE 1248 interrupts = <5 IRQ_TYPE_LEVEL_HIGH>; 1249 interrupt-names = "host-wake" 1249 interrupt-names = "host-wake"; 1250 }; 1250 }; 1251 }; 1251 }; 1252 1252 1253 &serial_0 { 1253 &serial_0 { 1254 pinctrl-0 = <&uart0_data &uart0_fctl> 1254 pinctrl-0 = <&uart0_data &uart0_fctl>; 1255 pinctrl-names = "default"; 1255 pinctrl-names = "default"; 1256 status = "okay"; 1256 status = "okay"; 1257 1257 1258 bluetooth { 1258 bluetooth { 1259 compatible = "brcm,bcm4330-bt 1259 compatible = "brcm,bcm4330-bt"; 1260 pinctrl-0 = <&bt_shutdown &bt 1260 pinctrl-0 = <&bt_shutdown &bt_device_wakeup &bt_host_wakeup>; 1261 pinctrl-names = "default"; 1261 pinctrl-names = "default"; 1262 1262 1263 max-speed = <2000000>; 1263 max-speed = <2000000>; 1264 shutdown-gpios = <&gpl0 6 GPI 1264 shutdown-gpios = <&gpl0 6 GPIO_ACTIVE_HIGH>; 1265 device-wakeup-gpios = <&gpx3 1265 device-wakeup-gpios = <&gpx3 1 GPIO_ACTIVE_HIGH>; 1266 host-wakeup-gpios = <&gpx2 6 1266 host-wakeup-gpios = <&gpx2 6 GPIO_ACTIVE_HIGH>; 1267 clocks = <&max77686 MAX77686_ 1267 clocks = <&max77686 MAX77686_CLK_PMIC>; 1268 clock-names = "lpo"; 1268 clock-names = "lpo"; 1269 }; 1269 }; 1270 }; 1270 }; 1271 1271 1272 &serial_2 { 1272 &serial_2 { 1273 pinctrl-0 = <&uart_sel>; 1273 pinctrl-0 = <&uart_sel>; 1274 pinctrl-names = "default"; 1274 pinctrl-names = "default"; 1275 status = "okay"; 1275 status = "okay"; 1276 }; 1276 }; 1277 1277 1278 &tmu { 1278 &tmu { 1279 status = "okay"; 1279 status = "okay"; 1280 }; 1280 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.