[PATCH 2/2] arm64: dts: meson: initial support for aml-s905x-cc v2
Add initial support for the libretech aml-s905x-cc (Le Potato) v2 Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../meson-gxl-s905x-libretech-cc-v2.dts | 318 ++ 2 files changed, 319 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 4e2239ffcaa5..be5277b7fbf4 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -24,6 +24,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s805x-libretech-ac.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-hwacom-amazetv.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-khadas-vim.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc-v2.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-nexbox-a95x.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-p212.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-p230.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts new file mode 100644 index ..675eaa87963e --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts @@ -0,0 +1,318 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2020 BayLibre, SAS. + * Author: Jerome Brunet + */ + +/dts-v1/; + +#include +#include +#include + +#include "meson-gxl-s905x.dtsi" + +/ { + compatible = "libretech,aml-s905x-cc-v2", "amlogic,s905x", +"amlogic,meson-gxl"; + model = "Libre Computer AML-S905X-CC V2"; + + aliases { + serial0 = &uart_AO; + ethernet0 = ðmac; + spi0 = &spifc; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + emmc_pwrseq: emmc-pwrseq { + compatible = "mmc-pwrseq-emmc"; + reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; + }; + + hdmi-connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&hdmi_tx_tmds_out>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led-blue { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + panic-indicator; + }; + + led-green { + color = ; + function = LED_FUNCTION_DISK_ACTIVITY; + gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "disk-activity"; + }; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x8000>; + }; + + ao_5v: regulator-ao_5v { + compatible = "regulator-fixed"; + regulator-name = "AO_5V"; + regulator-min-microvolt = <500>; + regulator-max-microvolt = <500>; + vin-supply = <&dc_in>; + regulator-always-on; + }; + + dc_in: regulator-dc_in { + compatible = "regulator-fixed"; + regulator-name = "DC_IN"; + regulator-min-microvolt = <500>; + regulator-max-microvolt = <500>; + regulator-always-on; + }; + + + vcck: regulator-vcck { + compatible = "regulator-fixed"; + regulator-name = "VCCK"; + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + vin-supply = <&ao_5v>; + regulator-always-on; + }; + + vcc_card: regulator-vcc_card { + compatible = "regulator-fixed"; + regulator-name = "VCC_CARD"; + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + vin-supply = <&vddio_ao3v3>; + + gpio = <&gpio GPIOCLK_1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vcc5v: regulator-vcc5v { + compatible = "regulator-fixed"; + regulator-name = "VCC5V"; + regulator-min-microvolt = <500>; + regulator-max-microvolt = <500>; + vin-supply = <&ao_5v>; + + gpio = <&gpio GPIOH_3 GPIO_OPEN_DRAIN>; + }; + + vddio_ao3v3: regulator-vddio_ao3v3 { + compatible = "regulator-fixed"; + regulator-name = "VDDIO_AO3V3"; + r
Re: [PATCH 2/2] arm64: dts: meson: initial support for aml-s905x-cc v2
Hi, On 15/09/2020 16:19, Jerome Brunet wrote: > Add initial support for the libretech aml-s905x-cc (Le Potato) v2 > > Signed-off-by: Jerome Brunet > --- > arch/arm64/boot/dts/amlogic/Makefile | 1 + > .../meson-gxl-s905x-libretech-cc-v2.dts | 318 ++ > 2 files changed, 319 insertions(+) > create mode 100644 > arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts > > diff --git a/arch/arm64/boot/dts/amlogic/Makefile > b/arch/arm64/boot/dts/amlogic/Makefile > index 4e2239ffcaa5..be5277b7fbf4 100644 > --- a/arch/arm64/boot/dts/amlogic/Makefile > +++ b/arch/arm64/boot/dts/amlogic/Makefile > @@ -24,6 +24,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s805x-libretech-ac.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-hwacom-amazetv.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-khadas-vim.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc.dtb > +dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc-v2.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-nexbox-a95x.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-p212.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-p230.dtb > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts > b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts > new file mode 100644 > index ..675eaa87963e > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts > @@ -0,0 +1,318 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (c) 2020 BayLibre, SAS. > + * Author: Jerome Brunet > + */ > + > +/dts-v1/; > + > +#include > +#include > +#include > + > +#include "meson-gxl-s905x.dtsi" > + > +/ { > + compatible = "libretech,aml-s905x-cc-v2", "amlogic,s905x", > + "amlogic,meson-gxl"; > + model = "Libre Computer AML-S905X-CC V2"; > + > + aliases { > + serial0 = &uart_AO; > + ethernet0 = ðmac; > + spi0 = &spifc; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + emmc_pwrseq: emmc-pwrseq { > + compatible = "mmc-pwrseq-emmc"; > + reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; > + }; > + > + hdmi-connector { > + compatible = "hdmi-connector"; > + type = "a"; > + > + port { > + hdmi_connector_in: endpoint { > + remote-endpoint = <&hdmi_tx_tmds_out>; > + }; > + }; > + }; > + > + leds { > + compatible = "gpio-leds"; > + > + led-blue { > + color = ; > + function = LED_FUNCTION_STATUS; > + gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "heartbeat"; > + panic-indicator; > + }; > + > + led-green { > + color = ; > + function = LED_FUNCTION_DISK_ACTIVITY; > + gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "disk-activity"; > + }; > + }; > + > + memory@0 { > + device_type = "memory"; > + reg = <0x0 0x0 0x0 0x8000>; > + }; > + > + ao_5v: regulator-ao_5v { > + compatible = "regulator-fixed"; > + regulator-name = "AO_5V"; > + regulator-min-microvolt = <500>; > + regulator-max-microvolt = <500>; > + vin-supply = <&dc_in>; > + regulator-always-on; > + }; > + > + dc_in: regulator-dc_in { > + compatible = "regulator-fixed"; > + regulator-name = "DC_IN"; > + regulator-min-microvolt = <500>; > + regulator-max-microvolt = <500>; > + regulator-always-on; > + }; > + > + > + vcck: regulator-vcck { > + compatible = "regulator-fixed"; > + regulator-name = "VCCK"; > + regulator-min-microvolt = <330>; > + regulator-max-microvolt = <330>; > + vin-supply = <&ao_5v>; > + regulator-always-on; > + }; > + > + vcc_card: regulator-vcc_card { > + compatible = "regulator-fixed"; > + regulator-name = "VCC_CARD"; > + regulator-min-microvolt = <330>; > + regulator-max-microvolt = <330>; > + vin-supply = <&vddio_ao3v3>; > + > + gpio = <&gpio GPIOCLK_1 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > + > + vcc5v: regulator-vcc5v { > + compatible = "regulator-fixed"; > + regulator-name = "VCC5V"; > + regulator-min-microvolt = <500>; > + regulator-max-microvolt = <500>; > + vin-supply = <&ao_5v>; > + > + gpio = <&gpio GPIOH_3 GPIO_OPEN_DRAIN>;
Re: [PATCH 2/2] arm64: dts: meson: initial support for aml-s905x-cc v2
On Tue 15 Sep 2020 at 16:30, Neil Armstrong wrote: > Hi, > > On 15/09/2020 16:19, Jerome Brunet wrote: >> Add initial support for the libretech aml-s905x-cc (Le Potato) v2 >> >> Signed-off-by: Jerome Brunet >> --- >> arch/arm64/boot/dts/amlogic/Makefile | 1 + >> .../meson-gxl-s905x-libretech-cc-v2.dts | 318 ++ >> 2 files changed, 319 insertions(+) >> create mode 100644 >> arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts >> >> diff --git a/arch/arm64/boot/dts/amlogic/Makefile >> b/arch/arm64/boot/dts/amlogic/Makefile >> index 4e2239ffcaa5..be5277b7fbf4 100644 >> --- a/arch/arm64/boot/dts/amlogic/Makefile >> +++ b/arch/arm64/boot/dts/amlogic/Makefile >> @@ -24,6 +24,7 @@ dtb-$(CONFIG_ARCH_MESON) += >> meson-gxl-s805x-libretech-ac.dtb >> dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-hwacom-amazetv.dtb >> dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-khadas-vim.dtb >> dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc.dtb >> +dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc-v2.dtb >> dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-nexbox-a95x.dtb >> dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-p212.dtb >> dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-p230.dtb >> diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts >> b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts >> new file mode 100644 >> index ..675eaa87963e >> --- /dev/null >> +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts >> @@ -0,0 +1,318 @@ >> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) >> +/* >> + * Copyright (c) 2020 BayLibre, SAS. >> + * Author: Jerome Brunet >> + */ >> + >> +/dts-v1/; >> + >> +#include >> +#include >> +#include >> + >> +#include "meson-gxl-s905x.dtsi" >> + >> +/ { >> +compatible = "libretech,aml-s905x-cc-v2", "amlogic,s905x", >> + "amlogic,meson-gxl"; >> +model = "Libre Computer AML-S905X-CC V2"; >> + >> +aliases { >> +serial0 = &uart_AO; >> +ethernet0 = ðmac; >> +spi0 = &spifc; >> +}; >> + >> +chosen { >> +stdout-path = "serial0:115200n8"; >> +}; >> + >> +emmc_pwrseq: emmc-pwrseq { >> +compatible = "mmc-pwrseq-emmc"; >> +reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; >> +}; >> + >> +hdmi-connector { >> +compatible = "hdmi-connector"; >> +type = "a"; >> + >> +port { >> +hdmi_connector_in: endpoint { >> +remote-endpoint = <&hdmi_tx_tmds_out>; >> +}; >> +}; >> +}; >> + >> +leds { >> +compatible = "gpio-leds"; >> + >> +led-blue { >> +color = ; >> +function = LED_FUNCTION_STATUS; >> +gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>; >> +linux,default-trigger = "heartbeat"; >> +panic-indicator; >> +}; >> + >> +led-green { >> +color = ; >> +function = LED_FUNCTION_DISK_ACTIVITY; >> +gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>; >> +linux,default-trigger = "disk-activity"; >> +}; >> +}; >> + >> +memory@0 { >> +device_type = "memory"; >> +reg = <0x0 0x0 0x0 0x8000>; >> +}; >> + >> +ao_5v: regulator-ao_5v { >> +compatible = "regulator-fixed"; >> +regulator-name = "AO_5V"; >> +regulator-min-microvolt = <500>; >> +regulator-max-microvolt = <500>; >> +vin-supply = <&dc_in>; >> +regulator-always-on; >> +}; >> + >> +dc_in: regulator-dc_in { >> +compatible = "regulator-fixed"; >> +regulator-name = "DC_IN"; >> +regulator-min-microvolt = <500>; >> +regulator-max-microvolt = <500>; >> +regulator-always-on; >> +}; >> + >> + >> +vcck: regulator-vcck { >> +compatible = "regulator-fixed"; >> +regulator-name = "VCCK"; >> +regulator-min-microvolt = <330>; >> +regulator-max-microvolt = <330>; >> +vin-supply = <&ao_5v>; >> +regulator-always-on; >> +}; >> + >> +vcc_card: regulator-vcc_card { >> +compatible = "regulator-fixed"; >> +regulator-name = "VCC_CARD"; >> +regulator-min-microvolt = <330>; >> +regulator-max-microvolt = <330>; >> +vin-supply = <&vddio_ao3v3>; >> + >> +gpio = <&gpio GPIOCLK_1 GPIO_ACTIVE_HIGH>; >> +enable-active-high; >> +}; >> + >> +vcc5v: regulator-vcc5v { >> +compatible = "regulator-fixed"; >> +regulator-name = "VCC5V"; >> +regulator-min-microvolt = <500>; >> +regulator-m