From: Shawn Guo <shawnguo@kernel.org>
To: Frank Li <Frank.Li@nxp.com>
Cc: han.xu@nxp.com, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
NXP Linux Team <linux-imx@nxp.com>,
Dong Aisheng <aisheng.dong@nxp.com>, Peng Fan <peng.fan@nxp.com>,
Shenwei Wang <shenwei.wang@nxp.com>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
"moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE"
<linux-arm-kernel@lists.infradead.org>,
open list <linux-kernel@vger.kernel.org>,
imx@lists.linux.dev
Subject: Re: [PATCH 1/3] arm64: dts: imx8dxl: add adc0 and adc1 support
Date: Fri, 11 Nov 2022 14:53:49 +0800 [thread overview]
Message-ID: <20221111065349.GN2649582@dragon> (raw)
In-Reply-To: <20221104192135.1661541-1-Frank.Li@nxp.com>
On Fri, Nov 04, 2022 at 03:21:25PM -0400, Frank Li wrote:
> There are two adc controller in 8dxl.
> Add adc node at common dma subsystem.
> Enable adc0 at imx8dxl_evk boards dts.
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> .../arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 52 +++++++++++++++++++
> arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 12 +++++
Could you make a split between board and SoC changes?
Shawn
> .../boot/dts/freescale/imx8dxl-ss-adma.dtsi | 4 ++
> 3 files changed, 68 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi
> index d7b4229bb4a2..bdbb660c2682 100644
> --- a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi
> @@ -156,6 +156,34 @@ i2c3: i2c@5a830000 {
> status = "disabled";
> };
>
> + adc0: adc@5a880000 {
> + compatible = "nxp,imx8qxp-adc";
> + reg = <0x5a880000 0x10000>;
> + interrupts = <GIC_SPI 240 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-parent = <&gic>;
> + clocks = <&adc0_lpcg 0>,
> + <&adc0_lpcg 1>;
> + clock-names = "per", "ipg";
> + assigned-clocks = <&clk IMX_SC_R_ADC_0 IMX_SC_PM_CLK_PER>;
> + assigned-clock-rates = <24000000>;
> + power-domains = <&pd IMX_SC_R_ADC_0>;
> + status = "disabled";
> + };
> +
> + adc1: adc@5a890000 {
> + compatible = "nxp,imx8qxp-adc";
> + reg = <0x5a890000 0x10000>;
> + interrupts = <GIC_SPI 241 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-parent = <&gic>;
> + clocks = <&adc1_lpcg 0>,
> + <&adc1_lpcg 1>;
> + clock-names = "per", "ipg";
> + assigned-clocks = <&clk IMX_SC_R_ADC_1 IMX_SC_PM_CLK_PER>;
> + assigned-clock-rates = <24000000>;
> + power-domains = <&pd IMX_SC_R_ADC_1>;
> + status = "disabled";
> + };
> +
> i2c0_lpcg: clock-controller@5ac00000 {
> compatible = "fsl,imx8qxp-lpcg";
> reg = <0x5ac00000 0x10000>;
> @@ -203,4 +231,28 @@ i2c3_lpcg: clock-controller@5ac30000 {
> "i2c3_lpcg_ipg_clk";
> power-domains = <&pd IMX_SC_R_I2C_3>;
> };
> +
> + adc0_lpcg: clock-controller@5ac80000 {
> + compatible = "fsl,imx8qxp-lpcg";
> + reg = <0x5ac80000 0x10000>;
> + #clock-cells = <1>;
> + clocks = <&clk IMX_SC_R_ADC_0 IMX_SC_PM_CLK_PER>,
> + <&dma_ipg_clk>;
> + clock-indices = <IMX_LPCG_CLK_0>, <IMX_LPCG_CLK_4>;
> + clock-output-names = "adc0_lpcg_clk",
> + "adc0_lpcg_ipg_clk";
> + power-domains = <&pd IMX_SC_R_ADC_0>;
> + };
> +
> + adc1_lpcg: clock-controller@5ac90000 {
> + compatible = "fsl,imx8qxp-lpcg";
> + reg = <0x5ac90000 0x10000>;
> + #clock-cells = <1>;
> + clocks = <&clk IMX_SC_R_ADC_1 IMX_SC_PM_CLK_PER>,
> + <&dma_ipg_clk>;
> + clock-indices = <IMX_LPCG_CLK_0>, <IMX_LPCG_CLK_4>;
> + clock-output-names = "adc1_lpcg_clk",
> + "adc1_lpcg_ipg_clk";
> + power-domains = <&pd IMX_SC_R_ADC_1>;
> + };
> };
> diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
> index fc9647ea50e9..11b1ff90c06d 100644
> --- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
> @@ -91,6 +91,13 @@ reg_usdhc2_vmmc: regulator-3 {
> off-on-delay-us = <3480>;
> };
>
> + reg_vref_1v8: regulator-adc-vref {
> + compatible = "regulator-fixed";
> + regulator-name = "vref_1v8";
> + regulator-min-microvolt = <1800000>;
> + regulator-max-microvolt = <1800000>;
> + };
> +
> mii_select: regulator-4 {
> compatible = "regulator-fixed";
> regulator-name = "mii-select";
> @@ -102,6 +109,11 @@ mii_select: regulator-4 {
> };
> };
>
> +&adc0 {
> + vref-supply = <®_vref_1v8>;
> + status = "okay";
> +};
> +
> &eqos {
> pinctrl-names = "default";
> pinctrl-0 = <&pinctrl_eqos>;
> diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-ss-adma.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl-ss-adma.dtsi
> index 795d1d472fae..ac3362e32811 100644
> --- a/arch/arm64/boot/dts/freescale/imx8dxl-ss-adma.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8dxl-ss-adma.dtsi
> @@ -11,6 +11,10 @@ &dma_ipg_clk {
> clock-frequency = <160000000>;
> };
>
> +&adc0 {
> + interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> &i2c0 {
> compatible = "fsl,imx8dxl-lpi2c", "fsl,imx8qxp-lpi2c", "fsl,imx7ulp-lpi2c";
> interrupts = <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>;
> --
> 2.34.1
>
prev parent reply other threads:[~2022-11-11 6:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-04 19:21 [PATCH 1/3] arm64: dts: imx8dxl: add adc0 and adc1 support Frank Li
2022-11-04 19:21 ` [PATCH 2/3] arm64: dts: imx8dxl: add flexspi support Frank Li
2022-11-04 19:21 ` [PATCH 3/3] arm64: dts: imx8dxl: add lpspi support Frank Li
2022-11-04 19:25 ` [PATCH 0/3] add adc0 flexspi lpspi to 8dxl evk board dts Frank Li
2022-11-11 6:53 ` Shawn Guo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221111065349.GN2649582@dragon \
--to=shawnguo@kernel.org \
--cc=Frank.Li@nxp.com \
--cc=aisheng.dong@nxp.com \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=han.xu@nxp.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peng.fan@nxp.com \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shenwei.wang@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).