* [PATCH 1/8] arm64: dts: meson: update spifc node on Khadas VIM2 meson-gxm-khadas-vim2
2020-09-25 3:30 [PATCH 0/8] dts updates and fixes for Khadas VIM1 VIM2 VIM3 VIML boards Artem Lapkin
@ 2020-09-25 3:30 ` Artem Lapkin
2020-09-25 7:41 ` Neil Armstrong
2020-09-25 7:51 ` Martin Blumenstingl
2020-09-25 3:30 ` [PATCH 2/8] arm64: dts: meson: update leds node on Khadas VIM3/VIM3L boards meson-khadas-vim3 Artem Lapkin
` (6 subsequent siblings)
7 siblings, 2 replies; 23+ messages in thread
From: Artem Lapkin @ 2020-09-25 3:30 UTC (permalink / raw)
To: narmstrong
Cc: khilman, robh+dt, jbrunet, martin.blumenstingl, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
1) The VIM2 Boards use w25q128 spi chip only not w25q32 or w25q16
it's not really seriously becouse have 'jedec,spi-nor' which
have auto chips identifications
2) max-frequency is 104Mhz
Signed-off-by: Artem Lapkin <art@khadas.com>
---
arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
index bff8ec2c1c7..a6baf865aa2 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
@@ -336,12 +336,12 @@ &spifc {
pinctrl-0 = <&nor_pins>;
pinctrl-names = "default";
- w25q32: spi-flash@0 {
+ w25q128: spi-flash@0 {
#address-cells = <1>;
#size-cells = <1>;
- compatible = "winbond,w25q16", "jedec,spi-nor";
+ compatible = "winbond,w25q128fw", "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <3000000>;
+ spi-max-frequency = <104000000>;
};
};
--
2.25.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH 1/8] arm64: dts: meson: update spifc node on Khadas VIM2 meson-gxm-khadas-vim2
2020-09-25 3:30 ` [PATCH 1/8] arm64: dts: meson: update spifc node on Khadas VIM2 meson-gxm-khadas-vim2 Artem Lapkin
@ 2020-09-25 7:41 ` Neil Armstrong
2020-09-25 7:51 ` Martin Blumenstingl
1 sibling, 0 replies; 23+ messages in thread
From: Neil Armstrong @ 2020-09-25 7:41 UTC (permalink / raw)
To: Artem Lapkin
Cc: khilman, robh+dt, jbrunet, martin.blumenstingl, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
On 25/09/2020 05:30, Artem Lapkin wrote:
> 1) The VIM2 Boards use w25q128 spi chip only not w25q32 or w25q16
> it's not really seriously becouse have 'jedec,spi-nor' which
> have auto chips identifications
>
> 2) max-frequency is 104Mhz
>
> Signed-off-by: Artem Lapkin <art@khadas.com>
> ---
> arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
> index bff8ec2c1c7..a6baf865aa2 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
> +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
> @@ -336,12 +336,12 @@ &spifc {
> pinctrl-0 = <&nor_pins>;
> pinctrl-names = "default";
>
> - w25q32: spi-flash@0 {
> + w25q128: spi-flash@0 {
> #address-cells = <1>;
> #size-cells = <1>;
> - compatible = "winbond,w25q16", "jedec,spi-nor";
> + compatible = "winbond,w25q128fw", "jedec,spi-nor";
> reg = <0>;
> - spi-max-frequency = <3000000>;
> + spi-max-frequency = <104000000>;
> };
> };
>
>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 1/8] arm64: dts: meson: update spifc node on Khadas VIM2 meson-gxm-khadas-vim2
2020-09-25 3:30 ` [PATCH 1/8] arm64: dts: meson: update spifc node on Khadas VIM2 meson-gxm-khadas-vim2 Artem Lapkin
2020-09-25 7:41 ` Neil Armstrong
@ 2020-09-25 7:51 ` Martin Blumenstingl
2020-09-28 7:54 ` Neil Armstrong
1 sibling, 1 reply; 23+ messages in thread
From: Martin Blumenstingl @ 2020-09-25 7:51 UTC (permalink / raw)
To: Artem Lapkin
Cc: Neil Armstrong, khilman, robh+dt, jbrunet, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
Hi Artem,
On Fri, Sep 25, 2020 at 5:30 AM Artem Lapkin <email2tema@gmail.com> wrote:
>
> 1) The VIM2 Boards use w25q128 spi chip only not w25q32 or w25q16
> it's not really seriously becouse have 'jedec,spi-nor' which
> have auto chips identifications
according to the "VIM2 - Transitioning From v1.2 to v1.4" document [0]
(page 7) both board revisions are using different SPI flash sizes
for which board revision are your changes?
> 2) max-frequency is 104Mhz
(note to self: according to the w25q16 datasheet it supports a maximum
clock frequency of 104MHz, so this is fine)
Best regards,
Martin
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 1/8] arm64: dts: meson: update spifc node on Khadas VIM2 meson-gxm-khadas-vim2
2020-09-25 7:51 ` Martin Blumenstingl
@ 2020-09-28 7:54 ` Neil Armstrong
0 siblings, 0 replies; 23+ messages in thread
From: Neil Armstrong @ 2020-09-28 7:54 UTC (permalink / raw)
To: Martin Blumenstingl, Artem Lapkin
Cc: khilman, robh+dt, jbrunet, devicetree, linux-arm-kernel,
linux-amlogic, linux-kernel, art, nick, gouwa
On 25/09/2020 09:51, Martin Blumenstingl wrote:
> Hi Artem,
>
> On Fri, Sep 25, 2020 at 5:30 AM Artem Lapkin <email2tema@gmail.com> wrote:
>>
>> 1) The VIM2 Boards use w25q128 spi chip only not w25q32 or w25q16
>> it's not really seriously becouse have 'jedec,spi-nor' which
>> have auto chips identifications
> according to the "VIM2 - Transitioning From v1.2 to v1.4" document [0]
> (page 7) both board revisions are using different SPI flash sizes
> for which board revision are your changes?
Indeed, if you changed the flash for the v14 VIM2 board, please:
- move arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts into meson-gxm-khadas-vim2.dtsi leaving only the
root compatible, model and the v12 spi flash model&size into the meson-gxm-khadas-vim2.dts file
- add "khadas,vim2-v14" to amlogic board bindings
- introduce a arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2-v14.dts file adding the
changes (spi flash change, MCU) with a different root compatible & model
Neil
>
>> 2) max-frequency is 104Mhz
> (note to self: according to the w25q16 datasheet it supports a maximum
> clock frequency of 104MHz, so this is fine)
>
>
> Best regards,
> Martin
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH 2/8] arm64: dts: meson: update leds node on Khadas VIM3/VIM3L boards meson-khadas-vim3
2020-09-25 3:30 [PATCH 0/8] dts updates and fixes for Khadas VIM1 VIM2 VIM3 VIML boards Artem Lapkin
2020-09-25 3:30 ` [PATCH 1/8] arm64: dts: meson: update spifc node on Khadas VIM2 meson-gxm-khadas-vim2 Artem Lapkin
@ 2020-09-25 3:30 ` Artem Lapkin
2020-09-25 7:36 ` Neil Armstrong
2020-09-25 3:30 ` [PATCH 3/8] arm64: dts: meson: update leds node on Khadas VIM3/VIM3L board meson-khadas-vim3 Artem Lapkin
` (5 subsequent siblings)
7 siblings, 1 reply; 23+ messages in thread
From: Artem Lapkin @ 2020-09-25 3:30 UTC (permalink / raw)
To: narmstrong
Cc: khilman, robh+dt, jbrunet, martin.blumenstingl, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
GPIO_ACTIVE_LOW replaced to GPIO_ACTIVE_HIGH for white and red leds
Signed-off-by: Artem Lapkin <art@khadas.com>
---
arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
index 94f75b44650..73783692e30 100644
--- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
@@ -41,13 +41,13 @@ leds {
led-white {
label = "vim3:white:sys";
- gpios = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
};
led-red {
label = "vim3:red";
- gpios = <&gpio_expander 5 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio_expander 5 GPIO_ACTIVE_HIGH>;
};
};
--
2.25.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH 2/8] arm64: dts: meson: update leds node on Khadas VIM3/VIM3L boards meson-khadas-vim3
2020-09-25 3:30 ` [PATCH 2/8] arm64: dts: meson: update leds node on Khadas VIM3/VIM3L boards meson-khadas-vim3 Artem Lapkin
@ 2020-09-25 7:36 ` Neil Armstrong
0 siblings, 0 replies; 23+ messages in thread
From: Neil Armstrong @ 2020-09-25 7:36 UTC (permalink / raw)
To: Artem Lapkin
Cc: khilman, robh+dt, jbrunet, martin.blumenstingl, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
On 25/09/2020 05:30, Artem Lapkin wrote:
> GPIO_ACTIVE_LOW replaced to GPIO_ACTIVE_HIGH for white and red leds
>
> Signed-off-by: Artem Lapkin <art@khadas.com>
> ---
> arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
> index 94f75b44650..73783692e30 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
> @@ -41,13 +41,13 @@ leds {
>
> led-white {
> label = "vim3:white:sys";
> - gpios = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_LOW>;
> + gpios = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_HIGH>;
> linux,default-trigger = "heartbeat";
> };
>
> led-red {
> label = "vim3:red";
> - gpios = <&gpio_expander 5 GPIO_ACTIVE_LOW>;
> + gpios = <&gpio_expander 5 GPIO_ACTIVE_HIGH>;
> };
> };
>
>
This has already been fixed and applied for 5.10:
https://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic.git/commit/?h=v5.10/dt64&id=1f9d87d08e4a2299e86f8a1600aedf87ecd3b636
Neil
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH 3/8] arm64: dts: meson: update leds node on Khadas VIM3/VIM3L board meson-khadas-vim3
2020-09-25 3:30 [PATCH 0/8] dts updates and fixes for Khadas VIM1 VIM2 VIM3 VIML boards Artem Lapkin
2020-09-25 3:30 ` [PATCH 1/8] arm64: dts: meson: update spifc node on Khadas VIM2 meson-gxm-khadas-vim2 Artem Lapkin
2020-09-25 3:30 ` [PATCH 2/8] arm64: dts: meson: update leds node on Khadas VIM3/VIM3L boards meson-khadas-vim3 Artem Lapkin
@ 2020-09-25 3:30 ` Artem Lapkin
2020-09-25 7:39 ` Neil Armstrong
2020-09-25 3:30 ` [PATCH 4/8] arm64: dts: meson: remove fixed memory size for Khadas VIM3/VIM3L meson-khadas-vim3 Artem Lapkin
` (4 subsequent siblings)
7 siblings, 1 reply; 23+ messages in thread
From: Artem Lapkin @ 2020-09-25 3:30 UTC (permalink / raw)
To: narmstrong
Cc: khilman, robh+dt, jbrunet, martin.blumenstingl, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
add aliases names led_white and led_red for white and red leds
Signed-off-by: Artem Lapkin <art@khadas.com>
---
arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
index 73783692e30..7e137399257 100644
--- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
@@ -12,6 +12,8 @@ / {
aliases {
serial0 = &uart_AO;
ethernet0 = ðmac;
+ led_red = &led_red;
+ led_white = &led_white;
};
chosen {
@@ -39,13 +41,13 @@ button-function {
leds {
compatible = "gpio-leds";
- led-white {
+ led_white: led-white {
label = "vim3:white:sys";
gpios = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
};
- led-red {
+ led_red: led-red {
label = "vim3:red";
gpios = <&gpio_expander 5 GPIO_ACTIVE_HIGH>;
};
--
2.25.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH 3/8] arm64: dts: meson: update leds node on Khadas VIM3/VIM3L board meson-khadas-vim3
2020-09-25 3:30 ` [PATCH 3/8] arm64: dts: meson: update leds node on Khadas VIM3/VIM3L board meson-khadas-vim3 Artem Lapkin
@ 2020-09-25 7:39 ` Neil Armstrong
0 siblings, 0 replies; 23+ messages in thread
From: Neil Armstrong @ 2020-09-25 7:39 UTC (permalink / raw)
To: Artem Lapkin
Cc: khilman, robh+dt, jbrunet, martin.blumenstingl, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
Hi,
On 25/09/2020 05:30, Artem Lapkin wrote:
> add aliases names led_white and led_red for white and red leds
Sorry, can you explain why you need these ? They should not be used by the led framework.
>
> Signed-off-by: Artem Lapkin <art@khadas.com>
> ---
> arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
> index 73783692e30..7e137399257 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
> @@ -12,6 +12,8 @@ / {
> aliases {
> serial0 = &uart_AO;
> ethernet0 = ðmac;
> + led_red = &led_red;
> + led_white = &led_white;
These aliases are not standard aliases.
> };
>
> chosen {
> @@ -39,13 +41,13 @@ button-function {
> leds {
> compatible = "gpio-leds";
>
> - led-white {
> + led_white: led-white {
> label = "vim3:white:sys";
> gpios = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_HIGH>;
> linux,default-trigger = "heartbeat";
> };
>
> - led-red {
> + led_red: led-red {
> label = "vim3:red";
> gpios = <&gpio_expander 5 GPIO_ACTIVE_HIGH>;
> };
>
Instead you should convert these to the new function/color attributes are described in:
Documentation/devicetree/bindings/leds/common.yaml
{
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_WHITE>;
}
Neil
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH 4/8] arm64: dts: meson: remove fixed memory size for Khadas VIM3/VIM3L meson-khadas-vim3
2020-09-25 3:30 [PATCH 0/8] dts updates and fixes for Khadas VIM1 VIM2 VIM3 VIML boards Artem Lapkin
` (2 preceding siblings ...)
2020-09-25 3:30 ` [PATCH 3/8] arm64: dts: meson: update leds node on Khadas VIM3/VIM3L board meson-khadas-vim3 Artem Lapkin
@ 2020-09-25 3:30 ` Artem Lapkin
2020-09-25 7:37 ` Martin Blumenstingl
2020-09-25 3:30 ` [PATCH 5/8] arm64: dts: meson: remove reset-gpios from ethernet node for VIM2 meson-gxm-khadas-vim2 Artem Lapkin
` (3 subsequent siblings)
7 siblings, 1 reply; 23+ messages in thread
From: Artem Lapkin @ 2020-09-25 3:30 UTC (permalink / raw)
To: narmstrong
Cc: khilman, robh+dt, jbrunet, martin.blumenstingl, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
no need force setup memory size!
VIM3 boards have 2Gb and 4Gb variants
memory size will be automatically defined
mainline uboot works properly in any case
but old vendor uboot works not properly for 4Gb variants
Signed-off-by: Artem Lapkin <art@khadas.com>
---
arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
index 7e137399257..3111bf35c0f 100644
--- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
@@ -20,10 +20,15 @@ chosen {
stdout-path = "serial0:115200n8";
};
+/* no need force setup memory size!
+ VIM3 boards have 2Gb and 4Gb variants
+ memory size will be automatically defined
+
memory@0 {
device_type = "memory";
reg = <0x0 0x0 0x0 0x80000000>;
};
+*/
adc-keys {
compatible = "adc-keys";
--
2.25.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH 4/8] arm64: dts: meson: remove fixed memory size for Khadas VIM3/VIM3L meson-khadas-vim3
2020-09-25 3:30 ` [PATCH 4/8] arm64: dts: meson: remove fixed memory size for Khadas VIM3/VIM3L meson-khadas-vim3 Artem Lapkin
@ 2020-09-25 7:37 ` Martin Blumenstingl
2020-09-25 7:40 ` Neil Armstrong
0 siblings, 1 reply; 23+ messages in thread
From: Martin Blumenstingl @ 2020-09-25 7:37 UTC (permalink / raw)
To: Artem Lapkin, robh+dt
Cc: Neil Armstrong, khilman, jbrunet, devicetree, linux-arm-kernel,
linux-amlogic, linux-kernel, art, nick, gouwa
Hi Artem,
On Fri, Sep 25, 2020 at 5:31 AM Artem Lapkin <email2tema@gmail.com> wrote:
>
> no need force setup memory size!
> VIM3 boards have 2Gb and 4Gb variants
> memory size will be automatically defined
>
> mainline uboot works properly in any case
> but old vendor uboot works not properly for 4Gb variants
can you be more specific with what "does not work properly"? is Linux
then only able to use 2GB or is there any other problem?
overall this sounds like a bug in the vendor u-boot to me
I don't see that we have any other Amlogic .dts which needs this hack,
so I'd like to hear the feedback from the device-tree maintainers (for
example Rob) as well
Best regards,
Martin
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 4/8] arm64: dts: meson: remove fixed memory size for Khadas VIM3/VIM3L meson-khadas-vim3
2020-09-25 7:37 ` Martin Blumenstingl
@ 2020-09-25 7:40 ` Neil Armstrong
0 siblings, 0 replies; 23+ messages in thread
From: Neil Armstrong @ 2020-09-25 7:40 UTC (permalink / raw)
To: Martin Blumenstingl, Artem Lapkin, robh+dt
Cc: khilman, jbrunet, devicetree, linux-arm-kernel, linux-amlogic,
linux-kernel, art, nick, gouwa
On 25/09/2020 09:37, Martin Blumenstingl wrote:
> Hi Artem,
>
> On Fri, Sep 25, 2020 at 5:31 AM Artem Lapkin <email2tema@gmail.com> wrote:
>>
>> no need force setup memory size!
>> VIM3 boards have 2Gb and 4Gb variants
>> memory size will be automatically defined
>>
>> mainline uboot works properly in any case
>> but old vendor uboot works not properly for 4Gb variants
> can you be more specific with what "does not work properly"? is Linux
> then only able to use 2GB or is there any other problem?
>
> overall this sounds like a bug in the vendor u-boot to me
> I don't see that we have any other Amlogic .dts which needs this hack,
> so I'd like to hear the feedback from the device-tree maintainers (for
> example Rob) as well
AFAIK the vendor u-boot updates the memory correctly, what it doesn't is adding
the reserved memory zones.
Neil
>
>
> Best regards,
> Martin
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH 5/8] arm64: dts: meson: remove reset-gpios from ethernet node for VIM2 meson-gxm-khadas-vim2
2020-09-25 3:30 [PATCH 0/8] dts updates and fixes for Khadas VIM1 VIM2 VIM3 VIML boards Artem Lapkin
` (3 preceding siblings ...)
2020-09-25 3:30 ` [PATCH 4/8] arm64: dts: meson: remove fixed memory size for Khadas VIM3/VIM3L meson-khadas-vim3 Artem Lapkin
@ 2020-09-25 3:30 ` Artem Lapkin
2020-09-25 7:41 ` Martin Blumenstingl
2020-09-25 3:30 ` [PATCH 6/8] arm64: dts: meson: disable vrtc for VIM3L boards meson-khadas-vim3 Artem Lapkin
` (2 subsequent siblings)
7 siblings, 1 reply; 23+ messages in thread
From: Artem Lapkin @ 2020-09-25 3:30 UTC (permalink / raw)
To: narmstrong
Cc: khilman, robh+dt, jbrunet, martin.blumenstingl, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
1) fix down/up ethernet interface - need remove reset-gpios for ethernet node
`ifconfig eth0 down && ifconfig eth0 up` # didnt works with reset-gpios
2) add max-speed 1Gbit
Signed-off-by: Artem Lapkin <art@khadas.com>
---
arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
index a6baf865aa2..70343da2811 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
@@ -195,7 +195,7 @@ external_phy: ethernet-phy@0 {
reset-assert-us = <10000>;
reset-deassert-us = <30000>;
- reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
+ max-speed = <1000>;
interrupt-parent = <&gpio_intc>;
/* MAC_INTR on GPIOZ_15 */
--
2.25.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH 5/8] arm64: dts: meson: remove reset-gpios from ethernet node for VIM2 meson-gxm-khadas-vim2
2020-09-25 3:30 ` [PATCH 5/8] arm64: dts: meson: remove reset-gpios from ethernet node for VIM2 meson-gxm-khadas-vim2 Artem Lapkin
@ 2020-09-25 7:41 ` Martin Blumenstingl
[not found] ` <CAKaHn9+CWLJYN1Tt46VxBGNBEbVVJZWeL6ZJSf9w-5DmoxrvgQ@mail.gmail.com>
0 siblings, 1 reply; 23+ messages in thread
From: Martin Blumenstingl @ 2020-09-25 7:41 UTC (permalink / raw)
To: Artem Lapkin
Cc: Neil Armstrong, khilman, robh+dt, jbrunet, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
Hello Artem,
On Fri, Sep 25, 2020 at 5:31 AM Artem Lapkin <email2tema@gmail.com> wrote:
>
> 1) fix down/up ethernet interface - need remove reset-gpios for ethernet node
>
> `ifconfig eth0 down && ifconfig eth0 up` # didnt works with reset-gpios
what is the problem that you observe here?
did you investigate further why resetting the PHY changes this?
the problem I see with removing the reset-gpios is that we cannot
fully reset the PHY into a defined state
some of the registers are kept with a soft-reset
> 2) add max-speed 1Gbit
my understanding is that max-speed is needed when (in this case) the
PHY advertises a higher speed than the hardware is actually capable of
(for whatever reason)
what is the problem that you have seen when max-speed was not set?
Best regards,
Martin
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH 6/8] arm64: dts: meson: disable vrtc for VIM3L boards meson-khadas-vim3
2020-09-25 3:30 [PATCH 0/8] dts updates and fixes for Khadas VIM1 VIM2 VIM3 VIML boards Artem Lapkin
` (4 preceding siblings ...)
2020-09-25 3:30 ` [PATCH 5/8] arm64: dts: meson: remove reset-gpios from ethernet node for VIM2 meson-gxm-khadas-vim2 Artem Lapkin
@ 2020-09-25 3:30 ` Artem Lapkin
2020-09-25 7:44 ` Neil Armstrong
2020-09-25 3:30 ` [PATCH 7/8] arm64: dts: meson: enable RTC for VIM1 meson-gxl-s905x-khadas-vim Artem Lapkin
2020-09-25 3:30 ` [PATCH 8/8] arm64: dts: meson: enable RTC for VIM2 meson-gxm-khadas-vim2 Artem Lapkin
7 siblings, 1 reply; 23+ messages in thread
From: Artem Lapkin @ 2020-09-25 3:30 UTC (permalink / raw)
To: narmstrong
Cc: khilman, robh+dt, jbrunet, martin.blumenstingl, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
vrtc not used for meson-khadas-vim3
Signed-off-by: Artem Lapkin <art@khadas.com>
---
arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
index 3111bf35c0f..81bb88a76d5 100644
--- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
@@ -284,6 +284,10 @@ &pwm_ef {
pinctrl-names = "default";
};
+&vrtc {
+ status = "disabled";
+};
+
&saradc {
status = "okay";
vref-supply = <&vddao_1v8>;
--
2.25.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH 6/8] arm64: dts: meson: disable vrtc for VIM3L boards meson-khadas-vim3
2020-09-25 3:30 ` [PATCH 6/8] arm64: dts: meson: disable vrtc for VIM3L boards meson-khadas-vim3 Artem Lapkin
@ 2020-09-25 7:44 ` Neil Armstrong
0 siblings, 0 replies; 23+ messages in thread
From: Neil Armstrong @ 2020-09-25 7:44 UTC (permalink / raw)
To: Artem Lapkin
Cc: khilman, robh+dt, jbrunet, martin.blumenstingl, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
Hi,
On 25/09/2020 05:30, Artem Lapkin wrote:
> vrtc not used for meson-khadas-vim3
>
> Signed-off-by: Artem Lapkin <art@khadas.com>
> ---
> arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
> index 3111bf35c0f..81bb88a76d5 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
> @@ -284,6 +284,10 @@ &pwm_ef {
> pinctrl-names = "default";
> };
>
> +&vrtc {
> + status = "disabled";
> +};
> +
> &saradc {
> status = "okay";
> vref-supply = <&vddao_1v8>;
>
The VRTC is one of the default suspend wake-up sources, so why would you disable it ?
If it collides with the real RTC, add aliases to move the vrtc in rtc1 and set the real RTC as rtc0.
» aliases·{
+» » rtc0·=·&rtc0;
+» » rtc1·=·&vrtc;
» };
Neil
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH 7/8] arm64: dts: meson: enable RTC for VIM1 meson-gxl-s905x-khadas-vim
2020-09-25 3:30 [PATCH 0/8] dts updates and fixes for Khadas VIM1 VIM2 VIM3 VIML boards Artem Lapkin
` (5 preceding siblings ...)
2020-09-25 3:30 ` [PATCH 6/8] arm64: dts: meson: disable vrtc for VIM3L boards meson-khadas-vim3 Artem Lapkin
@ 2020-09-25 3:30 ` Artem Lapkin
2020-09-25 7:31 ` Martin Blumenstingl
2020-09-25 3:30 ` [PATCH 8/8] arm64: dts: meson: enable RTC for VIM2 meson-gxm-khadas-vim2 Artem Lapkin
7 siblings, 1 reply; 23+ messages in thread
From: Artem Lapkin @ 2020-09-25 3:30 UTC (permalink / raw)
To: narmstrong
Cc: khilman, robh+dt, jbrunet, martin.blumenstingl, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
enable RTC for VIM1 meson-gxl-s905x-khadas-vim
Signed-off-by: Artem Lapkin <art@khadas.com>
---
arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts
index 8bcdffdf55d..354f21d4171 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts
@@ -98,7 +98,7 @@ &i2c_B {
rtc: rtc@51 {
/* has to be enabled manually when a battery is connected: */
- status = "disabled";
+ status = "okay";
compatible = "haoyu,hym8563";
reg = <0x51>;
#clock-cells = <0>;
--
2.25.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH 7/8] arm64: dts: meson: enable RTC for VIM1 meson-gxl-s905x-khadas-vim
2020-09-25 3:30 ` [PATCH 7/8] arm64: dts: meson: enable RTC for VIM1 meson-gxl-s905x-khadas-vim Artem Lapkin
@ 2020-09-25 7:31 ` Martin Blumenstingl
0 siblings, 0 replies; 23+ messages in thread
From: Martin Blumenstingl @ 2020-09-25 7:31 UTC (permalink / raw)
To: Artem Lapkin
Cc: Neil Armstrong, khilman, robh+dt, jbrunet, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
Hi Artem,
On Fri, Sep 25, 2020 at 5:31 AM Artem Lapkin <email2tema@gmail.com> wrote:
>
> enable RTC for VIM1 meson-gxl-s905x-khadas-vim
I think the commit message should always explain *why* the change is
necessary (what problem does it solve?)
for trivial changes the diff itself explains "what" is being changed
[...]
> diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts
> index 8bcdffdf55d..354f21d4171 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts
> +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts
> @@ -98,7 +98,7 @@ &i2c_B {
>
> rtc: rtc@51 {
> /* has to be enabled manually when a battery is connected: */
why do we need to keep this comment?
same feedback applies to patch 8
Best regards,
Martin
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH 8/8] arm64: dts: meson: enable RTC for VIM2 meson-gxm-khadas-vim2
2020-09-25 3:30 [PATCH 0/8] dts updates and fixes for Khadas VIM1 VIM2 VIM3 VIML boards Artem Lapkin
` (6 preceding siblings ...)
2020-09-25 3:30 ` [PATCH 7/8] arm64: dts: meson: enable RTC for VIM1 meson-gxl-s905x-khadas-vim Artem Lapkin
@ 2020-09-25 3:30 ` Artem Lapkin
2020-09-25 8:58 ` Jerome Brunet
7 siblings, 1 reply; 23+ messages in thread
From: Artem Lapkin @ 2020-09-25 3:30 UTC (permalink / raw)
To: narmstrong
Cc: khilman, robh+dt, jbrunet, martin.blumenstingl, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
enable RTC for VIM2 meson-gxm-khadas-vim2
Signed-off-by: Artem Lapkin <art@khadas.com>
---
arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
index 70343da2811..76b7e34a9a3 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
@@ -229,7 +229,7 @@ &i2c_B {
rtc: rtc@51 {
/* has to be enabled manually when a battery is connected: */
- status = "disabled";
+ status = "okay";
compatible = "haoyu,hym8563";
reg = <0x51>;
#clock-cells = <0>;
--
2.25.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH 8/8] arm64: dts: meson: enable RTC for VIM2 meson-gxm-khadas-vim2
2020-09-25 3:30 ` [PATCH 8/8] arm64: dts: meson: enable RTC for VIM2 meson-gxm-khadas-vim2 Artem Lapkin
@ 2020-09-25 8:58 ` Jerome Brunet
0 siblings, 0 replies; 23+ messages in thread
From: Jerome Brunet @ 2020-09-25 8:58 UTC (permalink / raw)
To: Artem Lapkin, narmstrong
Cc: khilman, robh+dt, martin.blumenstingl, devicetree,
linux-arm-kernel, linux-amlogic, linux-kernel, art, nick, gouwa
On Fri 25 Sep 2020 at 05:30, Artem Lapkin <email2tema@gmail.com> wrote:
> enable RTC for VIM2 meson-gxm-khadas-vim2
>
> Signed-off-by: Artem Lapkin <art@khadas.com>
> ---
> arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
> index 70343da2811..76b7e34a9a3 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
> +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
> @@ -229,7 +229,7 @@ &i2c_B {
>
> rtc: rtc@51 {
> /* has to be enabled manually when a battery is connected: */
If going for this change, this comment should have been removed
> - status = "disabled";
> + status = "okay";
Unless the VIMs are provided with a battery by default, I believe this
should be kept disabled and only enabled by the bootloader if necessary.
If you think differently, feel free to resubmit with a complete commit
description and some details as to how this would be an improvement.
> compatible = "haoyu,hym8563";
> reg = <0x51>;
> #clock-cells = <0>;
^ permalink raw reply [flat|nested] 23+ messages in thread