public inbox for linux-sunxi@lists.linux.dev
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.com>
To: Ryan Walklin <ryan@testtoast.com>
Cc: Chen-Yu Tsai <wens@csie.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Jernej Skrabec <jernej.skrabec@gmail.com>,
	Samuel Holland <samuel@sholland.org>,
	Chris Morgan <macromorgan@hotmail.com>,
	devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev
Subject: Re: [PATCH 4/4] arm64: dts: allwinner: h700: Add RG35XX-H DTS
Date: Mon, 15 Apr 2024 01:12:11 +0100	[thread overview]
Message-ID: <20240415011211.77c643e2@minigeek.lan> (raw)
In-Reply-To: <20240414083347.131724-7-ryan@testtoast.com>

On Sun, 14 Apr 2024 20:33:48 +1200
Ryan Walklin <ryan@testtoast.com> wrote:

Hi Ryan,

> From: Ryan Walklin <ryan@testtoast.com>
> 
> The RG35XX-H adds thumbsticks, a stereo speaker, and a second USB port
> to the RG35XX-Plus, and has a horizontal form factor.
> 
> Enabled in this DTS:
> - Thumbsticks
> - Second USB port
> 
> Signed-off-by: Ryan Walklin <ryan@testtoast.com>
> ---
>  .../sun50i-h700-anbernic-rg35xx-h.dts         | 38 +++++++++++++++++++
>  1 file changed, 38 insertions(+)
>  create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-h.dts
> 
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-h.dts b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-h.dts
> new file mode 100644
> index 000000000000..5b7de7bfc458
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-h.dts
> @@ -0,0 +1,38 @@
> +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +/*
> + * Copyright (C) 2024 Andre Przywara <andre.przywara@arm.com>.

Please remove my copyright, I didn't have my hands in this. Copyrights
are not that important anyway, since it's the license that rules.

> + * Copyright (C) 2024 Ryan Walklin <ryan@testtoast.com>.
> + * Copyright (C) 2024 Chris Morgan <macroalpha82@gmail.com>.
> + */
> +
> +
> +/dts-v1/;

Same as in 3/4: redundant line.

> +#include "sun50i-h700-anbernic-rg35xx-plus.dts"
> +
> +/ {
> +    model = "Anbernic RG35XX H";
> +    compatible = "anbernic,rg35xx-h", "allwinner,sun50i-h700";
> +
> +    gpio-keys: gpio-keys-thumb {

Is it intended to be in a separate node from the other keys? Just
reference the existing node (below, outside of the root node) and add
the keys in there.

> +       compatible = "gpio-keys";
> +
> +        keyThumbLeft {
> +            label = "GPIO Thumb Left";
> +            gpios = <&pio 4 8 GPIO_ACTIVE_LOW>; /* PE8 */
> +            linux,input-type = <EV_KEY>;
> +            linux,code = <BTN_THUMBL>;
> +        };
> +
> +        keyThumbRight {
> +            label = "GPIO Thumb Right";
> +            gpios = <&pio 4 9 GPIO_ACTIVE_LOW>; /* PE9 */
> +            linux,input-type = <EV_KEY>;
> +            linux,code = <BTN_THUMBR>;
> +        };
> +    };
> +};

I missed that in the first DTS, but you should move the 'status =
"okay";' lines for EHCI1/OHCI1 from patch 2/4 into here, since the
second USB port should stay disabled on those other two boards.

> +
> +&usbotg {
> +    dr_mode = "peripheral";

That looks odd. I do understand that a second USB port allows the
first to be dedicated to OTG, but I feels still weird that the default
for the only one on the other two boards is host.
Can you say what the expected use case is? Are people connecting things
like controllers to the only USB port? Otherwise I would expect this
more to be a charging port, to which peripheral would be a better fit.
I guess ultimately this would be "otg", but we need the AXP717 USB-C
support for that, which is not ready yet.

> +    status = "okay";
> +};

If there is an enable GPIO for VBUS, then the respective regulator
should be referenced here.

Cheers,
Andre

  reply	other threads:[~2024-04-15  0:12 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-14  8:33 [PATCH 0/4] arm64: dts: allwinner: Add Anbernic RG35XX (Plus/H/2024) support Ryan Walklin
2024-04-14  8:33 ` [PATCH 1/4] dt-bindings: arm: sunxi: document Anbernic RG35XX handheld gaming device variants Ryan Walklin
2024-04-14  9:07   ` Krzysztof Kozlowski
2024-04-17  9:05     ` Ryan Walklin
2024-04-17 13:33       ` Krzysztof Kozlowski
2024-04-17 13:58         ` Andre Przywara
2024-04-17 19:22           ` Krzysztof Kozlowski
2024-04-17  9:54     ` Andre Przywara
2024-04-17 19:22   ` Krzysztof Kozlowski
2024-04-14  8:33 ` [PATCH 2/4] arm64: dts: allwinner: h700: Add RG35XX 2024 DTS Ryan Walklin
2024-04-14  9:09   ` Krzysztof Kozlowski
2024-04-17  9:08     ` Ryan Walklin
2024-04-14 17:46   ` Andre Przywara
2024-04-14  8:33 ` [PATCH 3/4] arm64: dts: allwinner: h700: Add RG35XX-Plus DTS Ryan Walklin
2024-04-14  9:10   ` Krzysztof Kozlowski
2024-04-14 18:37   ` Andre Przywara
2024-04-14  8:33 ` [PATCH 4/4] arm64: dts: allwinner: h700: Add RG35XX-H DTS Ryan Walklin
2024-04-15  0:12   ` Andre Przywara [this message]
2024-04-15 18:46 ` [PATCH 0/4] arm64: dts: allwinner: Add Anbernic RG35XX (Plus/H/2024) support Rob Herring

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=20240415011211.77c643e2@minigeek.lan \
    --to=andre.przywara@arm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jernej.skrabec@gmail.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=macromorgan@hotmail.com \
    --cc=robh@kernel.org \
    --cc=ryan@testtoast.com \
    --cc=samuel@sholland.org \
    --cc=wens@csie.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