From: marex@denx.de (Marek Vasut)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ARM: dts: imx6q: add Novena board
Date: Wed, 18 Nov 2015 11:35:40 +0100 [thread overview]
Message-ID: <201511181135.40171.marex@denx.de> (raw)
In-Reply-To: <1447841412.3144.57.camel@pengutronix.de>
On Wednesday, November 18, 2015 at 11:10:12 AM, Lucas Stach wrote:
> Hi Marek,
Hi!
> some comments below.
Thanks!
[...]
> > + regulators {
> > + compatible = "simple-bus";
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > +
>
> Remove this simple bus. It's not there in hardware, regulators are board
> level components just like the nodes below.
This is surprising to me, since all the boards I checked use this /regulators
simple bus to contain all the regulators. Is this going to change now ?
> > + reg_2p5v: 2p5v {
> > + compatible = "regulator-fixed";
> > + regulator-name = "2P5V";
> > + regulator-min-microvolt = <2500000>;
> > + regulator-max-microvolt = <2500000>;
> > + regulator-always-on;
> > + };
> > +
> > + reg_3p3v: 3p3v {
> > + compatible = "regulator-fixed";
> > + regulator-name = "3P3V";
> > + regulator-min-microvolt = <3300000>;
> > + regulator-max-microvolt = <3300000>;
> > + regulator-always-on;
> > + };
> > +
> > + reg_usb_otg_vbus: usb_otg_vbus {
> > + compatible = "regulator-fixed";
> > + regulator-name = "usb_otg_vbus";
> > + regulator-min-microvolt = <5000000>;
> > + regulator-max-microvolt = <5000000>;
> > + enable-active-high;
> > + };
> > +
> > + reg_audio_codec: es8328-regulator {
> > + compatible = "regulator-fixed";
> > + regulator-name = "es8328-power";
> > + regulator-boot-on;
> > + regulator-min-microvolt = <5000000>;
> > + regulator-max-microvolt = <5000000>;
> > + startup-delay-us = <400000>;
> > + gpio = <&gpio5 17 GPIO_ACTIVE_HIGH>;
> > + enable-active-high;
> > + };
> > +
> > + reg_pcie: pcie-regulator {
> > + compatible = "regulator-fixed";
> > + regulator-name = "pcie-bus-power";
> > + regulator-min-microvolt = <1500000>;
> > + regulator-max-microvolt = <1500000>;
> > + gpio = <&gpio7 12 GPIO_ACTIVE_HIGH>;
> > + enable-active-high;
>
> Make this an always-on regulator for now. More comments about this
> below.
Roger!
> > + };
[...]
> > +&ecspi3 {
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_ecspi3_novena>;
> > + fsl,spi-num-chipselects = <3>;
> > + status = "okay";
> > +
> > + spidev at 0 {
> > + compatible = "spidev";
>
> This will explode on a new kernel. Specifying spidev without using a
> more specific compatible will trigger a WARN_ON(), as it's considered
> bad style.
Oh, looks like imx_v6_v7_defconfig didn't have SPIDEV active, which is
why I didn't catch it during my last test, dang.
This SPI interface is routed into the FPGA, so what do you suggest I put
in the compatible string? There is no other sensible driver for the peripheral,
since the peripheral can be anything.
> > + spi-max-frequency = <30000000>;
> > + reg = <0>;
> > + };
> > +};
[...]
> > +&pcie {
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_pcie_novena>;
> > + reset-gpio = <&gpio3 29 GPIO_ACTIVE_HIGH>;
> > + bus-supply = <®_pcie>;
>
> This isn't supported by the mainline binding. This needs more work to
> properly handle PROBE_DEFER in the PCIe driver. Just remove this
> property for now and make the regulator always-on, this will continue to
> work when we come around to fixing this properly.
OK
> > + status = "okay";
> > +};
> > +
> > +&sata {
> > + target-supply = <®_sata>;
> > + fsl,transmit-level-mV = <1025>;
> > + fsl,transmit-boost-mdB = <0>;
> > + fsl,transmit-atten-16ths = <8>;
> > + status = "okay";
> > +};
> > +
> > +&ssi1 {
> > + fsl,mode = "i2s-slave";
> > + status = "okay";
> > +};
> > +
> > +&uart2 {
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_uart2_novena>;
> > + status = "okay";
> > +};
> > +
> > +&uart3 {
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_uart3_novena>;
> > + status = "okay";
> > +};
> > +
> > +&uart4 {
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_uart4_novena>;
> > + status = "okay";
> > +};
> > +
> > +&usbotg {
> > + vbus-supply = <®_usb_otg_vbus>;
> > + dr_mode = "otg";
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_usbotg_novena>;
> > + disable-over-current;
> > + status = "okay";
> > +};
> > +
> > +&usbh1 {
> > + vbus-supply = <&swbst_reg>;
> > + status = "okay";
> > +};
> > +
> > +&usdhc2 {
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_usdhc2_novena>;
> > + cd-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
>
> I would bet this GPIO is actually ACTIVE_LOW, lots of boards got this
> wrong initially.
Both of them in fact are LOW, thanks!
next prev parent reply other threads:[~2015-11-18 10:35 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-18 9:48 [PATCH 1/2] devicetree: bindings: Add vendor prefix for Kosagi Marek Vasut
2015-11-18 9:48 ` [PATCH 2/2] ARM: dts: imx6q: add Novena board Marek Vasut
2015-11-18 10:10 ` Lucas Stach
2015-11-18 10:35 ` Marek Vasut [this message]
2015-11-18 11:25 ` Lucas Stach
2015-11-18 11:32 ` Marek Vasut
2015-11-18 11:36 ` Lucas Stach
2015-11-19 16:03 ` Marek Vasut
2015-11-18 12:14 ` Fabio Estevam
2015-11-18 12:00 ` Fabio Estevam
2015-11-19 16:11 ` Marek Vasut
2015-11-20 2:49 ` Sean Cross
2015-11-20 9:07 ` Marek Vasut
2015-11-20 20:46 ` [PATCH V2 " Marek Vasut
2015-11-20 20:58 ` Fabio Estevam
2015-11-20 21:05 ` Marek Vasut
2015-11-23 9:15 ` Lucas Stach
2015-11-24 11:04 ` Marek Vasut
2015-11-20 21:19 ` [PATCH 1/2] devicetree: bindings: Add vendor prefix for Kosagi Arnd Bergmann
2015-11-20 22:30 ` Marek Vasut
2015-11-20 22:46 ` Arnd Bergmann
2015-11-21 0:08 ` Marek Vasut
-- strict thread matches above, loose matches on Subject: below --
2014-12-19 8:10 [PATCH 0/2] Add support for kosagi novena Sean Cross
2014-12-19 8:10 ` [PATCH 2/2] ARM: dts: imx6q: add Novena board Sean Cross
2014-12-19 10:32 ` Lucas Stach
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=201511181135.40171.marex@denx.de \
--to=marex@denx.de \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.