1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Copyright (c) 2019 Hardkernel Co., Ltd 4 * Copyright (c) 2020 Theobroma Systems Design 5 * Copyright (c) 2022 Maya Matuszczyk <maccraft 6 */ 7 8 /dts-v1/; 9 #include "rk3326-odroid-go.dtsi" 10 11 / { 12 model = "ODROID-GO Super"; 13 compatible = "hardkernel,rk3326-odroid 14 15 joystick_mux_controller: mux-controlle 16 compatible = "gpio-mux"; 17 pinctrl = <&mux_en_pins>; 18 #mux-control-cells = <0>; 19 20 mux-gpios = <&gpio3 RK_PB3 GPI 21 <&gpio3 RK_PB0 GPI 22 }; 23 24 joystick_mux: adc-mux { 25 compatible = "io-channel-mux"; 26 io-channels = <&saradc 1>; 27 io-channel-names = "parent"; 28 #io-channel-cells = <1>; 29 30 mux-controls = <&joystick_mux_ 31 channels = "0", "1", "2", "3"; 32 }; 33 34 analog_sticks: adc-joystick { 35 compatible = "adc-joystick"; 36 io-channels = <&joystick_mux 0 37 <&joystick_mux 1 38 <&joystick_mux 2 39 <&joystick_mux 3 40 poll-interval = <60>; 41 #address-cells = <1>; 42 #size-cells = <0>; 43 44 axis@0 { 45 reg = <0>; 46 abs-flat = <10>; 47 abs-fuzz = <10>; 48 abs-range = <180 800>; 49 linux,code = <ABS_X>; 50 }; 51 52 axis@1 { 53 reg = <1>; 54 abs-flat = <10>; 55 abs-fuzz = <10>; 56 abs-range = <180 800>; 57 linux,code = <ABS_RX>; 58 }; 59 60 axis@2 { 61 reg = <2>; 62 abs-flat = <10>; 63 abs-fuzz = <10>; 64 abs-range = <180 800>; 65 linux,code = <ABS_Y>; 66 }; 67 68 axis@3 { 69 reg = <3>; 70 abs-flat = <10>; 71 abs-fuzz = <10>; 72 abs-range = <180 800>; 73 linux,code = <ABS_RY>; 74 }; 75 }; 76 77 battery: battery { 78 compatible = "simple-battery"; 79 charge-full-design-microamp-ho 80 charge-term-current-microamp = 81 constant-charge-current-max-mi 82 constant-charge-voltage-max-mi 83 factory-internal-resistance-mi 84 voltage-max-design-microvolt = 85 voltage-min-design-microvolt = 86 87 ocv-capacity-celsius = <20>; 88 ocv-capacity-table-0 = <40469 89 <38884 90 <37681 91 <36967 92 <36494 93 <35741 94 }; 95 96 gpio-keys-vol { 97 compatible = "gpio-keys"; 98 autorepeat; 99 pinctrl-0 = <&btn_pins_vol>; 100 pinctrl-names = "default"; 101 102 button-vol-down { 103 gpios = <&gpio2 RK_PA1 104 label = "VOLUMEDOWN"; 105 linux,code = <KEY_VOLU 106 }; 107 108 button-volume-up { 109 gpios = <&gpio2 RK_PA0 110 label = "VOLUMEUP"; 111 linux,code = <KEY_VOLU 112 }; 113 }; 114 }; 115 116 /* f1 and f2 conflict with volume buttons */ 117 /delete-node/ &btn_f1; 118 /delete-node/ &btn_f2; 119 120 &builtin_gamepad { 121 button-sw19 { 122 gpios = <&gpio3 RK_PB1 GPIO_AC 123 label = "SELECT"; 124 linux,code = <BTN_SELECT>; 125 }; 126 /* note that TR2 and TL2 are swapped * 127 button-sw20 { 128 gpios = <&gpio3 RK_PB7 GPIO_AC 129 label = "TOP-RIGHT 2"; 130 linux,code = <BTN_TR2>; 131 }; 132 button-sw21 { 133 gpios = <&gpio3 RK_PB2 GPIO_AC 134 label = "TOP-LEFT 2"; 135 linux,code = <BTN_TL2>; 136 }; 137 button-sw22 { 138 gpios = <&gpio3 RK_PB4 GPIO_AC 139 label = "START"; 140 linux,code = <BTN_START>; 141 }; 142 }; 143 144 &internal_display { 145 compatible = "elida,kd50t048a", "sitro 146 reset-gpios = <&gpio3 RK_PC0 GPIO_ACTI 147 IOVCC-supply = <&vcc_lcd>; 148 VCC-supply = <&vcc_lcd>; 149 }; 150 151 &rk817_charger { 152 monitored-battery = <&battery>; 153 }; 154 155 &pinctrl { 156 btns { 157 btn_pins: btn-pins { 158 rockchip,pins = <1 RK_ 159 <1 RK_ 160 <1 RK_ 161 <1 RK_ 162 <1 RK_ 163 <1 RK_ 164 <1 RK_ 165 <1 RK_ 166 <2 RK_ 167 <2 RK_ 168 <2 RK_ 169 <2 RK_ 170 <2 RK_ 171 <2 RK_ 172 <3 RK_ 173 <3 RK_ 174 <3 RK_ 175 <3 RK_ 176 }; 177 btn_pins_vol: btn-pins-vol { 178 rockchip,pins = <2 RK_ 179 <2 RK_ 180 }; 181 }; 182 183 joystick { 184 mux_en_pins: mux-pins { 185 rockchip,pins = <3 RK_ 186 }; 187 }; 188 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.