sm6125-sony-xperia-seine-pdx201.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. // SPDX-License-Identifier: BSD-3-Clause
  2. /*
  3. * Copyright (c) 2021, Martin Botka <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include "sm6125.dtsi"
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/input/input.h>
  9. #include <dt-bindings/input/gpio-keys.h>
  10. / {
  11. /* required for bootloader to select correct board */
  12. qcom,msm-id = <394 0x10000>; /* sm6125 v1 */
  13. qcom,board-id = <34 0>;
  14. model = "Sony Xperia 10 II";
  15. compatible = "sony,pdx201", "qcom,sm6125";
  16. chassis-type = "handset";
  17. chosen {
  18. #address-cells = <2>;
  19. #size-cells = <2>;
  20. ranges;
  21. framebuffer0: framebuffer@5c000000 {
  22. compatible = "simple-framebuffer";
  23. reg = <0 0x5c000000 0 (2520 * 1080 * 4)>;
  24. width = <1080>;
  25. height = <2520>;
  26. stride = <(1080 * 4)>;
  27. format = "a8r8g8b8";
  28. };
  29. };
  30. extcon_usb: extcon-usb {
  31. compatible = "linux,extcon-usb-gpio";
  32. id-gpio = <&tlmm 102 GPIO_ACTIVE_HIGH>;
  33. };
  34. gpio-keys {
  35. compatible = "gpio-keys";
  36. pinctrl-0 = <&vol_down_n>;
  37. pinctrl-names = "default";
  38. key-volume-down {
  39. label = "Volume Down";
  40. gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
  41. linux,code = <KEY_VOLUMEDOWN>;
  42. debounce-interval = <15>;
  43. linux,can-disable;
  44. wakeup-source;
  45. };
  46. };
  47. reserved_memory {
  48. #address-cells = <2>;
  49. #size-cells = <2>;
  50. debug_mem: memory@ffb00000 {
  51. reg = <0x0 0xffb00000 0x0 0xc0000>;
  52. no-map;
  53. };
  54. last_log_mem: memory@ffbc0000 {
  55. reg = <0x0 0xffbc0000 0x0 0x80000>;
  56. no-map;
  57. };
  58. pstore_mem: ramoops@ffc00000 {
  59. compatible = "ramoops";
  60. reg = <0x0 0xffc40000 0x0 0xc0000>;
  61. record-size = <0x1000>;
  62. console-size = <0x40000>;
  63. pmsg-size = <0x20000>;
  64. };
  65. cmdline_mem: memory@ffd00000 {
  66. reg = <0x0 0xffd40000 0x0 0x1000>;
  67. no-map;
  68. };
  69. };
  70. };
  71. &hsusb_phy1 {
  72. status = "okay";
  73. };
  74. &sdc2_off_state {
  75. sd-cd-pins {
  76. pins = "gpio98";
  77. drive-strength = <2>;
  78. bias-disable;
  79. };
  80. };
  81. &sdc2_on_state {
  82. sd-cd-pins {
  83. pins = "gpio98";
  84. drive-strength = <2>;
  85. bias-pull-up;
  86. };
  87. };
  88. &sdhc_1 {
  89. status = "okay";
  90. };
  91. &tlmm {
  92. gpio-reserved-ranges = <22 2>, <28 6>;
  93. vol_down_n: vol-down-n-state {
  94. pins = "gpio47";
  95. function = "gpio";
  96. drive-strength = <2>;
  97. bias-disable;
  98. input-enable;
  99. };
  100. };
  101. &usb3 {
  102. status = "okay";
  103. };
  104. &usb3_dwc3 {
  105. extcon = <&extcon_usb>;
  106. };