public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 16/16] board: Add Qualcomm Dragonboard 410C support
Date: Wed, 20 Jan 2016 22:46:06 +0100	[thread overview]
Message-ID: <56A0001E.9070705@gmail.com> (raw)
In-Reply-To: <CAPnjgZ0-R38JV27Pu3ropuiagz96wLES5FruApowZe78-ztSQQ@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Simon,

On 13.01.2016 21:32, Simon Glass wrote:
[...]
> On 11 January 2016 at 15:01, Mateusz Kulikowski
> <mateusz.kulikowski@gmail.com> wrote:
[...]

>> &pm8916_gpios {
>>
>>         usb_hub_reset_pm: usb_hub_reset_pm {
>>                 pinconf {
>>                         pins = "gpio3";
>>                         function = PMIC_GPIO_FUNC_NORMAL;
>>                         output-low;
>>                 };
>>         };
>>
>> (https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi)
>>
>> I decided to move them away from PMIC, as they only use specific gpios.
>>
>> To be honest they are just a references so I don't have to hardcode gpio names/numbers in
>> board sources.
>>
>> Is it ok if I keep it that way? Could you suggest better approach?
> 
> We should avoid forking the device tree and making up bindings.
> 
> Really it looks like qcom,qpnp-pin should be a pinctrl driver. Then
> pinctrl-0 in your device node will automatically pick up the correct
> function.

I gave it a bit thought played a bit (perhaps small bit) with pinctl, 
did Phone-a-Friend, looked at rockchip @ your tree and:

1. I agree that it's good idea to have the same bindings in U-Boot & Linux.

2. Perhaps in "generic" solution (say for all qcom pmics) it would be nice 
to have possibility to configure some functions of this pins, but all I need 
for now is to change value of 2 gpio pins to 1/0. 

3. Learning/writing "proper" pinctrl driver will take me some time (and probably
few patch versions).

4. In my (very) humble opinion, there are few improvements that I consider more important 
and would like to do first (for example usb device controller or ADMA support for sdhci).
Also Syed would probably like to have support for his Dragonboard 810 that is 
similar (and kind-of blocked by this release).

My proposal is to use mainline Linux entries for hub/switch pins and then do 
addition as in (for example) exynos 4210: 
add dragonboard410c-uboot.dtsi that will have u-boot specific extension.
In this case - gpio handle so I can query gpio the same way I did in the past.

Of course I will upgrade dt bindings documentation.

And in future I will have to master pinmux/pinctrl as I will need it to get 
rid of Little Kernel (and do pin configuration for UART, MMC etc.) - I can then
"upgrade" this code.


Just FYI: I don't plan to abandon board the day it gets to mainline ;)

Regards,
Mateusz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJWoAAYAAoJELvtohmVtQzBKi8H/0QVrJH+aeDL59G/fOrXMzk5
uPeNAJJ4nEmp2ueLZ5LIZp3fgvMiTre70WjpiWrt521o1HchZ4IjRwh76RWI4Svy
jd12u4PgTnEOYAUDxYIuxS3rePE7dgDbdjWNoU4pjlG9uq+oK4w1QoYGVgbmTiF9
3EnhgIp+FY8dilkfpFp8rPLLH2xbdFwOhzJ2BSTJzt/ubMzHYDKYM/6QTRiuLHoC
ndfKnVPP2vrLLbQIQKkNyHGOgYvyJSWx9oTrDu0Pkoq09heGvcksio1t8AKZDyUH
RNFB2LPvU/wcYjf5NmF0nYHpgB/mwq9bG/PFkGNoi74/jEPtN9+mFZNah8XBB+g=
=okES
-----END PGP SIGNATURE-----

  reply	other threads:[~2016-01-20 21:46 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-06 18:21 [U-Boot] [PATCH v1 00/16] Add support for 96boards Dragonboard410C board Mateusz Kulikowski
2016-01-06 18:21 ` [U-Boot] [PATCH v1 01/16] serial: Add support for Qualcomm serial port Mateusz Kulikowski
2016-01-11 16:57   ` Simon Glass
2016-01-06 18:21 ` [U-Boot] [PATCH v1 02/16] gpio: Add support for Qualcomm gpio controller Mateusz Kulikowski
2016-01-11 16:57   ` Simon Glass
2016-01-11 21:27     ` Mateusz Kulikowski
2016-01-06 18:21 ` [U-Boot] [PATCH v1 03/16] mmc: Add support for Qualcomm SDHCI controller Mateusz Kulikowski
2016-01-11 16:57   ` Simon Glass
2016-01-06 18:21 ` [U-Boot] [PATCH v1 04/16] ehci-hcd: Add init_after_reset Mateusz Kulikowski
2016-01-11 16:57   ` Simon Glass
2016-01-06 18:21 ` [U-Boot] [PATCH v1 05/16] usb: ulpi: Add Kconfig options for ULPI Mateusz Kulikowski
2016-01-06 20:49   ` Marek Vasut
2016-01-07 22:12     ` Mateusz Kulikowski
2016-01-07 22:50       ` Marek Vasut
2016-01-07 23:18       ` Simon Glass
2016-01-11 21:30         ` Mateusz Kulikowski
2016-01-06 18:21 ` [U-Boot] [PATCH v1 06/16] usb: Rename ehci-fsl.h to ehci-ci.h Mateusz Kulikowski
2016-01-06 20:51   ` Marek Vasut
2016-01-06 18:21 ` [U-Boot] [PATCH v1 07/16] usb: ehci-ci: Add missing registers Mateusz Kulikowski
2016-01-06 20:53   ` Marek Vasut
2016-01-06 18:21 ` [U-Boot] [PATCH v1 08/16] ehci-ci.h: drop generic USBCMD fields Mateusz Kulikowski
2016-01-06 20:54   ` Marek Vasut
2016-01-06 18:21 ` [U-Boot] [PATCH v1 09/16] ehci: Add support for Qualcomm EHCI Mateusz Kulikowski
2016-01-06 21:04   ` Marek Vasut
2016-01-11 21:39     ` Mateusz Kulikowski
2016-01-11 22:02       ` Marek Vasut
2016-01-06 18:21 ` [U-Boot] [PATCH v1 10/16] drivers: Add SPMI bus uclass Mateusz Kulikowski
2016-01-11 16:57   ` Simon Glass
2016-01-11 21:41     ` Mateusz Kulikowski
2016-01-06 18:21 ` [U-Boot] [PATCH v1 11/16] spmi: Add sandbox test driver Mateusz Kulikowski
2016-01-11 16:57   ` Simon Glass
2016-01-06 18:21 ` [U-Boot] [PATCH v1 12/16] drivers: spmi: Add support for Qualcomm SPMI bus driver Mateusz Kulikowski
2016-01-11 16:57   ` Simon Glass
2016-01-06 18:21 ` [U-Boot] [PATCH v1 13/16] pmic: Add support for Qualcomm PM8916 PMIC Mateusz Kulikowski
2016-01-11 16:58   ` Simon Glass
2016-01-06 18:21 ` [U-Boot] [PATCH v1 14/16] gpio: Add support for Qualcomm PM8916 gpios Mateusz Kulikowski
2016-01-11 16:58   ` Simon Glass
2016-01-06 18:21 ` [U-Boot] [PATCH v1 15/16] arm: Add support for Qualcomm Snapdragon family Mateusz Kulikowski
2016-01-11 16:58   ` Simon Glass
2016-01-06 18:21 ` [U-Boot] [PATCH v1 16/16] board: Add Qualcomm Dragonboard 410C support Mateusz Kulikowski
2016-01-07 10:23   ` Sjoerd Simons
2016-01-11 21:49     ` Mateusz Kulikowski
2016-01-11 16:58   ` Simon Glass
2016-01-11 22:01     ` Mateusz Kulikowski
2016-01-13 20:32       ` Simon Glass
2016-01-20 21:46         ` Mateusz Kulikowski [this message]
2016-01-20  4:35   ` Simon Glass
2016-01-20 22:00     ` Mateusz Kulikowski
2016-01-20 23:49       ` Andreas Färber

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=56A0001E.9070705@gmail.com \
    --to=mateusz.kulikowski@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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