* Re: [PATCH v2 1/6] soc: qcom: rpmpd: Add a powerdomain driver to model corners
From: Rajendra Nayak @ 2018-05-31 4:20 UTC (permalink / raw)
To: Ulf Hansson
Cc: Viresh Kumar, Stephen Boyd, Andy Gross, devicetree, linux-arm-msm,
Linux Kernel Mailing List, collinsd
In-Reply-To: <CAPDyKFpuZ4s7C+Nr3NhU-A40oVw84yK7eEniO6NhHNJ3VosR-A@mail.gmail.com>
On 05/30/2018 06:14 PM, Ulf Hansson wrote:
> [...]
>
>>>> +
>>>> +static DEFINE_MUTEX(rpmpd_lock);
>>>> +
>>>> +/* msm8996 RPM powerdomains */
>>>> +DEFINE_RPMPD_CORN_SMPA(msm8996, vddcx, vddcx_ao, 1);
>>>> +DEFINE_RPMPD_CORN_SMPA(msm8996, vddmx, vddmx_ao, 2);
>>>> +DEFINE_RPMPD_CORN_LDOA(msm8996, vddsscx, 26);
>>>> +
>>>> +DEFINE_RPMPD_VFC_SMPA(msm8996, vddcx_vfc, 1);
>>>> +DEFINE_RPMPD_VFC_LDOA(msm8996, vddsscx_vfc, 26);
>>>> +
>>>> +static struct rpmpd *msm8996_rpmpds[] = {
>>>> + [0] = &msm8996_vddcx,
>>>> + [1] = &msm8996_vddcx_ao,
>>>> + [2] = &msm8996_vddcx_vfc,
>>>> + [3] = &msm8996_vddmx,
>>>> + [4] = &msm8996_vddmx_ao,
>>>> + [5] = &msm8996_vddsscx,
>>>> + [6] = &msm8996_vddsscx_vfc,
>>>> +};
>>>
>>> It's not my call, but honestly the above all macros makes the code
>>> less readable.
>>
>> This is all static data per SoC. The macros will keep the new additions
>> needed for every new SoC to a minimal. Currently this supports only
>> msm8996.
>
> Right, that's fine then.
>
>>
>>>
>>> Anyway, I think you should convert to allocate these structs
>>> dynamically from the heap (kzalloc/kcalloc), instead of statically as
>>> above.
>
> However, I assume this is still doable!?
Perhaps it is, but is there any specific advantage of constructing these structures
dynamically vs statically, given they are static data?
Most other powerdomain/clock/regulator drivers I see do it statically, and thats
what I followed.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
^ permalink raw reply
* Re: [PATCH] PCI: mediatek: Add system pm support for MT2712
From: Bjorn Helgaas @ 2018-05-31 4:20 UTC (permalink / raw)
To: honghui.zhang
Cc: lorenzo.pieralisi, marc.zyngier, bhelgaas, matthias.bgg,
linux-arm-kernel, linux-mediatek, linux-pci, linux-kernel,
devicetree, yingjoe.chen, eddie.huang, ryder.lee, youlin.pei,
hongkun.cao, sean.wang, xinping.qian, yt.shen, yong.wu
In-Reply-To: <1527647736-19986-1-git-send-email-honghui.zhang@mediatek.com>
On Wed, May 30, 2018 at 10:35:36AM +0800, honghui.zhang@mediatek.com wrote:
> From: Honghui Zhang <honghui.zhang@mediatek.com>
>
> The MTCMOS of PCIe Host for MT2712 will be off when system suspend, and all
> the internel control register will be reset after system resume. The PCIe
> link should be re-established and the related control register values should
> be re-set after system resume.
>
> Signed-off-by: Honghui Zhang <honghui.zhang@mediatek.com>
> CC: Ryder Lee <ryder.lee@mediatek.com>
> ---
> drivers/pci/host/pcie-mediatek.c | 82 ++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 82 insertions(+)
>
> diff --git a/drivers/pci/host/pcie-mediatek.c b/drivers/pci/host/pcie-mediatek.c
> index dabf1086..60f98d92 100644
> --- a/drivers/pci/host/pcie-mediatek.c
> +++ b/drivers/pci/host/pcie-mediatek.c
> @@ -132,12 +132,14 @@ struct mtk_pcie_port;
> /**
> * struct mtk_pcie_soc - differentiate between host generations
> * @need_fix_class_id: whether this host's class ID needed to be fixed or not
> + * @pm_support: whether the host's MTCMOS will be off when suspend
> * @ops: pointer to configuration access functions
> * @startup: pointer to controller setting functions
> * @setup_irq: pointer to initialize IRQ functions
> */
> struct mtk_pcie_soc {
> bool need_fix_class_id;
> + bool pm_support;
> struct pci_ops *ops;
> int (*startup)(struct mtk_pcie_port *port);
> int (*setup_irq)(struct mtk_pcie_port *port, struct device_node *node);
> @@ -1179,12 +1181,91 @@ static int mtk_pcie_probe(struct platform_device *pdev)
> return err;
> }
>
> +static int __maybe_unused mtk_pcie_suspend_noirq(struct device *dev)
> +{
> + struct platform_device *pdev;
> + struct mtk_pcie *pcie;
> + struct mtk_pcie_port *port;
> + const struct mtk_pcie_soc *soc;
> +
> + pdev = to_platform_device(dev);
> + pcie = platform_get_drvdata(pdev);
> + soc = pcie->soc;
> + if (!soc->pm_support)
> + return 0;
> +
> + list_for_each_entry(port, &pcie->ports, list) {
> + clk_disable_unprepare(port->ahb_ck);
> + clk_disable_unprepare(port->sys_ck);
> + phy_power_off(port->phy);
> + }
> +
> + return 0;
> +}
> +
> +static int __maybe_unused mtk_pcie_resume_noirq(struct device *dev)
I don't really like the __maybe_unused annotations. Looking at the
other users of SET_NOIRQ_SYSTEM_SLEEP_PM_OPS, I think a small majority
of them wrap the function definitions in #ifdef CONFIG_PM_SLEEP
instead of using __maybe_unused. That's also a bit ugly, but has the
advantage of truly omitting the definitions when they're not needed.
^ permalink raw reply
* Re: [PATCH v2 5/6] soc: qcom: rpmh powerdomain driver
From: Rajendra Nayak @ 2018-05-31 4:15 UTC (permalink / raw)
To: Rob Herring
Cc: viresh.kumar, sboyd, andy.gross, ulf.hansson, devicetree,
linux-arm-msm, linux-kernel, collinsd
In-Reply-To: <20180531033110.GA19195@rob-hp-laptop>
On 05/31/2018 09:01 AM, Rob Herring wrote:
> On Fri, May 25, 2018 at 03:31:20PM +0530, Rajendra Nayak wrote:
>> The RPMh powerdomain driver aggregates the corner votes from various
>> consumers for the ARC resources and communicates it to RPMh.
>>
>> We also add data for all powerdomains on sdm845 as part of the patch.
>> The driver can be extended to support other SoCs which support RPMh
>>
>> Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
>> ---
>> .../devicetree/bindings/power/qcom,rpmhpd.txt | 65 ++++
>> drivers/soc/qcom/Kconfig | 9 +
>> drivers/soc/qcom/Makefile | 1 +
>> drivers/soc/qcom/rpmhpd.c | 360 ++++++++++++++++++
>> 4 files changed, 435 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/power/qcom,rpmhpd.txt
>> create mode 100644 drivers/soc/qcom/rpmhpd.c
>>
>> diff --git a/Documentation/devicetree/bindings/power/qcom,rpmhpd.txt b/Documentation/devicetree/bindings/power/qcom,rpmhpd.txt
>> new file mode 100644
>> index 000000000000..c1fa986c12ee
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/power/qcom,rpmhpd.txt
>> @@ -0,0 +1,65 @@
>> +Qualcomm RPMh Powerdomains
>> +
>> +* For RPMh powerdomains, we communicate a performance state to RPMh
>> +which then translates it into a corresponding voltage on a rail
>> +
>> +Required Properties:
>> + - compatible: Should be one of the following
>> + * qcom,sdm845-rpmhpd: RPMh powerdomain for the sdm845 family of SoC
>> + - power-domain-cells: number of cells in power domain specifier
>> + must be 1
>> + - operating-points-v2: Phandle to the OPP table for the power-domain.
>> + Refer to Documentation/devicetree/bindings/power/power_domain.txt
>> + and Documentation/devicetree/bindings/opp/qcom-opp.txt for more details
>> +
>> +Example:
>> +
>> + rpmhpd: power-controller {
>> + compatible = "qcom,sdm845-rpmhpd";
>> + #power-domain-cells = <1>;
>> + operating-points-v2 = <&rpmhpd_opp_table>,
>> + <&rpmhpd_opp_table>,
>> + <&rpmhpd_opp_table>,
>> + <&rpmhpd_opp_table>,
>> + <&rpmhpd_opp_table>,
>> + <&rpmhpd_opp_table>,
>> + <&rpmhpd_opp_table>,
>> + <&rpmhpd_opp_table>,
>> + <&rpmhpd_opp_table>;
>> + };
>> +
>> + rpmhpd_opp_table: opp-table {
>> + compatible = "operating-points-v2-qcom-level", "operating-points-v2";
>> +
>> + rpmhpd_opp1: opp@1 {
>> + qcom-corner = <16>;
>
> Is it corner or level?
It should be level, I will fix it up when I respin. thanks.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
^ permalink raw reply
* Re: [PATCH v1 2/3] USB: DT probing support to ehci-npcm7xx
From: Rob Herring @ 2018-05-31 4:14 UTC (permalink / raw)
To: avifishman70
Cc: gregkh, stern, tmaimon77, venture, yuenn, brendanhiggins,
mathias.nyman, bjorn.andersson, jhogan, albeu, chunfeng.yun, tony,
baolu.lu, elder, digetx, kstewart, hdegoede, linux-kernel,
linux-usb, openbmc, mark.rutland, devicetree, davem,
mchehab+samsung, akpm, rdunlap
In-Reply-To: <1527582935-31175-3-git-send-email-avifishman70@gmail.com>
On Tue, May 29, 2018 at 11:35:34AM +0300, avifishman70@gmail.com wrote:
> From: Avi Fishman <AviFishman70@gmail.com>
>
> Device Tree documentation for Nuvoton npcm7xx EHCI driver.
Bindings are for drivers, but for h/w.
>
> Signed-off-by: Avi Fishman <AviFishman70@gmail.com>
> ---
> Documentation/devicetree/bindings/usb/npcm7xx-usb.txt | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/usb/npcm7xx-usb.txt
>
> diff --git a/Documentation/devicetree/bindings/usb/npcm7xx-usb.txt b/Documentation/devicetree/bindings/usb/npcm7xx-usb.txt
> new file mode 100644
> index 000000000000..628692dff7e4
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/npcm7xx-usb.txt
> @@ -0,0 +1,18 @@
> +Nuvoton NPCM7XX SoC USB controllers:
> +-----------------------------
> +
> +EHCI:
> +-----
> +
> +Required properties:
> +- compatible: "nuvoton,npcm750-ehci"
And usb-ehci? Though I would just drop it. It is pretty useless.
> + that services interrupts for this device
This line goes below.
> +- interrupts: Should contain the EHCI interrupt
> +
> +Example:
> +
> + ehci@e1800000 {
> + compatible = "nuvoton,npcm750-ehci", "usb-ehci";
> + reg = <0xf0806000 0x1000>;
> + interrupts = <0 61 4>;
> + };
> --
> 2.14.1
>
^ permalink raw reply
* Re: [PATCH v2 1/6] soc: qcom: rpmpd: Add a powerdomain driver to model corners
From: Rajendra Nayak @ 2018-05-31 4:14 UTC (permalink / raw)
To: Rob Herring
Cc: viresh.kumar, sboyd, andy.gross, ulf.hansson, devicetree,
linux-arm-msm, linux-kernel, collinsd
In-Reply-To: <20180531032709.GA13554@rob-hp-laptop>
On 05/31/2018 08:57 AM, Rob Herring wrote:
> On Fri, May 25, 2018 at 03:31:16PM +0530, Rajendra Nayak wrote:
>> The powerdomains for corners just pass the performance state set by the
>> consumers to the RPM (Remote Power manager) which then takes care
>> of setting the appropriate voltage on the corresponding rails to
>> meet the performance needs.
>>
>> We add all powerdomain data needed on msm8996 here. This driver can easily
>> be extended by adding data for other qualcomm SoCs as well.
>>
>> Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
>> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
>> ---
>> .../devicetree/bindings/power/qcom,rpmpd.txt | 55 ++++
>> drivers/soc/qcom/Kconfig | 9 +
>> drivers/soc/qcom/Makefile | 1 +
>> drivers/soc/qcom/rpmpd.c | 299 ++++++++++++++++++
>> 4 files changed, 364 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/power/qcom,rpmpd.txt
>> create mode 100644 drivers/soc/qcom/rpmpd.c
>>
>> diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.txt b/Documentation/devicetree/bindings/power/qcom,rpmpd.txt
>> new file mode 100644
>> index 000000000000..68f620a2af0d
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.txt
>> @@ -0,0 +1,55 @@
>> +Qualcomm RPM Powerdomains
>> +
>> +* For RPM powerdomains, we communicate a performance state to RPM
>> +which then translates it into a corresponding voltage on a rail
>> +
>> +Required Properties:
>> + - compatible: Should be one of the following
>> + * qcom,msm8996-rpmpd: RPM Powerdomain for the msm8996 family of SoC
>> + - power-domain-cells: number of cells in power domain specifier
>> + must be 1.
>> + - operating-points-v2: Phandle to the OPP table for the power-domain.
>> + Refer to Documentation/devicetree/bindings/power/power_domain.txt
>> + and Documentation/devicetree/bindings/opp/qcom-opp.txt for more details
>> +
>> +Example:
>> +
>> + rpmpd: power-controller {
>> + compatible = "qcom,msm8996-rpmpd";
>> + #power-domain-cells = <1>;
>> + operating-points-v2 = <&rpmpd_opp_table>,
>> + <&rpmpd_opp_table>,
>> + <&rpmpd_opp_table>,
>> + <&rpmpd_opp_table>,
>> + <&rpmpd_opp_table>,
>> + <&rpmpd_opp_table>,
>> + <&rpmpd_opp_table>;
>> + };
>> +
>> + rpmpd_opp_table: opp-table {
>> + compatible = "operating-points-v2-qcom-level", "operating-points-v2";
>> +
>> + rpmpd_opp1: opp@1 {
>
> unit-address without reg property is not valid.
>
>> + qcom,level = <1>;
>
> Is this the only property? If so, I don't see the point in trying to use
> operating-points-v2 here.
Thanks, I'll drop the unit address above and the compatible here.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
^ permalink raw reply
* Re: [PATCH v1] media: dt: bindings: tegra-vde: Document new optional Memory Client reset property
From: Rob Herring @ 2018-05-31 4:11 UTC (permalink / raw)
To: Dmitry Osipenko
Cc: Thierry Reding, linux-tegra, linux-media, devicetree,
linux-kernel
In-Reply-To: <20180526143355.24288-1-digetx@gmail.com>
On Sat, May 26, 2018 at 05:33:55PM +0300, Dmitry Osipenko wrote:
> Recently binding of the Memory Controller has been extended, exposing
> the Memory Client reset controls and hence it is now a reset controller.
> Tegra video-decoder device is among the Memory Controller reset users,
> document the new optional VDE HW reset property.
>
> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
> ---
> .../devicetree/bindings/media/nvidia,tegra-vde.txt | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply
* Re: [PATCH v2 4/6] bus: ti-sysc: Add support for using ti-sysc for MCAN on dra76x
From: Rob Herring @ 2018-05-31 4:08 UTC (permalink / raw)
To: Faiz Abbas
Cc: linux-kernel, devicetree, linux-omap, linux-arm-kernel, linux-clk,
bcousson, tony, paul, t-kristo
In-Reply-To: <20180530141133.3711-5-faiz_abbas@ti.com>
On Wed, May 30, 2018 at 07:41:31PM +0530, Faiz Abbas wrote:
> The dra76x MCAN generic interconnect module has a its own
> format for the bits in the control registers.
>
> Therefore add a new module type, new regbits and new capabilities
> specific to the MCAN module.
>
> CC: Tony Lindgren <tony@atomide.com>
> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
> ---
> .../devicetree/bindings/bus/ti-sysc.txt | 1 +
> drivers/bus/ti-sysc.c | 17 +++++++++++++++++
> include/dt-bindings/bus/ti-sysc.h | 2 ++
> include/linux/platform_data/ti-sysc.h | 1 +
> 4 files changed, 21 insertions(+)
For the DT bits:
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply
* Re: [PATCH v2 5/6] ARM: dts: Add generic interconnect target module node for MCAN
From: Rob Herring @ 2018-05-31 4:06 UTC (permalink / raw)
To: Faiz Abbas
Cc: linux-kernel, devicetree, linux-omap, linux-arm-kernel, linux-clk,
bcousson, tony, paul, t-kristo
In-Reply-To: <20180530141133.3711-6-faiz_abbas@ti.com>
On Wed, May 30, 2018 at 07:41:32PM +0530, Faiz Abbas wrote:
> The ti-sysc driver provides support for manipulating the idlemodes
> and interconnect level resets.
>
> Add the generic interconnect target module node for MCAN to support
> the same.
>
> CC: Tony Lindgren <tony@atomide.com>
> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
> ---
> arch/arm/boot/dts/dra76x.dtsi | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>
> diff --git a/arch/arm/boot/dts/dra76x.dtsi b/arch/arm/boot/dts/dra76x.dtsi
> index bfc82636999c..57b8dc0fe719 100644
> --- a/arch/arm/boot/dts/dra76x.dtsi
> +++ b/arch/arm/boot/dts/dra76x.dtsi
> @@ -11,6 +11,25 @@
> / {
> compatible = "ti,dra762", "ti,dra7";
>
> + ocp {
> +
> + target-module@0x42c00000 {
Build your dtb with W=1 and fix warnings you add (drop '0x').
This is a CAN bus controller? If so, then use 'can' for node name.
> + compatible = "ti,sysc-dra7-mcan";
> + ranges = <0x0 0x42c00000 0x2000>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + reg = <0x42c01900 0x4>,
> + <0x42c01904 0x4>,
> + <0x42c01908 0x4>;
> + reg-names = "rev", "sysc", "syss";
> + ti,sysc-mask = <(SYSC_OMAP4_SOFTRESET |
> + SYSC_DRA7_MCAN_ENAWAKEUP)>;
> + ti,syss-mask = <1>;
> + clocks = <&wkupaon_clkctrl DRA7_ADC_CLKCTRL 0>;
> + clock-names = "fck";
> + };
> + };
> +
> };
>
> /* MCAN interrupts are hard-wired to irqs 67, 68 */
> --
> 2.17.0
>
^ permalink raw reply
* Re: [PATCH v2 3/6] clk: ti: dra7: Add clkctrl clock data for the mcan clocks
From: Rob Herring @ 2018-05-31 4:03 UTC (permalink / raw)
To: Faiz Abbas
Cc: linux-kernel, devicetree, linux-omap, linux-arm-kernel, linux-clk,
bcousson, tony, paul, t-kristo
In-Reply-To: <20180530141133.3711-4-faiz_abbas@ti.com>
On Wed, May 30, 2018 at 07:41:30PM +0530, Faiz Abbas wrote:
> Add clkctrl data for the m_can clocks and register it within the
> clkctrl driver
>
> CC: Tero Kristo <t-kristo@ti.com>
> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
> ---
> drivers/clk/ti/clk-7xx.c | 1 +
> include/dt-bindings/clock/dra7.h | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/drivers/clk/ti/clk-7xx.c b/drivers/clk/ti/clk-7xx.c
> index fb249a1637a5..71a122b2dc67 100644
> --- a/drivers/clk/ti/clk-7xx.c
> +++ b/drivers/clk/ti/clk-7xx.c
> @@ -708,6 +708,7 @@ static const struct omap_clkctrl_reg_data dra7_wkupaon_clkctrl_regs[] __initcons
> { DRA7_COUNTER_32K_CLKCTRL, NULL, 0, "wkupaon_iclk_mux" },
> { DRA7_UART10_CLKCTRL, dra7_uart10_bit_data, CLKF_SW_SUP, "wkupaon_cm:clk:0060:24" },
> { DRA7_DCAN1_CLKCTRL, dra7_dcan1_bit_data, CLKF_SW_SUP, "wkupaon_cm:clk:0068:24" },
> + { DRA7_ADC_CLKCTRL, NULL, CLKF_SW_SUP, "mcan_clk" },
> { 0 },
> };
>
> diff --git a/include/dt-bindings/clock/dra7.h b/include/dt-bindings/clock/dra7.h
> index 5e1061b15aed..d7549c57cac3 100644
> --- a/include/dt-bindings/clock/dra7.h
> +++ b/include/dt-bindings/clock/dra7.h
> @@ -168,5 +168,6 @@
> #define DRA7_COUNTER_32K_CLKCTRL DRA7_CLKCTRL_INDEX(0x50)
> #define DRA7_UART10_CLKCTRL DRA7_CLKCTRL_INDEX(0x80)
> #define DRA7_DCAN1_CLKCTRL DRA7_CLKCTRL_INDEX(0x88)
> +#define DRA7_ADC_CLKCTRL DRA7_CLKCTRL_INDEX(0xa0)
ADC and mcan are the same thing?
>
> #endif
> --
> 2.17.0
>
^ permalink raw reply
* Re: [PATCH v2 07/10] dt-bindings: tc358754: add DT bindings
From: Rob Herring @ 2018-05-31 4:02 UTC (permalink / raw)
To: Maciej Purski
Cc: Mark Rutland, devicetree, linux-samsung-soc,
Bartlomiej Zolnierkiewicz, David Airlie, Seung-Woo Kim,
linux-kernel, dri-devel, Kyungmin Park, Thierry Reding,
Kukjin Kim, Krzysztof Kozlowski, Marek Szyprowski,
linux-arm-kernel, Laurent Pinchart
In-Reply-To: <1527682561-1386-8-git-send-email-m.purski@samsung.com>
On Wed, May 30, 2018 at 02:15:58PM +0200, Maciej Purski wrote:
> From: Andrzej Hajda <a.hajda@samsung.com>
>
> The patch adds bindings to Toshiba DSI/LVDS bridge TC358764.
> Bindings describe power supplies, reset gpio and video interfaces.
>
> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
> Signed-off-by: Maciej Purski <m.purski@samsung.com>
> ---
> .../bindings/display/bridge/toshiba,tc358764.txt | 37 ++++++++++++++++++++++
> 1 file changed, 37 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/display/bridge/toshiba,tc358764.txt
>
> diff --git a/Documentation/devicetree/bindings/display/bridge/toshiba,tc358764.txt b/Documentation/devicetree/bindings/display/bridge/toshiba,tc358764.txt
> new file mode 100644
> index 0000000..6eda14f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/bridge/toshiba,tc358764.txt
> @@ -0,0 +1,37 @@
> +TC358764 MIPI-DSI to LVDS panel bridge
> +
> +Required properties:
> + - compatible: "toshiba,tc358764"
> + - reg: the virtual channel number of a DSI peripheral
> + - vddc-supply: core voltage supply, 1.2V
> + - vddio-supply: I/O voltage supply, 1.8V or 3.3V
> + - vddlvds-supply: LVDS1/2 voltage supply, 3.3V
> + - reset-gpios: a GPIO spec for the reset pin
> +
> +The device node can contain zero to two 'port' child nodes, each with one
How would 0 ports be valid?
> +child 'endpoint' node, according to the bindings defined in [1].
> +The following are properties specific to those nodes.
> +
> +port:
> + - reg: (required) can be 0 for DSI port or 1 for LVDS port;
> +
> +[1]: Documentation/devicetree/bindings/media/video-interfaces.txt
> +
> +Example:
> +
> + bridge@0 {
> + reg = <0>;
> + compatible = "toshiba,tc358764";
> + vddc-supply = <&vcc_1v2_reg>;
> + vddio-supply = <&vcc_1v8_reg>;
> + vddlvds-supply = <&vcc_3v3_reg>;
> + reset-gpios = <&gpd1 6 GPIO_ACTIVE_LOW>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + port@1 {
> + reg = <1>;
> + lvds_ep: endpoint {
> + remote-endpoint = <&panel_ep>;
> + };
> + };
> + };
> --
> 2.7.4
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply
* Re: [PATCH v2 05/10] panel/hv070wsa-100: add DT bindings
From: Rob Herring @ 2018-05-31 4:00 UTC (permalink / raw)
To: Maciej Purski
Cc: Mark Rutland, devicetree, linux-samsung-soc,
Bartlomiej Zolnierkiewicz, David Airlie, Seung-Woo Kim,
linux-kernel, dri-devel, Kyungmin Park, Thierry Reding,
Kukjin Kim, Krzysztof Kozlowski, Marek Szyprowski,
linux-arm-kernel, Laurent Pinchart
In-Reply-To: <1527682561-1386-6-git-send-email-m.purski@samsung.com>
On Wed, May 30, 2018 at 02:15:56PM +0200, Maciej Purski wrote:
> From: Andrzej Hajda <a.hajda@samsung.com>
"dt-bindings: display: ..." is preferred subject prefix.
>
> The patch adds bindings to BOE HV070-WSA WSVGA panel.
> Bindings are compatible with simple panel bindings.
>
> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
> Signed-off-by: Maciej Purski <m.purski@samsung.com>
> ---
> .../devicetree/bindings/display/panel/boe,hv070wsa-100.txt | 7 +++++++
> 1 file changed, 7 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/display/panel/boe,hv070wsa-100.txt
>
> diff --git a/Documentation/devicetree/bindings/display/panel/boe,hv070wsa-100.txt b/Documentation/devicetree/bindings/display/panel/boe,hv070wsa-100.txt
> new file mode 100644
> index 0000000..bfc20ac
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/panel/boe,hv070wsa-100.txt
> @@ -0,0 +1,7 @@
> +BOE HV070WSA-100 7.01" WSVGA TFT LCD panel
> +
> +Required properties:
> +- compatible: should be "boe,hv070wsa-100"
> +
> +This binding is compatible with the simple-panel binding, which is specified
> +in simple-panel.txt in this directory.
You have to state exactly which properties apply. Does this panel have a
backlight? 1 supply, 2 supplies, no supplies?
Rob
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply
* Re: [PATCH v2 4/8] dt-bindings: gnss: add u-blox binding
From: Rob Herring @ 2018-05-31 3:58 UTC (permalink / raw)
To: Johan Hovold
Cc: Greg Kroah-Hartman, Mark Rutland, Andreas Kemnade, Arnd Bergmann,
H . Nikolaus Schaller, Pavel Machek, Marcel Holtmann,
Sebastian Reichel, Tony Lindgren, linux-kernel, devicetree
In-Reply-To: <20180530103242.20773-5-johan@kernel.org>
On Wed, May 30, 2018 at 12:32:38PM +0200, Johan Hovold wrote:
> Add binding for u-blox GNSS receivers.
>
> Note that the u-blox product names encodes form factor (e.g. "neo"),
> chipset (e.g. "8") and variant (e.g. "q"), but that only formfactor and
> chipset is used for the compatible strings (for now).
>
> Signed-off-by: Johan Hovold <johan@kernel.org>
> ---
> .../devicetree/bindings/gnss/u-blox.txt | 44 +++++++++++++++++++
> .../devicetree/bindings/vendor-prefixes.txt | 1 +
> 2 files changed, 45 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/gnss/u-blox.txt
>
> diff --git a/Documentation/devicetree/bindings/gnss/u-blox.txt b/Documentation/devicetree/bindings/gnss/u-blox.txt
> new file mode 100644
> index 000000000000..caef9ace0b0c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gnss/u-blox.txt
> @@ -0,0 +1,44 @@
> +u-blox GNSS Receiver DT binding
> +
> +The u-blox GNSS receivers can use UART, DDC (I2C), SPI and USB interfaces.
> +
> +Please see Documentation/devicetree/bindings/gnss/gnss.txt for generic
> +properties.
> +
> +Required properties:
> +
> +- compatible : Must be one of
mixture of space and tab here.
> +
> + "u-blox,neo-8"
> + "u-blox,neo-m8"
> +
> +- vcc-supply : Main voltage regulator
> +
> +Required properties (DDC):
> +- reg : DDC (I2C) slave address
> +
> +Required properties (SPI):
> +- reg : SPI chip select address
> +
> +Required properties (USB):
> +- reg : Number of the USB hub port or the USB host-controller port
> + to which this device is attached
> +
> +Optional properties:
> +
> +- timepulse-gpios : Time pulse GPIO
> +- u-blox,extint-gpios : External interrupt GPIO
This should be interrupts property instead of a gpio.
> +- v-bckp-supply : Backup voltage regulator
> +
> +Example:
> +
> +serial@1234 {
> + compatible = "ns16550a";
> +
> + gnss {
> + compatible = "u-blox,neo-8";
> +
> + v-bckp-supply = <&gnss_v_bckp_reg>;
> + vcc-supply = <&gnss_vcc_reg>;
> + };
> +};
> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
> index b5f978a4cac6..2128dfdf73f1 100644
> --- a/Documentation/devicetree/bindings/vendor-prefixes.txt
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
> @@ -374,6 +374,7 @@ tronsmart Tronsmart
> truly Truly Semiconductors Limited
> tsd Theobroma Systems Design und Consulting GmbH
> tyan Tyan Computer Corporation
> +u-blox u-blox
> ucrobotics uCRobotics
> ubnt Ubiquiti Networks
> udoo Udoo
> --
> 2.17.0
>
^ permalink raw reply
* Re: [PATCH v2 12/12] coresight: tmc: Add configuration support for trace buffer size
From: Rob Herring @ 2018-05-31 3:55 UTC (permalink / raw)
To: Suzuki K Poulose
Cc: linux-arm-kernel, linux-kernel, mathieu.poirier, mike.leach,
robert.walker, coresight, devicetree, frowand.list
In-Reply-To: <1527599737-28408-13-git-send-email-suzuki.poulose@arm.com>
On Tue, May 29, 2018 at 02:15:37PM +0100, Suzuki K Poulose wrote:
> Now that we can dynamically switch between contiguous memory and
> SG table depending on the trace buffer size, provide the support
> for selecting an appropriate buffer size.
>
> Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
> ---
> .../ABI/testing/sysfs-bus-coresight-devices-tmc | 8 ++++++
> .../devicetree/bindings/arm/coresight.txt | 3 +-
Acked-by: Rob Herring <robh@kernel.org>
> drivers/hwtracing/coresight/coresight-tmc.c | 33 ++++++++++++++++++++++
> 3 files changed, 43 insertions(+), 1 deletion(-)
^ permalink raw reply
* Re: [PATCH v2 1/6] soc: qcom: rpmpd: Add a powerdomain driver to model corners
From: Rajendra Nayak @ 2018-05-31 3:53 UTC (permalink / raw)
To: David Collins, Ulf Hansson
Cc: Viresh Kumar, Stephen Boyd, Andy Gross, devicetree, linux-arm-msm,
Linux Kernel Mailing List
In-Reply-To: <7432f626-69cd-3535-04bc-de42e0285d41@codeaurora.org>
Hi David,
On 05/30/2018 11:57 PM, David Collins wrote:
> Hello Rajendra,
>
> On 05/30/2018 03:14 AM, Rajendra Nayak wrote:
>> On 05/30/2018 02:47 PM, Ulf Hansson wrote:
>>> On 25 May 2018 at 12:01, Rajendra Nayak <rnayak@codeaurora.org> wrote:
> ...
>>>> + pm_genpd_init(&rpmpds[i]->pd, NULL, true);
>>>
>>> Question: Is there no hierarchical topology of the PM domains. No
>>> genpd subdomains?
>>
>> The hierarchy if any is all handled by the remote core (RPM in this case).
>> For Linux its just a flat view.
>
> There is one special case that we'll need to handle somehow. The APPS
> vlvl request for VDD_MX needs to be greater than or equal to the vlvl
> request for VDD_CX. Can you please add the necessary code to achieve
> this? RPMh hardware doesn't handle this hardware requirement due to
> concerns about modem use case latency.
Sure, I'll take a look at it.
>
> Please note that this is handled in a somewhat hacky manner [1] with the
> downstream rpmh-regulator driver by specifying VDD_MX as the parent of
> VDD_CX and VDD_MX_AO as the parent of VDD_CX_AO with a dropout voltage of
> -1. That way, enabling CX causes MX to be enabled and voltage level
> requests are propagated from CX to MX (the -1 is ignored because it is
> rounded up within the sparse vlvl numbering space).
I can't see how else to handle this but with a fake parent/child relation,
which also means we might need support to propagate performance states for
power domains up the parents, which I think was initially supported but
later dropped since we thought this wasn't needed for now.
We might need to take a re-look at it to support this usecase.
thanks,
Rajendra
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
^ permalink raw reply
* Re: [PATCH v2 5/9] PM / Domains: dt: Allow power-domain property to be a list of specifiers
From: Rob Herring @ 2018-05-31 3:53 UTC (permalink / raw)
To: Ulf Hansson
Cc: Rafael J . Wysocki, linux-pm, Greg Kroah-Hartman, Jon Hunter,
Geert Uytterhoeven, Todor Tomov, Rajendra Nayak, Viresh Kumar,
Vincent Guittot, Kevin Hilman, linux-kernel, linux-arm-kernel,
linux-tegra, devicetree
In-Reply-To: <20180529100421.31022-6-ulf.hansson@linaro.org>
On Tue, May 29, 2018 at 12:04:17PM +0200, Ulf Hansson wrote:
> To be able to describe topologies where devices are partitioned across
> multiple power domains, let's extend the power-domain property to allow
> being a list of PM domain specifiers.
>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: devicetree@vger.kernel.org
> Suggested-by: Jon Hunter <jonathanh@nvidia.com>
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
> ---
>
> Changes in v2:
> - Fixed comments from Geert. Re-worded to "PM domain specifiers" and
> clarified DT example.
>
> ---
> .../bindings/power/power_domain.txt | 19 ++++++++++++++-----
> 1 file changed, 14 insertions(+), 5 deletions(-)
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply
* Re: [PATCH V2 3/4] Documentation: sdhci-msm: Add new compatible string for SDCC v5
From: Rob Herring @ 2018-05-31 3:52 UTC (permalink / raw)
To: Vijay Viswanath
Cc: adrian.hunter, ulf.hansson, mark.rutland, linux-mmc, linux-kernel,
shawn.lin, linux-arm-msm, georgi.djakov, devicetree, asutoshd,
stummala, venkatg, jeremymc, bjorn.andersson, riteshh, vbadigan,
dianders, sayalil
In-Reply-To: <1527587561-27448-4-git-send-email-vviswana@codeaurora.org>
On Tue, May 29, 2018 at 03:22:40PM +0530, Vijay Viswanath wrote:
> From: Sayali Lokhande <sayalil@codeaurora.org>
>
> For SDCC version 5.0.0 and higher, new compatible string
> "qcom,sdhci-msm-v5" is added.
>
> Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
> Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
> ---
> Documentation/devicetree/bindings/mmc/sdhci-msm.txt | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply
* Re: [PATCH v2 2/6] mtd: rawnand: tegra: add devicetree binding
From: Rob Herring @ 2018-05-31 3:45 UTC (permalink / raw)
To: Miquel Raynal
Cc: Stefan Agner, boris.brezillon, dwmw2, computersforpeace,
marek.vasut, mark.rutland, thierry.reding, mturquette, sboyd, dev,
richard, marcel, krzk, digetx, benjamin.lindqvist, jonathanh,
pdeschrijver, pgaikwad, mirza.krak, linux-mtd, linux-tegra,
devicetree, linux-kernel, linux-clk
In-Reply-To: <20180528002354.45025afd@xps13>
On Mon, May 28, 2018 at 12:23:54AM +0200, Miquel Raynal wrote:
> Hi Stefan,
>
> On Sun, 27 May 2018 23:54:38 +0200, Stefan Agner <stefan@agner.ch>
> wrote:
>
> > From: Lucas Stach <dev@lynxeye.de>
> >
> > This adds the devicetree binding for the Tegra 2 NAND flash
> > controller.
> >
> > Signed-off-by: Lucas Stach <dev@lynxeye.de>
> > Signed-off-by: Stefan Agner <stefan@agner.ch>
> > ---
> > .../bindings/mtd/nvidia,tegra20-nand.txt | 62 +++++++++++++++++++
> > 1 file changed, 62 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/mtd/nvidia,tegra20-nand.txt
> >
> > diff --git a/Documentation/devicetree/bindings/mtd/nvidia,tegra20-nand.txt b/Documentation/devicetree/bindings/mtd/nvidia,tegra20-nand.txt
> > new file mode 100644
> > index 000000000000..49e472af1b39
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/mtd/nvidia,tegra20-nand.txt
> > @@ -0,0 +1,62 @@
> > +NVIDIA Tegra NAND Flash controller
> > +
> > +Required properties:
> > +- compatible: Must be one of:
>
> Nitpick: just put the compatible here as there is only one?
No, this is how I ask people to format it.
Rob
^ permalink raw reply
* Re: [PATCH v2 3/4] dt-bindings: soc: Add TmFifo binding for Mellanox BlueField SoC
From: Rob Herring @ 2018-05-31 3:43 UTC (permalink / raw)
To: Liming Sun
Cc: devicetree, David Woods, Arnd Bergmann, Olof Johansson,
Robin Murphy, linux-arm-kernel
In-Reply-To: <1527279436-14773-3-git-send-email-lsun@mellanox.com>
On Fri, May 25, 2018 at 04:17:15PM -0400, Liming Sun wrote:
Commit msg?
> Reviewed-by: David Woods <dwoods@mellanox.com>
> Signed-off-by: Liming Sun <lsun@mellanox.com>
> ---
> .../devicetree/bindings/soc/mellanox/tmfifo.txt | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/soc/mellanox/tmfifo.txt
>
> diff --git a/Documentation/devicetree/bindings/soc/mellanox/tmfifo.txt b/Documentation/devicetree/bindings/soc/mellanox/tmfifo.txt
> new file mode 100644
> index 0000000..0a362f5
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/mellanox/tmfifo.txt
> @@ -0,0 +1,20 @@
> +* Mellanox BlueField SoC TmFifo
> +
> +BlueField TmFifo provides a shared FIFO between the target and the
> +external host machine, which can be accessed via USB or PCIe.
A FIFO for what? I'd like to find a better spot than bindings/soc/
> +
> +Required properties:
> +
> +- compatible: Should be "mellanox,bf-tmfifo"
> +- reg: Physical base address and length of Rx/Tx block
> +- interrupts: The interrupt number of Rx low water mark, Rx high water mark
> + Tx low water mark, Tx high water mark respectively.
> +
> +Example:
> +
> +tmfifo@800a20 {
> + compatible = "mellanox,bf-tmfifo";
> + reg = <0x00800a20 0x00000018
> + 0x00800a40 0x00000018>;
> + interrupts = <41, 42, 43, 44>;
> +};
> --
> 1.8.3.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply
* Re: [PATCH v2 3/4] dt-bindings: new binding for Ilitek ILI9341 display panels
From: Rob Herring @ 2018-05-31 3:39 UTC (permalink / raw)
To: David Lechner
Cc: Mark Rutland, devicetree, limor, linux-kernel, dri-devel,
Nitin Patil
In-Reply-To: <c4ee580a-4adf-278f-1be4-be4e5cb53660@lechnology.com>
On Fri, May 25, 2018 at 03:14:33PM -0500, David Lechner wrote:
> On 05/25/2018 02:36 PM, David Lechner wrote:
> > This adds a new binding for Ilitek ILI9341 display panels. It includes
> > a compatible string for one display (more can be added in the future).
> >
> > The vendor prefix "noname" is used because the vendor is not known.
>
> Looks like I forgot to update "noname" to "adafruit" in the commit message.
> Patch is as intended though.
Other than that,
Reviewed-by: Rob Herring <robh@kernel.org>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply
* Re: [PATCH v2 2/4] dt-bindings: Add vendor prefix for Adafruit
From: Rob Herring @ 2018-05-31 3:38 UTC (permalink / raw)
To: David Lechner
Cc: Mark Rutland, devicetree, limor, linux-kernel, dri-devel,
Nitin Patil
In-Reply-To: <20180525193623.15533-3-david@lechnology.com>
On Fri, May 25, 2018 at 02:36:21PM -0500, David Lechner wrote:
> This adds a device tree vendor prefix for Adafruit Industries, LLC.
>
> Signed-off-by: David Lechner <david@lechnology.com>
> ---
> Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
> 1 file changed, 1 insertion(+)
Acked-by: Rob Herring <robh@kernel.org>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply
* Re: [PATCH v2 1/2] dts: clk: add devicetree bindings for MAX9485
From: Rob Herring @ 2018-05-31 3:37 UTC (permalink / raw)
To: Daniel Mack; +Cc: mturquette, sboyd, linux-clk, devicetree
In-Reply-To: <20180525182058.25969-2-daniel@zonque.org>
On Fri, May 25, 2018 at 08:20:57PM +0200, Daniel Mack wrote:
> This patch adds the devicetree bindings for MAX9485, a programmable audio
> clock generator.
>
> Signed-off-by: Daniel Mack <daniel@zonque.org>
> ---
> .../devicetree/bindings/clock/maxim,max9485.txt | 59 ++++++++++++++++++++++
> include/dt-bindings/clock/maxim,max9485.h | 18 +++++++
> 2 files changed, 77 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/clock/maxim,max9485.txt
> create mode 100644 include/dt-bindings/clock/maxim,max9485.h
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply
* Re: [PATCH v2.2 2/2] smiapp: Support the "rotation" property
From: Rob Herring @ 2018-05-31 3:35 UTC (permalink / raw)
To: Sakari Ailus; +Cc: linux-media, devicetree, andy.yeh, sebastian.reichel
In-Reply-To: <20180525135235.12386-1-sakari.ailus@linux.intel.com>
On Fri, May 25, 2018 at 04:52:35PM +0300, Sakari Ailus wrote:
> Use the "rotation" property to tell that the sensor is mounted upside
> down. This reverses the behaviour of the VFLIP and HFLIP controls as well
> as the pixel order.
>
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> ---
> since v2.2:
>
> - Fix property name in code.
>
> .../devicetree/bindings/media/i2c/nokia,smia.txt | 2 ++
Acked-by: Rob Herring <robh@kernel.org>
> drivers/media/i2c/smiapp/smiapp-core.c | 16 ++++++++++++++++
> 2 files changed, 18 insertions(+)
^ permalink raw reply
* Re: [PATCH v2 1/2] dt-bindings: media: Define "rotation" property for sensors
From: Rob Herring @ 2018-05-31 3:33 UTC (permalink / raw)
To: Sakari Ailus; +Cc: linux-media, devicetree, andy.yeh, sebastian.reichel
In-Reply-To: <20180525122726.3409-2-sakari.ailus@linux.intel.com>
On Fri, May 25, 2018 at 03:27:25PM +0300, Sakari Ailus wrote:
> Sensors are occasionally mounted upside down to systems such as mobile
> phones or tablets. In order to use such a sensor without having to turn
> every image upside down, most camera sensors support reversing the readout
> order by setting both horizontal and vertical flipping.
>
> This patch documents the "rotation" property for camera sensors, mirroring
> what is defined for displays in
> Documentation/devicetree/bindings/display/panel/panel.txt .
>
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> ---
> Documentation/devicetree/bindings/media/video-interfaces.txt | 4 ++++
> 1 file changed, 4 insertions(+)
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply
* Re: [PATCH v2 1/2] slimbus: ngd: dt-bindings: Add slim ngd dt bindings
From: Rob Herring @ 2018-05-31 3:32 UTC (permalink / raw)
To: Srinivas Kandagatla
Cc: gregkh, kramasub, sdharia, girishm, linux-kernel, mark.rutland,
bgoswami, devicetree, broonie, linux-arm-msm, alsa-devel
In-Reply-To: <20180525111547.18556-2-srinivas.kandagatla@linaro.org>
On Fri, May 25, 2018 at 12:15:46PM +0100, Srinivas Kandagatla wrote:
> This patch adds bindings for Qualcomm SLIMBus NGD controller.
> SLIMBus NGD controller is a light-weight driver responsible for
> communicating with SLIMBus slaves directly over the bus using messaging
> interface and communicating with master component residing on ADSP for
> bandwidth and data-channel management
>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> ---
> .../bindings/slimbus/slim-ngd-qcom-ctrl.txt | 84 ++++++++++++++++++++++
> 1 file changed, 84 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/slimbus/slim-ngd-qcom-ctrl.txt
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply
* Re: [PATCH v2 5/6] soc: qcom: rpmh powerdomain driver
From: Rob Herring @ 2018-05-31 3:31 UTC (permalink / raw)
To: Rajendra Nayak
Cc: viresh.kumar, sboyd, andy.gross, ulf.hansson, devicetree,
linux-arm-msm, linux-kernel, collinsd
In-Reply-To: <20180525100121.28214-6-rnayak@codeaurora.org>
On Fri, May 25, 2018 at 03:31:20PM +0530, Rajendra Nayak wrote:
> The RPMh powerdomain driver aggregates the corner votes from various
> consumers for the ARC resources and communicates it to RPMh.
>
> We also add data for all powerdomains on sdm845 as part of the patch.
> The driver can be extended to support other SoCs which support RPMh
>
> Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
> ---
> .../devicetree/bindings/power/qcom,rpmhpd.txt | 65 ++++
> drivers/soc/qcom/Kconfig | 9 +
> drivers/soc/qcom/Makefile | 1 +
> drivers/soc/qcom/rpmhpd.c | 360 ++++++++++++++++++
> 4 files changed, 435 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/power/qcom,rpmhpd.txt
> create mode 100644 drivers/soc/qcom/rpmhpd.c
>
> diff --git a/Documentation/devicetree/bindings/power/qcom,rpmhpd.txt b/Documentation/devicetree/bindings/power/qcom,rpmhpd.txt
> new file mode 100644
> index 000000000000..c1fa986c12ee
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/qcom,rpmhpd.txt
> @@ -0,0 +1,65 @@
> +Qualcomm RPMh Powerdomains
> +
> +* For RPMh powerdomains, we communicate a performance state to RPMh
> +which then translates it into a corresponding voltage on a rail
> +
> +Required Properties:
> + - compatible: Should be one of the following
> + * qcom,sdm845-rpmhpd: RPMh powerdomain for the sdm845 family of SoC
> + - power-domain-cells: number of cells in power domain specifier
> + must be 1
> + - operating-points-v2: Phandle to the OPP table for the power-domain.
> + Refer to Documentation/devicetree/bindings/power/power_domain.txt
> + and Documentation/devicetree/bindings/opp/qcom-opp.txt for more details
> +
> +Example:
> +
> + rpmhpd: power-controller {
> + compatible = "qcom,sdm845-rpmhpd";
> + #power-domain-cells = <1>;
> + operating-points-v2 = <&rpmhpd_opp_table>,
> + <&rpmhpd_opp_table>,
> + <&rpmhpd_opp_table>,
> + <&rpmhpd_opp_table>,
> + <&rpmhpd_opp_table>,
> + <&rpmhpd_opp_table>,
> + <&rpmhpd_opp_table>,
> + <&rpmhpd_opp_table>,
> + <&rpmhpd_opp_table>;
> + };
> +
> + rpmhpd_opp_table: opp-table {
> + compatible = "operating-points-v2-qcom-level", "operating-points-v2";
> +
> + rpmhpd_opp1: opp@1 {
> + qcom-corner = <16>;
Is it corner or level?
> + };
> +
> + rpmhpd_opp2: opp@2 {
> + qcom-corner = <48>;
> + };
> +
> + rpmhpd_opp3: opp@3 {
> + qcom-corner = <64>;
> + };
> +
> + rpmhpd_opp4: opp@4 {
> + qcom-corner = <128>;
> + };
> +
> + rpmhpd_opp5: opp@5 {
> + qcom-corner = <192>;
> + };
> +
> + rpmhpd_opp6: opp@6 {
> + qcom-corner = <256>;
> + };
> +
> + rpmhpd_opp7: opp@7 {
> + qcom-corner = <320>;
> + };
> +
> + rpmhpd_opp8: opp@8 {
> + qcom-corner = <416>;
> + };
> + };
^ permalink raw reply
page: next (older) | prev (newer) | latest
- recent:[subjects (threaded)|topics (new)|topics (active)]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox