-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
638 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
General Keys Properties: | ||
|
||
Optional properties for Keys: | ||
- power-off-time-sec: Duration in seconds which the key should be kept | ||
pressed for device to power off automatically. Device with key pressed | ||
shutdown feature can specify this property. | ||
- linux,keycodes: Specifies the numeric keycode values to be used for | ||
reporting key presses. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
MediaTek MT6397/MT6323 PMIC Keys Device Driver | ||
|
||
There are two key functions provided by MT6397/MT6323 PMIC, pwrkey | ||
and homekey. The key functions are defined as the subnode of the function | ||
node provided by MT6397/MT6323 PMIC that is being defined as one kind | ||
of Muti-Function Device (MFD) | ||
|
||
For MT6397/MT6323 MFD bindings see: | ||
Documentation/devicetree/bindings/mfd/mt6397.txt | ||
|
||
Required properties: | ||
- compatible: "mediatek,mt6397-keys" or "mediatek,mt6323-keys" | ||
- linux,keycodes: See Documentation/devicetree/bindings/input/keys.txt | ||
|
||
Optional Properties: | ||
- wakeup-source: See Documentation/devicetree/bindings/power/wakeup-source.txt | ||
- mediatek,long-press-mode: Long press key shutdown setting, 1 for | ||
pwrkey only, 2 for pwrkey/homekey together, others for disabled. | ||
- power-off-time-sec: See Documentation/devicetree/bindings/input/keys.txt | ||
|
||
Example: | ||
|
||
pmic: mt6397 { | ||
compatible = "mediatek,mt6397"; | ||
|
||
... | ||
|
||
mt6397keys: mt6397keys { | ||
compatible = "mediatek,mt6397-keys"; | ||
mediatek,long-press-mode = <1>; | ||
power-off-time-sec = <0>; | ||
|
||
power { | ||
linux,keycodes = <116>; | ||
wakeup-source; | ||
}; | ||
|
||
home { | ||
linux,keycodes = <114>; | ||
}; | ||
}; | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Device Tree Bindings for Power Controller on MediaTek PMIC | ||
|
||
The power controller which could be found on PMIC is responsible for externally | ||
powering off or on the remote MediaTek SoC through the circuit BBPU. | ||
|
||
Required properties: | ||
- compatible: Should be one of follows | ||
"mediatek,mt6323-pwrc": for MT6323 PMIC | ||
|
||
Example: | ||
|
||
pmic { | ||
compatible = "mediatek,mt6323"; | ||
|
||
... | ||
|
||
power-controller { | ||
compatible = "mediatek,mt6323-pwrc"; | ||
}; | ||
} |
24 changes: 0 additions & 24 deletions
24
Documentation/devicetree/bindings/power/reset/mt6397-rtc-poweroff.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,29 @@ | ||
Device-Tree bindings for MediaTek PMIC based RTC | ||
|
||
MediaTek PMIC based RTC is an independent function of MediaTek PMIC which | ||
is working as a multi-function device (MFD). And the RTC can be configured and | ||
set up via PMIC wrapper bus. Which is also common resource shared among the | ||
other functions present on the PMIC. | ||
MediaTek PMIC based RTC is an independent function of MediaTek PMIC that works | ||
as a type of multi-function device (MFD). The RTC can be configured and set up | ||
with PMIC wrapper bus which is a common resource shared with the other | ||
functions found on the same PMIC. | ||
|
||
For MediaTek PMIC MFD bindings, see: | ||
Documentation/devicetree/bindings/mfd/mt6397.txt | ||
|
||
For MediaTek PMIC wrapper bus bindings, see: | ||
Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | ||
|
||
Required parent node: | ||
- pmic | ||
For MediaTek PMIC MFD bindings, see: | ||
Documentation/devicetree/bindings/mfd/mt6397.txt | ||
|
||
Required properties: | ||
- compatible: Should be one of follows | ||
"mediatek,mt6323-rtc": for MT6323 PMIC | ||
"mediatek,mt6397-rtc": for MT6397 PMIC | ||
|
||
Optional child node: | ||
- power-off | ||
For Power-Off Device for MediaTek PMIC RTC bindings, see: | ||
Documentation/devicetree/bindings/power/reset/mt6397-rtc-poweroff.txt | ||
|
||
Example: | ||
|
||
pmic { | ||
compatible = "mediatek,mt6323"; | ||
|
||
... | ||
|
||
rtc { | ||
compatible = "mediatek,mt6323-rtc"; | ||
|
||
power-off { | ||
compatible = "mediatek,mt6323-rtc-poweroff"; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.