aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2020-03-03 08:58:38 +0100
committerLubomir Rintel <lkundrak@v3.sk>2020-03-23 19:02:11 +0100
commit9ad4b9d8f9311d32a10201e1984a73ff3d5481e6 (patch)
treec9aa3a173799b7dfb546e8b6bc18a9b03171d005
parent98ba23dee3318f62c816a5bd148f9e69ffbb4845 (diff)
downloadopenfirmware-9ad4b9d8f9311d32a10201e1984a73ff3d5481e6.tar.gz
dev: add mv88pm867 driver
This is a regulator that is used on Dell Ariel (Wyse 3020) board to configure DRAM voltage. For now the driver actually does nothing but create the device node.
-rw-r--r--dev/88pm867.fth50
1 files changed, 50 insertions, 0 deletions
diff --git a/dev/88pm867.fth b/dev/88pm867.fth
new file mode 100644
index 00000000..1770aa79
--- /dev/null
+++ b/dev/88pm867.fth
@@ -0,0 +1,50 @@
+purpose: Marvell 88PM867 regulator device node
+\ See license at end of file
+
+" regulator" name
+" marvell,88pg867" +compatible
+h# 19 1 reg
+
+: 88pm867@ ( reg# -- byte ) " reg-b@" $call-parent ;
+: 88pm867! ( byte reg# -- ) " reg-b!" $call-parent ;
+
+: open ( -- okay )
+ \ my-unit " set-address" $call-parent
+ true
+;
+
+: close ( -- )
+;
+
+new-device
+ " buck1" device-name
+ " vdd_1v8" " regulator-name" string-property
+ d# 1800000 " regulator-min-microvolt" integer-property
+ d# 1800000 " regulator-max-microvolt" integer-property
+ 0 0 " regulator-boot-on" property
+ 0 0 " regulator-always-on" property
+finish-device
+
+\ LICENSE_BEGIN
+\ Copyright (c) 2020 Lubomir Rintel <lkundrak@v3.sk>
+\
+\ Permission is hereby granted, free of charge, to any person obtaining
+\ a copy of this software and associated documentation files (the
+\ "Software"), to deal in the Software without restriction, including
+\ without limitation the rights to use, copy, modify, merge, publish,
+\ distribute, sublicense, and/or sell copies of the Software, and to
+\ permit persons to whom the Software is furnished to do so, subject to
+\ the following conditions:
+\
+\ The above copyright notice and this permission notice shall be
+\ included in all copies or substantial portions of the Software.
+\
+\ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+\ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+\ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+\ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+\ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+\ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+\ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+\
+\ LICENSE_END