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


Groups > linux.kernel > #1556688

Re: [PATCH v2 5/5] ARM: dts: Add LEGO MINDSTORMS EV3 dts

Path csiph.com!1.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From David Lechner <david@lechnology.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 5/5] ARM: dts: Add LEGO MINDSTORMS EV3 dts
Date Wed, 11 Jan 2017 17:30:02 +0100
Message-ID <sYtWG-In-31@gated-at.bofh.it> (permalink)
References <sWutQ-4H4-1@gated-at.bofh.it> <sWutQ-4H4-7@gated-at.bofh.it> <sYoDE-5NZ-13@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Kx+pJEX9EgDLP5OV/sbw52FEqr+5oIu/og86FR7bYzs=; b=e9eHZbX9dOjGHlaFPqashS+SZg fQLsPjhLWlAoUqNRpvt+OT71lLWNwmZ+igDyG+Tb/O0CB/GaHYZATwSp8sG+W6szVm3FO6LrdI3r4 dvfxL9ahdFtsrQEjloWrK++6mbX36zvD3Il6cL7R110SNzNJk2xotDMpGaVJ4bLF9OMiStJ1e31F5 Jw1RfJpuFHX3vTbukM5Yf4/gCH5z7IHZ4jXulGzrusI1Og7cXIAGNy69XAlIsB8DwxBl1bB31IIYp EmUpFJJqLr9RnN/WhnMFvTSnuuZzhwAQBTPLzwQiBHrQkqM8qpdmo+JfEiadrPI804HDdMn9boN20 KBIRT5pw==;
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1
MIME-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Antiabuse This header was added to track abuse, please include it with any abuse report
X-Antiabuse Primary Hostname - vern.gendns.com
X-Antiabuse Original Domain - vger.kernel.org
X-Antiabuse Originator/Caller UID/GID - [47 12] / [47 12]
X-Antiabuse Sender Address Domain - lechnology.com
X-Get-Message-Sender-Via vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed
X-Authenticated-Sender vern.gendns.com: davidmain@lechnology.com
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 84
Organization linux.* mail to news gateway
X-Original-Cc Kevin Hilman <khilman@kernel.org>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
X-Original-Date Wed, 11 Jan 2017 10:25:18 -0600
X-Original-Message-ID <1dd57ac3-554f-7d66-97b0-b76c3ddc7854@lechnology.com>
X-Original-References <1483677228-2325-1-git-send-email-david@lechnology.com> <1483677228-2325-6-git-send-email-david@lechnology.com> <e8136b8a-b8f7-7b1b-693a-955dc17f1de9@ti.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1556688

Show key headers only | View raw


On 01/11/2017 04:42 AM, Sekhar Nori wrote:
> On Friday 06 January 2017 10:03 AM, David Lechner wrote:
>
>> +	beeper {
>> +		compatible = "pwm-beeper";
>> +		pinctrl-names = "default";
>> +		pinctrl-0 = <&ehrpwm0b_pins>, <&amp_pins>;
>> +		pwms = <&ehrpwm0 1 0 0>;
>> +		enable-gpios = <&gpio 111 GPIO_ACTIVE_HIGH>;
>
> Since the enable-gpios binding for pwm beeper is still not accepted, can
> you drop the property or the node itself (if that makes more sense)?

No sound will come out of the speaker without enabling this gpio. So, I 
guess I will just drop this node for now.


>
>> +&spi0 {
>> +	status = "okay";
>> +	pinctrl-names = "default";
>> +	pinctrl-0 = <&spi0_pins>, <&spi0_cs0_pin>, <&spi0_cs3_pin>;
>> +
>> +	flash@0 {
>> +		compatible = "n25q128a13", "jedec,spi-nor";
>> +		reg = <0>;
>> +		spi-max-frequency = <50000000>;
>> +		ti,spi-wdelay = <8>;
>> +
>> +		/* Partitions are based on the official firmware from LEGO */
>> +		partitions {
>> +			#address-cells = <1>;
>> +			#size-cells = <1>;
>> +			partition@0 {
>> +				label = "U-Boot";
>> +				reg = <0 0x40000>;
>> +			};
>> +
>> +			partition@40000 {
>> +				label = "U-Boot Env";
>> +				reg = <0x40000 0x10000>;
>> +			};
>> +
>> +			partition@50000 {
>> +				label = "Kernel";
>> +				reg = <0x50000 0x200000>;
>> +			};
>> +
>> +			partition@250000 {
>> +				label = "Filesystem";
>> +				reg = <0x250000 0xa50000>;
>> +			};
>> +
>> +			partition@cb0000 {
>> +				label = "Storage";
>> +				reg = <0xcb0000 0x2f0000>;
>> +			};
>> +		};
>> +	};
>> +
>> +	adc@3 {
>> +		compatible = "ti-ads7957";
>
> So looks like this works because of_register_spi_device() sets up
> modalias of spi device from compatible string. I am fine with it, just
> highlighting it here to make sure this is acceptable practice. I did not
> really find any precedence for using SPI device name as compatible
> property in existing DTS files.

Indeed. It looks like this sort of "trivial" device binding is just used 
for i2c devices. I will submit some patches to add proper device tree 
bindings and change this to "ti,ads7957".

>
>> +		reg = <3>;
>> +		spi-max-frequency = <10000000>;
>> +		refin-supply = <&adc_ref>;
>> +	};
>
> Rest of the patch looks good to me.
>
> Thanks,
> Sekhar
>

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


Thread

[PATCH v2 0/5] Support for LEGO MINDSTORMS EV3 David Lechner <david@lechnology.com> - 2017-01-06 05:40 +0100
  [PATCH v2 5/5] ARM: dts: Add LEGO MINDSTORMS EV3 dts David Lechner <david@lechnology.com> - 2017-01-06 05:40 +0100
    Re: [PATCH v2 5/5] ARM: dts: Add LEGO MINDSTORMS EV3 dts kbuild test robot <lkp@intel.com> - 2017-01-06 19:10 +0100
    Re: [PATCH v2 5/5] ARM: dts: Add LEGO MINDSTORMS EV3 dts Sekhar Nori <nsekhar@ti.com> - 2017-01-11 11:50 +0100
      Re: [PATCH v2 5/5] ARM: dts: Add LEGO MINDSTORMS EV3 dts David Lechner <david@lechnology.com> - 2017-01-11 17:30 +0100
        Re: [PATCH v2 5/5] ARM: dts: Add LEGO MINDSTORMS EV3 dts Sekhar Nori <nsekhar@ti.com> - 2017-01-12 08:50 +0100
  [PATCH v2 1/5] ARM: davinci_all_defconfig: enable DA8xx pinconf David Lechner <david@lechnology.com> - 2017-01-06 05:40 +0100
    Re: [PATCH v2 1/5] ARM: davinci_all_defconfig: enable DA8xx pinconf Sekhar Nori <nsekhar@ti.com> - 2017-01-09 13:30 +0100
  [PATCH v2 4/5] ARM: davinci_all_defconfig: enable pwm-beeper David Lechner <david@lechnology.com> - 2017-01-06 05:40 +0100
  [PATCH v2 2/5] ARM: davinci_all_defconfig: Enable PWM modules David Lechner <david@lechnology.com> - 2017-01-06 05:40 +0100
    Re: [PATCH v2 2/5] ARM: davinci_all_defconfig: Enable PWM modules Sekhar Nori <nsekhar@ti.com> - 2017-01-09 13:30 +0100

csiph-web