From: Gary Bisson <gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
To: Shawn Guo <shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Sascha Hauer <kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
fabio.estevam-3arQi8VN3Tc@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
Michael Turquette
<mturquette-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>,
Troy Kisky
<troy.kisky-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
Subject: Re: [PATCH v3 4/9] ARM: dts: imx: add Boundary Devices Nitrogen7 board
Date: Thu, 7 Apr 2016 12:07:23 +0200 [thread overview]
Message-ID: <CAAMH-yu+wKKV_K3qXQoS43T9uOzSWWNO-++055QZyLZpS8Pc2w@mail.gmail.com> (raw)
In-Reply-To: <20160406141555.GL18833@tiger>
HI Shawn,
On Wed, Apr 6, 2016 at 4:15 PM, Shawn Guo <shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> On Sat, Apr 02, 2016 at 06:25:46PM +0200, Gary Bisson wrote:
>> Based on i.MX7 Dual with 1GB of RAM.
>>
>> https://boundarydevices.com/product/nitrogen7/
>>
>> Signed-off-by: Gary Bisson <gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
>> ---
>>
>> Changes v1 -> v2:
>> - none
>> Changes v2 -> v3:
>> - Fix Nitrogen7 BT UART clock parent
>> - Fix Nitrogen7 lvdo2 node to be always-on
>>
>> ---
>> arch/arm/boot/dts/Makefile | 1 +
>> arch/arm/boot/dts/imx7d-nitrogen7.dts | 819 ++++++++++++++++++++++++++++++++++
>> 2 files changed, 820 insertions(+)
>> create mode 100644 arch/arm/boot/dts/imx7d-nitrogen7.dts
>
> <snip>
>
>> +/ {
>> + model = "Boundary Devices i.MX7 Nitrogen7 Board";
>> + compatible = "boundary,imx7d-nitrogen7", "fsl,imx7d";
>> +
>> + aliases {
>> + fb_lcd = &lcdif;
>> + t_lcd = &t_lcd;
>> + };
>> +
>> + memory {
>> + reg = <0x80000000 0x40000000>;
>> + };
>> +
>> + backlight_j9 {
>
> Use hyphen instead of underscore in node name.
Sorry I forgot about that.
>> + compatible = "gpio-backlight";
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_backlight_j9>;
>> + gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
>> + default-on;
>> + };
>> +
>> + backlight_j20 {
>> + compatible = "pwm-backlight";
>> + pwms = <&pwm1 0 5000000>;
>> + brightness-levels = <0 4 8 16 32 64 128 255>;
>> + default-brightness-level = <6>;
>> + status = "okay";
>> + };
>> +
>> + regulators {
>> + compatible = "simple-bus";
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>
> DT maintainers do not like this fake "simple-bus". Please put all these
> fixed regulators directly under root node in the naming schema below.
>
> reg_xxx: regulator-xxx {
> ...
> };
Ok, good to know, will be fixed in v4.
>> +
>> + reg_usb_otg1_vbus: regulator@0 {
>> + compatible = "regulator-fixed";
>> + reg = <0>;
>> + regulator-name = "usb_otg1_vbus";
>> + regulator-min-microvolt = <5000000>;
>> + regulator-max-microvolt = <5000000>;
>> + gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>;
>> + enable-active-high;
>> + };
>
> <snip>
>
>> +&uart3 {
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_uart3>;
>> + assigned-clocks = <&clks IMX7D_UART3_ROOT_SRC>;
>> + assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>;
>> + control-gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
>> + uart-has-rs485-half-duplex;
>> + rs485-mode = <1>;
>
> The above 3 properties are undefined?
You're right, the mainline i.MX UART driver doesn't have those.
>> + status = "okay";
>> +};
>> +
>> +&uart6 {
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_uart6>;
>> + assigned-clocks = <&clks IMX7D_UART6_ROOT_SRC>;
>> + assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>;
>> + fsl,uart-has-rtscts;
>> + status = "okay";
>> +};
>> +
>> +&usbotg1 {
>> + vbus-supply = <®_usb_otg1_vbus>;
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_usbotg1>;
>> + status = "okay";
>> +};
>> +
>> +&usbotg2 {
>> + vbus-supply = <®_usb_otg2_vbus>;
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_usbotg2>;
>> + dr_mode = "host";
>> + status = "okay";
>> +};
>> +
>> +&usdhc1 {
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_usdhc1>;
>> + cd-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
>> + vmmc-supply = <&vgen3_reg>;
>> + bus-width = <4>;
>> + fsl,tuning-step = <2>;
>> + wakeup-source;
>> + keep-power-in-suspend;
>> + status = "okay";
>> +};
>> +
>> +&usdhc2 {
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_usdhc2>;
>> + bus-width = <4>;
>> + non-removable;
>> + vmmc-supply = <®_wlan>;
>> + vqmmc-1-8-v;
>
> Unsupported property?
Same here.
>> + cap-power-off-card;
>> + keep-power-in-suspend;
>> + status = "okay";
>> +
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>
> Move these two up to the top of property list.
Ok.
>> + wlcore: wlcore@2 {
>> + compatible = "ti,wl1271";
>> + reg = <2>;
>> + interrupt-parent = <&gpio4>;
>> + interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
>> + ref-clock-frequency = <38400000>;
>> + };
>> +};
>> +
>> +&usdhc3 {
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_usdhc3>;
>> + assigned-clocks = <&clks IMX7D_USDHC3_ROOT_CLK>;
>> + assigned-clock-rates = <400000000>;
>> + bus-width = <8>;
>> + fsl,tuning-step = <2>;
>> + non-removable;
>> + status = "okay";
>> +};
>> +
>> +&wdog1 {
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_wdog1>;
>> + status = "okay";
>> +};
>> +
>> +&iomuxc {
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_hog_1 &pinctrl_j2>;
>> +
>> + imx7d-nitrogen7 {
>
> Since commit 5fcdf6a7ed95 (pinctrl: imx: Allow parsing DT without
> function nodes), we can drop this container code to save one level of
> indentation.
Great, that will remove all the over 80 lines with checkpatch.
>> + pinctrl_hog_1: hoggrp-1 {
>> + fsl,pins = <
>> + MX7D_PAD_SD3_RESET_B__GPIO6_IO11 0x5d
>> + MX7D_PAD_GPIO1_IO13__GPIO1_IO13 0x7d
>> + MX7D_PAD_ECSPI2_MISO__GPIO4_IO22 0x7d
>> + >;
>> + };
>> +
>> + pinctrl_bt_rfkill: btrfkillgrp {
>> + fsl,pins = <
>> + MX7D_PAD_ECSPI2_SS0__GPIO4_IO23 0x7d
>> + >;
>> + };
>
> Drop unused pinctrl entries, and let's add it when needed.
Ok, makes sense.
>> +
>> + pinctrl_enet1: enet1grp {
>> + fsl,pins = <
>> + MX7D_PAD_GPIO1_IO10__ENET1_MDIO 0x3
>> + MX7D_PAD_GPIO1_IO11__ENET1_MDC 0x3
>> + MX7D_PAD_GPIO1_IO12__CCM_ENET_REF_CLK1 0x3
>> + MX7D_PAD_ENET1_RGMII_TXC__ENET1_RGMII_TXC 0x71
>> + MX7D_PAD_ENET1_RGMII_TD0__ENET1_RGMII_TD0 0x71
>> + MX7D_PAD_ENET1_RGMII_TD1__ENET1_RGMII_TD1 0x71
>> + MX7D_PAD_ENET1_RGMII_TD2__ENET1_RGMII_TD2 0x71
>> + MX7D_PAD_ENET1_RGMII_TD3__ENET1_RGMII_TD3 0x71
>> + MX7D_PAD_ENET1_RGMII_TX_CTL__ENET1_RGMII_TX_CTL 0x71
>> + MX7D_PAD_ENET1_RGMII_RXC__ENET1_RGMII_RXC 0x71
>> + MX7D_PAD_ENET1_RGMII_RD0__ENET1_RGMII_RD0 0x11
>> + MX7D_PAD_ENET1_RGMII_RD1__ENET1_RGMII_RD1 0x11
>> + MX7D_PAD_ENET1_RGMII_RD2__ENET1_RGMII_RD2 0x11
>> + MX7D_PAD_ENET1_RGMII_RD3__ENET1_RGMII_RD3 0x71
>> + MX7D_PAD_ENET1_RGMII_RX_CTL__ENET1_RGMII_RX_CTL 0x11
>> + MX7D_PAD_SD3_STROBE__GPIO6_IO10 0x75 /* Reset */
>> + >;
>> + };
>> +
>> + pinctrl_flash: flashgrp {
>
> Ditto
>
>> + fsl,pins = <
>> + MX7D_PAD_EPDC_DATA00__QSPI_A_DATA0 0x71
>> + MX7D_PAD_EPDC_DATA01__QSPI_A_DATA1 0x71
>> + MX7D_PAD_EPDC_DATA02__GPIO2_IO2 0x7d
>> + MX7D_PAD_EPDC_DATA03__GPIO2_IO3 0x7d
>> + MX7D_PAD_EPDC_DATA05__QSPI_A_SCLK 0x71
>> + MX7D_PAD_EPDC_DATA06__GPIO2_IO6 0x71
>> + >;
>> + };
>
> <snip>
>
>> +&iomuxc_lpsr {
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_hog_2>;
>> +
>> + imx7d-nitrogen7 {
>
> Drop this container node.
I'll submit a v4 shortly. I'll also make sure to do the same on the
6SX device tree.
Regards,
Gary
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-04-07 10:07 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-15 10:30 [PATCH 0/9] imx: add latest Boundary Devices boards support Gary Bisson
[not found] ` <1458037826-19375-1-git-send-email-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2016-03-15 10:30 ` [PATCH 1/9] ARM: dts: imx7d: add lcdif support Gary Bisson
2016-03-15 10:30 ` [PATCH 2/9] ARM: dts: imx7d: add flexcan support Gary Bisson
2016-03-15 10:30 ` [PATCH 3/9] clk: imx: add ckil clock for i.MX7 Gary Bisson
2016-03-15 10:30 ` [PATCH 4/9] ARM: dts: imx: add Boundary Devices Nitrogen7 board Gary Bisson
2016-03-15 10:30 ` [PATCH 5/9] ARM: dts: imx: add Boundary Devices Nitrogen6_MAX QP board Gary Bisson
2016-03-15 10:30 ` [PATCH 6/9] ARM: dts: imx: add Boundary Devices Nitrogen6_SoloX board Gary Bisson
[not found] ` <1458037826-19375-7-git-send-email-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2016-03-15 10:53 ` Vladimir Zapolskiy
[not found] ` <56E7E98F.5030902-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2016-03-15 10:58 ` Gary Bisson
2016-03-15 10:30 ` [PATCH 7/9] ARM: imx_v6_v7_defconfig: add FT5x06 and TSC2004 touch support Gary Bisson
2016-03-15 10:30 ` [PATCH 8/9] ARM: imx_v6_v7_defconfig: add CONFIG_I2C_MUX_GPIO Gary Bisson
2016-03-15 10:30 ` [PATCH 9/9] ARM: imx_v6_v7_defconfig: add CONFIG_RTC_DRV_M41T80 Gary Bisson
2016-03-15 14:04 ` [PATCH v2 0/9] imx: add latest Boundary Devices boards support Gary Bisson
[not found] ` <1458050668-26748-1-git-send-email-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2016-03-15 14:04 ` [PATCH v2 1/9] ARM: dts: imx7d: add lcdif support Gary Bisson
[not found] ` <1458050668-26748-2-git-send-email-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2016-04-02 1:29 ` Shawn Guo
2016-04-02 16:08 ` Gary Bisson
2016-03-15 14:04 ` [PATCH v2 2/9] ARM: dts: imx7d: add flexcan support Gary Bisson
[not found] ` <1458050668-26748-3-git-send-email-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2016-04-02 1:31 ` Shawn Guo
2016-04-02 16:10 ` Gary Bisson
2016-03-15 14:04 ` [PATCH v2 3/9] clk: imx: add ckil clock for i.MX7 Gary Bisson
2016-03-15 14:04 ` [PATCH v2 4/9] ARM: dts: imx: add Boundary Devices Nitrogen7 board Gary Bisson
2016-03-15 14:04 ` [PATCH v2 5/9] ARM: dts: imx: add Boundary Devices Nitrogen6_MAX QP board Gary Bisson
2016-03-15 14:04 ` [PATCH v2 6/9] ARM: dts: imx: add Boundary Devices Nitrogen6_SoloX board Gary Bisson
2016-03-15 14:04 ` [PATCH v2 7/9] ARM: imx_v6_v7_defconfig: add FT5x06 and TSC2004 touch support Gary Bisson
2016-03-15 14:04 ` [PATCH v2 8/9] ARM: imx_v6_v7_defconfig: add CONFIG_I2C_MUX_GPIO Gary Bisson
2016-03-15 14:04 ` [PATCH v2 9/9] ARM: imx_v6_v7_defconfig: add CONFIG_RTC_DRV_M41T80 Gary Bisson
2016-04-02 16:25 ` [PATCH v3 0/9] imx: add latest Boundary Devices boards support Gary Bisson
[not found] ` <1459614351-16731-1-git-send-email-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2016-04-02 16:25 ` [PATCH v3 1/9] ARM: dts: imx7d: add lcdif support Gary Bisson
[not found] ` <1459614351-16731-2-git-send-email-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2016-04-06 9:06 ` Shawn Guo
2016-04-02 16:25 ` [PATCH v3 2/9] ARM: dts: imx7d: add flexcan support Gary Bisson
2016-04-02 16:25 ` [PATCH v3 3/9] clk: imx: add ckil clock for i.MX7 Gary Bisson
2016-04-02 16:25 ` [PATCH v3 4/9] ARM: dts: imx: add Boundary Devices Nitrogen7 board Gary Bisson
[not found] ` <1459614351-16731-5-git-send-email-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2016-04-06 14:15 ` Shawn Guo
2016-04-07 10:07 ` Gary Bisson [this message]
2016-04-07 13:50 ` [PATCH v4] " Gary Bisson
[not found] ` <1460037057-23191-1-git-send-email-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2016-04-11 14:13 ` Shawn Guo
2016-04-02 16:25 ` [PATCH v3 5/9] ARM: dts: imx: add Boundary Devices Nitrogen6_MAX QP board Gary Bisson
[not found] ` <1459614351-16731-6-git-send-email-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2016-04-06 14:25 ` Shawn Guo
2016-04-02 16:25 ` [PATCH v3 6/9] ARM: dts: imx: add Boundary Devices Nitrogen6_SoloX board Gary Bisson
[not found] ` <1459614351-16731-7-git-send-email-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2016-04-07 13:52 ` [PATCH v4] " Gary Bisson
[not found] ` <1460037168-23292-1-git-send-email-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2016-04-11 14:31 ` Shawn Guo
2016-04-11 21:01 ` [PATCH v5] " Gary Bisson
[not found] ` <1460408496-21164-1-git-send-email-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2016-04-12 0:47 ` Shawn Guo
2016-04-02 16:25 ` [PATCH v3 7/9] ARM: imx_v6_v7_defconfig: add FT5x06 and TSC2004 touch support Gary Bisson
[not found] ` <1459614351-16731-8-git-send-email-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2016-04-06 14:35 ` Shawn Guo
2016-04-02 16:25 ` [PATCH v3 8/9] ARM: imx_v6_v7_defconfig: add CONFIG_I2C_MUX_GPIO Gary Bisson
2016-04-02 16:25 ` [PATCH v3 9/9] ARM: imx_v6_v7_defconfig: add CONFIG_RTC_DRV_M41T80 Gary Bisson
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=CAAMH-yu+wKKV_K3qXQoS43T9uOzSWWNO-++055QZyLZpS8Pc2w@mail.gmail.com \
--to=gary.bisson-q5rjgjkts06cy9shamctrueocmrvltnr@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=fabio.estevam-3arQi8VN3Tc@public.gmane.org \
--cc=kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
--cc=mturquette-rdvid1DuHRBWk0Htik3J/w@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=troy.kisky-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org \
/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).