From: Nishanth Menon <nm@ti.com>
To: Francesco Dolcini <francesco@dolcini.it>
Cc: Vignesh Raghavendra <vigneshr@ti.com>,
Francesco Dolcini <francesco.dolcini@toradex.com>,
Tero Kristo <kristo@kernel.org>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v1 3/5] arm64: dts: ti: add verdin am62
Date: Tue, 30 May 2023 07:10:44 -0500 [thread overview]
Message-ID: <20230530121044.sjhv452b4hs4lyiy@flyer> (raw)
In-Reply-To: <20230524143631.42471-4-francesco@dolcini.it>
On 16:36-20230524, Francesco Dolcini wrote:
[...]
> diff --git a/arch/arm64/boot/dts/ti/k3-am62-verdin-dev.dtsi b/arch/arm64/boot/dts/ti/k3-am62-verdin-dev.dtsi
> new file mode 100644
> index 000000000000..e138b1c8ed14
> --- /dev/null
> +++ b/arch/arm64/boot/dts/ti/k3-am62-verdin-dev.dtsi
> @@ -0,0 +1,233 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
> +/*
> + * Copyright 2023 Toradex
Please also add appropriate product links to dts/dtsi
> + */
> +
> +/ {
> + sound_card: sound-card {
> + compatible = "simple-audio-card";
> + simple-audio-card,bitclock-master = <&dailink_master>;
> + simple-audio-card,format = "i2s";
> + simple-audio-card,frame-master = <&dailink_master>;
> + simple-audio-card,name = "verdin-nau8822";
> + simple-audio-card,routing =
> + "Headphones", "LHP",
> + "Headphones", "RHP",
> + "Speaker", "LSPK",
> + "Speaker", "RSPK",
> + "Line Out", "AUXOUT1",
> + "Line Out", "AUXOUT2",
> + "LAUX", "Line In",
> + "RAUX", "Line In",
> + "LMICP", "Mic In",
> + "RMICP", "Mic In";
> + simple-audio-card,widgets =
> + "Headphones", "Headphones",
> + "Line Out", "Line Out",
> + "Speaker", "Speaker",
> + "Microphone", "Mic In",
> + "Line", "Line In";
> +
> + dailink_master: simple-audio-card,codec {
> + clocks = <&k3_clks 157 10>;
> + sound-dai = <&nau8822_1a>;
> + };
> +
> + simple-audio-card,cpu {
> + sound-dai = <&mcasp0>;
> + };
> + };
> +};
> +
> +/* Verdin ETHs */
> +&cpsw3g {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_rgmii1 &pinctrl_rgmii2>;
here and elsewhere:
pinctrl-0 = <&pinctrl_rgmii1>, <&pinctrl_rgmii2>;
> + status = "okay";
> +};
[...]
> + /* EEPROM */
> + eeprom@57 {
> + compatible = "st,24c02", "atmel,24c02";
checkpatch warns: DT compatible string "st,24c02" appears un-documented
> + reg = <0x57>;
> + pagesize = <16>;
> + };
> +};
> +
> +/* Verdin I2C_2_DSI */
> +&main_i2c2 {
> + status = "okay";
Here and few other dtsis:
you should set status along with pinmux.
[...]
> +
> +/* Verdin UART_2 */
> +&wkup_uart0 {
> + /* FIXME: WKUP UART0 is used by DM firmware */
> + status = "reserved";
If you do configure this in R5 SPL, you'd want to add the pinmux as
well.
> +};
> diff --git a/arch/arm64/boot/dts/ti/k3-am62-verdin-wifi.dtsi b/arch/arm64/boot/dts/ti/k3-am62-verdin-wifi.dtsi
> new file mode 100644
> index 000000000000..289db1666fc0
> --- /dev/null
> +++ b/arch/arm64/boot/dts/ti/k3-am62-verdin-wifi.dtsi
> @@ -0,0 +1,36 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
> +/*
> + * Copyright 2023 Toradex
> + */
> +
> +/ {
> + wifi_pwrseq: wifi-pwrseq {
> + compatible = "mmc-pwrseq-simple";
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_wifi_en>;
> + reset-gpios = <&main_gpio0 22 GPIO_ACTIVE_LOW>;
> + };
> +};
> +
> +
Drop extra EoLs.
[...]
> diff --git a/arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi b/arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi
> new file mode 100644
> index 000000000000..2e7cb607df45
> --- /dev/null
> +++ b/arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi
> @@ -0,0 +1,1400 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
Assuming you really intent this instead of purely GPL-2.0
[...]
> +/* MDIO, shared by Verdin ETH_1 (On-module PHY) and Verdin ETH_2_RGMII */
> +&cpsw3g_mdio {
> + assigned-clocks = <&k3_clks 157 20>;
> + assigned-clock-parents = <&k3_clks 157 22>;
> + assigned-clock-rates = <25000000>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_eth_clock &pinctrl_mdio>;
> + status = "disabled";
> +
> + cpsw3g_phy0: ethernet-phy@0 {
> + compatible = "ethernet-phy-id2000.a231";
Check binding - we don't include any compatibles that dont have yaml
conversion done (pinctrl is the only exception).
[...]
> +/* TODO: Verdin DSI_1 / TIDSS */
Drop the TODO.
[...]
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-05-30 12:11 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-24 14:36 [PATCH v1 0/5] Add Toradex Verdin AM62 Francesco Dolcini
2023-05-24 14:36 ` [PATCH v1 1/5] dt-bindings: arm: ti: add toradex,verdin-am62 et al Francesco Dolcini
2023-05-24 17:48 ` Andrew Davis
2023-05-24 19:10 ` Nishanth Menon
2023-05-24 19:20 ` Francesco Dolcini
2023-05-31 8:29 ` Krzysztof Kozlowski
2023-05-24 19:15 ` Conor Dooley
2023-05-30 12:12 ` Nishanth Menon
2023-05-30 16:58 ` Francesco Dolcini
2023-05-24 14:36 ` [PATCH v1 2/5] arm64: defconfig: enable drivers for Verdin AM62 Francesco Dolcini
2023-05-24 14:36 ` [PATCH v1 3/5] arm64: dts: ti: add verdin am62 Francesco Dolcini
2023-05-30 10:18 ` Francesco Dolcini
2023-05-30 12:10 ` Nishanth Menon [this message]
2023-05-30 13:31 ` Raghavendra, Vignesh
2023-05-30 16:36 ` Francesco Dolcini
2023-05-30 16:53 ` Nishanth Menon
2023-05-30 17:17 ` Francesco Dolcini
2023-05-24 14:36 ` [PATCH v1 4/5] arm64: dts: ti: add verdin am62 dahlia Francesco Dolcini
2023-05-24 14:36 ` [PATCH v1 5/5] arm64: dts: ti: add verdin am62 yavia Francesco Dolcini
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=20230530121044.sjhv452b4hs4lyiy@flyer \
--to=nm@ti.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=francesco.dolcini@toradex.com \
--cc=francesco@dolcini.it \
--cc=kristo@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=vigneshr@ti.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