003 File Manager
Current Path:
/usr/src/sys/contrib/device-tree/src/arm64/amlogic
usr
/
src
/
sys
/
contrib
/
device-tree
/
src
/
arm64
/
amlogic
/
📁
..
📄
meson-a1-ad401.dts
(455 B)
📄
meson-a1.dtsi
(3.46 KB)
📄
meson-axg-s400.dts
(11.36 KB)
📄
meson-axg.dtsi
(38.17 KB)
📄
meson-g12-common.dtsi
(52.74 KB)
📄
meson-g12.dtsi
(11.08 KB)
📄
meson-g12a-sei510.dts
(10.67 KB)
📄
meson-g12a-u200.dts
(5.95 KB)
📄
meson-g12a-x96-max.dts
(9.07 KB)
📄
meson-g12a.dtsi
(2.55 KB)
📄
meson-g12b-a311d-khadas-vim3.dts
(1.25 KB)
📄
meson-g12b-a311d.dtsi
(2.89 KB)
📄
meson-g12b-gtking-pro.dts
(2.12 KB)
📄
meson-g12b-gtking.dts
(2.45 KB)
📄
meson-g12b-khadas-vim3.dtsi
(3.45 KB)
📄
meson-g12b-odroid-n2.dts
(12.42 KB)
📄
meson-g12b-s922x-khadas-vim3.dts
(1.25 KB)
📄
meson-g12b-s922x.dtsi
(2.44 KB)
📄
meson-g12b-ugoos-am6.dts
(3.06 KB)
📄
meson-g12b-w400.dtsi
(8.46 KB)
📄
meson-g12b.dtsi
(2.65 KB)
📄
meson-gx-libretech-pc.dtsi
(8.56 KB)
📄
meson-gx-mali450.dtsi
(1.48 KB)
📄
meson-gx-p23x-q20x.dtsi
(6.1 KB)
📄
meson-gx.dtsi
(15.66 KB)
📄
meson-gxbb-kii-pro.dts
(1.46 KB)
📄
meson-gxbb-nanopi-k2.dts
(7.95 KB)
📄
meson-gxbb-nexbox-a95x.dts
(5.36 KB)
📄
meson-gxbb-odroidc2.dts
(8.16 KB)
📄
meson-gxbb-p200.dts
(2 KB)
📄
meson-gxbb-p201.dts
(555 B)
📄
meson-gxbb-p20x.dtsi
(4.65 KB)
📄
meson-gxbb-vega-s95-meta.dts
(345 B)
📄
meson-gxbb-vega-s95-pro.dts
(343 B)
📄
meson-gxbb-vega-s95-telos.dts
(347 B)
📄
meson-gxbb-vega-s95.dtsi
(5.11 KB)
📄
meson-gxbb-wetek-hub.dts
(313 B)
📄
meson-gxbb-wetek-play2.dts
(1.01 KB)
📄
meson-gxbb-wetek.dtsi
(5.32 KB)
📄
meson-gxbb.dtsi
(16.07 KB)
📄
meson-gxl-mali.dtsi
(404 B)
📄
meson-gxl-s805x-libretech-ac.dts
(6.48 KB)
📄
meson-gxl-s805x-p241.dts
(4.19 KB)
📄
meson-gxl-s805x.dtsi
(459 B)
📄
meson-gxl-s905d-libretech-pc.dts
(363 B)
📄
meson-gxl-s905d-p230.dts
(2.13 KB)
📄
meson-gxl-s905d-p231.dts
(550 B)
📄
meson-gxl-s905d-phicomm-n1.dts
(514 B)
📄
meson-gxl-s905d-sml5442tw.dts
(1.61 KB)
📄
meson-gxl-s905d.dtsi
(262 B)
📄
meson-gxl-s905w-p281.dts
(589 B)
📄
meson-gxl-s905w-tx3-mini.dts
(637 B)
📄
meson-gxl-s905x-hwacom-amazetv.dts
(3.19 KB)
📄
meson-gxl-s905x-khadas-vim.dts
(4.41 KB)
📄
meson-gxl-s905x-libretech-cc.dts
(7.37 KB)
📄
meson-gxl-s905x-nexbox-a95x.dts
(4.19 KB)
📄
meson-gxl-s905x-p212.dts
(1.17 KB)
📄
meson-gxl-s905x-p212.dtsi
(4.16 KB)
📄
meson-gxl-s905x.dtsi
(375 B)
📄
meson-gxl.dtsi
(17.39 KB)
📄
meson-gxm-khadas-vim2.dts
(7.74 KB)
📄
meson-gxm-nexbox-a1.dts
(3.33 KB)
📄
meson-gxm-q200.dts
(1.64 KB)
📄
meson-gxm-q201.dts
(542 B)
📄
meson-gxm-rbox-pro.dts
(3.85 KB)
📄
meson-gxm-s912-libretech-pc.dts
(1.18 KB)
📄
meson-gxm-vega-s96.dts
(783 B)
📄
meson-gxm-wetek-core2.dts
(1.67 KB)
📄
meson-gxm.dtsi
(4.14 KB)
📄
meson-khadas-vim3.dtsi
(8.01 KB)
📄
meson-sm1-khadas-vim3l.dts
(3.61 KB)
📄
meson-sm1-odroid-c4.dts
(9.7 KB)
📄
meson-sm1-sei610.dts
(11.83 KB)
📄
meson-sm1.dtsi
(13.43 KB)
Editing: meson-gxm-khadas-vim2.dts
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* * Copyright (c) 2017 Martin Blumenstingl <martin.blumenstingl@googlemail.com>. * Copyright (c) 2017 BayLibre, SAS * Author: Neil Armstrong <narmstrong@baylibre.com> */ /dts-v1/; #include <dt-bindings/input/input.h> #include "meson-gxm.dtsi" / { compatible = "khadas,vim2", "amlogic,s912", "amlogic,meson-gxm"; model = "Khadas VIM2"; aliases { serial0 = &uart_AO; serial2 = &uart_AO_B; }; chosen { stdout-path = "serial0:115200n8"; }; memory@0 { device_type = "memory"; reg = <0x0 0x0 0x0 0x80000000>; }; adc-keys { compatible = "adc-keys"; io-channels = <&saradc 0>; io-channel-names = "buttons"; keyup-threshold-microvolt = <1710000>; button-function { label = "Function"; linux,code = <KEY_FN>; press-threshold-microvolt = <10000>; }; }; emmc_pwrseq: emmc-pwrseq { compatible = "mmc-pwrseq-emmc"; reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; }; gpio_fan: gpio-fan { compatible = "gpio-fan"; gpios = <&gpio GPIODV_14 GPIO_ACTIVE_HIGH &gpio GPIODV_15 GPIO_ACTIVE_HIGH>; /* Dummy RPM values since fan is optional */ gpio-fan,speed-map = <0 0 1 1 2 2 3 3>; #cooling-cells = <2>; }; gpio-keys-polled { compatible = "gpio-keys-polled"; poll-interval = <100>; power-button { label = "power"; linux,code = <KEY_POWER>; gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>; }; }; hdmi-connector { compatible = "hdmi-connector"; type = "a"; port { hdmi_connector_in: endpoint { remote-endpoint = <&hdmi_tx_tmds_out>; }; }; }; pwmleds { compatible = "pwm-leds"; power { label = "vim:red:power"; pwms = <&pwm_AO_ab 1 7812500 0>; max-brightness = <255>; linux,default-trigger = "default-on"; }; }; sdio_pwrseq: sdio-pwrseq { compatible = "mmc-pwrseq-simple"; reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; clocks = <&wifi32k>; clock-names = "ext_clock"; }; hdmi_5v: regulator-hdmi-5v { compatible = "regulator-fixed"; regulator-name = "HDMI_5V"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; gpio = <&gpio GPIOH_3 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-always-on; }; vcc_3v3: regulator-vcc_3v3 { compatible = "regulator-fixed"; regulator-name = "VCC_3V3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; vddio_ao18: regulator-vddio_ao18 { compatible = "regulator-fixed"; regulator-name = "VDDIO_AO18"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; }; vddio_boot: regulator-vddio_boot { compatible = "regulator-fixed"; regulator-name = "VDDIO_BOOT"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; }; vddao_3v3: regulator-vddao_3v3 { compatible = "regulator-fixed"; regulator-name = "VDDAO_3V3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ }; }; &cec_AO { status = "okay"; pinctrl-0 = <&ao_cec_pins>; pinctrl-names = "default"; hdmi-phandle = <&hdmi_tx>; }; &cpu_cooling_maps { map0 { cooling-device = <&gpio_fan THERMAL_NO_LIMIT 1>; }; map1 { cooling-device = <&gpio_fan 2 THERMAL_NO_LIMIT>, <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; ðmac { pinctrl-0 = <ð_pins>; pinctrl-names = "default"; /* Select external PHY by default */ phy-handle = <&external_phy>; amlogic,tx-delay-ns = <2>; /* External PHY is in RGMII */ phy-mode = "rgmii"; status = "okay"; }; &external_mdio { external_phy: ethernet-phy@0 { /* Realtek RTL8211F (0x001cc916) */ reg = <0>; reset-assert-us = <10000>; reset-deassert-us = <30000>; reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>; interrupt-parent = <&gpio_intc>; /* MAC_INTR on GPIOZ_15 */ interrupts = <25 IRQ_TYPE_LEVEL_LOW>; }; }; &hdmi_tx { status = "okay"; pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; pinctrl-names = "default"; hdmi-supply = <&hdmi_5v>; }; &hdmi_tx_tmds_port { hdmi_tx_tmds_out: endpoint { remote-endpoint = <&hdmi_connector_in>; }; }; &i2c_A { status = "okay"; pinctrl-0 = <&i2c_a_pins>; pinctrl-names = "default"; }; &i2c_B { status = "okay"; pinctrl-0 = <&i2c_b_pins>; pinctrl-names = "default"; rtc: rtc@51 { /* has to be enabled manually when a battery is connected: */ status = "disabled"; compatible = "haoyu,hym8563"; reg = <0x51>; #clock-cells = <0>; clock-frequency = <32768>; clock-output-names = "xin32k"; }; }; &ir { status = "okay"; pinctrl-0 = <&remote_input_ao_pins>; pinctrl-names = "default"; linux,rc-map-name = "rc-khadas"; }; &pwm_AO_ab { status = "okay"; pinctrl-0 = <&pwm_ao_a_3_pins>, <&pwm_ao_b_pins>; pinctrl-names = "default"; clocks = <&clkc CLKID_FCLK_DIV4>; clock-names = "clkin0"; }; &pwm_ef { status = "okay"; pinctrl-0 = <&pwm_e_pins>, <&pwm_f_clk_pins>; pinctrl-names = "default"; clocks = <&clkc CLKID_FCLK_DIV4>; clock-names = "clkin0"; }; &sd_emmc_a { status = "okay"; pinctrl-0 = <&sdio_pins>; pinctrl-1 = <&sdio_clk_gate_pins>; pinctrl-names = "default", "clk-gate"; #address-cells = <1>; #size-cells = <0>; bus-width = <4>; max-frequency = <60000000>; non-removable; disable-wp; /* WiFi firmware requires power to be kept while in suspend */ keep-power-in-suspend; mmc-pwrseq = <&sdio_pwrseq>; vmmc-supply = <&vddao_3v3>; vqmmc-supply = <&vddio_boot>; brcmf: wifi@1 { reg = <1>; compatible = "brcm,bcm4329-fmac"; }; }; /* SD card */ &sd_emmc_b { status = "okay"; pinctrl-0 = <&sdcard_pins>; pinctrl-1 = <&sdcard_clk_gate_pins>; pinctrl-names = "default", "clk-gate"; bus-width = <4>; cap-sd-highspeed; max-frequency = <50000000>; disable-wp; cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; vmmc-supply = <&vddao_3v3>; vqmmc-supply = <&vddio_boot>; }; /* eMMC */ &sd_emmc_c { status = "okay"; pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>; pinctrl-1 = <&emmc_clk_gate_pins>; pinctrl-names = "default", "clk-gate"; bus-width = <8>; cap-mmc-highspeed; max-frequency = <200000000>; non-removable; disable-wp; mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-pwrseq = <&emmc_pwrseq>; vmmc-supply = <&vcc_3v3>; vqmmc-supply = <&vddio_boot>; }; /* * EMMC_DS pin is shared between SPI NOR CS and eMMC Data Strobe * Remove emmc_ds_pins from sd_emmc_c pinctrl-0 then spifc can be enabled */ &spifc { status = "disabled"; pinctrl-0 = <&nor_pins>; pinctrl-names = "default"; w25q32: spi-flash@0 { #address-cells = <1>; #size-cells = <1>; compatible = "winbond,w25q16", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <3000000>; }; }; /* This one is connected to the Bluetooth module */ &uart_A { status = "okay"; pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; pinctrl-names = "default"; uart-has-rtscts; bluetooth { compatible = "brcm,bcm43438-bt"; shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; max-speed = <2000000>; clocks = <&wifi32k>; clock-names = "lpo"; }; }; /* This is brought out on the Linux_RX (18) and Linux_TX (19) pins: */ &uart_AO { status = "okay"; pinctrl-0 = <&uart_ao_a_pins>; pinctrl-names = "default"; }; /* This is brought out on the UART_RX_AO_B (15) and UART_TX_AO_B (16) pins: */ &uart_AO_B { status = "okay"; pinctrl-0 = <&uart_ao_b_pins>; pinctrl-names = "default"; }; &saradc { status = "okay"; vref-supply = <&vddio_ao18>; }; &usb { status = "okay"; dr_mode = "peripheral"; };
Upload File
Create Folder