* [PATCH v4 06/10] dt-bindings: sdm845-pinctrl: add wakeup interrupt parent for GPIO [not found] <20190313211844.29416-1-ilina@codeaurora.org> @ 2019-03-13 21:18 ` Lina Iyer 2019-03-15 23:37 ` Rob Herring [not found] ` <20190313211844.29416-4-ilina@codeaurora.org> 1 sibling, 1 reply; 4+ messages in thread From: Lina Iyer @ 2019-03-13 21:18 UTC (permalink / raw) To: swboyd, evgreen, marc.zyngier Cc: linux-kernel, rplsssn, linux-arm-msm, thierry.reding, bjorn.andersson, dianders, linus.walleij, Lina Iyer, devicetree SDM845 SoC has an always-on interrupt controller (PDC) with select GPIO routed to the PDC as interrupts that can be used to wake the system up from deep low power modes and suspend. Cc: devicetree@vger.kernel.org Signed-off-by: Lina Iyer <ilina@codeaurora.org> --- .../devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt index 665aadb5ea28..f0fedbc5d41a 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt @@ -29,6 +29,11 @@ SDM845 platform. Definition: must be 2. Specifying the pin number and flags, as defined in <dt-bindings/interrupt-controller/irq.h> +- wakeup-parent: + Usage: optional + Value type: <phandle> + Definition: A phandle to the wakeup interrupt controller for the SoC. + - gpio-controller: Usage: required Value type: <none> @@ -53,7 +58,6 @@ pin, a group, or a list of pins or groups. This configuration can include the mux function to select on those pin(s)/group(s), and various pin configuration parameters, such as pull-up, drive strength, etc. - PIN CONFIGURATION NODES: The name of each subnode is not important; all subnodes should be enumerated @@ -160,6 +164,7 @@ Example: #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; + wake-parent = <&pdc_intc>; qup9_active: qup9-active { mux { -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v4 06/10] dt-bindings: sdm845-pinctrl: add wakeup interrupt parent for GPIO 2019-03-13 21:18 ` [PATCH v4 06/10] dt-bindings: sdm845-pinctrl: add wakeup interrupt parent for GPIO Lina Iyer @ 2019-03-15 23:37 ` Rob Herring 2019-03-18 15:37 ` Lina Iyer 0 siblings, 1 reply; 4+ messages in thread From: Rob Herring @ 2019-03-15 23:37 UTC (permalink / raw) To: Lina Iyer Cc: swboyd, evgreen, marc.zyngier, linux-kernel, rplsssn, linux-arm-msm, thierry.reding, bjorn.andersson, dianders, linus.walleij, devicetree On Wed, Mar 13, 2019 at 03:18:40PM -0600, Lina Iyer wrote: > SDM845 SoC has an always-on interrupt controller (PDC) with select GPIO > routed to the PDC as interrupts that can be used to wake the system up > from deep low power modes and suspend. > > Cc: devicetree@vger.kernel.org > Signed-off-by: Lina Iyer <ilina@codeaurora.org> > --- > .../devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) I still don't love this being specific to wake-up, but don't have a better suggestion. One nit, otherwise: Reviewed-by: Rob Herring <robh@kernel.org> > > diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt > index 665aadb5ea28..f0fedbc5d41a 100644 > --- a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt > +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt > @@ -29,6 +29,11 @@ SDM845 platform. > Definition: must be 2. Specifying the pin number and flags, as defined > in <dt-bindings/interrupt-controller/irq.h> > > +- wakeup-parent: > + Usage: optional > + Value type: <phandle> > + Definition: A phandle to the wakeup interrupt controller for the SoC. > + > - gpio-controller: > Usage: required > Value type: <none> > @@ -53,7 +58,6 @@ pin, a group, or a list of pins or groups. This configuration can include the > mux function to select on those pin(s)/group(s), and various pin configuration > parameters, such as pull-up, drive strength, etc. > > - > PIN CONFIGURATION NODES: > > The name of each subnode is not important; all subnodes should be enumerated > @@ -160,6 +164,7 @@ Example: > #gpio-cells = <2>; > interrupt-controller; > #interrupt-cells = <2>; > + wake-parent = <&pdc_intc>; wakeup-parent > > qup9_active: qup9-active { > mux { > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4 06/10] dt-bindings: sdm845-pinctrl: add wakeup interrupt parent for GPIO 2019-03-15 23:37 ` Rob Herring @ 2019-03-18 15:37 ` Lina Iyer 0 siblings, 0 replies; 4+ messages in thread From: Lina Iyer @ 2019-03-18 15:37 UTC (permalink / raw) To: Rob Herring Cc: swboyd, evgreen, marc.zyngier, linux-kernel, rplsssn, linux-arm-msm, thierry.reding, bjorn.andersson, dianders, linus.walleij, devicetree Thanks for the review Rob. On Fri, Mar 15 2019 at 17:37 -0600, Rob Herring wrote: >On Wed, Mar 13, 2019 at 03:18:40PM -0600, Lina Iyer wrote: >> SDM845 SoC has an always-on interrupt controller (PDC) with select GPIO >> routed to the PDC as interrupts that can be used to wake the system up >> from deep low power modes and suspend. >> >> Cc: devicetree@vger.kernel.org >> Signed-off-by: Lina Iyer <ilina@codeaurora.org> >> --- >> .../devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt | 7 ++++++- >> 1 file changed, 6 insertions(+), 1 deletion(-) > >I still don't love this being specific to wake-up, but don't have a >better suggestion. One nit, otherwise: > I added this to interrupts.txt. I will remove this, if the documentation in [PATCH v4 03/10] of/irq: document properties for wakeup interrupt parent of this series works. -- Lina >Reviewed-by: Rob Herring <robh@kernel.org> > >> >> diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt >> index 665aadb5ea28..f0fedbc5d41a 100644 >> --- a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt >> +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt >> @@ -29,6 +29,11 @@ SDM845 platform. >> Definition: must be 2. Specifying the pin number and flags, as defined >> in <dt-bindings/interrupt-controller/irq.h> >> >> +- wakeup-parent: >> + Usage: optional >> + Value type: <phandle> >> + Definition: A phandle to the wakeup interrupt controller for the SoC. >> + >> - gpio-controller: >> Usage: required >> Value type: <none> >> @@ -53,7 +58,6 @@ pin, a group, or a list of pins or groups. This configuration can include the >> mux function to select on those pin(s)/group(s), and various pin configuration >> parameters, such as pull-up, drive strength, etc. >> >> - >> PIN CONFIGURATION NODES: >> >> The name of each subnode is not important; all subnodes should be enumerated >> @@ -160,6 +164,7 @@ Example: >> #gpio-cells = <2>; >> interrupt-controller; >> #interrupt-cells = <2>; >> + wake-parent = <&pdc_intc>; > >wakeup-parent > >> >> qup9_active: qup9-active { >> mux { >> -- >> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, >> a Linux Foundation Collaborative Project >> ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20190313211844.29416-4-ilina@codeaurora.org>]
* Re: [PATCH v4 03/10] of/irq: document properties for wakeup interrupt parent [not found] ` <20190313211844.29416-4-ilina@codeaurora.org> @ 2019-04-17 14:36 ` Linus Walleij 0 siblings, 0 replies; 4+ messages in thread From: Linus Walleij @ 2019-04-17 14:36 UTC (permalink / raw) To: Lina Iyer, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS Cc: Stephen Boyd, Evan Green, Marc Zyngier, linux-kernel@vger.kernel.org, rplsssn, linux-arm-msm, thierry.reding@gmail.com, Bjorn Andersson, Doug Anderson On Wed, Mar 13, 2019 at 10:19 PM Lina Iyer <ilina@codeaurora.org> wrote: > +Mapping the interrupt specifiers in the device tree can be done using the > +"irqdomain-map" property. The property contains interrupt specifier at the > +current interrupt controller followed by the interrupt specifier at the mapped > +interrupt controller. > + > + irqdomain-map = <incoming-interrupt-specifier mapped-interrupt-specifier> > + > +The optional properties "irqdomain-map-mask" and "irqdomain-map-pass-thru" may > +be provided to help interpret the valid bits of the incoming and mapped > +interrupt specifiers respectively. > + > + Example: > + irqdomain-map = <22 0 &intc 36 0>, <24 0 &intc 37 0>; > + irqdomain-map-mask = <0xff 0>; > + irqdomain-map-pass-thru = <0 0xff>; This is looking a bit familiar to the existing interrupt-map that is used for PCI interrupts and Swizzling back to a set of PCI host interrupts. I tried to document interrupt-map here: https://elinux.org/Device_Tree_Usage#Advanced_Interrupt_Mapping interrupt-map is a bit convoluted, so I don't know if it would be subject to reuse for this. I suspect that interrupt-map, despite the name, is for PCI only. Yours, Linus Walleij ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-04-17 14:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20190313211844.29416-1-ilina@codeaurora.org>
2019-03-13 21:18 ` [PATCH v4 06/10] dt-bindings: sdm845-pinctrl: add wakeup interrupt parent for GPIO Lina Iyer
2019-03-15 23:37 ` Rob Herring
2019-03-18 15:37 ` Lina Iyer
[not found] ` <20190313211844.29416-4-ilina@codeaurora.org>
2019-04-17 14:36 ` [PATCH v4 03/10] of/irq: document properties for wakeup interrupt parent Linus Walleij
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).