On Tue, 19 Jan 2016, Laxman Dewangan wrote:
+- interrupt-controller: MAX77620 has internal interrupt controller whichThis is how interrupt-controllers usually work. I don't think there
+ takes the interrupt request from internal sub-blocks like RTC,
+ regulators, GPIOs as well as external input.
is any need to explain this. I'd just link to
../interrupt-controller/interrupts.txt instead.
I started with as3722.txt and it seems I am carrying forward the complexity here. Originally, as3722 is posted by me only. Any good file example which I can refer?
+- #interrupt-cells: Should be set to 2 for IRQ number and flags.This is a very lengthy read for such little information. Please make
+ The first cell is the IRQ number. IRQ numbers for different interrupt
+ source of MAX77620 are defined at dt-bindings/mfd/max77620.h
+ The second cell is the flags, encoded as the trigger masks from binding
+ document interrupts.txt, using dt-bindings/irq.
it more succinct. Take a look at other files for examples.
Also,
tell use where interrupts.txt is
i.e. ../interrupt-controller/interrupts.txt.
These are so much easier to read if you tab out from the property name
to the description.
- reg: I2C device address.
- interrupt-controller: MAX77620 has internal interrupt controller which
takes the interrupt request from internal
sub-blocks like RTC, regulators, GPIOs as well
as external input.
- #interrupt-cells: Should be set to 2 for IRQ number and flags.
The first cell is the IRQ number. IRQ numbers
for different interrupt source of MAX77620 are
defined at dt-bindings/mfd/max77620.h
The second cell is the flags, encoded as the
trigger masks from binding document
interrupts.txt, using dt-bindings/irq.
... don't you think?
+Optional properties:What is the "power OFF of system"?
+-------------------
+This device also supports the power OFF of system.
Hmm. I describe the boolean and tristate only. Do I need to define type for integer,string also?
+Following properties are used for this purpose:You don't describe the type of each property, so why is this one
+- system-power-controller: Boolean, This device will be use as
special?
What is best way to make the child node for FPS and differentiate FPS0,1, 2?+power OFF slot and slot period of the device. Device has 3 FPS as FPS0,I'm surprised Rob Acked this. We don't usually do device numbers in DT.
+FPS1 and FPS2. The details of FPS configuration is provided through
+subnode "fps". The details of FPS0, FPS1, FPS2 are provided through the
+child node under this subnodes. The FPS number is provided via reg property.
+
+The property for fps child nodes as:
+Required properties:
+ -reg: FPS number like 0, 1, 2 for FPS0, FPS1 and FPS2 respectively.
+ -maxim,active-fps-time-period-us: Active state FPS time period in"property is present"
+ microseconds.
+ -maxim,suspend-fps-time-period-us: Suspend state FPS time period in
+ microseconds.
+ -maxim,fps-enable-input: FPS enable source like EN0, EN1 or SW. The
+ macros are defined on dt-bindings/mfd/max77620.h for
+ different enable source.
+ FPS_EN_SRC_EN0 for EN0 enable source.
+ FPS_EN_SRC_EN1 for En1 enable source.
+ FPS_EN_SRC_SW for SW based control.
+ -maxim,fps-sw-enable: Boolean, applicable if enable input is SW.
+ If this property present then enable the FPS else
If this enables/disables FPS, why does it matter if it's SW or not?
Why can't you just cal it maxim,fps-enable? Also, is there a case
where you would supply this sub-node, have FPS enabled and this
property not present? If not, can't you just remove the entire node?
Or am I missing something?
Low Power Mode (LPM). I will add details.
+ -maxim,enable-global-lpm: Boolean, enable global LPM when the externalLPM?
+Pinmux and GPIO:
+===============
I think this whole section needs moving to ../pinctrl and needs to be
reviewed by Linus W.