Commit 0c09604d authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'ux500-dts-v5.12' of...

Merge tag 'ux500-dts-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik into arm/dt

Ux500 DTS updates for the v5.12 kernel cycle:

- A new DTS file for the Samsung GT-I9070 (Janice)
- Fix up ADC channel name attributes
- Add charger interrupts
- Add thermistors to the HREF boards
- Remove the non-existing AB8505 HW ADC IRQ
- Push down the VMMCI setting to each board
- Add the die temperature channel to teh AB8505
- Fix up the MMC host names to follow the standard
  naming convention

* tag 'ux500-dts-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik:
  ARM: dts: Fix up MMC host node names
  ARM: dts: ux500: Add die temperature to AB8505
  ARM: dts: ux500: Push VMMCI down to each tree
  ARM: dts: ux500: Remove the GPADC HW IRQ
  ARM: dts: ux500: Add thermistors to the HREF
  ARM: dts: ux500: Add interrupts to charger
  ARM: dts: ux500: Fix channel names attributes
  ARM: dts: ux500: Add a device tree for Janice

Link: https://lore.kernel.org/r/CACRpkdbn=P63V9aEO2wKu2DwvVUcbjwCEV_JvKwWZ0netT75ig@mail.gmail.comSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents 83676118 28734f87
...@@ -1278,6 +1278,7 @@ dtb-$(CONFIG_ARCH_U8500) += \ ...@@ -1278,6 +1278,7 @@ dtb-$(CONFIG_ARCH_U8500) += \
ste-hrefv60plus-tvk.dtb \ ste-hrefv60plus-tvk.dtb \
ste-href520-tvk.dtb \ ste-href520-tvk.dtb \
ste-ux500-samsung-golden.dtb \ ste-ux500-samsung-golden.dtb \
ste-ux500-samsung-janice.dtb \
ste-ux500-samsung-skomer.dtb ste-ux500-samsung-skomer.dtb
dtb-$(CONFIG_ARCH_UNIPHIER) += \ dtb-$(CONFIG_ARCH_UNIPHIER) += \
uniphier-ld4-ref.dtb \ uniphier-ld4-ref.dtb \
......
...@@ -122,9 +122,11 @@ bat_temp_and_ibat: channel@1f { ...@@ -122,9 +122,11 @@ bat_temp_and_ibat: channel@1f {
ab8500_temp { ab8500_temp {
compatible = "stericsson,abx500-temp"; compatible = "stericsson,abx500-temp";
interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "ABX500_TEMP_WARM";
io-channels = <&gpadc 0x06>, io-channels = <&gpadc 0x06>,
<&gpadc 0x07>; <&gpadc 0x07>;
io-channel-name = "aux1", "aux2"; io-channel-names = "aux1", "aux2";
}; };
ab8500_battery: ab8500_battery { ab8500_battery: ab8500_battery {
...@@ -134,29 +136,77 @@ ab8500_battery: ab8500_battery { ...@@ -134,29 +136,77 @@ ab8500_battery: ab8500_battery {
ab8500_fg { ab8500_fg {
compatible = "stericsson,ab8500-fg"; compatible = "stericsson,ab8500-fg";
battery = <&ab8500_battery>; interrupts = <24 IRQ_TYPE_LEVEL_HIGH>,
<8 IRQ_TYPE_LEVEL_HIGH>,
<28 IRQ_TYPE_LEVEL_HIGH>,
<27 IRQ_TYPE_LEVEL_HIGH>,
<26 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "NCONV_ACCU",
"BATT_OVV",
"LOW_BAT_F",
"CC_INT_CALIB",
"CCEOC";
battery = <&ab8500_battery>;
io-channels = <&gpadc 0x08>; io-channels = <&gpadc 0x08>;
io-channel-name = "main_bat_v"; io-channel-names = "main_bat_v";
}; };
ab8500_btemp { ab8500_btemp {
compatible = "stericsson,ab8500-btemp"; compatible = "stericsson,ab8500-btemp";
battery = <&ab8500_battery>; interrupts = <20 IRQ_TYPE_LEVEL_HIGH>,
<80 IRQ_TYPE_LEVEL_HIGH>,
<83 IRQ_TYPE_LEVEL_HIGH>,
<81 IRQ_TYPE_LEVEL_HIGH>,
<82 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "BAT_CTRL_INDB",
"BTEMP_LOW",
"BTEMP_HIGH",
"BTEMP_LOW_MEDIUM",
"BTEMP_MEDIUM_HIGH";
battery = <&ab8500_battery>;
io-channels = <&gpadc 0x02>, io-channels = <&gpadc 0x02>,
<&gpadc 0x01>; <&gpadc 0x01>;
io-channel-name = "btemp_ball", io-channel-names = "btemp_ball",
"bat_ctrl"; "bat_ctrl";
}; };
ab8500_charger { ab8500_charger {
compatible = "stericsson,ab8500-charger"; compatible = "stericsson,ab8500-charger";
interrupts = <10 IRQ_TYPE_LEVEL_HIGH>,
<11 IRQ_TYPE_LEVEL_HIGH>,
<0 IRQ_TYPE_LEVEL_HIGH>,
<107 IRQ_TYPE_LEVEL_HIGH>,
<106 IRQ_TYPE_LEVEL_HIGH>,
<14 IRQ_TYPE_LEVEL_HIGH>,
<15 IRQ_TYPE_LEVEL_HIGH>,
<79 IRQ_TYPE_LEVEL_HIGH>,
<105 IRQ_TYPE_LEVEL_HIGH>,
<104 IRQ_TYPE_LEVEL_HIGH>,
<89 IRQ_TYPE_LEVEL_HIGH>,
<22 IRQ_TYPE_LEVEL_HIGH>,
<21 IRQ_TYPE_LEVEL_HIGH>,
<16 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "MAIN_CH_UNPLUG_DET",
"MAIN_CHARGE_PLUG_DET",
"MAIN_EXT_CH_NOT_OK",
"MAIN_CH_TH_PROT_R",
"MAIN_CH_TH_PROT_F",
"VBUS_DET_F",
"VBUS_DET_R",
"USB_LINK_STATUS",
"USB_CH_TH_PROT_R",
"USB_CH_TH_PROT_F",
"USB_CHARGER_NOT_OKR",
"VBUS_OVV",
"CH_WD_EXP",
"VBUS_CH_DROP_END";
battery = <&ab8500_battery>; battery = <&ab8500_battery>;
vddadc-supply = <&ab8500_ldo_tvout_reg>; vddadc-supply = <&ab8500_ldo_tvout_reg>;
io-channels = <&gpadc 0x03>, io-channels = <&gpadc 0x03>,
<&gpadc 0x0a>, <&gpadc 0x0a>,
<&gpadc 0x09>, <&gpadc 0x09>,
<&gpadc 0x0b>; <&gpadc 0x0b>;
io-channel-name = "main_charger_v", io-channel-names = "main_charger_v",
"main_charger_c", "main_charger_c",
"vbus_v", "vbus_v",
"usb_charger_c"; "usb_charger_c";
......
...@@ -13,7 +13,8 @@ iio-hwmon { ...@@ -13,7 +13,8 @@ iio-hwmon {
<&gpadc 0x08>, /* Main battery voltage */ <&gpadc 0x08>, /* Main battery voltage */
<&gpadc 0x09>, /* VBUS */ <&gpadc 0x09>, /* VBUS */
<&gpadc 0x0b>, /* Charger current */ <&gpadc 0x0b>, /* Charger current */
<&gpadc 0x0c>; /* Backup battery voltage */ <&gpadc 0x0c>, /* Backup battery voltage */
<&gpadc 0x0d>; /* Die temperature */
}; };
soc { soc {
...@@ -45,9 +46,8 @@ ab8500-rtc { ...@@ -45,9 +46,8 @@ ab8500-rtc {
gpadc: ab8500-gpadc { gpadc: ab8500-gpadc {
compatible = "stericsson,ab8500-gpadc"; compatible = "stericsson,ab8500-gpadc";
interrupts = <32 IRQ_TYPE_LEVEL_HIGH interrupts = <39 IRQ_TYPE_LEVEL_HIGH>;
39 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "SW_CONV_END";
interrupt-names = "HW_CONV_END", "SW_CONV_END";
vddadc-supply = <&ab8500_ldo_adc_reg>; vddadc-supply = <&ab8500_ldo_adc_reg>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
...@@ -84,42 +84,93 @@ charger_c: channel@0b { ...@@ -84,42 +84,93 @@ charger_c: channel@0b {
bk_bat_v: channel@0c { bk_bat_v: channel@0c {
reg = <0x0c>; reg = <0x0c>;
}; };
die_temp: channel@0d {
reg = <0x0d>;
};
usb_id: channel@0e { usb_id: channel@0e {
reg = <0x0e>; reg = <0x0e>;
}; };
}; };
ab8500_battery: ab8500_battery { ab8500_battery: ab8500_battery {
status = "disabled"; stericsson,battery-type = "LIPO";
thermistor-on-batctrl; thermistor-on-batctrl;
}; };
ab8500_fg { ab8500_fg {
status = "disabled"; status = "disabled";
compatible = "stericsson,ab8500-fg"; compatible = "stericsson,ab8500-fg";
interrupts = <24 IRQ_TYPE_LEVEL_HIGH>,
<8 IRQ_TYPE_LEVEL_HIGH>,
<28 IRQ_TYPE_LEVEL_HIGH>,
<27 IRQ_TYPE_LEVEL_HIGH>,
<26 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "NCONV_ACCU",
"BATT_OVV",
"LOW_BAT_F",
"CC_INT_CALIB",
"CCEOC";
battery = <&ab8500_battery>; battery = <&ab8500_battery>;
io-channels = <&gpadc 0x08>; io-channels = <&gpadc 0x08>;
io-channel-name = "main_bat_v"; io-channel-names = "main_bat_v";
}; };
ab8500_btemp { ab8500_btemp {
status = "disabled"; status = "disabled";
compatible = "stericsson,ab8500-btemp"; compatible = "stericsson,ab8500-btemp";
interrupts = <20 IRQ_TYPE_LEVEL_HIGH>,
<80 IRQ_TYPE_LEVEL_HIGH>,
<83 IRQ_TYPE_LEVEL_HIGH>,
<81 IRQ_TYPE_LEVEL_HIGH>,
<82 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "BAT_CTRL_INDB",
"BTEMP_LOW",
"BTEMP_HIGH",
"BTEMP_LOW_MEDIUM",
"BTEMP_MEDIUM_HIGH";
battery = <&ab8500_battery>; battery = <&ab8500_battery>;
io-channels = <&gpadc 0x02>, io-channels = <&gpadc 0x02>,
<&gpadc 0x01>; <&gpadc 0x01>;
io-channel-name = "btemp_ball", io-channel-names = "btemp_ball",
"bat_ctrl"; "bat_ctrl";
}; };
ab8500_charger { ab8500_charger {
status = "disabled"; status = "disabled";
compatible = "stericsson,ab8500-charger"; compatible = "stericsson,ab8500-charger";
interrupts = <10 IRQ_TYPE_LEVEL_HIGH>,
<11 IRQ_TYPE_LEVEL_HIGH>,
<0 IRQ_TYPE_LEVEL_HIGH>,
<107 IRQ_TYPE_LEVEL_HIGH>,
<106 IRQ_TYPE_LEVEL_HIGH>,
<14 IRQ_TYPE_LEVEL_HIGH>,
<15 IRQ_TYPE_LEVEL_HIGH>,
<79 IRQ_TYPE_LEVEL_HIGH>,
<105 IRQ_TYPE_LEVEL_HIGH>,
<104 IRQ_TYPE_LEVEL_HIGH>,
<89 IRQ_TYPE_LEVEL_HIGH>,
<22 IRQ_TYPE_LEVEL_HIGH>,
<21 IRQ_TYPE_LEVEL_HIGH>,
<16 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "MAIN_CH_UNPLUG_DET",
"MAIN_CHARGE_PLUG_DET",
"MAIN_EXT_CH_NOT_OK",
"MAIN_CH_TH_PROT_R",
"MAIN_CH_TH_PROT_F",
"VBUS_DET_F",
"VBUS_DET_R",
"USB_LINK_STATUS",
"USB_CH_TH_PROT_R",
"USB_CH_TH_PROT_F",
"USB_CHARGER_NOT_OKR",
"VBUS_OVV",
"CH_WD_EXP",
"VBUS_CH_DROP_END";
battery = <&ab8500_battery>; battery = <&ab8500_battery>;
vddadc-supply = <&ab8500_ldo_adc_reg>; vddadc-supply = <&ab8500_ldo_adc_reg>;
io-channels = <&gpadc 0x09>, io-channels = <&gpadc 0x09>,
<&gpadc 0x0b>; <&gpadc 0x0b>;
io-channel-name = "vbus_v", io-channel-names = "vbus_v",
"usb_charger_c"; "usb_charger_c";
}; };
......
...@@ -883,7 +883,7 @@ serial2: uart@80007000 { ...@@ -883,7 +883,7 @@ serial2: uart@80007000 {
status = "disabled"; status = "disabled";
}; };
sdi0_per1@80126000 { mmc@80126000 {
compatible = "arm,pl18x", "arm,primecell"; compatible = "arm,pl18x", "arm,primecell";
reg = <0x80126000 0x1000>; reg = <0x80126000 0x1000>;
interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
...@@ -899,7 +899,7 @@ sdi0_per1@80126000 { ...@@ -899,7 +899,7 @@ sdi0_per1@80126000 {
status = "disabled"; status = "disabled";
}; };
sdi1_per2@80118000 { mmc@80118000 {
compatible = "arm,pl18x", "arm,primecell"; compatible = "arm,pl18x", "arm,primecell";
reg = <0x80118000 0x1000>; reg = <0x80118000 0x1000>;
interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
...@@ -915,7 +915,7 @@ sdi1_per2@80118000 { ...@@ -915,7 +915,7 @@ sdi1_per2@80118000 {
status = "disabled"; status = "disabled";
}; };
sdi2_per3@80005000 { mmc@80005000 {
compatible = "arm,pl18x", "arm,primecell"; compatible = "arm,pl18x", "arm,primecell";
reg = <0x80005000 0x1000>; reg = <0x80005000 0x1000>;
interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
...@@ -931,7 +931,7 @@ sdi2_per3@80005000 { ...@@ -931,7 +931,7 @@ sdi2_per3@80005000 {
status = "disabled"; status = "disabled";
}; };
sdi3_per2@80119000 { mmc@80119000 {
compatible = "arm,pl18x", "arm,primecell"; compatible = "arm,pl18x", "arm,primecell";
reg = <0x80119000 0x1000>; reg = <0x80119000 0x1000>;
interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
...@@ -947,7 +947,7 @@ sdi3_per2@80119000 { ...@@ -947,7 +947,7 @@ sdi3_per2@80119000 {
status = "disabled"; status = "disabled";
}; };
sdi4_per2@80114000 { mmc@80114000 {
compatible = "arm,pl18x", "arm,primecell"; compatible = "arm,pl18x", "arm,primecell";
reg = <0x80114000 0x1000>; reg = <0x80114000 0x1000>;
interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
...@@ -963,7 +963,7 @@ sdi4_per2@80114000 { ...@@ -963,7 +963,7 @@ sdi4_per2@80114000 {
status = "disabled"; status = "disabled";
}; };
sdi5_per3@80008000 { mmc@80008000 {
compatible = "arm,pl18x", "arm,primecell"; compatible = "arm,pl18x", "arm,primecell";
reg = <0x80008000 0x1000>; reg = <0x80008000 0x1000>;
interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
......
...@@ -113,23 +113,8 @@ i2c@80110000 { ...@@ -113,23 +113,8 @@ i2c@80110000 {
status = "okay"; status = "okay";
}; };
/* ST6G3244ME level translator for 1.8/2.9 V */
vmmci: regulator-gpio {
compatible = "regulator-gpio";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2900000>;
regulator-name = "mmci-reg";
regulator-type = "voltage";
startup-delay-us = <100>;
states = <1800000 0x1
2900000 0x0>;
};
// External Micro SD slot // External Micro SD slot
sdi0_per1@80126000 { mmc@80126000 {
arm,primecell-periphid = <0x10480180>; arm,primecell-periphid = <0x10480180>;
max-frequency = <100000000>; max-frequency = <100000000>;
bus-width = <4>; bus-width = <4>;
...@@ -152,7 +137,7 @@ sdi0_per1@80126000 { ...@@ -152,7 +137,7 @@ sdi0_per1@80126000 {
}; };
// WLAN SDIO channel // WLAN SDIO channel
sdi1_per2@80118000 { mmc@80118000 {
arm,primecell-periphid = <0x10480180>; arm,primecell-periphid = <0x10480180>;
max-frequency = <100000000>; max-frequency = <100000000>;
bus-width = <4>; bus-width = <4>;
...@@ -165,7 +150,7 @@ sdi1_per2@80118000 { ...@@ -165,7 +150,7 @@ sdi1_per2@80118000 {
}; };
// PoP:ed eMMC // PoP:ed eMMC
sdi2_per3@80005000 { mmc@80005000 {
arm,primecell-periphid = <0x10480180>; arm,primecell-periphid = <0x10480180>;
max-frequency = <100000000>; max-frequency = <100000000>;
bus-width = <8>; bus-width = <8>;
...@@ -180,7 +165,7 @@ sdi2_per3@80005000 { ...@@ -180,7 +165,7 @@ sdi2_per3@80005000 {
}; };
// On-board eMMC // On-board eMMC
sdi4_per2@80114000 { mmc@80114000 {
arm,primecell-periphid = <0x10480180>; arm,primecell-periphid = <0x10480180>;
max-frequency = <100000000>; max-frequency = <100000000>;
bus-width = <8>; bus-width = <8>;
......
...@@ -12,11 +12,43 @@ / { ...@@ -12,11 +12,43 @@ / {
model = "ST-Ericsson HREF520 and TVK1281618 UIB"; model = "ST-Ericsson HREF520 and TVK1281618 UIB";
compatible = "st-ericsson,href520", "st-ericsson,u8500"; compatible = "st-ericsson,href520", "st-ericsson,u8500";
soc {
vmmci: regulator-gpio { /* ST6G3244ME level translator for 1.8/2.9 V */
gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>; vmmci: regulator-gpio {
enable-gpio = <&gpio2 14 GPIO_ACTIVE_HIGH>; compatible = "regulator-gpio";
enable-active-high;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2900000>;
regulator-name = "mmci-reg";
regulator-type = "voltage";
startup-delay-us = <100>;
states = <1800000 0x1
2900000 0x0>;
gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
enable-gpio = <&gpio2 14 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-names = "default";
pinctrl-0 = <&vmmci_default_mode>;
};
};
&pinctrl {
vmmci {
vmmci_default_mode: vmmc_default {
/* VMMCI level-shifter enable */
default_href520_cfg1 {
pins = "GPIO78_F4";
ste,config = <&gpio_out_hi>;
};
/* VMMCI level-shifter voltage select */
default_href520_cfg2 {
pins = "GPIO5_AG6";
ste,config = <&gpio_out_hi>;
};
}; };
}; };
}; };
...@@ -12,6 +12,25 @@ / { ...@@ -12,6 +12,25 @@ / {
model = "ST-Ericsson HREF (pre-v60) and ST UIB"; model = "ST-Ericsson HREF (pre-v60) and ST UIB";
compatible = "st-ericsson,mop500", "st-ericsson,u8500"; compatible = "st-ericsson,mop500", "st-ericsson,u8500";
/* ST6G3244ME level translator for 1.8/2.9 V */
vmmci: regulator-gpio {
compatible = "regulator-gpio";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2900000>;
regulator-name = "mmci-reg";
regulator-type = "voltage";
startup-delay-us = <100>;
states = <1800000 0x1
2900000 0x0>;
gpios = <&tc3589x_gpio 18 GPIO_ACTIVE_HIGH>;
enable-gpio = <&tc3589x_gpio 17 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
soc { soc {
/* Reset line for the BU21013 touchscreen */ /* Reset line for the BU21013 touchscreen */
i2c@80110000 { i2c@80110000 {
......
...@@ -11,4 +11,23 @@ ...@@ -11,4 +11,23 @@
/ { / {
model = "ST-Ericsson HREF (pre-v60) and TVK1281618 UIB"; model = "ST-Ericsson HREF (pre-v60) and TVK1281618 UIB";
compatible = "st-ericsson,mop500", "st-ericsson,u8500"; compatible = "st-ericsson,mop500", "st-ericsson,u8500";
/* ST6G3244ME level translator for 1.8/2.9 V */
vmmci: regulator-gpio {
compatible = "regulator-gpio";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2900000>;
regulator-name = "mmci-reg";
regulator-type = "voltage";
startup-delay-us = <100>;
states = <1800000 0x1
2900000 0x0>;
gpios = <&tc3589x_gpio 18 GPIO_ACTIVE_HIGH>;
enable-gpio = <&tc3589x_gpio 17 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
}; };
...@@ -61,16 +61,10 @@ spi@80002000 { ...@@ -61,16 +61,10 @@ spi@80002000 {
}; };
// External Micro SD slot // External Micro SD slot
sdi0_per1@80126000 { mmc@80126000 {
cd-gpios = <&tc3589x_gpio 3 GPIO_ACTIVE_HIGH>; cd-gpios = <&tc3589x_gpio 3 GPIO_ACTIVE_HIGH>;
}; };
vmmci: regulator-gpio {
gpios = <&tc3589x_gpio 18 GPIO_ACTIVE_HIGH>;
enable-gpio = <&tc3589x_gpio 17 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
pinctrl { pinctrl {
/* Set this up using hogs */ /* Set this up using hogs */
pinctrl-names = "default"; pinctrl-names = "default";
......
...@@ -14,6 +14,28 @@ / { ...@@ -14,6 +14,28 @@ / {
model = "ST-Ericsson HREF (v60+) and ST UIB"; model = "ST-Ericsson HREF (v60+) and ST UIB";
compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500"; compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
/* ST6G3244ME level translator for 1.8/2.9 V */
vmmci: regulator-gpio {
compatible = "regulator-gpio";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2900000>;
regulator-name = "mmci-reg";
regulator-type = "voltage";
startup-delay-us = <100>;
states = <1800000 0x1
2900000 0x0>;
gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
enable-gpio = <&gpio5 9 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-names = "default";
pinctrl-0 = <&vmmci_default_mode>;
};
soc { soc {
/* Reset line for the BU21013 touchscreen */ /* Reset line for the BU21013 touchscreen */
i2c@80110000 { i2c@80110000 {
...@@ -33,3 +55,20 @@ bu21013_tp@5d { ...@@ -33,3 +55,20 @@ bu21013_tp@5d {
}; };
}; };
}; };
&pinctrl {
vmmci {
vmmci_default_mode: vmmc_default {
/* VMMCI level-shifter enable */
default_hrefv60_cfg2 {
pins = "GPIO169_D22";
ste,config = <&gpio_out_hi>;
};
/* VMMCI level-shifter voltage select */
default_hrefv60_cfg3 {
pins = "GPIO5_AG6";
ste,config = <&gpio_out_hi>;
};
};
};
};
...@@ -13,4 +13,43 @@ ...@@ -13,4 +13,43 @@
/ { / {
model = "ST-Ericsson HREF (v60+) and TVK1281618 UIB"; model = "ST-Ericsson HREF (v60+) and TVK1281618 UIB";
compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500"; compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
/* ST6G3244ME level translator for 1.8/2.9 V */
vmmci: regulator-gpio {
compatible = "regulator-gpio";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2900000>;
regulator-name = "mmci-reg";
regulator-type = "voltage";
startup-delay-us = <100>;
states = <1800000 0x1
2900000 0x0>;
gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
enable-gpio = <&gpio5 9 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-names = "default";
pinctrl-0 = <&vmmci_default_mode>;
};
};
&pinctrl {
vmmci {
vmmci_default_mode: vmmc_default {
/* VMMCI level-shifter enable */
default_hrefv60_cfg2 {
pins = "GPIO169_D22";
ste,config = <&gpio_out_hi>;
};
/* VMMCI level-shifter voltage select */
default_hrefv60_cfg3 {
pins = "GPIO5_AG6";
ste,config = <&gpio_out_hi>;
};
};
};
}; };
...@@ -10,6 +10,64 @@ / { ...@@ -10,6 +10,64 @@ / {
model = "ST-Ericsson HREF (v60+) platform with Device Tree"; model = "ST-Ericsson HREF (v60+) platform with Device Tree";
compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500"; compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
thermal-zones {
chassis-thermal {
/* Poll every 20 seconds */
polling-delay = <20000>;
/* Poll every 2nd second when cooling */
polling-delay-passive = <2000>;
thermal-sensors = <&therm1>, <&therm2>;
/* Tripping points made from rough guess about operating conditions */
trips {
chassis_alert: chassis-alert {
/* At 50 degrees take down the CPU frequency */
temperature = <50000>;
hysteresis = <3000>;
type = "active";
};
chassis_crit: chassis-crit {
/* Just shut down at 70 degrees */
temperature = <70000>;
hysteresis = <2000>;
type = "critical";
};
};
/* Push down the operating frequency of the SoC when it gets hot */
cooling-maps {
map0 {
trip = <&chassis_alert>;
cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <100>;
};
};
};
};
/*
* Thermistors on the board, formally to monitor battery temperatures
* but what they measure is the board temperature.
*/
therm1: thermistor@0 {
compatible = "murata,ncp18wb473";
io-channels = <&gpadc 0x06>; /* AUX1 */
pullup-uv = <1800000>;
pullup-ohm = <220000>;
pulldown-ohm = <0>;
#thermal-sensor-cells = <0>;
};
therm2: thermistor@1 {
compatible = "murata,ncp18wb473";
io-channels = <&gpadc 0x07>; /* AUX2 */
pullup-uv = <1800000>;
pullup-ohm = <220000>;
pulldown-ohm = <0>;
#thermal-sensor-cells = <0>;
};
soc { soc {
/* Name the GPIO muxed rails on the HREF boards */ /* Name the GPIO muxed rails on the HREF boards */
gpio@8012e000 { gpio@8012e000 {
...@@ -132,16 +190,10 @@ gpio@8011e080 { ...@@ -132,16 +190,10 @@ gpio@8011e080 {
}; };
// External Micro SD slot // External Micro SD slot
sdi0_per1@80126000 { mmc@80126000 {
cd-gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>; // 95 cd-gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>; // 95
}; };
vmmci: regulator-gpio {
gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
enable-gpio = <&gpio5 9 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
pinctrl { pinctrl {
/* /*
* Set this up using hogs, as time goes by and as seems fit, these * Set this up using hogs, as time goes by and as seems fit, these
...@@ -166,16 +218,6 @@ default_hrefv60_cfg1 { ...@@ -166,16 +218,6 @@ default_hrefv60_cfg1 {
pins = "GPIO95_E8"; pins = "GPIO95_E8";
ste,config = <&gpio_in_pu>; ste,config = <&gpio_in_pu>;
}; };
/* VMMCI level-shifter enable */
default_hrefv60_cfg2 {
pins = "GPIO169_D22";
ste,config = <&gpio_out_hi>;
};
/* VMMCI level-shifter voltage select */
default_hrefv60_cfg3 {
pins = "GPIO5_AG6";
ste,config = <&gpio_out_hi>;
};
}; };
}; };
ipgpio { ipgpio {
......
...@@ -213,7 +213,7 @@ vmmci: regulator-gpio { ...@@ -213,7 +213,7 @@ vmmci: regulator-gpio {
}; };
// External Micro SD slot // External Micro SD slot
sdi0_per1@80126000 { mmc@80126000 {
arm,primecell-periphid = <0x10480180>; arm,primecell-periphid = <0x10480180>;
max-frequency = <100000000>; max-frequency = <100000000>;
bus-width = <4>; bus-width = <4>;
...@@ -241,7 +241,7 @@ sdi0_per1@80126000 { ...@@ -241,7 +241,7 @@ sdi0_per1@80126000 {
}; };
// WLAN SDIO channel // WLAN SDIO channel
sdi1_per2@80118000 { mmc@80118000 {
arm,primecell-periphid = <0x10480180>; arm,primecell-periphid = <0x10480180>;
max-frequency = <100000000>; max-frequency = <100000000>;
bus-width = <4>; bus-width = <4>;
...@@ -253,7 +253,7 @@ sdi1_per2@80118000 { ...@@ -253,7 +253,7 @@ sdi1_per2@80118000 {
}; };
// Unused PoP eMMC - register and put it to sleep by default */ // Unused PoP eMMC - register and put it to sleep by default */
sdi2_per3@80005000 { mmc@80005000 {
arm,primecell-periphid = <0x10480180>; arm,primecell-periphid = <0x10480180>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&mc2_a_1_sleep>; pinctrl-0 = <&mc2_a_1_sleep>;
...@@ -262,7 +262,7 @@ sdi2_per3@80005000 { ...@@ -262,7 +262,7 @@ sdi2_per3@80005000 {
}; };
// On-board eMMC // On-board eMMC
sdi4_per2@80114000 { mmc@80114000 {
arm,primecell-periphid = <0x10480180>; arm,primecell-periphid = <0x10480180>;
max-frequency = <100000000>; max-frequency = <100000000>;
bus-width = <8>; bus-width = <8>;
......
...@@ -72,7 +72,7 @@ magnetometer@c { ...@@ -72,7 +72,7 @@ magnetometer@c {
soc { soc {
/* External Micro SD card slot */ /* External Micro SD card slot */
sdi0_per1@80126000 { mmc@80126000 {
status = "okay"; status = "okay";
arm,primecell-periphid = <0x10480180>; arm,primecell-periphid = <0x10480180>;
...@@ -100,7 +100,7 @@ sdi0_per1@80126000 { ...@@ -100,7 +100,7 @@ sdi0_per1@80126000 {
}; };
/* WLAN SDIO */ /* WLAN SDIO */
sdi1_per2@80118000 { mmc@80118000 {
status = "okay"; status = "okay";
arm,primecell-periphid = <0x10480180>; arm,primecell-periphid = <0x10480180>;
...@@ -134,7 +134,7 @@ wifi@1 { ...@@ -134,7 +134,7 @@ wifi@1 {
}; };
/* eMMC */ /* eMMC */
sdi2_per3@80005000 { mmc@80005000 {
status = "okay"; status = "okay";
arm,primecell-periphid = <0x10480180>; arm,primecell-periphid = <0x10480180>;
......
This diff is collapsed.
...@@ -147,7 +147,7 @@ magnetometer@c { ...@@ -147,7 +147,7 @@ magnetometer@c {
soc { soc {
// External Micro SD slot // External Micro SD slot
sdi0_per1@80126000 { mmc@80126000 {
arm,primecell-periphid = <0x10480180>; arm,primecell-periphid = <0x10480180>;
max-frequency = <100000000>; max-frequency = <100000000>;
bus-width = <4>; bus-width = <4>;
...@@ -169,7 +169,7 @@ sdi0_per1@80126000 { ...@@ -169,7 +169,7 @@ sdi0_per1@80126000 {
}; };
// WLAN SDIO channel // WLAN SDIO channel
sdi1_per2@80118000 { mmc@80118000 {
arm,primecell-periphid = <0x10480180>; arm,primecell-periphid = <0x10480180>;
max-frequency = <50000000>; max-frequency = <50000000>;
bus-width = <4>; bus-width = <4>;
...@@ -196,7 +196,7 @@ wifi@1 { ...@@ -196,7 +196,7 @@ wifi@1 {
}; };
// eMMC // eMMC
sdi2_per3@80005000 { mmc@80005000 {
arm,primecell-periphid = <0x10480180>; arm,primecell-periphid = <0x10480180>;
max-frequency = <100000000>; max-frequency = <100000000>;
bus-width = <8>; bus-width = <8>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment