Changeset View
Changeset View
Standalone View
Standalone View
sys/gnu/dts/mips/BOCCO.dts
- This file was copied from sys/gnu/dts/mips/CS-QR10.dts.
/dts-v1/; | /dts-v1/; | ||||
#include "mt7620a.dtsi" | #include "mt7620a.dtsi" | ||||
#include <dt-bindings/gpio/gpio.h> | |||||
#include <dt-bindings/input/input.h> | |||||
/ { | / { | ||||
compatible = "ralink,mt7620a-soc"; | compatible = "planex,cs-qr10", "ralink,mt7620a-soc"; | ||||
model = "Planex CS-QR10"; | model = "YUKAI Engineering BOCCO"; | ||||
sound { | |||||
compatible = "mediatek,mt7620-audio-wm8960"; | |||||
model = "mt7620-wm8960"; | |||||
i2s-controller = <&i2s>; | |||||
audio-routing = | |||||
"Ext Spk", "SPK_LP", | |||||
"Ext Spk", "SPK_LN", | |||||
"Ext Spk", "SPK_RP", | |||||
"Ext Spk", "SPK_RN"; | |||||
}; | |||||
gpio-leds { | |||||
compatible = "gpio-leds"; | |||||
power { | |||||
label = "cs-qr10:red:power"; | |||||
gpios = <&gpio1 4 1>; | |||||
}; | |||||
}; | |||||
gpio-keys-polled { | gpio-keys-polled { | ||||
compatible = "gpio-keys-polled"; | compatible = "gpio-keys-polled"; | ||||
#address-cells = <1>; | #address-cells = <1>; | ||||
#size-cells = <0>; | #size-cells = <0>; | ||||
poll-interval = <20>; | poll-interval = <20>; | ||||
s1 { | reset { | ||||
label = "reset"; | label = "reset"; | ||||
gpios = <&gpio1 1 1>; | gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; | ||||
linux,code = <0x198>; | linux,code = <KEY_RESTART>; | ||||
}; | }; | ||||
}; | |||||
gpio_export { | |||||
compatible = "gpio-export"; | |||||
#size-cells = <0>; | |||||
s1 { | |||||
gpio-export,name = "rec"; | |||||
gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; | |||||
}; | |||||
s2 { | s2 { | ||||
label = "wps"; | gpio-export,name = "play"; | ||||
gpios = <&gpio1 3 1>; | gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; | ||||
linux,code = <0x211>; | |||||
}; | }; | ||||
}; | }; | ||||
sound { | |||||
compatible = "simple-audio-card"; | |||||
simple-audio-card,name = "Audio-I2S"; | |||||
simple-audio-card,format = "i2s"; | |||||
simple-audio-card,bitclock-master = <&dailink0_master>; | |||||
simple-audio-card,frame-master = <&dailink0_master>; | |||||
simple-audio-card,widgets = | |||||
"Headphone", "Headphones"; | |||||
simple-audio-card,routing = | |||||
"Headphones", "HP_L", | |||||
"Headphones", "HP_R"; | |||||
simple-audio-card,mclk-fs = <256>; | |||||
simple-audio-card,cpu { | |||||
sound-dai = <&i2s>; | |||||
}; | }; | ||||
dailink0_master: simple-audio-card,codec { | |||||
sound-dai = <&codec>; | |||||
}; | |||||
}; | |||||
}; | |||||
&gpio0 { | &gpio0 { | ||||
status = "okay"; | status = "okay"; | ||||
}; | }; | ||||
&gpio1 { | &gpio1 { | ||||
status = "okay"; | status = "okay"; | ||||
}; | }; | ||||
&gpio2 { | &gpio2 { | ||||
status = "okay"; | status = "okay"; | ||||
}; | }; | ||||
&gpio3 { | &gpio3 { | ||||
status = "okay"; | status = "okay"; | ||||
}; | }; | ||||
&i2c { | &i2c { | ||||
status = "okay"; | status = "okay"; | ||||
codec: wm8960@1a { | |||||
#sound-dai-cells = <0>; | |||||
compatible = "wlf,wm8960"; | |||||
reg = <0x1a>; | |||||
wlf,shared-lrclk; | |||||
}; | }; | ||||
}; | |||||
&i2s { | &i2s { | ||||
#sound-dai-cells = <0>; | |||||
status = "okay"; | status = "okay"; | ||||
pinctrl-names = "default"; | pinctrl-names = "default"; | ||||
pinctrl-0 = <&pcm_i2s_pins>; | pinctrl-0 = <&pcm_i2s_pins>; | ||||
}; | }; | ||||
&spi0 { | &spi0 { | ||||
status = "okay"; | status = "okay"; | ||||
m25p80@0 { | m25p80@0 { | ||||
#address-cells = <1>; | #address-cells = <1>; | ||||
#size-cells = <1>; | #size-cells = <1>; | ||||
compatible = "jedec,spi-nor"; | compatible = "jedec,spi-nor"; | ||||
reg = <0>; | reg = <0>; | ||||
linux,modalias = "m25p80", "mx25l6405d"; | |||||
spi-max-frequency = <10000000>; | spi-max-frequency = <10000000>; | ||||
partition@0 { | partition@0 { | ||||
label = "u-boot"; | label = "u-boot"; | ||||
reg = <0x0 0x30000>; | reg = <0x0 0x30000>; | ||||
read-only; | read-only; | ||||
}; | }; | ||||
Show All 25 Lines | |||||
}; | }; | ||||
&pinctrl { | &pinctrl { | ||||
state_default: pinctrl0 { | state_default: pinctrl0 { | ||||
gpio { | gpio { | ||||
ralink,group = "spi refclk", "rgmii1"; | ralink,group = "spi refclk", "rgmii1"; | ||||
ralink,function = "gpio"; | ralink,function = "gpio"; | ||||
}; | }; | ||||
wdt { | |||||
ralink,group = "wdt"; | |||||
ralink,function = "wdt refclk"; | |||||
}; | }; | ||||
}; | }; | ||||
}; | |||||
ðernet { | ðernet { | ||||
pinctrl-names = "default"; | pinctrl-names = "default"; | ||||
pinctrl-0 = <&ephy_pins>; | pinctrl-0 = <&ephy_pins>; | ||||
mtd-mac-address = <&factory 0x4>; | mtd-mac-address = <&factory 0x4>; | ||||
mediatek,portmap = "llllw"; | mediatek,portmap = "llllw"; | ||||
}; | }; | ||||
&gsw { | &gsw { | ||||
ralink,port4 = "ephy"; | ralink,port4 = "ephy"; | ||||
}; | }; | ||||
&sdhci { | |||||
status = "okay"; | |||||
}; | |||||
&ehci { | |||||
status = "okay"; | |||||
}; | |||||
&ohci { | |||||
status = "okay"; | |||||
}; | |||||
&wmac { | &wmac { | ||||
ralink,mtd-eeprom = <&factory 0>; | ralink,mtd-eeprom = <&factory 0>; | ||||
}; | |||||
&pcie { | |||||
status = "okay"; | |||||
}; | }; |