mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 14:45:04 +07:00
2008ee090c
Replace in DT sources hard-coded values for pinctrl configuration like pull up/down, drive strength and function. This makes the DTS easier to read, especially that some drive strengths values are quite non-obvious. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJX3r13AAoJEME3ZuaGi4PX1yUQAIgtpY7loocP8eZnvKSxL0Sv mFDpDIyTot75P4enDJ762rqk12dyEKfBwOAhw3s1oFOUQyVKC+vQaC0Rg2xtGSPH b+SBGSi8qhtjp3Idw6LNxgDYlgaKSbAVjIDNl4Wb6se0/CsV2yWrHpUT0oPuxlEb zUe9qmBzuDvYkLiHiHSKtGFw0Slg1XiTS82Jp0xvpX8OwYNjz1AYJAsnsFcns0RH aNtMlndVq7qVMyJnksnKm7E4DCAqLEesV9h7dqDDAnqgBKN40PK4uN2yjkA/YCra ZbrLf5BTHDnEbaoctVwTjXh5uFDK0Jdu/F7U6XKKOxM9Ld7+0SVSeOJozK0Noi2S 7UN57Dga4xRzaDqQp0Bh7nucUeEsMPuVYiwG89e+LEYkCkF+P0hG38l3tMMxA6XA 8SDqeeTyEYu8q+2olFlkCFCqpOU/WcIdoWfbwbVgxRlx9UmaC6h7bmURLlHIsl5l U1iGubxuGc3QEBi8rrFKNoImTnTqwfffwcLEawCGcji+qNRKV0gZUGW/gceLs4Db 7M3Vw43pM9Z1yc2R2D+LVLWaa7FUYAajD5zyAZ4Czhr2G3ZW670LVHp0PU8nqCGj 5Yo5nkNEiutyQ/77wp72aEzrFv9rOlpm8XY4kuZ3RRFzYSt6xbZYS1oO7QGk9Tey DqAIGXIaU80bT87Hc7A3 =NN8A -----END PGP SIGNATURE----- Merge tag 'samsung-dt-pinctrl-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into next/dt Pull "Topic branch for Samsung DeviceTree cleanup for 4.9" from Krzysztof Kozłowski: Replace in DT sources hard-coded values for pinctrl configuration like pull up/down, drive strength and function. This makes the DTS easier to read, especially that some drive strengths values are quite non-obvious. * tag 'samsung-dt-pinctrl-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux: ARM: dts: s3c64xx: Use macros for pinctrl configuration ARM: dts: s3c2416: Use macros for pinctrl configuration ARM: dts: s5pv210: Use macros for pinctrl configuration ARM: dts: s3c64xx: Use common macros for pinctrl configuration ARM: dts: exynos: Fix mismatched values of SD drive strengh configuration on exynos4415 ARM: dts: exynos: Fix mismatched value for SD4 pull up/down configuration on exynos4210 ARM: dts: exynos: Use macros for pinctrl configuration on exynos542x/exynos5800 ARM: dts: exynos: Use macros for pinctrl configuration on exynos5410 ARM: dts: exynos: Use macros for pinctrl configuration on exynos5260 ARM: dts: exynos: Use macros for pinctrl configuration on exynos5250 ARM: dts: exynos: Use macros for pinctrl configuration on exynos4415 ARM: dts: exynos: Use macros for pinctrl configuration on exynos4x12 ARM: dts: exynos: Use macros for pinctrl configuration on exynos4210 ARM: dts: exynos: Use macros for pinctrl configuration on exynos3250 ARM: dts: exynos: Use common macros for pinctrl configuration pinctrl: dt-bindings: samsung: Update documentation with new macros pinctrl: dt-bindings: samsung: Add header with values used for configuration
394 lines
8.2 KiB
Plaintext
394 lines
8.2 KiB
Plaintext
/*
|
|
* Samsung's S5PV210 SoC device tree source
|
|
*
|
|
* Copyright (c) 2013-2014 Samsung Electronics, Co. Ltd.
|
|
*
|
|
* Mateusz Krawczuk <m.krawczuk@partner.samsung.com>
|
|
* Tomasz Figa <t.figa@samsung.com>
|
|
*
|
|
* Board device tree source for Samsung Aquila board.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <dt-bindings/input/input.h>
|
|
#include "s5pv210.dtsi"
|
|
|
|
/ {
|
|
model = "Samsung Aquila based on S5PC110";
|
|
compatible = "samsung,aquila", "samsung,s5pv210";
|
|
|
|
aliases {
|
|
i2c3 = &i2c_pmic;
|
|
};
|
|
|
|
chosen {
|
|
bootargs = "console=ttySAC2,115200n8 root=/dev/mmcblk1p5 rw rootwait ignore_loglevel earlyprintk";
|
|
};
|
|
|
|
memory@30000000 {
|
|
device_type = "memory";
|
|
reg = <0x30000000 0x05000000
|
|
0x40000000 0x18000000>;
|
|
};
|
|
|
|
regulators {
|
|
compatible = "simple-bus";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
vtf_reg: fixed-regulator@0 {
|
|
compatible = "regulator-fixed";
|
|
reg = <0>;
|
|
regulator-name = "V_TF_2.8V";
|
|
regulator-min-microvolt = <2800000>;
|
|
regulator-max-microvolt = <2800000>;
|
|
gpio = <&mp05 4 0>;
|
|
enable-active-high;
|
|
};
|
|
|
|
pda_reg: fixed-regulator@1 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VCC_1.8V_PDA";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
reg = <1>;
|
|
};
|
|
|
|
bat_reg: fixed-regulator@2 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "V_BAT";
|
|
regulator-min-microvolt = <3700000>;
|
|
regulator-max-microvolt = <3700000>;
|
|
reg = <2>;
|
|
};
|
|
};
|
|
|
|
i2c_pmic: i2c-pmic {
|
|
compatible = "i2c-gpio";
|
|
gpios = <&gpj4 0 0>, /* sda */
|
|
<&gpj4 3 0>; /* scl */
|
|
i2c-gpio,delay-us = <2>; /* ~100 kHz */
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
pmic@66 {
|
|
compatible = "national,lp3974";
|
|
reg = <0x66>;
|
|
|
|
max8998,pmic-buck1-default-dvs-idx = <0>;
|
|
max8998,pmic-buck1-dvs-gpios = <&gph0 3 0>,
|
|
<&gph0 4 0>;
|
|
max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>,
|
|
<1200000>, <1200000>;
|
|
|
|
max8998,pmic-buck2-default-dvs-idx = <0>;
|
|
max8998,pmic-buck2-dvs-gpio = <&gph0 5 0>;
|
|
max8998,pmic-buck2-dvs-voltage = <1200000>, <1200000>;
|
|
|
|
regulators {
|
|
ldo2_reg: LDO2 {
|
|
regulator-name = "VALIVE_1.1V";
|
|
regulator-min-microvolt = <1100000>;
|
|
regulator-max-microvolt = <1100000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
ldo3_reg: LDO3 {
|
|
regulator-name = "VUSB+MIPI_1.1V";
|
|
regulator-min-microvolt = <1100000>;
|
|
regulator-max-microvolt = <1100000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
ldo4_reg: LDO4 {
|
|
regulator-name = "VADC_3.3V";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
};
|
|
|
|
ldo5_reg: LDO5 {
|
|
regulator-name = "VTF_2.8V";
|
|
regulator-min-microvolt = <2800000>;
|
|
regulator-max-microvolt = <2800000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
ldo6_reg: LDO6 {
|
|
regulator-name = "VCC_3.3V";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
ldo7_reg: LDO7 {
|
|
regulator-name = "VCC_3.0V";
|
|
regulator-min-microvolt = <3000000>;
|
|
regulator-max-microvolt = <3000000>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
|
|
ldo8_reg: LDO8 {
|
|
regulator-name = "VUSB+VDAC_3.3V";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
ldo9_reg: LDO9 {
|
|
regulator-name = "VCC+VCAM_2.8V";
|
|
regulator-min-microvolt = <2800000>;
|
|
regulator-max-microvolt = <2800000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
ldo10_reg: LDO10 {
|
|
regulator-name = "VPLL_1.1V";
|
|
regulator-min-microvolt = <1100000>;
|
|
regulator-max-microvolt = <1100000>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
|
|
ldo11_reg: LDO11 {
|
|
regulator-name = "CAM_IO_2.8V";
|
|
regulator-min-microvolt = <2800000>;
|
|
regulator-max-microvolt = <2800000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
ldo12_reg: LDO12 {
|
|
regulator-name = "CAM_ISP_1.2V";
|
|
regulator-min-microvolt = <1200000>;
|
|
regulator-max-microvolt = <1200000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
ldo13_reg: LDO13 {
|
|
regulator-name = "CAM_A_2.8V";
|
|
regulator-min-microvolt = <2800000>;
|
|
regulator-max-microvolt = <2800000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
ldo14_reg: LDO14 {
|
|
regulator-name = "CAM_CIF_1.8V";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
ldo15_reg: LDO15 {
|
|
regulator-name = "CAM_AF_3.3V";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
ldo16_reg: LDO16 {
|
|
regulator-name = "VMIPI_1.8V";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
ldo17_reg: LDO17 {
|
|
regulator-name = "CAM_8M_1.8V";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
buck1_reg: BUCK1 {
|
|
regulator-name = "VARM_1.2V";
|
|
regulator-min-microvolt = <1200000>;
|
|
regulator-max-microvolt = <1200000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
buck2_reg: BUCK2 {
|
|
regulator-name = "VINT_1.2V";
|
|
regulator-min-microvolt = <1200000>;
|
|
regulator-max-microvolt = <1200000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
buck3_reg: BUCK3 {
|
|
regulator-name = "VCC_1.8V";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
buck4_reg: BUCK4 {
|
|
regulator-name = "CAM_CORE_1.2V";
|
|
regulator-min-microvolt = <1200000>;
|
|
regulator-max-microvolt = <1200000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vichg_reg: ENVICHG {
|
|
regulator-name = "VICHG";
|
|
};
|
|
|
|
safeout1_reg: ESAFEOUT1 {
|
|
regulator-name = "SAFEOUT1";
|
|
regulator-always-on;
|
|
};
|
|
|
|
safeout2_reg: ESAFEOUT2 {
|
|
regulator-name = "SAFEOUT2";
|
|
regulator-boot-on;
|
|
};
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
gpio-keys {
|
|
compatible = "gpio-keys";
|
|
|
|
power-key {
|
|
gpios = <&gph2 6 1>;
|
|
linux,code = <KEY_POWER>;
|
|
label = "power";
|
|
debounce-interval = <1>;
|
|
wakeup-source;
|
|
};
|
|
};
|
|
};
|
|
|
|
&xusbxti {
|
|
clock-frequency = <24000000>;
|
|
};
|
|
|
|
&keypad {
|
|
linux,input-no-autorepeat;
|
|
wakeup-source;
|
|
samsung,keypad-num-rows = <3>;
|
|
samsung,keypad-num-columns = <3>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&keypad_row0>, <&keypad_row1>, <&keypad_row2>,
|
|
<&keypad_col0>, <&keypad_col1>, <&keypad_col2>;
|
|
status = "okay";
|
|
|
|
key_1 {
|
|
keypad,row = <0>;
|
|
keypad,column = <1>;
|
|
linux,code = <KEY_CONNECT>;
|
|
};
|
|
|
|
key_2 {
|
|
keypad,row = <0>;
|
|
keypad,column = <2>;
|
|
linux,code = <KEY_BACK>;
|
|
};
|
|
|
|
key_3 {
|
|
keypad,row = <1>;
|
|
keypad,column = <1>;
|
|
linux,code = <KEY_CAMERA_FOCUS>;
|
|
};
|
|
|
|
key_4 {
|
|
keypad,row = <1>;
|
|
keypad,column = <2>;
|
|
linux,code = <KEY_VOLUMEUP>;
|
|
};
|
|
|
|
key_5 {
|
|
keypad,row = <2>;
|
|
keypad,column = <1>;
|
|
linux,code = <KEY_CAMERA>;
|
|
};
|
|
|
|
key_6 {
|
|
keypad,row = <2>;
|
|
keypad,column = <2>;
|
|
linux,code = <KEY_VOLUMEDOWN>;
|
|
};
|
|
};
|
|
|
|
&uart0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart3 {
|
|
status = "okay";
|
|
};
|
|
|
|
&sdhci0 {
|
|
bus-width = <4>;
|
|
non-removable;
|
|
status = "okay";
|
|
vmmc-supply = <&ldo5_reg>;
|
|
pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4>;
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
&sdhci2 {
|
|
bus-width = <4>;
|
|
cd-gpios = <&gph3 4 1>;
|
|
vmmc-supply = <&vtf_reg>;
|
|
cd-inverted;
|
|
pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &t_flash_detect>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
};
|
|
|
|
&onenand {
|
|
status = "okay";
|
|
};
|
|
|
|
&hsotg {
|
|
vusb_a-supply = <&ldo3_reg>;
|
|
vusb_d-supply = <&ldo8_reg>;
|
|
dr_mode = "peripheral";
|
|
status = "okay";
|
|
};
|
|
|
|
&usbphy {
|
|
status = "okay";
|
|
};
|
|
|
|
&fimd {
|
|
pinctrl-0 = <&lcd_clk &lcd_data24 &pwm1_out>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
|
|
display-timings {
|
|
native-mode = <&timing0>;
|
|
timing0: timing {
|
|
clock-frequency = <0>;
|
|
hactive = <800>;
|
|
vactive = <480>;
|
|
hfront-porch = <16>;
|
|
hback-porch = <16>;
|
|
hsync-len = <2>;
|
|
vback-porch = <3>;
|
|
vfront-porch = <28>;
|
|
vsync-len = <1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pinctrl0 {
|
|
t_flash_detect: t-flash-detect {
|
|
samsung,pins = "gph3-4";
|
|
samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
|
|
samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
|
|
};
|
|
};
|