berlin2cd-google-chromecast.dts 1.6 KB

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