]>
Commit | Line | Data |
---|---|---|
b64ffdec | 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) |
a9092118 SH |
2 | /* |
3 | * Device Tree file for Google Chromecast | |
4 | * | |
5 | * Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | |
a9092118 SH |
6 | */ |
7 | ||
8 | /dts-v1/; | |
9 | ||
10 | #include "berlin2cd.dtsi" | |
297bb063 | 11 | #include <dt-bindings/gpio/gpio.h> |
a9092118 SH |
12 | |
13 | / { | |
14 | model = "Google Chromecast"; | |
15 | compatible = "google,chromecast", "marvell,berlin2cd", "marvell,berlin"; | |
16 | ||
17 | chosen { | |
c56e1a2b JZ |
18 | bootargs = "earlyprintk"; |
19 | stdout-path = "serial0:115200n8"; | |
a9092118 SH |
20 | }; |
21 | ||
f415c5e3 | 22 | memory@0 { |
a9092118 | 23 | device_type = "memory"; |
9fb2856f TH |
24 | |
25 | /* | |
26 | * We're using "linux,usable-memory" instead of "reg" here | |
27 | * because the (signed and encrypted) bootloader that shipped | |
28 | * with this device provides an incorrect memory range in | |
29 | * ATAG_MEM. Linux helpfully overrides the "reg" property with | |
30 | * data from the ATAG, so we can't specify the proper range | |
31 | * normally. Fortunately, this alternate property is checked | |
32 | * first by the OF driver, so we can (ab)use it instead. | |
33 | */ | |
34 | linux,usable-memory = <0x00000000 0x20000000>; /* 512 MB */ | |
a9092118 | 35 | }; |
297bb063 SH |
36 | |
37 | leds { | |
c8e96e07 TH |
38 | compatible = "pwm-leds"; |
39 | pinctrl-0 = <&ledpwm_pmux>; | |
40 | pinctrl-names = "default"; | |
297bb063 SH |
41 | |
42 | white { | |
43 | label = "white"; | |
c8e96e07 TH |
44 | pwms = <&pwm 0 600000 0>; |
45 | max-brightness = <255>; | |
46 | linux,default-trigger = "default-on"; | |
297bb063 SH |
47 | }; |
48 | ||
49 | red { | |
50 | label = "red"; | |
c8e96e07 TH |
51 | pwms = <&pwm 1 600000 0>; |
52 | max-brightness = <255>; | |
297bb063 SH |
53 | }; |
54 | }; | |
a9092118 SH |
55 | }; |
56 | ||
acbcadc8 SH |
57 | /* |
58 | * AzureWave AW-NH387 (Marvell 88W8787) | |
59 | * 802.11b/g/n + Bluetooth 2.1 | |
60 | */ | |
61 | &sdhci0 { | |
62 | non-removable; | |
63 | status = "okay"; | |
64 | }; | |
65 | ||
a9092118 | 66 | &uart0 { status = "okay"; }; |
ea7aaa26 SH |
67 | |
68 | &usb_phy1 { status = "okay"; }; | |
69 | ||
70 | &usb1 { status = "okay"; }; | |
c8e96e07 TH |
71 | |
72 | &soc_pinctrl { | |
73 | ledpwm_pmux: ledpwm-pmux { | |
74 | groups = "G0"; | |
75 | function = "pwm"; | |
76 | }; | |
77 | }; |