arm64: meson-sm1: add support for the SM1 based VIM3L
Subsystems (2)
v3 cover arm64: meson-sm1: add support for the SM1 based VIM3L
This patchset adds support for the Amlogic SM1 based Khadas VIM3L variant.
The S903D3 package variant of SM1 is pin-to-pin compatible with the S922X and A311d, so only internal DT changes are needed :
- DVFS support is different
- Audio support not yet available for SM1
This patchset moved all the non-g12b nodes to meson-khadas-vim3.dtsi and add the sm1 specific nodes into meson-sm1-khadas-vim3l.dts.
Display has a color conversion bug on SM1 by using a more recent vendor bootloader on the SM1 based VIM3, this is out of scope of this patchset and will be fixed in the drm/meson driver.
Dependencies:
- patch 1,2: None
- patch 3: Depends on the "arm64: meson-sm1: add support for DVFS" patchset at [1]
Changes since v2:
- fixed patch 2 subject
Changes since v1:
- renamed compatible to khadas,vim3l
- renamed DT file to meson-sm1-khadas-vim3l.dts
[1] https://patchwork.kernel.org/cover/11109411/
Neil Armstrong (3):
arm64: dts: khadas-vim3: move common nodes into meson-khadas-vim3.dtsi
dt-bindings: arm: amlogic: add Amlogic SM1 based Khadas VIM3L bindings
arm64: dts: khadas-vim3: add support for the SM1 based VIM3L
.../devicetree/bindings/arm/amlogic.yaml | 3 +- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../amlogic/meson-g12b-a311d-khadas-vim3.dts | 1 + .../dts/amlogic/meson-g12b-khadas-vim3.dtsi | 355 ----------------- .../amlogic/meson-g12b-s922x-khadas-vim3.dts | 1 + .../boot/dts/amlogic/meson-khadas-vim3.dtsi | 360 ++++++++++++++++++ .../dts/amlogic/meson-sm1-khadas-vim3l.dts | 70 ++++ 7 files changed, 435 insertions(+), 356 deletions(-) create mode 100644 arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts
Signature · 1 line
2.22.0
PATCH v3 1/3 arm64: dts: khadas-vim3: move common nodes into meson-khadas-vim3.dtsi
To prepare support of the Amlogic SM1 based Khadas VIM3, move the non-G12B specific nodes (all except DVFS and Audio) to a new meson-khadas-vim3.dtsi
--- .../amlogic/meson-g12b-a311d-khadas-vim3.dts | 1 + .../dts/amlogic/meson-g12b-khadas-vim3.dtsi | 355 ----------------- .../amlogic/meson-g12b-s922x-khadas-vim3.dts | 1 + .../boot/dts/amlogic/meson-khadas-vim3.dtsi | 360 ++++++++++++++++++ 4 files changed, 362 insertions(+), 355 deletions(-) create mode 100644 arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts +1 -0
@@ -8,6 +8,7 @@ /dts-v1/; #include "meson-g12b-a311d.dtsi" +#include "meson-khadas-vim3.dtsi" #include "meson-g12b-khadas-vim3.dtsi" / {
arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi +0 -355
397 lines not on this page · raw message
arch/arm64/boot/dts/amlogic/meson-g12b-s922x-khadas-vim3.dts +1 -0
@@ -8,6 +8,7 @@ /dts-v1/; #include "meson-g12b-s922x.dtsi" +#include "meson-khadas-vim3.dtsi" #include "meson-g12b-khadas-vim3.dtsi" / {
arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi new file +360 -0
360 lines not on this page · raw message
Signature · 1 line
2.22.0
PATCH v3 2/3 dt-bindings: arm: amlogic: add Amlogic SM1 based Khadas VIM3L bindings
In reply to Neil ArmstrongThe Khadas VIM3 is also available as VIM3L with the Pin-to-pin compatible Amlogic SM1 SoC in the S905D3 variant package.
Change the description to match the S905X3/D3/Y3 variants like the G12A description, and add the khadas,vim3l compatible.
--- Documentation/devicetree/bindings/arm/amlogic.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/arm/amlogic.yaml +2 -1
@@ -150,9 +150,10 @@ properties: - const: amlogic,s922x - const: amlogic,g12b - - description: Boards with the Amlogic Meson SM1 S905X3 SoC + - description: Boards with the Amlogic Meson SM1 S905X3/D3/Y3 SoC items: - enum: - seirobotics,sei610 + - khadas,vim3l - const: amlogic,sm1 ...
Signature · 1 line
2.22.0
Re: [PATCH v3 2/3] dt-bindings: arm: amlogic: add Amlogic SM1 based Khadas VIM3L bindings
Quoted 10 lines · Neil Armstrong
The Khadas VIM3 is also available as VIM3L with the Pin-to-pin compatible Amlogic SM1 SoC in the S905D3 variant package.
Change the description to match the S905X3/D3/Y3 variants like the G12A description, and add the khadas,vim3l compatible.
Signed-off-by Neil Armstrong <[email protected]>--- Documentation/devicetree/bindings/arm/amlogic.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
PATCH v3 3/3 arm64: dts: khadas-vim3: add support for the SM1 based VIM3L
In reply to Neil ArmstrongAdd the Amlogic SM1 based Khadas VIM3L, sharing all the same features as the G12B based VIM3, but:
- a different DVFS support since only a single cluster is available
- audio is still not available on SM1
--- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../dts/amlogic/meson-sm1-khadas-vim3l.dts | 70 +++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts
arch/arm64/boot/dts/amlogic/Makefile +1 -0
@@ -35,3 +35,4 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxm-q201.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxm-rbox-pro.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxm-vega-s96.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-sei610.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-sm1-khadas-vim3l.dtb
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts new file +70 -0
70 lines not on this page · raw message
Signature · 1 line
2.22.0
Quoted 9 lines · Neil Armstrong
This patchset adds support for the Amlogic SM1 based Khadas VIM3L variant.
The S903D3 package variant of SM1 is pin-to-pin compatible with the S922X and A311d, so only internal DT changes are needed :
- DVFS support is different
- Audio support not yet available for SM1This patchset moved all the non-g12b nodes to
meson-khadas-vim3.dtsiand add the sm1 specific nodes intomeson-sm1-khadas-vim3l.dts.
Basic boot test + suspend/resume test OK on my vim3L (thanks to Khadas for the board!)
Quoted 7 lines
Display has a color conversion bug on SM1 by using a more recent vendor bootloader on the SM1 based VIM3, this is out of scope of this patchset and will be fixed in the drm/meson driver.
Dependencies:
- patch 1,2: None
- patch 3: Depends on the "arm64: meson-sm1: add support for DVFS" patchset at [1]
I tested in my integ branch where this series is applied, but I'm not seeing any OPPs created (/sys/devices/system/cpu/cpufreq/)
Kevin
Quoted 22 lines · Kevin Hilman
Quoted 9 lines · Neil Armstrong
This patchset adds support for the Amlogic SM1 based Khadas VIM3L variant.
The S903D3 package variant of SM1 is pin-to-pin compatible with the S922X and A311d, so only internal DT changes are needed :
- DVFS support is different
- Audio support not yet available for SM1This patchset moved all the non-g12b nodes to
meson-khadas-vim3.dtsiand add the sm1 specific nodes intomeson-sm1-khadas-vim3l.dts.Reviewed-by Kevin Hilman <[email protected]>Tested-by Kevin Hilman <[email protected]>Basic boot test + suspend/resume test OK on my vim3L (thanks to Khadas for the board!)
Quoted 4 lines
Display has a color conversion bug on SM1 by using a more recent vendor bootloader on the SM1 based VIM3, this is out of scope of this patchset and will be fixed in the drm/meson driver.
Quoted 6 lines
Quoted 3 lines
Dependencies:
- patch 1,2: None
- patch 3: Depends on the "arm64: meson-sm1: add support for DVFS" patchset at [1]I tested in my integ branch where this series is applied, but I'm not seeing any OPPs created (
/sys/devices/system/cpu/cpufreq/)
These patches were sent from your integ branch, on top of :
commit 395df5af4c782ad19fb34b9a2009ca240eeb9749 (khilman-amlogic/v5.4/integ)
Merge: 2fcc5666dd45 9557737987bb
Author: Kevin Hilman <[email protected]>
Date: Tue Aug 27 15:39:46 2019 -0700
Merge branch 'v5.4/testing' into tmp/aml-rebuild
Rebuilt and retested, and I get the OPPs just fine :
# cat /sys/bus/cpu/devices/cpu0/cpufreq/scaling_available_frequencies 100000 250000 500000 666666 1000000 1200000 1404000 1500000 1608000 1704000 1800000 1908000
Here is the boot log:
https://pastebin.com/LY21gU9E
and .config:
https://termbin.com/1s5g
Neil
Quoted 3 lines
Kevin
Kevin Hilman
maintainerQuoted 36 lines · Neil Armstrong
Quoted 22 lines · Kevin Hilman
Quoted 9 lines · Neil Armstrong
This patchset adds support for the Amlogic SM1 based Khadas VIM3L variant.
The S903D3 package variant of SM1 is pin-to-pin compatible with the S922X and A311d, so only internal DT changes are needed :
- DVFS support is different
- Audio support not yet available for SM1This patchset moved all the non-g12b nodes to
meson-khadas-vim3.dtsiand add the sm1 specific nodes intomeson-sm1-khadas-vim3l.dts.Reviewed-by Kevin Hilman <[email protected]>Tested-by Kevin Hilman <[email protected]>Basic boot test + suspend/resume test OK on my vim3L (thanks to Khadas for the board!)
Quoted 4 lines
Display has a color conversion bug on SM1 by using a more recent vendor bootloader on the SM1 based VIM3, this is out of scope of this patchset and will be fixed in the drm/meson driver.
Quoted 6 lines
Quoted 3 lines
Dependencies:
- patch 1,2: None
- patch 3: Depends on the "arm64: meson-sm1: add support for DVFS" patchset at [1]I tested in my integ branch where this series is applied, but I'm not seeing any OPPs created (
/sys/devices/system/cpu/cpufreq/)These patches were sent from your integ branch, on top of :
commit395df5af4c782ad19fb34b9a2009ca240eeb9749(khilman-amlogic/v5.4/integ)
Merge:2fcc5666dd459557737987bb
Author: Kevin Hilman <[email protected]>
Date: Tue Aug 27 15:39:46 2019 -0700
Quoted 5 lines
Merge branch 'v5.4/testing' into tmp/aml-rebuild
Rebuilt and retested, and I get the OPPs just fine :
# cat /sys/bus/cpu/devices/cpu0/cpufreq/scaling_available_frequencies 100000 250000 500000 666666 1000000 1200000 1404000 1500000 1608000 1704000 1800000 1908000
Thanks for confirming.
Indeed, there was an issue with my most recent integ branch (it was missing the driver side of some SM1 clocks.) Fixing that issue, and retesting this series it all works well.
Queuing for v5.4,
Thanks,
Kevin