devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Heiko Stuebner <heiko@sntech.de>
To: Andy Yan <andy.yan@rock-chips.com>
Cc: devicetree@vger.kernel.org, briannorris@chromium.org,
	linux-kernel@vger.kernel.org, robh+dt@kernel.org,
	mark.rutland@arm.com
Subject: Re: [PATCH 1/2] ARM: dts: add rockchip PX3 board
Date: Sat, 10 Sep 2016 12:03:38 +0200	[thread overview]
Message-ID: <1777115.uSB6Aee8zy@phil> (raw)
In-Reply-To: <1473498094-16279-1-git-send-email-andy.yan@rock-chips.com>

Am Samstag, 10. September 2016, 17:01:34 CEST schrieb Andy Yan:
> PX3 board is designed by Rockchip for automotive field,
> which intergrated with CVBS(TP2825)/MIPI DSI/LVDS/HDMI
> video input/output interface, WIFI/BT/GPS(on a module
> named S500 which based on MT6620), Gsensor BMA250E and
> light&proximity sensor STK3410.
> 
> Signed-off-by: Andy Yan <andy.yan@rock-chips.com>

[...]

> diff --git a/arch/arm/boot/dts/rk3188-px3.dts
> b/arch/arm/boot/dts/rk3188-px3.dts new file mode 100644
> index 0000000..ece45d7
> --- /dev/null
> +++ b/arch/arm/boot/dts/rk3188-px3.dts
> @@ -0,0 +1,337 @@
> +/*
> + * Copyright (c) 2016 Andy Yan <andy.yan@rock-chips.com>
> + *
> + * 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 as
> + *     published by the Free Software Foundation; either version 2 of the
> + *     License, or (at your option) any later version.
> + *
> + *     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 "AS IS", 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.
> + */
> +
> +/dts-v1/;
> +#include <dt-bindings/input/input.h>
> +#include "rk3188.dtsi"
> +
> +/ {
> +	model = "Rockchip PX3";
> +	compatible = "rockchip,px3", "rockchip,rk3188";
> +
> +	chosen {
> +		bootargs = "console=ttyS2,115200 earlyprintk";
> +	};

setting bootargs isn't favoured, you can instead use
	stdout-path = "serial2:115200n8";

to define the default console


> +&i2c0 {
> +	status = "okay";
> +
> +	 /* Accelerometer */
> +	bma250@18 {
> +		compatible = "bma250";
> +		reg = <0x18>;
> +		interrupt-parent = <&gpio0>;
> +		interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
> +	};

driver seems to be missing a devicetree binding (module_id_table
and dt-binding document)

> +	stk3410@48 {
> +		compatible = "STK3310";
> +		reg = <0x48>;
> +		interrupt-parent = <&gpio1>;
> +		interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
> +	};
> +};

driver seems to be missing a devicetree binding (module_id_table
and dt-binding document)


> +&i2c2 {
> +	gsl1680: touchscreen@40 {
> +		compatible = "gsl1680";
> +		reg = <0x40>;
> +		interrupt-parent = <&gpio1>;
> +		interrupts = <15 IRQ_TYPE_EDGE_FALLING>;
> +		power-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
> +		touchscreen-size-x = <800>;
> +		touchscreen-size-y = <1280>;
> +		silead,max-fingers = <5>;
> +	};

this should probably be

	"silead,gsl1680"

see https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/input/touchscreen/silead_gsl1680.txt

  parent reply	other threads:[~2016-09-10 10:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-10  9:01 [PATCH 1/2] ARM: dts: add rockchip PX3 board Andy Yan
2016-09-10  9:05 ` [PATCH 2/2] arm64: dts: rockchip: Add PX5 board Andy Yan
     [not found] ` <1473498094-16279-1-git-send-email-andy.yan-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-09-10  9:15   ` [PATCH 1/2] ARM: dts: add rockchip PX3 board Heiko Stuebner
2016-09-10  9:37     ` Andy Yan
     [not found]       ` <c5a7f275-a8df-58c3-b255-ce9df13c67b4-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-09-10  9:45         ` Heiko Stuebner
2016-09-10  9:46           ` Andy Yan
2016-09-10 10:03 ` Heiko Stuebner [this message]
2016-09-10 10:07   ` Heiko Stuebner
2016-09-10 13:10     ` 闫孝军
     [not found]       ` <201609102110352938974-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-09-10 13:27         ` Heiko Stuebner

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=1777115.uSB6Aee8zy@phil \
    --to=heiko@sntech.de \
    --cc=andy.yan@rock-chips.com \
    --cc=briannorris@chromium.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.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).