Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1310107

Re: [PATCH 2/2] arm64: dts: rockchip: Add basic support for orion-r68

From Javier Martinez Canillas <javier@dowhile0.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] arm64: dts: rockchip: Add basic support for orion-r68
Date 2016-01-15 14:30 +0100
Message-ID <qRcBY-6DV-29@gated-at.bofh.it> (permalink)
References <qRciB-6vV-9@gated-at.bofh.it> <qRciB-6vV-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello Matthias,

This is not a complete review but I just wanted to comment on two
things that I noticed:

On Fri, Jan 15, 2016 at 10:06 AM, Matthias Brugger
<matthias.bgg@gmail.com> wrote:

[snip]

> +       };
> +
> +       vcc_18: vcc18-regulator {
> +               compatible = "regulator-fixed";
> +               regulator-name = "vcc_18";
> +               regulator-min-microvolt = <1800000>;
> +               regulator-max-microvolt = <1800000>;
> +               regulator-always-on;
> +               regulator-boot-on;
> +               vin-supply = <&vcc_sys>;
> +       };
> +
> +       /* supplies both host and otg */
> +       vcc_host: vcc-host-regulator {
> +               compatible = "regulator-fixed";
> +               gpio = <&gpio0 4 GPIO_ACTIVE_LOW>;
> +               pinctrl-names = "default";
> +               pinctrl-0 = <&host_vbus_drv>;
> +               regulator-name = "vcc_host";
> +               regulator-always-on;
> +               regulator-boot-on;
> +               vin-supply = <&vcc_sys>;
> +       };
> +
> +       vccio_sd: vcc-io-sd-regulator {
> +               regulator-name= "vccio_sd";
> +               gpio = <&gpio0 9 GPIO_ACTIVE_LOW>;
> +               regulator-min-microvolt = <3300000>;
> +               regulator-max-microvolt = <3300000>;
> +       };
> +
> +       vcc_sd: vcc-sd-regulator {
> +               compatible = "regulator-fixed";
> +               regulator-name = "vcc_sd";
> +               gpio = <&gpio3 11 GPIO_ACTIVE_LOW>;
> +               regulator-min-microvolt = <3300000>;
> +               regulator-max-microvolt = <3300000>;
> +               regulator-always-on;
> +               regulator-boot-on;
> +               vin-supply = <&vcc_io>;
> +       };
> +
> +       vcc_io: vcc-io-regulator {
> +               compatible = "regulator-fixed";
> +               regulator-name = "vcc_io";
> +               regulator-min-microvolt = <3300000>;
> +               regulator-max-microvolt = <3300000>;
> +               regulator-always-on;
> +               regulator-boot-on;
> +               vin-supply = <&vcc_sys>;
> +       };
> +
> +       vcc_lan: vcc-lan-regulator {
> +               compatible = "regulator-fixed";
> +               regulator-name = "vcc_lan";
> +               regulator-min-microvolt = <3300000>;
> +               regulator-max-microvolt = <3300000>;
> +               regulator-always-on;
> +               regulator-boot-on;
> +               vin-supply = <&vcc_io>;
> +       };
> +
> +       vcc_sys: vcc-sys-regulator {
> +               compatible = "regulator-fixed";
> +               regulator-name = "vcc_sys";
> +               regulator-min-microvolt = <5000000>;
> +               regulator-max-microvolt = <5000000>;
> +               regulator-always-on;
> +               regulator-boot-on;
> +       };
> +
> +       vccio_wl: vccio-wl-regulator {
> +               compatible = "regulator-fixed";
> +               regulator-name = "vccio_wl";
> +               regulator-min-microvolt = <3300000>;
> +               regulator-max-microvolt = <3300000>;
> +               regulator-always-on;
> +               regulator-boot-on;
> +               vin-supply = <&vcc_io>;
> +       };
> +
> +       vdd_10: vdd-10-regulator {
> +               compatible = "regulator-fixed";
> +               regulator-name = "vdd_10";
> +               regulator-min-microvolt = <1000000>;
> +               regulator-max-microvolt = <1000000>;
> +               regulator-always-on;
> +               regulator-boot-on;
> +               vin-supply = <&vcc_sys>;
> +       };
> +};

There is only one regulator that is not marked as always-on. This will
prevent the regulator subsystem to disable unused regulators. Do you
really need all of them to be always-on?

> +
> +&emmc {
> +       broken-cd;
> +       bus-width = <8>;
> +       cap-mmc-highspeed;
> +       disable-wp;
> +       mmc-pwrseq = <&emmc_pwrseq>;
> +       non-removable;

Non-removable assumes always present so there is no need for
broken-cd. In fact, these two properties are mutually exclusive
according to Documentation/devicetree/bindings/mmc/mmc.txt.

Best regards,
Javier

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] devicetree: bindings: Add vendor prefix for Tronsmart Matthias Brugger <matthias.bgg@gmail.com> - 2016-01-15 14:10 +0100
  [PATCH 2/2] arm64: dts: rockchip: Add basic support for orion-r68 Matthias Brugger <matthias.bgg@gmail.com> - 2016-01-15 14:10 +0100
    Re: [PATCH 2/2] arm64: dts: rockchip: Add basic support for orion-r68 Javier Martinez Canillas <javier@dowhile0.org> - 2016-01-15 14:30 +0100
      Re: [PATCH 2/2] arm64: dts: rockchip: Add basic support for orion-r68 Heiko Stuebner <heiko@sntech.de> - 2016-01-15 15:10 +0100
        Re: [PATCH 2/2] arm64: dts: rockchip: Add basic support for orion-r68 Heiko Stuebner <heiko@sntech.de> - 2016-01-15 15:30 +0100
          Re: [PATCH 2/2] arm64: dts: rockchip: Add basic support for orion-r68 Javier Martinez Canillas <javier@dowhile0.org> - 2016-01-15 16:40 +0100
        Re: [PATCH 2/2] arm64: dts: rockchip: Add basic support for orion-r68 Javier Martinez Canillas <javier@dowhile0.org> - 2016-01-15 15:30 +0100
    Re: [PATCH 2/2] arm64: dts: rockchip: Add basic support for orion-r68 Mark Rutland <mark.rutland@arm.com> - 2016-01-15 15:30 +0100
    Re: [PATCH 2/2] arm64: dts: rockchip: Add basic support for orion-r68 Naoki FUKAUMI <naobsd@gmail.com> - 2016-01-16 02:30 +0100
  Re: [PATCH 1/2] devicetree: bindings: Add vendor prefix for Tronsmart Rob Herring <robh@kernel.org> - 2016-01-17 01:20 +0100

csiph-web