162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci
362306a36Sopenharmony_ci/dts-v1/;
462306a36Sopenharmony_ci#include <dt-bindings/gpio/gpio.h>
562306a36Sopenharmony_ci#include <dt-bindings/input/input.h>
662306a36Sopenharmony_ci#include "s5pv210-aries.dtsi"
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci/ {
962306a36Sopenharmony_ci	model = "Samsung Galaxy S Fascinate 4G (SGH-T959P) based on S5PV210";
1062306a36Sopenharmony_ci	compatible = "samsung,fascinate4g", "samsung,aries", "samsung,s5pv210";
1162306a36Sopenharmony_ci	chassis-type = "handset";
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci	chosen {
1462306a36Sopenharmony_ci		stdout-path = &uart2;
1562306a36Sopenharmony_ci	};
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci	gpio-keys {
1862306a36Sopenharmony_ci		compatible = "gpio-keys";
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci		key-power {
2162306a36Sopenharmony_ci			label = "power";
2262306a36Sopenharmony_ci			gpios = <&gph2 6 GPIO_ACTIVE_LOW>;
2362306a36Sopenharmony_ci			linux,code = <KEY_POWER>;
2462306a36Sopenharmony_ci			wakeup-source;
2562306a36Sopenharmony_ci		};
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci		key-vol-down {
2862306a36Sopenharmony_ci			label = "volume_down";
2962306a36Sopenharmony_ci			gpios = <&gph3 2 GPIO_ACTIVE_LOW>;
3062306a36Sopenharmony_ci			linux,code = <KEY_VOLUMEDOWN>;
3162306a36Sopenharmony_ci		};
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci		key-vol-up {
3462306a36Sopenharmony_ci			label = "volume_up";
3562306a36Sopenharmony_ci			gpios = <&gph3 1 GPIO_ACTIVE_LOW>;
3662306a36Sopenharmony_ci			linux,code = <KEY_VOLUMEUP>;
3762306a36Sopenharmony_ci		};
3862306a36Sopenharmony_ci	};
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci	headset_micbias_reg: regulator-fixed-3 {
4162306a36Sopenharmony_ci		compatible = "regulator-fixed";
4262306a36Sopenharmony_ci		regulator-name = "Headset_Micbias";
4362306a36Sopenharmony_ci		gpio = <&gpj2 5 GPIO_ACTIVE_HIGH>;
4462306a36Sopenharmony_ci		enable-active-high;
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ci		pinctrl-names = "default";
4762306a36Sopenharmony_ci		pinctrl-0 = <&headset_micbias_ena>;
4862306a36Sopenharmony_ci	};
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ci	main_micbias_reg: regulator-fixed-4 {
5162306a36Sopenharmony_ci		compatible = "regulator-fixed";
5262306a36Sopenharmony_ci		regulator-name = "Main_Micbias";
5362306a36Sopenharmony_ci		gpio = <&gpj4 2 GPIO_ACTIVE_HIGH>;
5462306a36Sopenharmony_ci		enable-active-high;
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ci		pinctrl-names = "default";
5762306a36Sopenharmony_ci		pinctrl-0 = <&main_micbias_ena>;
5862306a36Sopenharmony_ci	};
5962306a36Sopenharmony_ci
6062306a36Sopenharmony_ci	sound {
6162306a36Sopenharmony_ci		compatible = "samsung,fascinate4g-wm8994";
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_ci		model = "Fascinate4G";
6462306a36Sopenharmony_ci
6562306a36Sopenharmony_ci		extcon = <&fsa9480>;
6662306a36Sopenharmony_ci
6762306a36Sopenharmony_ci		main-micbias-supply = <&main_micbias_reg>;
6862306a36Sopenharmony_ci		headset-micbias-supply = <&headset_micbias_reg>;
6962306a36Sopenharmony_ci
7062306a36Sopenharmony_ci		earpath-sel-gpios = <&gpj2 6 GPIO_ACTIVE_HIGH>;
7162306a36Sopenharmony_ci
7262306a36Sopenharmony_ci		io-channels = <&adc 3>;
7362306a36Sopenharmony_ci		io-channel-names = "headset-detect";
7462306a36Sopenharmony_ci		headset-detect-gpios = <&gph0 6 GPIO_ACTIVE_HIGH>;
7562306a36Sopenharmony_ci		headset-key-gpios = <&gph3 6 GPIO_ACTIVE_HIGH>;
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ci		samsung,audio-routing =
7862306a36Sopenharmony_ci			"HP", "HPOUT1L",
7962306a36Sopenharmony_ci			"HP", "HPOUT1R",
8062306a36Sopenharmony_ci
8162306a36Sopenharmony_ci			"SPK", "SPKOUTLN",
8262306a36Sopenharmony_ci			"SPK", "SPKOUTLP",
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_ci			"RCV", "HPOUT2N",
8562306a36Sopenharmony_ci			"RCV", "HPOUT2P",
8662306a36Sopenharmony_ci
8762306a36Sopenharmony_ci			"LINE", "LINEOUT2N",
8862306a36Sopenharmony_ci			"LINE", "LINEOUT2P",
8962306a36Sopenharmony_ci
9062306a36Sopenharmony_ci			"IN1LP", "Main Mic",
9162306a36Sopenharmony_ci			"IN1LN", "Main Mic",
9262306a36Sopenharmony_ci
9362306a36Sopenharmony_ci			"IN1RP", "Headset Mic",
9462306a36Sopenharmony_ci			"IN1RN", "Headset Mic",
9562306a36Sopenharmony_ci
9662306a36Sopenharmony_ci			"Modem Out", "Modem TX",
9762306a36Sopenharmony_ci			"Modem RX", "Modem In",
9862306a36Sopenharmony_ci
9962306a36Sopenharmony_ci			"Bluetooth SPK", "TX",
10062306a36Sopenharmony_ci			"RX", "Bluetooth Mic";
10162306a36Sopenharmony_ci
10262306a36Sopenharmony_ci		pinctrl-names = "default";
10362306a36Sopenharmony_ci		pinctrl-0 = <&headset_det &earpath_sel>;
10462306a36Sopenharmony_ci
10562306a36Sopenharmony_ci		cpu {
10662306a36Sopenharmony_ci			sound-dai = <&i2s0>, <&bt_codec>;
10762306a36Sopenharmony_ci		};
10862306a36Sopenharmony_ci
10962306a36Sopenharmony_ci		codec {
11062306a36Sopenharmony_ci			sound-dai = <&wm8994>;
11162306a36Sopenharmony_ci		};
11262306a36Sopenharmony_ci	};
11362306a36Sopenharmony_ci};
11462306a36Sopenharmony_ci
11562306a36Sopenharmony_ci&fg {
11662306a36Sopenharmony_ci	compatible = "maxim,max77836-battery";
11762306a36Sopenharmony_ci
11862306a36Sopenharmony_ci	interrupt-parent = <&gph3>;
11962306a36Sopenharmony_ci	interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
12062306a36Sopenharmony_ci
12162306a36Sopenharmony_ci	pinctrl-names = "default";
12262306a36Sopenharmony_ci	pinctrl-0 = <&fg_irq>;
12362306a36Sopenharmony_ci};
12462306a36Sopenharmony_ci
12562306a36Sopenharmony_ci&pinctrl0 {
12662306a36Sopenharmony_ci	pinctrl-names = "default";
12762306a36Sopenharmony_ci	pinctrl-0 = <&sleep_cfg>;
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ci	headset_det: headset-det-pins {
13062306a36Sopenharmony_ci		samsung,pins = "gph0-6", "gph3-6";
13162306a36Sopenharmony_ci		samsung,pin-function = <S5PV210_PIN_FUNC_F>;
13262306a36Sopenharmony_ci		samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
13362306a36Sopenharmony_ci	};
13462306a36Sopenharmony_ci
13562306a36Sopenharmony_ci	fg_irq: fg-irq-pins {
13662306a36Sopenharmony_ci		samsung,pins = "gph3-3";
13762306a36Sopenharmony_ci		samsung,pin-function = <S5PV210_PIN_FUNC_F>;
13862306a36Sopenharmony_ci		samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
13962306a36Sopenharmony_ci		samsung,pin-drv = <S5PV210_PIN_DRV_LV1>;
14062306a36Sopenharmony_ci	};
14162306a36Sopenharmony_ci
14262306a36Sopenharmony_ci	headset_micbias_ena: headset-micbias-ena-pins {
14362306a36Sopenharmony_ci		samsung,pins = "gpj2-5";
14462306a36Sopenharmony_ci		samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
14562306a36Sopenharmony_ci		samsung,pin-drv = <S5PV210_PIN_DRV_LV1>;
14662306a36Sopenharmony_ci	};
14762306a36Sopenharmony_ci
14862306a36Sopenharmony_ci	earpath_sel: earpath-sel-pins {
14962306a36Sopenharmony_ci		samsung,pins = "gpj2-6";
15062306a36Sopenharmony_ci		samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
15162306a36Sopenharmony_ci		samsung,pin-drv = <S5PV210_PIN_DRV_LV1>;
15262306a36Sopenharmony_ci	};
15362306a36Sopenharmony_ci
15462306a36Sopenharmony_ci	main_micbias_ena: main-micbias-ena-pins {
15562306a36Sopenharmony_ci		samsung,pins = "gpj4-2";
15662306a36Sopenharmony_ci		samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
15762306a36Sopenharmony_ci		samsung,pin-drv = <S5PV210_PIN_DRV_LV1>;
15862306a36Sopenharmony_ci	};
15962306a36Sopenharmony_ci
16062306a36Sopenharmony_ci	/* Based on vendor kernel v2.6.35.7 */
16162306a36Sopenharmony_ci	sleep_cfg: sleep-state {
16262306a36Sopenharmony_ci		PIN_SLP(gpa0-0, PREV, NONE);
16362306a36Sopenharmony_ci		PIN_SLP(gpa0-1, PREV, NONE);
16462306a36Sopenharmony_ci		PIN_SLP(gpa0-2, PREV, NONE);
16562306a36Sopenharmony_ci		PIN_SLP(gpa0-3, OUT1, NONE);
16662306a36Sopenharmony_ci		PIN_SLP(gpa0-4, PREV, NONE);
16762306a36Sopenharmony_ci		PIN_SLP(gpa0-5, PREV, NONE);
16862306a36Sopenharmony_ci		PIN_SLP(gpa0-6, PREV, NONE);
16962306a36Sopenharmony_ci		PIN_SLP(gpa0-7, PREV, NONE);
17062306a36Sopenharmony_ci
17162306a36Sopenharmony_ci		PIN_SLP(gpa1-0, INPUT, DOWN);
17262306a36Sopenharmony_ci		PIN_SLP(gpa1-1, OUT0, NONE);
17362306a36Sopenharmony_ci		PIN_SLP(gpa1-2, INPUT, DOWN);
17462306a36Sopenharmony_ci		PIN_SLP(gpa1-3, OUT0, NONE);
17562306a36Sopenharmony_ci
17662306a36Sopenharmony_ci		PIN_SLP(gpb-0, OUT0, NONE);
17762306a36Sopenharmony_ci		PIN_SLP(gpb-1, OUT1, NONE);
17862306a36Sopenharmony_ci		PIN_SLP(gpb-2, OUT0, NONE);
17962306a36Sopenharmony_ci		PIN_SLP(gpb-3, PREV, NONE);
18062306a36Sopenharmony_ci		PIN_SLP(gpb-4, INPUT, NONE);
18162306a36Sopenharmony_ci		PIN_SLP(gpb-5, PREV, NONE);
18262306a36Sopenharmony_ci		PIN_SLP(gpb-6, INPUT, DOWN);
18362306a36Sopenharmony_ci		PIN_SLP(gpb-7, OUT0, NONE);
18462306a36Sopenharmony_ci
18562306a36Sopenharmony_ci		PIN_SLP(gpc0-0, OUT0, NONE);
18662306a36Sopenharmony_ci		PIN_SLP(gpc0-1, INPUT, DOWN);
18762306a36Sopenharmony_ci		PIN_SLP(gpc0-2, OUT0, NONE);
18862306a36Sopenharmony_ci		PIN_SLP(gpc0-3, INPUT, DOWN);
18962306a36Sopenharmony_ci		PIN_SLP(gpc0-4, OUT0, NONE);
19062306a36Sopenharmony_ci
19162306a36Sopenharmony_ci		PIN_SLP(gpc1-0, INPUT, DOWN);
19262306a36Sopenharmony_ci		PIN_SLP(gpc1-1, INPUT, DOWN);
19362306a36Sopenharmony_ci		PIN_SLP(gpc1-2, INPUT, DOWN);
19462306a36Sopenharmony_ci		PIN_SLP(gpc1-3, INPUT, DOWN);
19562306a36Sopenharmony_ci		PIN_SLP(gpc1-4, INPUT, DOWN);
19662306a36Sopenharmony_ci
19762306a36Sopenharmony_ci		PIN_SLP(gpd0-0, INPUT, DOWN);
19862306a36Sopenharmony_ci		PIN_SLP(gpd0-1, OUT0, NONE);
19962306a36Sopenharmony_ci		PIN_SLP(gpd0-2, INPUT, DOWN);
20062306a36Sopenharmony_ci		PIN_SLP(gpd0-3, INPUT, DOWN);
20162306a36Sopenharmony_ci
20262306a36Sopenharmony_ci		PIN_SLP(gpd1-0, INPUT, NONE);
20362306a36Sopenharmony_ci		PIN_SLP(gpd1-1, INPUT, NONE);
20462306a36Sopenharmony_ci		PIN_SLP(gpd1-2, INPUT, DOWN);
20562306a36Sopenharmony_ci		PIN_SLP(gpd1-3, INPUT, DOWN);
20662306a36Sopenharmony_ci		PIN_SLP(gpd1-4, INPUT, DOWN);
20762306a36Sopenharmony_ci		PIN_SLP(gpd1-5, INPUT, DOWN);
20862306a36Sopenharmony_ci
20962306a36Sopenharmony_ci		PIN_SLP(gpe0-0, INPUT, DOWN);
21062306a36Sopenharmony_ci		PIN_SLP(gpe0-1, INPUT, DOWN);
21162306a36Sopenharmony_ci		PIN_SLP(gpe0-2, INPUT, DOWN);
21262306a36Sopenharmony_ci		PIN_SLP(gpe0-3, INPUT, DOWN);
21362306a36Sopenharmony_ci		PIN_SLP(gpe0-4, INPUT, DOWN);
21462306a36Sopenharmony_ci		PIN_SLP(gpe0-5, INPUT, DOWN);
21562306a36Sopenharmony_ci		PIN_SLP(gpe0-6, INPUT, DOWN);
21662306a36Sopenharmony_ci		PIN_SLP(gpe0-7, INPUT, DOWN);
21762306a36Sopenharmony_ci
21862306a36Sopenharmony_ci		PIN_SLP(gpe1-0, INPUT, DOWN);
21962306a36Sopenharmony_ci		PIN_SLP(gpe1-1, INPUT, DOWN);
22062306a36Sopenharmony_ci		PIN_SLP(gpe1-2, INPUT, DOWN);
22162306a36Sopenharmony_ci		PIN_SLP(gpe1-3, OUT0, NONE);
22262306a36Sopenharmony_ci		PIN_SLP(gpe1-4, INPUT, DOWN);
22362306a36Sopenharmony_ci
22462306a36Sopenharmony_ci		PIN_SLP(gpf0-0, OUT0, NONE);
22562306a36Sopenharmony_ci		PIN_SLP(gpf0-1, OUT0, NONE);
22662306a36Sopenharmony_ci		PIN_SLP(gpf0-2, OUT0, NONE);
22762306a36Sopenharmony_ci		PIN_SLP(gpf0-3, OUT0, NONE);
22862306a36Sopenharmony_ci		PIN_SLP(gpf0-4, OUT0, NONE);
22962306a36Sopenharmony_ci		PIN_SLP(gpf0-5, OUT0, NONE);
23062306a36Sopenharmony_ci		PIN_SLP(gpf0-6, OUT0, NONE);
23162306a36Sopenharmony_ci		PIN_SLP(gpf0-7, OUT0, NONE);
23262306a36Sopenharmony_ci
23362306a36Sopenharmony_ci		PIN_SLP(gpf1-0, OUT0, NONE);
23462306a36Sopenharmony_ci		PIN_SLP(gpf1-1, OUT0, NONE);
23562306a36Sopenharmony_ci		PIN_SLP(gpf1-2, OUT0, NONE);
23662306a36Sopenharmony_ci		PIN_SLP(gpf1-3, OUT0, NONE);
23762306a36Sopenharmony_ci		PIN_SLP(gpf1-4, OUT0, NONE);
23862306a36Sopenharmony_ci		PIN_SLP(gpf1-5, OUT0, NONE);
23962306a36Sopenharmony_ci		PIN_SLP(gpf1-6, OUT0, NONE);
24062306a36Sopenharmony_ci		PIN_SLP(gpf1-7, OUT0, NONE);
24162306a36Sopenharmony_ci
24262306a36Sopenharmony_ci		PIN_SLP(gpf2-0, OUT0, NONE);
24362306a36Sopenharmony_ci		PIN_SLP(gpf2-1, OUT0, NONE);
24462306a36Sopenharmony_ci		PIN_SLP(gpf2-2, OUT0, NONE);
24562306a36Sopenharmony_ci		PIN_SLP(gpf2-3, OUT0, NONE);
24662306a36Sopenharmony_ci		PIN_SLP(gpf2-4, OUT0, NONE);
24762306a36Sopenharmony_ci		PIN_SLP(gpf2-5, OUT0, NONE);
24862306a36Sopenharmony_ci		PIN_SLP(gpf2-6, OUT0, NONE);
24962306a36Sopenharmony_ci		PIN_SLP(gpf2-7, OUT0, NONE);
25062306a36Sopenharmony_ci
25162306a36Sopenharmony_ci		PIN_SLP(gpf3-0, OUT0, NONE);
25262306a36Sopenharmony_ci		PIN_SLP(gpf3-1, OUT0, NONE);
25362306a36Sopenharmony_ci		PIN_SLP(gpf3-2, OUT0, NONE);
25462306a36Sopenharmony_ci		PIN_SLP(gpf3-3, OUT0, NONE);
25562306a36Sopenharmony_ci		PIN_SLP(gpf3-4, PREV, NONE);
25662306a36Sopenharmony_ci		PIN_SLP(gpf3-5, INPUT, DOWN);
25762306a36Sopenharmony_ci
25862306a36Sopenharmony_ci		PIN_SLP(gpg0-0, INPUT, DOWN);
25962306a36Sopenharmony_ci		PIN_SLP(gpg0-1, INPUT, DOWN);
26062306a36Sopenharmony_ci		PIN_SLP(gpg0-2, INPUT, NONE);
26162306a36Sopenharmony_ci		PIN_SLP(gpg0-3, INPUT, DOWN);
26262306a36Sopenharmony_ci		PIN_SLP(gpg0-4, INPUT, DOWN);
26362306a36Sopenharmony_ci		PIN_SLP(gpg0-5, INPUT, DOWN);
26462306a36Sopenharmony_ci		PIN_SLP(gpg0-6, INPUT, DOWN);
26562306a36Sopenharmony_ci
26662306a36Sopenharmony_ci		PIN_SLP(gpg1-0, OUT0, NONE);
26762306a36Sopenharmony_ci		PIN_SLP(gpg1-1, OUT1, NONE);
26862306a36Sopenharmony_ci		PIN_SLP(gpg1-2, PREV, NONE);
26962306a36Sopenharmony_ci		PIN_SLP(gpg1-3, OUT1, NONE);
27062306a36Sopenharmony_ci		PIN_SLP(gpg1-4, OUT1, NONE);
27162306a36Sopenharmony_ci		PIN_SLP(gpg1-5, OUT1, NONE);
27262306a36Sopenharmony_ci		PIN_SLP(gpg1-6, OUT1, NONE);
27362306a36Sopenharmony_ci
27462306a36Sopenharmony_ci		PIN_SLP(gpg2-0, OUT0, NONE);
27562306a36Sopenharmony_ci		PIN_SLP(gpg2-1, OUT0, NONE);
27662306a36Sopenharmony_ci		PIN_SLP(gpg2-2, INPUT, NONE);
27762306a36Sopenharmony_ci		PIN_SLP(gpg2-3, OUT0, NONE);
27862306a36Sopenharmony_ci		PIN_SLP(gpg2-4, OUT0, NONE);
27962306a36Sopenharmony_ci		PIN_SLP(gpg2-5, OUT0, NONE);
28062306a36Sopenharmony_ci		PIN_SLP(gpg2-6, OUT0, NONE);
28162306a36Sopenharmony_ci
28262306a36Sopenharmony_ci		PIN_SLP(gpg3-0, PREV, UP);
28362306a36Sopenharmony_ci		PIN_SLP(gpg3-1, PREV, UP);
28462306a36Sopenharmony_ci		PIN_SLP(gpg3-2, INPUT, NONE);
28562306a36Sopenharmony_ci		PIN_SLP(gpg3-3, INPUT, DOWN);
28662306a36Sopenharmony_ci		PIN_SLP(gpg3-4, OUT0, NONE);
28762306a36Sopenharmony_ci		PIN_SLP(gpg3-5, OUT0, NONE);
28862306a36Sopenharmony_ci		PIN_SLP(gpg3-6, INPUT, DOWN);
28962306a36Sopenharmony_ci
29062306a36Sopenharmony_ci		PIN_SLP(gpi-0, PREV, NONE);
29162306a36Sopenharmony_ci		PIN_SLP(gpi-1, INPUT, DOWN);
29262306a36Sopenharmony_ci		PIN_SLP(gpi-2, PREV, NONE);
29362306a36Sopenharmony_ci		PIN_SLP(gpi-3, PREV, NONE);
29462306a36Sopenharmony_ci		PIN_SLP(gpi-4, PREV, NONE);
29562306a36Sopenharmony_ci		PIN_SLP(gpi-5, INPUT, DOWN);
29662306a36Sopenharmony_ci		PIN_SLP(gpi-6, INPUT, DOWN);
29762306a36Sopenharmony_ci
29862306a36Sopenharmony_ci		PIN_SLP(gpj0-0, INPUT, NONE);
29962306a36Sopenharmony_ci		PIN_SLP(gpj0-1, INPUT, NONE);
30062306a36Sopenharmony_ci		PIN_SLP(gpj0-2, INPUT, NONE);
30162306a36Sopenharmony_ci		PIN_SLP(gpj0-3, INPUT, NONE);
30262306a36Sopenharmony_ci		PIN_SLP(gpj0-4, INPUT, NONE);
30362306a36Sopenharmony_ci		PIN_SLP(gpj0-5, INPUT, DOWN);
30462306a36Sopenharmony_ci		PIN_SLP(gpj0-6, OUT0, NONE);
30562306a36Sopenharmony_ci		PIN_SLP(gpj0-7, INPUT, NONE);
30662306a36Sopenharmony_ci
30762306a36Sopenharmony_ci		PIN_SLP(gpj1-0, OUT1, NONE);
30862306a36Sopenharmony_ci		PIN_SLP(gpj1-1, OUT0, NONE);
30962306a36Sopenharmony_ci		PIN_SLP(gpj1-2, INPUT, DOWN);
31062306a36Sopenharmony_ci		PIN_SLP(gpj1-3, PREV, NONE);
31162306a36Sopenharmony_ci		PIN_SLP(gpj1-4, PREV, NONE);
31262306a36Sopenharmony_ci		PIN_SLP(gpj1-5, OUT0, NONE);
31362306a36Sopenharmony_ci
31462306a36Sopenharmony_ci		PIN_SLP(gpj2-0, INPUT, DOWN);
31562306a36Sopenharmony_ci		PIN_SLP(gpj2-1, INPUT, DOWN);
31662306a36Sopenharmony_ci		PIN_SLP(gpj2-2, OUT0, NONE);
31762306a36Sopenharmony_ci		PIN_SLP(gpj2-3, INPUT, DOWN);
31862306a36Sopenharmony_ci		PIN_SLP(gpj2-4, INPUT, DOWN);
31962306a36Sopenharmony_ci		PIN_SLP(gpj2-5, PREV, NONE);
32062306a36Sopenharmony_ci		PIN_SLP(gpj2-6, PREV, NONE);
32162306a36Sopenharmony_ci		PIN_SLP(gpj2-7, INPUT, DOWN);
32262306a36Sopenharmony_ci
32362306a36Sopenharmony_ci		PIN_SLP(gpj3-0, INPUT, NONE);
32462306a36Sopenharmony_ci		PIN_SLP(gpj3-1, INPUT, NONE);
32562306a36Sopenharmony_ci		PIN_SLP(gpj3-2, OUT0, NONE);
32662306a36Sopenharmony_ci		PIN_SLP(gpj3-3, INPUT, DOWN);
32762306a36Sopenharmony_ci		PIN_SLP(gpj3-4, INPUT, NONE);
32862306a36Sopenharmony_ci		PIN_SLP(gpj3-5, INPUT, NONE);
32962306a36Sopenharmony_ci		PIN_SLP(gpj3-6, INPUT, NONE);
33062306a36Sopenharmony_ci		PIN_SLP(gpj3-7, INPUT, NONE);
33162306a36Sopenharmony_ci
33262306a36Sopenharmony_ci		PIN_SLP(gpj4-0, INPUT, NONE);
33362306a36Sopenharmony_ci		PIN_SLP(gpj4-1, INPUT, DOWN);
33462306a36Sopenharmony_ci		PIN_SLP(gpj4-2, PREV, NONE);
33562306a36Sopenharmony_ci		PIN_SLP(gpj4-3, INPUT, NONE);
33662306a36Sopenharmony_ci		PIN_SLP(gpj4-4, INPUT, DOWN);
33762306a36Sopenharmony_ci
33862306a36Sopenharmony_ci		PIN_SLP(mp01-0, OUT1, NONE);
33962306a36Sopenharmony_ci		PIN_SLP(mp01-1, OUT0, NONE);
34062306a36Sopenharmony_ci		PIN_SLP(mp01-2, INPUT, DOWN);
34162306a36Sopenharmony_ci		PIN_SLP(mp01-3, INPUT, DOWN);
34262306a36Sopenharmony_ci		PIN_SLP(mp01-4, OUT1, NONE);
34362306a36Sopenharmony_ci		PIN_SLP(mp01-5, INPUT, DOWN);
34462306a36Sopenharmony_ci		PIN_SLP(mp01-6, INPUT, DOWN);
34562306a36Sopenharmony_ci		PIN_SLP(mp01-7, INPUT, DOWN);
34662306a36Sopenharmony_ci
34762306a36Sopenharmony_ci		PIN_SLP(mp02-0, INPUT, DOWN);
34862306a36Sopenharmony_ci		PIN_SLP(mp02-1, INPUT, DOWN);
34962306a36Sopenharmony_ci		PIN_SLP(mp02-2, INPUT, NONE);
35062306a36Sopenharmony_ci		PIN_SLP(mp02-3, INPUT, DOWN);
35162306a36Sopenharmony_ci
35262306a36Sopenharmony_ci		PIN_SLP(mp03-0, INPUT, DOWN);
35362306a36Sopenharmony_ci		PIN_SLP(mp03-1, INPUT, DOWN);
35462306a36Sopenharmony_ci		PIN_SLP(mp03-2, OUT1, NONE);
35562306a36Sopenharmony_ci		PIN_SLP(mp03-3, OUT0, NONE);
35662306a36Sopenharmony_ci		PIN_SLP(mp03-4, INPUT, NONE);
35762306a36Sopenharmony_ci		PIN_SLP(mp03-5, OUT0, NONE);
35862306a36Sopenharmony_ci		PIN_SLP(mp03-6, INPUT, DOWN);
35962306a36Sopenharmony_ci		PIN_SLP(mp03-7, INPUT, DOWN);
36062306a36Sopenharmony_ci
36162306a36Sopenharmony_ci		PIN_SLP(mp04-0, INPUT, DOWN);
36262306a36Sopenharmony_ci		PIN_SLP(mp04-1, OUT0, NONE);
36362306a36Sopenharmony_ci		PIN_SLP(mp04-2, INPUT, DOWN);
36462306a36Sopenharmony_ci		PIN_SLP(mp04-3, OUT0, NONE);
36562306a36Sopenharmony_ci		PIN_SLP(mp04-4, INPUT, DOWN);
36662306a36Sopenharmony_ci		PIN_SLP(mp04-5, INPUT, DOWN);
36762306a36Sopenharmony_ci		PIN_SLP(mp04-6, OUT0, NONE);
36862306a36Sopenharmony_ci		PIN_SLP(mp04-7, INPUT, DOWN);
36962306a36Sopenharmony_ci
37062306a36Sopenharmony_ci		PIN_SLP(mp05-0, INPUT, NONE);
37162306a36Sopenharmony_ci		PIN_SLP(mp05-1, INPUT, NONE);
37262306a36Sopenharmony_ci		PIN_SLP(mp05-2, INPUT, NONE);
37362306a36Sopenharmony_ci		PIN_SLP(mp05-3, INPUT, NONE);
37462306a36Sopenharmony_ci		PIN_SLP(mp05-4, INPUT, DOWN);
37562306a36Sopenharmony_ci		PIN_SLP(mp05-5, OUT0, NONE);
37662306a36Sopenharmony_ci		PIN_SLP(mp05-6, INPUT, DOWN);
37762306a36Sopenharmony_ci		PIN_SLP(mp05-7, PREV, NONE);
37862306a36Sopenharmony_ci
37962306a36Sopenharmony_ci		PIN_SLP(mp06-0, INPUT, DOWN);
38062306a36Sopenharmony_ci		PIN_SLP(mp06-1, INPUT, DOWN);
38162306a36Sopenharmony_ci		PIN_SLP(mp06-2, INPUT, DOWN);
38262306a36Sopenharmony_ci		PIN_SLP(mp06-3, INPUT, DOWN);
38362306a36Sopenharmony_ci		PIN_SLP(mp06-4, INPUT, DOWN);
38462306a36Sopenharmony_ci		PIN_SLP(mp06-5, INPUT, DOWN);
38562306a36Sopenharmony_ci		PIN_SLP(mp06-6, INPUT, DOWN);
38662306a36Sopenharmony_ci		PIN_SLP(mp06-7, INPUT, DOWN);
38762306a36Sopenharmony_ci
38862306a36Sopenharmony_ci		PIN_SLP(mp07-0, INPUT, DOWN);
38962306a36Sopenharmony_ci		PIN_SLP(mp07-1, INPUT, DOWN);
39062306a36Sopenharmony_ci		PIN_SLP(mp07-2, INPUT, DOWN);
39162306a36Sopenharmony_ci		PIN_SLP(mp07-3, INPUT, DOWN);
39262306a36Sopenharmony_ci		PIN_SLP(mp07-4, INPUT, DOWN);
39362306a36Sopenharmony_ci		PIN_SLP(mp07-5, INPUT, DOWN);
39462306a36Sopenharmony_ci		PIN_SLP(mp07-6, INPUT, DOWN);
39562306a36Sopenharmony_ci		PIN_SLP(mp07-7, INPUT, DOWN);
39662306a36Sopenharmony_ci	};
39762306a36Sopenharmony_ci};
39862306a36Sopenharmony_ci
39962306a36Sopenharmony_ci&wm8994 {
40062306a36Sopenharmony_ci	/* GPIO3 (BCLK2) and GPIO4 (LRCLK2) as outputs */
40162306a36Sopenharmony_ci	wlf,gpio-cfg = <0xa101 0x8100 0x8100 0x8100 0x8100 0xa101
40262306a36Sopenharmony_ci			0x0100 0x8100 0x0100 0x0100 0x0100>;
40362306a36Sopenharmony_ci};
404