From: Akshay Bhat <akshay.bhat-jEh4hwF5bVhBDgjK7y7TUQ@public.gmane.org>
To: Shawn Guo <shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org,
galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org,
mark.rutland-5wv7dgnIgG8@public.gmane.org,
ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
justin.waters-jEh4hwF5bVhBDgjK7y7TUQ@public.gmane.org,
l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org
Subject: Re: [PATCH v6 4/7] ARM: dts: imx: Add support for Advantech/GE Bx50v3
Date: Thu, 28 Jan 2016 13:26:28 -0500 [thread overview]
Message-ID: <56AA5D54.7090709@timesys.com> (raw)
In-Reply-To: <20160128061202.GE9070@tiger>
On 01/28/2016 01:12 AM, Shawn Guo wrote:
> On Wed, Dec 23, 2015 at 05:00:13PM -0500, Akshay Bhat wrote:
>> From: Justin Waters <justin.waters-jEh4hwF5bVhBDgjK7y7TUQ@public.gmane.org>
>>
>> Advantech has 3 carrier boards (B450v3, B650v3, B850v3) which use
>> the Advantech BA-16 module (based on iMX6D). This file has the
>> devicetree entries that are common to all 3 boards.
>>
>> Signed-off-by: Akshay Bhat <akshay.bhat-jEh4hwF5bVhBDgjK7y7TUQ@public.gmane.org>
>> ---
>> arch/arm/boot/dts/imx6q-bx50v3.dtsi | 237 ++++++++++++++++++++++++++++++++++++
>> 1 file changed, 237 insertions(+)
>> create mode 100644 arch/arm/boot/dts/imx6q-bx50v3.dtsi
>>
>> diff --git a/arch/arm/boot/dts/imx6q-bx50v3.dtsi b/arch/arm/boot/dts/imx6q-bx50v3.dtsi
>> new file mode 100644
>> index 0000000..1eaf0ce
>> --- /dev/null
>> +++ b/arch/arm/boot/dts/imx6q-bx50v3.dtsi
>> @@ -0,0 +1,237 @@
>> +/*
>> + * Copyright 2015 Timesys Corporation.
>> + * Copyright 2015 General Electric Company
>> + *
>> + * This file is dual-licensed: you can use it either under the terms
>> + * of the GPL or the X11 license, at your option. Note that this dual
>> + * licensing only applies to this file, and not this project as a
>> + * whole.
>> + *
>> + * a) This file is free software; you can redistribute it and/or
>> + * modify it under the terms of the GNU General Public License
>> + * version 2 as published by the Free Software Foundation.
>> + *
>> + * This file is distributed in the hope that it will be useful
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
>> + * GNU General Public License for more details.
>> + *
>> + * Or, alternatively
>> + *
>> + * b) Permission is hereby granted, free of charge, to any person
>> + * obtaining a copy of this software and associated documentation
>> + * files (the "Software"), to deal in the Software without
>> + * restriction, including without limitation the rights to use
>> + * copy, modify, merge, publish, distribute, sublicense, and/or
>> + * sell copies of the Software, and to permit persons to whom the
>> + * Software is furnished to do so, subject to the following
>> + * conditions:
>> + *
>> + * The above copyright notice and this permission notice shall be
>> + * included in all copies or substantial portions of the Software.
>> + *
>> + * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
>> + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
>> + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
>> + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
>> + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
>> + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
>> + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
>> + * OTHER DEALINGS IN THE SOFTWARE.
>> + */
>> +
>> +#include "imx6q-ba16.dtsi"
>> +
>> +/ {
>> + clocks {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>
> Have a new line between properties and sub-node.
Will fix this.
>
>> + mclk: clock@0 {
>> + compatible = "fixed-clock";
>> + reg = <0>;
>> + #clock-cells = <0>;
>> + clock-frequency = <22000000>;
>> + };
>
> So it's using a different clock naming schema from clk24m in
> imx6q-ba16.dtsi. In any case, they should be consistent.
>
>> + };
>> +
>> + reg_wl18xx_vmmc: regulator-wl18xx_vmmc {
>
> As a convention, hyphen instead of underscore should be used in node
> name. Actually less hyphen form like regulator-wl18xxvmmc or
> regulator-wl18xx looks better to me.
>
Will fix this.
>> + compatible = "regulator-fixed";
>> + regulator-name = "vwl1807";
>> + regulator-min-microvolt = <3300000>;
>> + regulator-max-microvolt = <3300000>;
>> + gpio = <&pca9539 3 GPIO_ACTIVE_HIGH>;
>> + startup-delay-us = <70000>;
>> + enable-active-high;
>> + };
>> +
>> + reg_wlan: regulator-wlan {
>> + compatible = "regulator-fixed";
>> + regulator-name = "3P3V_wlan";
>> + regulator-min-microvolt = <3300000>;
>> + regulator-max-microvolt = <3300000>;
>> + regulator-always-on;
>> + regulator-boot-on;
>> + gpio = <&gpio6 14 GPIO_ACTIVE_HIGH>;
>> + };
>> +
>> + sound {
>> + compatible = "fsl,imx6q-ba16-sgtl5000",
>> + "fsl,imx-audio-sgtl5000";
>> + model = "imx6q-ba16-sgtl5000";
>> + ssi-controller = <&ssi1>;
>> + audio-codec = <&codec>;
>> + audio-routing =
>> + "MIC_IN", "Mic Jack",
>> + "Mic Jack", "Mic Bias",
>> + "LINE_IN", "Line In Jack",
>> + "Headphone Jack", "HP_OUT";
>> + mux-int-port = <1>;
>> + mux-ext-port = <4>;
>> + };
>> +};
>> +
>> +&ecspi5 {
>> + fsl,spi-num-chipselects = <1>;
>> + cs-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_ecspi5>;
>> + status = "okay";
>> +
>> + m25_eeprom: m25p80@0 {
>> + compatible = "atmel,at25";
>> + spi-max-frequency = <20000000>;
>> + size = <0x8000>;
>> + pagesize = <64>;
>> + reg = <0>;
>> + address-width = <16>;
>> + };
>> +};
>> +
>> +&i2c1 {
>> + pca9547: mux@70 {
>> + compatible = "nxp,pca9547";
>> + reg = <0x70>;
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> +
>> + mux_i2c3: i2c@0 {
>
> How are these mux_i2c labels named? Where are mux_i2c1 and mux_i2c2?
>
Agree that the naming is confusing. Since i2c0/i2c1/i2c2 maps to the
processor, idea was to continue the naming convention starting at
mux_i2c3. I will change it in the next version of patch: mux1_i2c1 to
mux1_i2c8 in imx6q-bx50v3.dtsi and mux2_i2c1 to mux2_i2c8 in
imx6q-b850v3.dts.
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> + reg = <0x0>;
>> +
>> + ads7830: ads7830@48 {
>> + compatible = "ti,ads7830";
>> + reg = <0x48>;
>> + };
>> +
>> + mma8453: mma8453@1c {
>> + compatible = "fsl,mma8453";
>> + reg = <0x1c>;
>> + };
>> + };
>> +
>> + mux_i2c4: i2c@1 {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> + reg = <0x1>;
>> +
>> + eeprom: eeprom@50 {
>> + compatible = "atmel,24c08";
>> + reg = <0x50>;
>> + };
>> +
>> + mpl3115: mpl3115@60 {
>> + compatible = "fsl,mpl3115";
>> + reg = <0x60>;
>> + };
>> + };
>> +
>> + mux_i2c5: i2c@2 {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> + reg = <0x2>;
>> + };
>> +
>> + mux_i2c6: i2c@3 {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> + reg = <0x3>;
>> +
>> + codec: sgtl5000@0a {
>> + compatible = "fsl,sgtl5000";
>> + reg = <0x0a>;
>> + clocks = <&mclk>;
>> + VDDA-supply = <®_1p8v>;
>> + VDDIO-supply = <®_3p3v>;
>> + };
>> + };
>> +
>> + mux_i2c7: i2c@4 {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> + reg = <0x4>;
>> +
>> + pca9539: pca9539@74 {
>> + compatible = "nxp,pca9539";
>> + reg = <0x74>;
>> + gpio-controller;
>> + #gpio-cells = <2>;
>> + interrupt-controller;
>> + interrupt-parent = <&gpio2>;
>> + interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
>> + };
>> + };
>> +
>> + mux_i2c8: i2c@5 {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> + reg = <0x5>;
>> +
>> + igb@49 {
>> + compatible = "intel,igb";
>> + reg = <0x49>;
>> + };
>> +
>> + igb@61 {
>> + compatible = "intel,igb";
>> + reg = <0x61>;
>> + };
>> + };
>> +
>> + mux_i2c9: i2c@6 {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> + reg = <0x6>;
>> + };
>> +
>> + mux_i2c10: i2c@7 {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> + reg = <0x7>;
>> + };
>> + };
>> +};
>> +
>> +&usdhc4 {
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_usdhc4>;
>> + bus-width = <4>;
>> + vmmc-supply = <®_wl18xx_vmmc>;
>> + no-1-8-v;
>> + non-removable;
>> + enable-sdio-wakeup;
>
> wakeup-source
>
> Shawn
>
Will fix this
--
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-01-28 18:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-23 22:00 [PATCH v6 0/7] ARM: dts: Add Advantech board support Akshay Bhat
[not found] ` <1450908016-17384-1-git-send-email-akshay.bhat-jEh4hwF5bVhBDgjK7y7TUQ@public.gmane.org>
2015-12-23 22:00 ` [PATCH v6 1/7] of: Add vendor prefix for Advantech Corporation Akshay Bhat
2015-12-23 22:00 ` [PATCH v6 2/7] of: Add vendor prefix for General Electric Company Akshay Bhat
2015-12-23 22:00 ` [PATCH v6 3/7] ARM: dts: imx: Add Advantech BA-16 Qseven module Akshay Bhat
[not found] ` <1450908016-17384-4-git-send-email-akshay.bhat-jEh4hwF5bVhBDgjK7y7TUQ@public.gmane.org>
2016-01-28 5:41 ` Shawn Guo
2016-01-28 18:18 ` Akshay Bhat
2015-12-23 22:00 ` [PATCH v6 4/7] ARM: dts: imx: Add support for Advantech/GE Bx50v3 Akshay Bhat
[not found] ` <1450908016-17384-5-git-send-email-akshay.bhat-jEh4hwF5bVhBDgjK7y7TUQ@public.gmane.org>
2016-01-28 6:12 ` Shawn Guo
2016-01-28 18:26 ` Akshay Bhat [this message]
2015-12-23 22:00 ` [PATCH v6 5/7] ARM: dts: imx: Add support for Advantech/GE B450v3 Akshay Bhat
[not found] ` <1450908016-17384-6-git-send-email-akshay.bhat-jEh4hwF5bVhBDgjK7y7TUQ@public.gmane.org>
2016-01-28 6:14 ` Shawn Guo
2015-12-23 22:00 ` [PATCH v6 6/7] ARM: dts: imx: Add support for Advantech/GE B650v3 Akshay Bhat
[not found] ` <1450908016-17384-7-git-send-email-akshay.bhat-jEh4hwF5bVhBDgjK7y7TUQ@public.gmane.org>
2016-01-28 6:19 ` Shawn Guo
2016-01-28 18:54 ` Akshay Bhat
2015-12-23 22:00 ` [PATCH v6 7/7] ARM: dts: imx: Add support for Advantech/GE B850v3 Akshay Bhat
[not found] ` <1450908016-17384-8-git-send-email-akshay.bhat-jEh4hwF5bVhBDgjK7y7TUQ@public.gmane.org>
2016-01-28 6:26 ` Shawn Guo
2016-01-28 18:56 ` Akshay Bhat
2016-01-09 10:32 ` [PATCH v6 0/7] ARM: dts: Add Advantech board support Akshay Bhat
[not found] ` <CACrMeVC+-D3a4pUccQMb0BXwcTts9EAagC4EDcvb=HYMhuD03w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-01-27 16:31 ` Akshay Bhat
[not found] ` <56A8F0FF.7020308-jEh4hwF5bVhBDgjK7y7TUQ@public.gmane.org>
2016-01-28 6:29 ` Shawn Guo
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=56AA5D54.7090709@timesys.com \
--to=akshay.bhat-jeh4hwf5bvhbdgjk7y7tuq@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org \
--cc=justin.waters-jEh4hwF5bVhBDgjK7y7TUQ@public.gmane.org \
--cc=kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
--cc=l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=shawnguo-DgEjT+Ai2ygdnm+yROfE0A@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).