RK3326: Add initial support for Game console R33S device
This commit is contained in:
parent
2c6c3fd0ff
commit
fa7c912b8b
17 changed files with 1883 additions and 57 deletions
|
@ -0,0 +1,111 @@
|
|||
frameskip_type = 2
|
||||
frameskip_value = 3
|
||||
safe_frameskip = 0
|
||||
show_frame_counter = 0
|
||||
screen_orientation = 0
|
||||
screen_swap = 0
|
||||
savestate_number = 0
|
||||
fast_forward = 0
|
||||
enable_sound = 1
|
||||
clock_speed = 0
|
||||
threaded_3d = 0
|
||||
mirror_touch = 0
|
||||
compress_savestates = 1
|
||||
savestate_snapshot = 1
|
||||
unzip_roms = 0
|
||||
preload_roms = 0
|
||||
backup_in_savestates = 1
|
||||
ignore_gamecard_limit = 0
|
||||
frame_interval = 0
|
||||
trim_roms = 0
|
||||
fix_main_2d_screen = 0
|
||||
disable_edge_marking = 0
|
||||
interframe_blend = 0
|
||||
hires_3d = 1
|
||||
use_rtc_custom_time = 0
|
||||
rtc_custom_time = 0
|
||||
rtc_system_time = 0
|
||||
slot2_device_type = 0
|
||||
rumble_frames = 3
|
||||
firmware.username = JELOS
|
||||
firmware.language = 1
|
||||
firmware.favorite_color = 0
|
||||
firmware.birthday_month = 1
|
||||
firmware.birthday_day = 1
|
||||
enable_cheats = 1
|
||||
controls_a[CONTROL_INDEX_UP] = 1034
|
||||
controls_a[CONTROL_INDEX_DOWN] = 1035
|
||||
controls_a[CONTROL_INDEX_LEFT] = 1036
|
||||
controls_a[CONTROL_INDEX_RIGHT] = 1037
|
||||
controls_a[CONTROL_INDEX_A] = 100
|
||||
controls_a[CONTROL_INDEX_B] = 99
|
||||
controls_a[CONTROL_INDEX_X] = 122
|
||||
controls_a[CONTROL_INDEX_Y] = 118
|
||||
controls_a[CONTROL_INDEX_L] = 113
|
||||
controls_a[CONTROL_INDEX_R] = 111
|
||||
controls_a[CONTROL_INDEX_START] = 1033
|
||||
controls_a[CONTROL_INDEX_SELECT] = 101
|
||||
controls_a[CONTROL_INDEX_HINGE] = 65535
|
||||
controls_a[CONTROL_INDEX_TOUCH_CURSOR_UP] = 65535
|
||||
controls_a[CONTROL_INDEX_TOUCH_CURSOR_DOWN] = 65535
|
||||
controls_a[CONTROL_INDEX_TOUCH_CURSOR_LEFT] = 65535
|
||||
controls_a[CONTROL_INDEX_TOUCH_CURSOR_RIGHT] = 65535
|
||||
controls_a[CONTROL_INDEX_TOUCH_CURSOR_PRESS] = 65535
|
||||
controls_a[CONTROL_INDEX_MENU] = 120
|
||||
controls_a[CONTROL_INDEX_SAVE_STATE] = 115
|
||||
controls_a[CONTROL_INDEX_LOAD_STATE] = 108
|
||||
controls_a[CONTROL_INDEX_FAST_FORWARD] = 116
|
||||
controls_a[CONTROL_INDEX_SWAP_SCREENS] = 65535
|
||||
controls_a[CONTROL_INDEX_SWAP_ORIENTATION_A] = 112
|
||||
controls_a[CONTROL_INDEX_SWAP_ORIENTATION_B] = 110
|
||||
controls_a[CONTROL_INDEX_LOAD_GAME] = 65535
|
||||
controls_a[CONTROL_INDEX_QUIT] = 65535
|
||||
controls_a[CONTROL_INDEX_FAKE_MICROPHONE] = 65535
|
||||
controls_a[CONTROL_INDEX_UI_UP] = 338
|
||||
controls_a[CONTROL_INDEX_UI_DOWN] = 337
|
||||
controls_a[CONTROL_INDEX_UI_LEFT] = 336
|
||||
controls_a[CONTROL_INDEX_UI_RIGHT] = 335
|
||||
controls_a[CONTROL_INDEX_UI_SELECT] = 13
|
||||
controls_a[CONTROL_INDEX_UI_BACK] = 8
|
||||
controls_a[CONTROL_INDEX_UI_EXIT] = 27
|
||||
controls_a[CONTROL_INDEX_UI_PAGE_UP] = 331
|
||||
controls_a[CONTROL_INDEX_UI_PAGE_DOWN] = 334
|
||||
controls_a[CONTROL_INDEX_UI_SWITCH] = 481
|
||||
controls_b[CONTROL_INDEX_UP] = 65535
|
||||
controls_b[CONTROL_INDEX_DOWN] = 65535
|
||||
controls_b[CONTROL_INDEX_LEFT] = 65535
|
||||
controls_b[CONTROL_INDEX_RIGHT] = 65535
|
||||
controls_b[CONTROL_INDEX_A] = 65535
|
||||
controls_b[CONTROL_INDEX_B] = 65535
|
||||
controls_b[CONTROL_INDEX_X] = 65535
|
||||
controls_b[CONTROL_INDEX_Y] = 65535
|
||||
controls_b[CONTROL_INDEX_L] = 65535
|
||||
controls_b[CONTROL_INDEX_R] = 65535
|
||||
controls_b[CONTROL_INDEX_START] = 65535
|
||||
controls_b[CONTROL_INDEX_SELECT] = 65535
|
||||
controls_b[CONTROL_INDEX_HINGE] = 65535
|
||||
controls_b[CONTROL_INDEX_TOUCH_CURSOR_UP] = 65535
|
||||
controls_b[CONTROL_INDEX_TOUCH_CURSOR_DOWN] = 65535
|
||||
controls_b[CONTROL_INDEX_TOUCH_CURSOR_LEFT] = 65535
|
||||
controls_b[CONTROL_INDEX_TOUCH_CURSOR_RIGHT] = 65535
|
||||
controls_b[CONTROL_INDEX_TOUCH_CURSOR_PRESS] = 65535
|
||||
controls_b[CONTROL_INDEX_MENU] = 32
|
||||
controls_b[CONTROL_INDEX_SAVE_STATE] = 65535
|
||||
controls_b[CONTROL_INDEX_LOAD_STATE] = 65535
|
||||
controls_b[CONTROL_INDEX_FAST_FORWARD] = 65535
|
||||
controls_b[CONTROL_INDEX_SWAP_SCREENS] = 65535
|
||||
controls_b[CONTROL_INDEX_SWAP_ORIENTATION_A] = 65535
|
||||
controls_b[CONTROL_INDEX_SWAP_ORIENTATION_B] = 65535
|
||||
controls_b[CONTROL_INDEX_LOAD_GAME] = 65535
|
||||
controls_b[CONTROL_INDEX_QUIT] = 65535
|
||||
controls_b[CONTROL_INDEX_FAKE_MICROPHONE] = 65535
|
||||
controls_b[CONTROL_INDEX_UI_UP] = 1034
|
||||
controls_b[CONTROL_INDEX_UI_DOWN] = 1035
|
||||
controls_b[CONTROL_INDEX_UI_LEFT] = 1036
|
||||
controls_b[CONTROL_INDEX_UI_RIGHT] = 1037
|
||||
controls_b[CONTROL_INDEX_UI_SELECT] = 1033
|
||||
controls_b[CONTROL_INDEX_UI_BACK] = 65535
|
||||
controls_b[CONTROL_INDEX_UI_EXIT] = 101
|
||||
controls_b[CONTROL_INDEX_UI_PAGE_UP] = 65535
|
||||
controls_b[CONTROL_INDEX_UI_PAGE_DOWN] = 65535
|
||||
controls_b[CONTROL_INDEX_UI_SWITCH] = 118
|
|
@ -1,21 +1,21 @@
|
|||
back = \\
|
||||
ack = e
|
||||
start = \\
|
||||
a = \\
|
||||
a = d
|
||||
a_hk = a
|
||||
b = \\
|
||||
b = c
|
||||
b_hk = b
|
||||
x = \\
|
||||
x = z
|
||||
x_hk = x
|
||||
y = \\
|
||||
y = v
|
||||
y_hk = y
|
||||
l1 = \\
|
||||
l1 = q
|
||||
l1_hk = l
|
||||
l2 = \\
|
||||
l2 = n
|
||||
l2_hk = m
|
||||
l3 = \\
|
||||
r1 = \\
|
||||
r1 = o
|
||||
r1_hk = s
|
||||
r2 = \\
|
||||
r2 = p
|
||||
r2_hk = t
|
||||
r3 = \\
|
||||
up = \\
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
[digital]
|
||||
bind0 = 0:btn_a
|
||||
bind1 = 1:btn_b
|
||||
bind10 = 10:btn_analog_up
|
||||
bind11 = 11:btn_analog_down
|
||||
bind12 = 12:btn_analog_left
|
||||
bind13 = 13:btn_analog_right
|
||||
bind2 = 2:btn_y
|
||||
bind3 = 3:btn_x
|
||||
bind4 = 4:btn_trigger_left
|
||||
bind5 = 5:btn_trigger_right
|
||||
bind6 = 6:btn_jump_state
|
||||
bind7 = 7:btn_quick_save
|
||||
bind8 = 8:btn_menu
|
||||
bind9 = 9:btn_start
|
||||
|
||||
[emulator]
|
||||
dead_zone = 10
|
||||
mapping_name = r33s_joypad
|
||||
rumble_power = 100
|
||||
version = 3
|
|
@ -0,0 +1,670 @@
|
|||
# Mupen64Plus Configuration File
|
||||
# This file is automatically read and written by the Mupen64Plus Core library
|
||||
|
||||
[64DD]
|
||||
|
||||
# Filename of the 64DD IPL ROM
|
||||
IPL-ROM = ""
|
||||
# Filename of the disk to load into Disk Drive
|
||||
Disk = ""
|
||||
|
||||
|
||||
[Audio-SDL]
|
||||
|
||||
# Mupen64Plus SDL Audio Plugin config parameter version number
|
||||
Version = 1.000000
|
||||
# Frequency which is used if rom doesn't want to change it
|
||||
DEFAULT_FREQUENCY = 33600
|
||||
# Swaps left and right channels
|
||||
SWAP_CHANNELS = False
|
||||
# Size of primary buffer in output samples. This is where audio is loaded after it's extracted from n64's memory.
|
||||
PRIMARY_BUFFER_SIZE = 16384
|
||||
# Fullness level target for Primary audio buffer, in equivalent output samples. This value must be larger than the SECONDARY_BUFFER_SIZE. Decreasing this value will reduce audio latency but requires a faster PC to avoid choppiness. Increasing this will increase audio latency but reduce the chance of drop-outs.
|
||||
PRIMARY_BUFFER_TARGET = 2048
|
||||
# Size of secondary buffer in output samples. This is SDL's hardware buffer. The SDL documentation states that this should be a power of two between 512 and 8192.
|
||||
SECONDARY_BUFFER_SIZE = 1024
|
||||
# Audio resampling algorithm. src-sinc-best-quality, src-sinc-medium-quality, src-sinc-fastest, src-zero-order-hold, src-linear, speex-fixed-{10-0}, trivial
|
||||
RESAMPLE = "trivial"
|
||||
# Volume control type: 1 = SDL (only affects Mupen64Plus output) 2 = OSS mixer (adjusts master PC volume)
|
||||
VOLUME_CONTROL_TYPE = 1
|
||||
# Percentage change each time the volume is increased or decreased
|
||||
VOLUME_ADJUST = 5
|
||||
# Default volume when a game is started. Only used if VOLUME_CONTROL_TYPE is 1
|
||||
VOLUME_DEFAULT = 100
|
||||
# Synchronize Video/Audio
|
||||
AUDIO_SYNC = False
|
||||
|
||||
|
||||
[Core]
|
||||
|
||||
# Mupen64Plus Core config parameter set version number. Please don't change this version number.
|
||||
Version = 1.010000
|
||||
# Draw on-screen display if True, otherwise don't draw OSD
|
||||
OnScreenDisplay = True
|
||||
# Use Pure Interpreter if 0, Cached Interpreter if 1, or Dynamic Recompiler if 2 or more
|
||||
R4300Emulator = 2
|
||||
# Disable compiled jump commands in dynamic recompiler (should be set to False)
|
||||
NoCompiledJump = False
|
||||
# Disable 4MB expansion RAM pack. May be necessary for some games
|
||||
DisableExtraMem = False
|
||||
# Increment the save state slot after each save operation
|
||||
AutoStateSlotIncrement = False
|
||||
# Activate the R4300 debugger when ROM execution begins, if core was built with Debugger support
|
||||
EnableDebugger = False
|
||||
# Save state slot (0-9) to use when saving/loading the emulator state
|
||||
CurrentStateSlot = 0
|
||||
# Path to directory where screenshots are saved. If this is blank, the default value of ${UserDataPath}/screenshot will be used
|
||||
ScreenshotPath = "/storage/roms/n64"
|
||||
# Path to directory where emulator save states (snapshots) are saved. If this is blank, the default value of ${UserDataPath}/save will be used
|
||||
SaveStatePath = "/storage/roms/n64"
|
||||
# Path to directory where SRAM/EEPROM data (in-game saves) are stored. If this is blank, the default value of ${UserDataPath}/save will be used
|
||||
SaveSRAMPath = "/storage/roms/n64"
|
||||
# Path to a directory to search when looking for shared data files
|
||||
SharedDataPath = "/tmp/mupen64plussa"
|
||||
# Force number of cycles per emulated instruction
|
||||
CountPerOp = 0
|
||||
# Randomize PI/SI Interrupt Timing
|
||||
RandomizeInterrupt = True
|
||||
# Duration of SI DMA (-1: use per game settings)
|
||||
SiDmaDuration = -1
|
||||
# Gameboy Camera Video Capture backend
|
||||
GbCameraVideoCaptureBackend1 = ""
|
||||
# Disk Save Format (0: Full Disk Copy (*.ndr/*.d6r), 1: RAM Area Only (*.ram))
|
||||
SaveDiskFormat = 1
|
||||
|
||||
|
||||
[CoreEvents]
|
||||
|
||||
# Mupen64Plus CoreEvents config parameter set version number. Please don't change this version number.
|
||||
Version = 1.000000
|
||||
# SDL keysym for stopping the emulator
|
||||
Kbd Mapping Stop = 27
|
||||
# SDL keysym for switching between fullscreen/windowed modes
|
||||
Kbd Mapping Fullscreen = 0
|
||||
# SDL keysym for saving the emulator state
|
||||
Kbd Mapping Save State = 286
|
||||
# SDL keysym for loading the emulator state
|
||||
Kbd Mapping Load State = 288
|
||||
# SDL keysym for advancing the save state slot
|
||||
Kbd Mapping Increment Slot = 0
|
||||
# SDL keysym for resetting the emulator
|
||||
Kbd Mapping Reset = 290
|
||||
# SDL keysym for slowing down the emulator
|
||||
Kbd Mapping Speed Down = 291
|
||||
# SDL keysym for speeding up the emulator
|
||||
Kbd Mapping Speed Up = 292
|
||||
# SDL keysym for taking a screenshot
|
||||
Kbd Mapping Screenshot = 293
|
||||
# SDL keysym for pausing the emulator
|
||||
Kbd Mapping Pause = 112
|
||||
# SDL keysym for muting/unmuting the sound
|
||||
Kbd Mapping Mute = 109
|
||||
# SDL keysym for increasing the volume
|
||||
Kbd Mapping Increase Volume = 93
|
||||
# SDL keysym for decreasing the volume
|
||||
Kbd Mapping Decrease Volume = 91
|
||||
# SDL keysym for temporarily going really fast
|
||||
Kbd Mapping Fast Forward = 102
|
||||
# SDL keysym for advancing by one frame when paused
|
||||
Kbd Mapping Frame Advance = 47
|
||||
# SDL keysym for pressing the game shark button
|
||||
Kbd Mapping Gameshark = 103
|
||||
# Joystick event string for stopping the emulator
|
||||
Joy Mapping Stop = "J0B12/B13"
|
||||
# Joystick event string for switching between fullscreen/windowed modes
|
||||
Joy Mapping Fullscreen = ""
|
||||
# Joystick event string for saving the emulator state
|
||||
Joy Mapping Save State = "J0B8/B5"
|
||||
# Joystick event string for loading the emulator state
|
||||
Joy Mapping Load State = "J0B8/B4"
|
||||
# Joystick event string for advancing the save state slot
|
||||
Joy Mapping Increment Slot = ""
|
||||
# Joystick event string for resetting the emulator
|
||||
Joy Mapping Reset = ""
|
||||
# Joystick event string for slowing down the emulator
|
||||
Joy Mapping Speed Down = ""
|
||||
# Joystick event string for speeding up the emulator
|
||||
Joy Mapping Speed Up = ""
|
||||
# Joystick event string for taking a screenshot
|
||||
Joy Mapping Screenshot = ""
|
||||
# Joystick event string for pausing the emulator
|
||||
Joy Mapping Pause = "J0B8/B0"
|
||||
# Joystick event string for muting/unmuting the sound
|
||||
Joy Mapping Mute = ""
|
||||
# Joystick event string for increasing the volume
|
||||
Joy Mapping Increase Volume = ""
|
||||
# Joystick event string for decreasing the volume
|
||||
Joy Mapping Decrease Volume = ""
|
||||
# Joystick event string for fast-forward
|
||||
Joy Mapping Fast Forward = "J0B8/B7"
|
||||
# Joystick event string for advancing by one frame when paused
|
||||
Joy Mapping Frame Advance = ""
|
||||
# Joystick event string for pressing the game shark button
|
||||
Joy Mapping Gameshark = ""
|
||||
# SDL keysym for save slot 0
|
||||
Kbd Mapping Slot 0 = 48
|
||||
# SDL keysym for save slot 1
|
||||
Kbd Mapping Slot 1 = 49
|
||||
# SDL keysym for save slot 2
|
||||
Kbd Mapping Slot 2 = 50
|
||||
# SDL keysym for save slot 3
|
||||
Kbd Mapping Slot 3 = 51
|
||||
# SDL keysym for save slot 4
|
||||
Kbd Mapping Slot 4 = 52
|
||||
# SDL keysym for save slot 5
|
||||
Kbd Mapping Slot 5 = 53
|
||||
# SDL keysym for save slot 6
|
||||
Kbd Mapping Slot 6 = 54
|
||||
# SDL keysym for save slot 7
|
||||
Kbd Mapping Slot 7 = 55
|
||||
# SDL keysym for save slot 8
|
||||
Kbd Mapping Slot 8 = 56
|
||||
# SDL keysym for save slot 9
|
||||
Kbd Mapping Slot 9 = 57
|
||||
|
||||
|
||||
[Input-SDL-Control1]
|
||||
|
||||
# Mupen64Plus SDL Input Plugin config parameter version number. Please don't change this version number.
|
||||
version = 2.000000
|
||||
# Controller configuration mode: 0=Fully Manual, 1=Auto with named SDL Device, 2=Fully automatic
|
||||
mode = 2
|
||||
# Specifies which joystick is bound to this controller: -1=No joystick, 0 or more= SDL Joystick number
|
||||
device = 0
|
||||
# SDL joystick name (or Keyboard)
|
||||
name = "r33s_joypad"
|
||||
# Specifies whether this controller is 'plugged in' to the simulated N64
|
||||
plugged = True
|
||||
# Specifies which type of expansion pak is in the controller: 1=None, 2=Mem pak, 4=Transfer pak, 5=Rumble pak
|
||||
plugin = 2
|
||||
# If True, then mouse buttons may be used with this controller
|
||||
mouse = False
|
||||
# Scaling factor for mouse movements. For X, Y axes.
|
||||
MouseSensitivity = "2.00,2.00"
|
||||
# The minimum absolute value of the SDL analog joystick axis to move the N64 controller axis value from 0. For X, Y axes.
|
||||
AnalogDeadzone = "0,0"
|
||||
# An absolute value of the SDL joystick axis >= AnalogPeak will saturate the N64 controller axis value (at 80). For X, Y axes. For each axis, this must be greater than the corresponding AnalogDeadzone value
|
||||
AnalogPeak = "32768,32768"
|
||||
# Digital button configuration mappings
|
||||
plugged = True
|
||||
mouse = False
|
||||
AnalogDeadzone = 0,0
|
||||
AnalogPeak = 32768,32768
|
||||
DPad R =
|
||||
DPad L =
|
||||
DPad D =
|
||||
DPad U =
|
||||
Start = button(9)
|
||||
Z Trig = button(7)
|
||||
B Button = button(3)
|
||||
A Button = button(0)
|
||||
C Button R = button(1)
|
||||
C Button L = button(6)
|
||||
C Button D =
|
||||
C Button U = button(2)
|
||||
R Trig = button(5)
|
||||
L Trig = button(4)
|
||||
Mempak switch =
|
||||
Rumblepak switch =
|
||||
# Analog axis configuration mappings
|
||||
X Axis = button(12,13)axis(0-,0+)
|
||||
Y Axis = butoon(10,11)axis(1-,1+)
|
||||
|
||||
[Input-SDL-Control2]
|
||||
|
||||
# Mupen64Plus SDL Input Plugin config parameter version number. Please don't change this version number.
|
||||
version = 2.000000
|
||||
# Controller configuration mode: 0=Fully Manual, 1=Auto with named SDL Device, 2=Fully automatic
|
||||
mode = 2
|
||||
# Specifies which joystick is bound to this controller: -1=No joystick, 0 or more= SDL Joystick number
|
||||
device = -1
|
||||
# SDL joystick name (or Keyboard)
|
||||
name = ""
|
||||
# Specifies whether this controller is 'plugged in' to the simulated N64
|
||||
plugged = False
|
||||
# Specifies which type of expansion pak is in the controller: 1=None, 2=Mem pak, 4=Transfer pak, 5=Rumble pak
|
||||
plugin = 2
|
||||
# If True, then mouse buttons may be used with this controller
|
||||
mouse = False
|
||||
# Scaling factor for mouse movements. For X, Y axes.
|
||||
MouseSensitivity = "2.00,2.00"
|
||||
# The minimum absolute value of the SDL analog joystick axis to move the N64 controller axis value from 0. For X, Y axes.
|
||||
AnalogDeadzone = "4096,4096"
|
||||
# An absolute value of the SDL joystick axis >= AnalogPeak will saturate the N64 controller axis value (at 80). For X, Y axes. For each axis, this must be greater than the corresponding AnalogDeadzone value
|
||||
AnalogPeak = "32768,32768"
|
||||
# Digital button configuration mappings
|
||||
DPad R = ""
|
||||
DPad L = ""
|
||||
DPad D = ""
|
||||
DPad U = ""
|
||||
Start = ""
|
||||
Z Trig = ""
|
||||
B Button = ""
|
||||
A Button = ""
|
||||
C Button R = ""
|
||||
C Button L = ""
|
||||
C Button D = ""
|
||||
C Button U = ""
|
||||
R Trig = ""
|
||||
L Trig = ""
|
||||
Mempak switch = ""
|
||||
Rumblepak switch = ""
|
||||
# Analog axis configuration mappings
|
||||
X Axis = ""
|
||||
Y Axis = ""
|
||||
|
||||
|
||||
[Input-SDL-Control3]
|
||||
|
||||
# Mupen64Plus SDL Input Plugin config parameter version number. Please don't change this version number.
|
||||
version = 2.000000
|
||||
# Controller configuration mode: 0=Fully Manual, 1=Auto with named SDL Device, 2=Fully automatic
|
||||
mode = 2
|
||||
# Specifies which joystick is bound to this controller: -1=No joystick, 0 or more= SDL Joystick number
|
||||
device = -1
|
||||
# SDL joystick name (or Keyboard)
|
||||
name = ""
|
||||
# Specifies whether this controller is 'plugged in' to the simulated N64
|
||||
plugged = False
|
||||
# Specifies which type of expansion pak is in the controller: 1=None, 2=Mem pak, 4=Transfer pak, 5=Rumble pak
|
||||
plugin = 2
|
||||
# If True, then mouse buttons may be used with this controller
|
||||
mouse = False
|
||||
# Scaling factor for mouse movements. For X, Y axes.
|
||||
MouseSensitivity = "2.00,2.00"
|
||||
# The minimum absolute value of the SDL analog joystick axis to move the N64 controller axis value from 0. For X, Y axes.
|
||||
AnalogDeadzone = "4096,4096"
|
||||
# An absolute value of the SDL joystick axis >= AnalogPeak will saturate the N64 controller axis value (at 80). For X, Y axes. For each axis, this must be greater than the corresponding AnalogDeadzone value
|
||||
AnalogPeak = "32768,32768"
|
||||
# Digital button configuration mappings
|
||||
DPad R = ""
|
||||
DPad L = ""
|
||||
DPad D = ""
|
||||
DPad U = ""
|
||||
Start = ""
|
||||
Z Trig = ""
|
||||
B Button = ""
|
||||
A Button = ""
|
||||
C Button R = ""
|
||||
C Button L = ""
|
||||
C Button D = ""
|
||||
C Button U = ""
|
||||
R Trig = ""
|
||||
L Trig = ""
|
||||
Mempak switch = ""
|
||||
Rumblepak switch = ""
|
||||
# Analog axis configuration mappings
|
||||
X Axis = ""
|
||||
Y Axis = ""
|
||||
|
||||
|
||||
[Input-SDL-Control4]
|
||||
|
||||
# Mupen64Plus SDL Input Plugin config parameter version number. Please don't change this version number.
|
||||
version = 2.000000
|
||||
# Controller configuration mode: 0=Fully Manual, 1=Auto with named SDL Device, 2=Fully automatic
|
||||
mode = 2
|
||||
# Specifies which joystick is bound to this controller: -1=No joystick, 0 or more= SDL Joystick number
|
||||
device = -1
|
||||
# SDL joystick name (or Keyboard)
|
||||
name = ""
|
||||
# Specifies whether this controller is 'plugged in' to the simulated N64
|
||||
plugged = False
|
||||
# Specifies which type of expansion pak is in the controller: 1=None, 2=Mem pak, 4=Transfer pak, 5=Rumble pak
|
||||
plugin = 2
|
||||
# If True, then mouse buttons may be used with this controller
|
||||
mouse = False
|
||||
# Scaling factor for mouse movements. For X, Y axes.
|
||||
MouseSensitivity = "2.00,2.00"
|
||||
# The minimum absolute value of the SDL analog joystick axis to move the N64 controller axis value from 0. For X, Y axes.
|
||||
AnalogDeadzone = "4096,4096"
|
||||
# An absolute value of the SDL joystick axis >= AnalogPeak will saturate the N64 controller axis value (at 80). For X, Y axes. For each axis, this must be greater than the corresponding AnalogDeadzone value
|
||||
AnalogPeak = "32768,32768"
|
||||
# Digital button configuration mappings
|
||||
DPad R = ""
|
||||
DPad L = ""
|
||||
DPad D = ""
|
||||
DPad U = ""
|
||||
Start = ""
|
||||
Z Trig = ""
|
||||
B Button = ""
|
||||
A Button = ""
|
||||
C Button R = ""
|
||||
C Button L = ""
|
||||
C Button D = ""
|
||||
C Button U = ""
|
||||
R Trig = ""
|
||||
L Trig = ""
|
||||
Mempak switch = ""
|
||||
Rumblepak switch = ""
|
||||
# Analog axis configuration mappings
|
||||
X Axis = ""
|
||||
Y Axis = ""
|
||||
|
||||
|
||||
[Rsp-HLE]
|
||||
|
||||
# Mupen64Plus RSP HLE Plugin config parameter version number
|
||||
Version = 1.000000
|
||||
# Path to a RSP plugin which will be used when encountering an unknown ucode.You can disable this by letting an empty string.
|
||||
RspFallback = ""
|
||||
# Send display lists to the graphics plugin
|
||||
DisplayListToGraphicsPlugin = True
|
||||
# Send audio lists to the audio plugin
|
||||
AudioListToAudioPlugin = False
|
||||
|
||||
|
||||
[Transferpak]
|
||||
|
||||
# Filename of the GB ROM to load into transferpak 1
|
||||
GB-rom-1 = ""
|
||||
# Filename of the GB RAM to load into transferpak 1
|
||||
GB-ram-1 = ""
|
||||
# Filename of the GB ROM to load into transferpak 2
|
||||
GB-rom-2 = ""
|
||||
# Filename of the GB RAM to load into transferpak 2
|
||||
GB-ram-2 = ""
|
||||
# Filename of the GB ROM to load into transferpak 3
|
||||
GB-rom-3 = ""
|
||||
# Filename of the GB RAM to load into transferpak 3
|
||||
GB-ram-3 = ""
|
||||
# Filename of the GB ROM to load into transferpak 4
|
||||
GB-rom-4 = ""
|
||||
# Filename of the GB RAM to load into transferpak 4
|
||||
GB-ram-4 = ""
|
||||
|
||||
|
||||
[UI-Console]
|
||||
|
||||
# Mupen64Plus UI-Console config parameter set version number. Please don't change this version number.
|
||||
Version = 1.000000
|
||||
# Directory in which to search for plugins
|
||||
PluginDir = "/usr/local/lib/mupen64plus"
|
||||
# Filename of video plugin
|
||||
VideoPlugin = "mupen64plus-video-rice"
|
||||
# Filename of audio plugin
|
||||
AudioPlugin = "mupen64plus-audio-sdl.so"
|
||||
# Filename of input plugin
|
||||
InputPlugin = "mupen64plus-input-sdl.so"
|
||||
# Filename of RSP plugin
|
||||
RspPlugin = "mupen64plus-rsp-hle.so"
|
||||
|
||||
|
||||
[Video-General]
|
||||
|
||||
# Width of output window or fullscreen width
|
||||
ScreenWidth = 427
|
||||
# Height of output window or fullscreen height
|
||||
ScreenHeight = 320
|
||||
# Use fullscreen mode if True, or windowed mode if False
|
||||
Fullscreen = True
|
||||
# If true, activate the SDL_GL_SWAP_CONTROL attribute
|
||||
VerticalSync = True
|
||||
# Rotate screen contents: 0=0 degree, 1=90 degree, 2 = 180 degree, 3=270 degree
|
||||
Rotate = 0
|
||||
|
||||
[Video-GLideN64]
|
||||
|
||||
###### Hardware Compatibility ######
|
||||
# Leave enabled unless a mobile gpu doesn't support it.
|
||||
EnableFragmentDepthWrite = 1
|
||||
# Hardware per pixel lighting, supposedly good for GLES3.1 devices or higher.
|
||||
EnableHWLighting = 0
|
||||
|
||||
###### Enhancements #######
|
||||
# Internal render resoluton rather than output. So 2 x 240p is 480p, etc.
|
||||
UseNativeResolutionFactor = 1
|
||||
# Enable/Disable MultiSampling (0=off, 2,4,8,16=quality)
|
||||
MultiSampling = 0
|
||||
# Enable/Disable Fast Approximate Anti-Aliasing FXAA
|
||||
FXAA = 0
|
||||
# Max level of Anisotropic Filtering, 0 for off
|
||||
anisotropy = 0
|
||||
# Bilinear filtering mode (0=N64 3point, 1=standard)
|
||||
# @rishooty: best to use this at 1x native res, any higher turn it off.
|
||||
bilinearMode = 1
|
||||
|
||||
###### Compatibility ######
|
||||
# Make texrect coordinates continuous to avoid black lines between them. (0=Off/default, 1=Auto, 2=Force)
|
||||
CorrectTexrectCoords = 1
|
||||
# Copy auxiliary buffers to RDRAM (default: 0)
|
||||
EnableCopyAuxiliaryToRDRAM = 1
|
||||
# Render 2D texrects in native resolution to fix misalignment between parts of 2D image. (0=Off/default, 1=Optimized, 2=Unoptimized)")
|
||||
EnableNativeResTexrects = 1
|
||||
|
||||
###### Other ######
|
||||
# Enable threaded video backend at the cost of input lag
|
||||
ThreadedVideo = 1
|
||||
# Screen aspect ratio (0=stretch, 1=force 4:3, 2=force 16:9, 3=adjust)
|
||||
AspectRatio = 1
|
||||
# Display On-screen FPS
|
||||
ShowFPS = False
|
||||
|
||||
[Video-Glide64mk2]
|
||||
|
||||
# Enable full-scene anti-aliasing by setting this to a value greater than 1
|
||||
wrpAntiAliasing = 0
|
||||
# Card ID
|
||||
card_id = 0
|
||||
# If true, use polygon offset values specified below
|
||||
force_polygon_offset = False
|
||||
# Specifies a scale factor that is used to create a variable depth offset for each polygon
|
||||
polygon_offset_factor = 0.000000
|
||||
# Is multiplied by an implementation-specific value to create a constant depth offset
|
||||
polygon_offset_units = 0.000000
|
||||
# Vertical sync
|
||||
vsync = True
|
||||
# TODO:ssformat
|
||||
ssformat = False
|
||||
# Display performance stats (add together desired flags): 1=FPS counter, 2=VI/s counter, 4=% speed, 8=FPS transparent
|
||||
show_fps = 0
|
||||
# Clock enabled
|
||||
clock = False
|
||||
# Clock is 24-hour
|
||||
clock_24_hr = True
|
||||
# Wrapper resolution
|
||||
wrpResolution = 0
|
||||
# Wrapper VRAM
|
||||
wrpVRAM = 0
|
||||
# Wrapper FBO
|
||||
wrpFBO = True
|
||||
# Wrapper Anisotropic Filtering
|
||||
wrpAnisotropic = True
|
||||
# Texture Enhancement: Smooth/Sharpen Filters
|
||||
ghq_fltr = 0
|
||||
# Texture Compression: 0 for S3TC, 1 for FXT1
|
||||
ghq_cmpr = 0
|
||||
# Texture Enhancement: More filters
|
||||
ghq_enht = 0
|
||||
# Hi-res texture pack format (0 for none, 1 for Rice)
|
||||
ghq_hirs = 1
|
||||
# Compress texture cache with S3TC or FXT1
|
||||
ghq_enht_cmpr = False
|
||||
# Tile textures (saves memory but could cause issues)
|
||||
ghq_enht_tile = 0
|
||||
# Force 16bpp textures (saves ram but lower quality)
|
||||
ghq_enht_f16bpp = False
|
||||
# Compress texture cache
|
||||
ghq_enht_gz = True
|
||||
# Don't enhance textures for backgrounds
|
||||
ghq_enht_nobg = False
|
||||
# Enable S3TC and FXT1 compression
|
||||
ghq_hirs_cmpr = False
|
||||
# Tile hi-res textures (saves memory but could cause issues)
|
||||
ghq_hirs_tile = False
|
||||
# Force 16bpp hi-res textures (saves ram but lower quality)
|
||||
ghq_hirs_f16bpp = False
|
||||
# Compress hi-res texture cache
|
||||
ghq_hirs_gz = True
|
||||
# Alternative CRC calculation -- emulates Rice bug
|
||||
ghq_hirs_altcrc = True
|
||||
# Save tex cache to disk
|
||||
ghq_cache_save = True
|
||||
# Texture Cache Size (MB)
|
||||
ghq_cache_size = 128
|
||||
# Use full alpha channel -- could cause issues for some tex packs
|
||||
ghq_hirs_let_texartists_fly = False
|
||||
# Dump textures
|
||||
ghq_hirs_dump = False
|
||||
# Alternate texture size method: -1=Game default, 0=disable. 1=enable
|
||||
alt_tex_size = -1
|
||||
# Use first SETTILESIZE only: -1=Game default, 0=disable. 1=enable
|
||||
use_sts1_only = -1
|
||||
# Use spheric mapping only: -1=Game default, 0=disable. 1=enable
|
||||
force_calc_sphere = -1
|
||||
# Force positive viewport: -1=Game default, 0=disable. 1=enable
|
||||
correct_viewport = -1
|
||||
# Force texrect size to integral value: -1=Game default, 0=disable. 1=enable
|
||||
increase_texrect_edge = -1
|
||||
# Reduce fillrect size by 1: -1=Game default, 0=disable. 1=enable
|
||||
decrease_fillrect_edge = -1
|
||||
# Enable perspective texture correction emulation: -1=Game default, 0=disable. 1=enable
|
||||
texture_correction = -1
|
||||
# Set special scale for PAL games: -1=Game default, 0=disable. 1=enable
|
||||
pal230 = -1
|
||||
# 3DFX Dithered alpha emulation mode: -1=Game default, >=0=dithered alpha emulation mode
|
||||
stipple_mode = -1
|
||||
# 3DFX Dithered alpha pattern: -1=Game default, >=0=pattern used for dithered alpha emulation
|
||||
stipple_pattern = -1
|
||||
# Check microcode each frame: -1=Game default, 0=disable. 1=enable
|
||||
force_microcheck = -1
|
||||
# Force 0xb5 command to be quad, not line 3D: -1=Game default, 0=disable. 1=enable
|
||||
force_quad3d = -1
|
||||
# Enable near z clipping: -1=Game default, 0=disable. 1=enable
|
||||
clip_zmin = -1
|
||||
# Enable far plane clipping: -1=Game default, 0=disable. 1=enable
|
||||
clip_zmax = -1
|
||||
# Use fast CRC algorithm: -1=Game default, 0=disable. 1=enable
|
||||
fast_crc = -1
|
||||
# Adjust screen aspect for wide screen mode: -1=Game default, 0=disable. 1=enable
|
||||
adjust_aspect = -1
|
||||
# Force strict check in Depth buffer test: -1=Game default, 0=disable. 1=enable
|
||||
zmode_compare_less = -1
|
||||
# Apply alpha dither regardless of alpha_dither_mode: -1=Game default, 0=disable. 1=enable
|
||||
old_style_adither = -1
|
||||
# Scale vertex z value before writing to depth buffer: -1=Game default, 0=disable. 1=enable
|
||||
n64_z_scale = -1
|
||||
# Fast texrect rendering with hwfbe: -1=Game default, 0=disable. 1=enable
|
||||
optimize_texrect = -1
|
||||
# Do not copy auxiliary frame buffers: -1=Game default, 0=disable. 1=enable
|
||||
ignore_aux_copy = -1
|
||||
# Clear auxiliary texture frame buffers: -1=Game default, 0=disable. 1=enable
|
||||
hires_buf_clear = -1
|
||||
# Read alpha from framebuffer: -1=Game default, 0=disable. 1=enable
|
||||
fb_read_alpha = -1
|
||||
# Handle unchanged fb: -1=Game default, 0=disable. 1=enable
|
||||
useless_is_useless = -1
|
||||
# Set frambuffer CRC mode: -1=Game default, 0=disable CRC, 1=fast CRC, 2=safe CRC
|
||||
fb_crc_mode = -1
|
||||
# Filtering mode: -1=Game default, 0=automatic, 1=force bilinear, 2=force point sampled
|
||||
filtering = -1
|
||||
# Fog: -1=Game default, 0=disable. 1=enable
|
||||
fog = -1
|
||||
# Buffer clear on every frame: -1=Game default, 0=disable. 1=enable
|
||||
buff_clear = -1
|
||||
# Buffer swapping method: -1=Game default, 0=swap buffers when vertical interrupt has occurred, 1=swap buffers when set of conditions is satisfied. Prevents flicker on some games, 2=mix of first two methods
|
||||
swapmode = -1
|
||||
# Aspect ratio: -1=Game default, 0=Force 4:3, 1=Force 16:9, 2=Stretch, 3=Original
|
||||
aspect = -1
|
||||
# LOD calculation: -1=Game default, 0=disable. 1=fast, 2=precise
|
||||
lodmode = -1
|
||||
# Smart framebuffer: -1=Game default, 0=disable. 1=enable
|
||||
fb_smart = -1
|
||||
# Hardware frame buffer emulation: -1=Game default, 0=disable. 1=enable
|
||||
fb_hires = -1
|
||||
# Read framebuffer every frame (may be slow use only for effects that need it e.g. Banjo Kazooie, DK64 transitions): -1=Game default, 0=disable. 1=enable
|
||||
fb_read_always = -1
|
||||
# Render N64 frame buffer as texture: -1=Game default, 0=disable, 1=mode1, 2=mode2
|
||||
read_back_to_screen = -1
|
||||
# Show images written directly by CPU: -1=Game default, 0=disable. 1=enable
|
||||
detect_cpu_write = -1
|
||||
# Get frame buffer info: -1=Game default, 0=disable. 1=enable
|
||||
fb_get_info = -1
|
||||
# Enable software depth render: -1=Game default, 0=disable. 1=enable
|
||||
fb_render = -1
|
||||
# If true, skip up to maxframeskip frames to maintain clock schedule; if false, skip exactly maxframeskip frames
|
||||
autoframeskip = False
|
||||
# If autoframeskip is true, skip up to this many frames to maintain clock schedule; if autoframeskip is false, skip exactly this many frames
|
||||
maxframeskip = 0
|
||||
|
||||
|
||||
[Video-Rice]
|
||||
|
||||
# Hack to accomodate widescreen devices
|
||||
ResolutionWidth = 480
|
||||
# Mupen64Plus Rice Video Plugin config parameter version number
|
||||
Version = 1
|
||||
# Frame Buffer Emulation (0=ROM default, 1=disable)
|
||||
FrameBufferSetting = 0
|
||||
# Frequency to write back the frame buffer (0=every frame, 1=every other frame, etc)
|
||||
FrameBufferWriteBackControl = 0
|
||||
# Render-to-texture emulation (0=none, 1=ignore, 2=normal, 3=write back, 4=write back and reload)
|
||||
RenderToTexture = 0
|
||||
# Control when the screen will be updated (0=ROM default, 1=VI origin update, 2=VI origin change, 3=CI change, 4=first CI change, 5=first primitive draw, 6=before screen clear, 7=after screen drawn)
|
||||
ScreenUpdateSetting = 4
|
||||
# Force to use normal alpha blender
|
||||
NormalAlphaBlender = False
|
||||
# Use a faster algorithm to speed up texture loading and CRC computation
|
||||
FastTextureLoading = False
|
||||
# Use different texture coordinate clamping code
|
||||
AccurateTextureMapping = True
|
||||
# Force emulated frame buffers to be in N64 native resolution
|
||||
InN64Resolution = False
|
||||
# Try to reduce Video RAM usage (should never be used)
|
||||
SaveVRAM = False
|
||||
# Enable this option to have better render-to-texture quality
|
||||
DoubleSizeForSmallTxtrBuf = False
|
||||
# Force to use normal color combiner
|
||||
DefaultCombinerDisable = False
|
||||
# Enable game-specific settings from INI file
|
||||
EnableHacks = True
|
||||
# If enabled, graphics will be drawn in WinFrame mode instead of solid and texture mode
|
||||
WinFrameMode = False
|
||||
# N64 Texture Memory Full Emulation (may fix some games, may break others)
|
||||
FullTMEMEmulation = False
|
||||
# Enable vertex clipper for fog operations
|
||||
OpenGLVertexClipper = False
|
||||
# Enable/Disable SSE optimizations for capable CPUs
|
||||
EnableSSE = True
|
||||
# If this option is enabled, the plugin will skip every other frame
|
||||
SkipFrame = False
|
||||
# If enabled, texture enhancement will be done only for TxtRect ucode
|
||||
TexRectOnly = False
|
||||
# If enabled, texture enhancement will be done only for textures width+height<=128
|
||||
SmallTextureOnly = False
|
||||
# Select hi-resolution textures based only on the CRC and ignore format+size information (Glide64 compatibility)
|
||||
LoadHiResCRCOnly = True
|
||||
# Enable hi-resolution texture file loading
|
||||
LoadHiResTextures = False
|
||||
# Enable texture dumping
|
||||
DumpTexturesToFiles = False
|
||||
# Display On-screen FPS
|
||||
ShowFPS = False
|
||||
# Use Mipmapping? 0=no, 1=nearest, 2=bilinear, 3=trilinear
|
||||
Mipmapping = 2
|
||||
# Enable, Disable fog generation (0=Disable, 1=Enable)
|
||||
FogMethod = 1
|
||||
# Force to use texture filtering or not (0=auto: n64 choose, 1=force no filtering, 2=force filtering)
|
||||
ForceTextureFilter = 0
|
||||
# Primary texture enhancement filter (0=None, 1=2X, 2=2XSAI, 3=HQ2X, 4=LQ2X, 5=HQ4X, 6=Sharpen, 7=Sharpen More, 8=External, 9=Mirrored)
|
||||
TextureEnhancement = 0
|
||||
# Secondary texture enhancement filter (0 = none, 1-4 = filtered)
|
||||
TextureEnhancementControl = 0
|
||||
# Color bit depth to use for textures (0=default, 1=32 bits, 2=16 bits)
|
||||
TextureQuality = 0
|
||||
# Z-buffer depth (only 16 or 32)
|
||||
OpenGLDepthBufferSetting = 16
|
||||
# Enable/Disable MultiSampling (0=off, 2,4,8,16=quality)
|
||||
MultiSampling = 0
|
||||
# Color bit depth for rendering window (0=32 bits, 1=16 bits)
|
||||
ColorQuality = 1
|
||||
# OpenGL level to support (0=auto, 1=OGL_FRAGMENT_PROGRAM)
|
||||
OpenGLRenderSetting = 0
|
||||
# Enable/Disable Anisotropic Filtering for Mipmapping (0=no filtering, 2-16=quality). This is uneffective if Mipmapping is 0. If the given value is to high to be supported by your graphic card, the value will be the highest value your graphic card can support. Better result with Trilinear filtering
|
||||
AnisotropicFiltering = 0
|
||||
# If true, use polygon offset values specified below
|
||||
ForcePolygonOffset = False
|
||||
# Specifies a scale factor that is used to create a variable depth offset for each polygon
|
||||
PolygonOffsetFactor = 0.000000
|
||||
# Is multiplied by an implementation-specific value to create a constant depth offset
|
||||
PolygonOffsetUnits = 0.000000
|
|
@ -98,3 +98,28 @@ Rumblepak switch =
|
|||
# Analog axis configuration mappings
|
||||
X Axis = axis(0-,0+)
|
||||
Y Axis = axis(1-,1+)
|
||||
|
||||
[r33s_joypad]
|
||||
plugged = True
|
||||
mouse = False
|
||||
AnalogDeadzone = 0,0
|
||||
AnalogPeak = 32768,32768
|
||||
DPad R =
|
||||
DPad L =
|
||||
DPad D =
|
||||
DPad U =
|
||||
Start = button(9)
|
||||
Z Trig = button(7)
|
||||
B Button = button(3)
|
||||
A Button = button(0)
|
||||
C Button R = button(1)
|
||||
C Button L = button(6)
|
||||
C Button D =
|
||||
C Button U = button(2)
|
||||
R Trig = button(5)
|
||||
L Trig = button(4)
|
||||
Mempak switch =
|
||||
Rumblepak switch =
|
||||
# Analog axis configuration mappings
|
||||
X Axis = button(12,13)axis(0-,0+)
|
||||
Y Axis = button(10,11)axis(1-,1+)
|
||||
|
|
|
@ -7,3 +7,4 @@
|
|||
19009b4d4b4800000111000000020000,retrogame_joypad,platform:Linux,x:b2,a:b1,b:b0,y:b3,back:b8,start:b9,dpleft:b15,dpdown:b14,dpright:b16,dpup:b13,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,leftstick:b11,rightstick:b12,leftx:a0,lefty:a1,rightx:a2,righty:a3,
|
||||
19009b4d4b4800000111000000010000,retrogame_joypad,platform:Linux,x:b2,a:b1,b:b0,y:b3,back:b8,start:b9,dpleft:b15,dpdown:b14,dpright:b16,dpup:b13,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,leftstick:b11,rightstick:b12,leftx:a0,lefty:a1,rightx:a2,righty:a3,
|
||||
19009321b0c300000002000010000000,XU10 Gamepad,platform:Linux,x:b0,a:b1,b:b2,y:b3,back:b8,guide:b16,start:b9,dpleft:b14,dpdown:b13,dpright:b15,dpup:b12,leftshoulder:b4,lefttrigger:b7,rightshoulder:b5,righttrigger:b6,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,
|
||||
190014b3010000009178000000050000,r33s_joypad,platform:Linux,x:b2,a:b1,b:b0,y:b3,back:b8,start:b9,dpleft:b12,dpdown:b11,dpright:b13,dpup:b10,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
input_driver = "udev"
|
||||
input_device = "r33s_joypad"
|
||||
input_device_display_name = "R33S Joypad"
|
||||
|
||||
input_b_btn = "0"
|
||||
input_y_btn = "3"
|
||||
input_select_btn = "8"
|
||||
input_start_btn = "9"
|
||||
input_a_btn = "1"
|
||||
input_x_btn = "2"
|
||||
input_l_btn = "4"
|
||||
input_r_btn = "5"
|
||||
input_l2_btn = "6"
|
||||
input_r2_btn = "7"
|
||||
|
||||
input_up_btn = "10"
|
||||
input_down_btn = 11"
|
||||
input_left_btn = "12"
|
||||
input_right_btn = "13"
|
||||
|
||||
# Hotkeys
|
||||
input_enable_hotkey_btn = "8"
|
||||
input_exit_emulator_btn = "9"
|
||||
|
||||
input_menu_toggle_btn = "2"
|
||||
input_fps_toggle_btn = "3"
|
||||
|
||||
input_load_state_btn = "4"
|
||||
input_save_state_btn = "5"
|
||||
|
||||
input_rewind_btn = "6"
|
||||
input_toggle_fast_forward_btn = "7"
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
||||
|
||||
cat <<EOF >/storage/.config/profile.d/001-device_config
|
||||
# Device Features
|
||||
DEVICE_VOLUMECTL="true"
|
||||
DEVICE_POWER_LED="false"
|
||||
DEVICE_PLAYBACK_PATH_SPK="HP"
|
||||
DEVICE_PLAYBACK_PATH_HP="SPK"
|
||||
DEVICE_BRIGHTNESS="128"
|
||||
DEVICE_BATTERY_LED_STATUS="true"
|
||||
DEVICE_PWR_LED_GPIO="77"
|
||||
DEVICE_PWR_LED_CONTROL="true"
|
||||
DEVICE_TEMP_SENSOR="/sys/devices/virtual/thermal/thermal_zone0/temp"
|
||||
EOF
|
|
@ -0,0 +1,262 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Copyright (C) 2022-present JELOS (https://github.com/JustEnoughLinuxOS)
|
||||
|
||||
. /etc/profile
|
||||
|
||||
#Set mupen64-plus-sa config for R33S
|
||||
if [ ! -d "/storage/.config/mupen64plus" ]; then
|
||||
mkdir -p "/storage/.config/mupen64plus/"
|
||||
cp -r /usr/local/share/mupen64plus/mupen64plus.cfg* /storage/.config/mupen64plus/
|
||||
fi
|
||||
if [ -f "/storage/.config/mupen64plus/mupen64plus.cfg.r33s" ]; then
|
||||
rm /storage/.config/mupen64plus/mupen64plus.cfg
|
||||
mv /storage/.config/mupen64plus/mupen64plus.cfg.r33s /storage/.config/mupen64plus/mupen64plus.cfg
|
||||
fi
|
||||
|
||||
#Set drastic-sa config for OGA
|
||||
if [ ! -d "/storage/.config/drastic" ]; then
|
||||
mkdir -p "/storage/.config/drastic"
|
||||
cp -r "/usr/config/drastic" "/storage/.config/"
|
||||
fi
|
||||
if [ -f "/storage/.config/drastic/config/drastic.cfg.r33s" ]; then
|
||||
mv /storage/.config/drastic/config/drastic.cfg.r33s /storage/.config/drastic/config/drastic.cfg
|
||||
fi
|
||||
|
||||
|
||||
#Set gzoom config for R33S
|
||||
if [ ! -d "/storage/.config/gzdoom" ]; then
|
||||
cp -r "/usr/config/gzdoom" "/storage/.config/"
|
||||
fi
|
||||
|
||||
#Set gzdoom settings
|
||||
if grep R33S -q "/storage/.config/gzdoom/gzdoom.ini"
|
||||
then
|
||||
exit 1
|
||||
else
|
||||
sed -i '/^[Doom.Bindings]/c\[Doom.Bindings] #R33S' /storage/.config/gzdoom/gzdoom.ini
|
||||
sed -i '/^vid_defheight=/c\vid_defheight=480' /storage/.config/gzdoom/gzdoom.ini
|
||||
sed -i '/^vid_defwidth=/c\vid_defwidth=640' /storage/.config/gzdoom/gzdoom.ini
|
||||
sed -i '/^Joy1=/c\Joy1=+use' /storage/.config/gzdoom/gzdoom.ini
|
||||
sed -i '/^Joy5=/c\Joy5=+speed' /storage/.config/gzdoom/gzdoom.ini
|
||||
sed -i '/^Joy6=/c\Joy6=+attack' /storage/.config/gzdoom/gzdoom.ini
|
||||
sed -i '/^Joy7=/c\Joy7=+moveleft' /storage/.config/gzdoom/gzdoom.ini
|
||||
sed -i '/^Joy8=/c\Joy8=+moveright' /storage/.config/gzdoom/gzdoom.ini
|
||||
sed -i '/^Joy9=/c\Joy9=menu_main' /storage/.config/gzdoom/gzdoom.ini
|
||||
sed -i '/^Joy11=/c\Joy11=+forward' /storage/.config/gzdoom/gzdoom.ini
|
||||
sed -i '/^Joy12=/c\Joy12=+back' /storage/.config/gzdoom/gzdoom.ini
|
||||
sed -i '/^Joy13=/c\Joy13=+left' /storage/.config/gzdoom/gzdoom.ini
|
||||
sed -i '/^Joy14=/c\Joy14=+right' /storage/.config/gzdoom/gzdoom.ini
|
||||
sed -i '/^Joy2=/c\Joy2=+attack' /storage/.config/gzdoom/gzdoom.ini
|
||||
fi
|
||||
|
||||
#Set ppsspp config for R33S
|
||||
if [ ! -d "/storage/.config/ppsspp" ]; then
|
||||
mkdir -p "/storage/.config/ppsspp"
|
||||
cp -r "/usr/config/ppsspp" "/storage/.config/"
|
||||
fi
|
||||
|
||||
#Map ppsspp controls
|
||||
if grep R33S -q "/storage/.config/ppsspp/PSP/SYSTEM/controls.ini"
|
||||
then
|
||||
exit 1
|
||||
else
|
||||
cat <<EOF >/storage/.config/ppsspp/PSP/SYSTEM/controls.ini
|
||||
#R33S
|
||||
[ControlMapping]
|
||||
Up = 10-19
|
||||
Down = 10-20
|
||||
Left = 10-21
|
||||
Right = 10-22
|
||||
Circle = 10-189
|
||||
Cross = 10-190
|
||||
Square = 10-188
|
||||
Triangle = 10-191
|
||||
Start = 10-197
|
||||
Select = 10-196
|
||||
L = 10-193
|
||||
R = 10-192
|
||||
Fast-forward = 1-61
|
||||
Pause = 10-106
|
||||
Save State = 10-4010
|
||||
Load State = 10-4008
|
||||
EOF
|
||||
fi
|
||||
|
||||
#Set flycast ra config for R33S
|
||||
if [ ! -d "/storage/remappings/Flycast" ]; then
|
||||
mkdir -p "/storage/remappings/Flycast"
|
||||
fi
|
||||
|
||||
#Map flycast ra controls for R33S
|
||||
if grep R33S -q "/storage/remappings/Flycast/Flycast.rmp"
|
||||
then
|
||||
exit 1
|
||||
else
|
||||
cat <<EOF >/storage/remappings/Flycast/Flycast.rmp
|
||||
#R33S
|
||||
input_libretro_device_p1 = "1"
|
||||
input_libretro_device_p2 = "1"
|
||||
input_libretro_device_p3 = "1"
|
||||
input_libretro_device_p4 = "1"
|
||||
input_libretro_device_p5 = "1"
|
||||
input_player1_analog_dpad_mode = "0"
|
||||
input_player1_btn_down = "18"
|
||||
input_player1_btn_left = "17"
|
||||
input_player1_btn_right = "16"
|
||||
input_player1_btn_up = "19"
|
||||
input_player1_stk_l_x+ = "-1"
|
||||
input_player1_stk_l_x- = "-1"
|
||||
input_player1_stk_l_y+ = "-1"
|
||||
input_player1_stk_l_y- = "-1"
|
||||
input_player2_analog_dpad_mode = "0"
|
||||
input_player3_analog_dpad_mode = "0"
|
||||
input_player4_analog_dpad_mode = "0"
|
||||
input_player5_analog_dpad_mode = "0"
|
||||
input_remap_port_p1 = "0"
|
||||
input_remap_port_p2 = "1"
|
||||
input_remap_port_p3 = "2"
|
||||
input_remap_port_p4 = "3"
|
||||
input_remap_port_p5 = "4"
|
||||
EOF
|
||||
fi
|
||||
|
||||
#Set Mupen64Plus GLES2 ra config for R33S
|
||||
if [ ! -d "/storage/remappings/Mupen64Plus GLES2" ]; then
|
||||
mkdir -p "/storage/remappings/Mupen64Plus GLES2"
|
||||
fi
|
||||
|
||||
#Map Mupen64Plus GLES2 ra controls for R33S
|
||||
if grep R33S -q "/storage/remappings/Mupen64Plus GLES2/Mupen64Plus GLES2.rmp"
|
||||
then
|
||||
exit 1
|
||||
else
|
||||
cat <<EOF >"/storage/remappings/Mupen64Plus GLES2/Mupen64Plus GLES2.rmp"
|
||||
#R33S
|
||||
input_libretro_device_p1 = "1"
|
||||
input_libretro_device_p2 = "1"
|
||||
input_libretro_device_p3 = "1"
|
||||
input_libretro_device_p4 = "1"
|
||||
input_libretro_device_p5 = "1"
|
||||
input_player1_analog_dpad_mode = "0"
|
||||
input_player1_btn_a = "22"
|
||||
input_player1_btn_down = "18"
|
||||
input_player1_btn_l = "12"
|
||||
input_player1_btn_l2 = "21"
|
||||
input_player1_btn_left = "17"
|
||||
input_player1_btn_r2 = "20"
|
||||
input_player1_btn_right = "16"
|
||||
input_player1_btn_up = "19"
|
||||
input_player1_btn_x = "23"
|
||||
input_player1_stk_l_x+ = "-1"
|
||||
input_player1_stk_l_x- = "-1"
|
||||
input_player1_stk_l_y+ = "-1"
|
||||
input_player1_stk_l_y- = "-1"
|
||||
input_player1_stk_r_x+ = "-1"
|
||||
input_player1_stk_r_x- = "-1"
|
||||
input_player1_stk_r_y+ = "-1"
|
||||
input_player1_stk_r_y- = "-1"
|
||||
input_player2_analog_dpad_mode = "0"
|
||||
input_player3_analog_dpad_mode = "0"
|
||||
input_player4_analog_dpad_mode = "0"
|
||||
input_player5_analog_dpad_mode = "0"
|
||||
input_remap_port_p1 = "0"
|
||||
input_remap_port_p2 = "1"
|
||||
input_remap_port_p3 = "2"
|
||||
input_remap_port_p4 = "3"
|
||||
input_remap_port_p5 = "4"
|
||||
EOF
|
||||
fi
|
||||
|
||||
#Set Mupen64Plus-Next ra config for R33S
|
||||
if [ ! -d "/storage/remappings/Mupen64Plus-Next" ]; then
|
||||
mkdir -p "/storage/remappings/Mupen64Plus-Next"
|
||||
fi
|
||||
|
||||
#Map Mupen64Plus-Next ra controls for R33S
|
||||
if grep R33S -q "/storage/remappings/Mupen64Plus-Next/Mupen64Plus-Next.rmp"
|
||||
then
|
||||
exit 1
|
||||
else
|
||||
cat <<EOF >/storage/remappings/Mupen64Plus-Next/Mupen64Plus-Next.rmp
|
||||
#R33S
|
||||
input_libretro_device_p1 = "1"
|
||||
input_libretro_device_p2 = "1"
|
||||
input_libretro_device_p3 = "1"
|
||||
input_libretro_device_p4 = "1"
|
||||
input_libretro_device_p5 = "1"
|
||||
input_player1_analog_dpad_mode = "0"
|
||||
input_player1_btn_a = "22"
|
||||
input_player1_btn_down = "18"
|
||||
input_player1_btn_l = "12"
|
||||
input_player1_btn_l2 = "21"
|
||||
input_player1_btn_left = "17"
|
||||
input_player1_btn_r2 = "20"
|
||||
input_player1_btn_right = "16"
|
||||
input_player1_btn_up = "19"
|
||||
input_player1_btn_x = "23"
|
||||
input_player1_stk_l_x+ = "-1"
|
||||
input_player1_stk_l_x- = "-1"
|
||||
input_player1_stk_l_y+ = "-1"
|
||||
input_player1_stk_l_y- = "-1"
|
||||
input_player1_stk_r_x+ = "-1"
|
||||
input_player1_stk_r_x- = "-1"
|
||||
input_player1_stk_r_y+ = "-1"
|
||||
input_player1_stk_r_y- = "-1"
|
||||
input_player2_analog_dpad_mode = "0"
|
||||
input_player3_analog_dpad_mode = "0"
|
||||
input_player4_analog_dpad_mode = "0"
|
||||
input_player5_analog_dpad_mode = "0"
|
||||
input_remap_port_p1 = "0"
|
||||
input_remap_port_p2 = "1"
|
||||
input_remap_port_p3 = "2"
|
||||
input_remap_port_p4 = "3"
|
||||
input_remap_port_p5 = "4"
|
||||
EOF
|
||||
fi
|
||||
|
||||
#Set ParaLLEl N64 ra config for R33S
|
||||
if [ ! -d "/storage/remappings/ParaLLEl N64" ]; then
|
||||
mkdir -p "/storage/remappings/ParaLLEl N64"
|
||||
fi
|
||||
|
||||
#Map ParaLLEl N64 ra controls for R33S
|
||||
if grep R33S -q "/storage/remappings/ParaLLEl N64/ParaLLEl N64.rmp"
|
||||
then
|
||||
exit 1
|
||||
else
|
||||
cat <<EOF >"/storage/remappings/ParaLLEl N64/ParaLLEl N64.rmp"
|
||||
#R33S
|
||||
input_libretro_device_p1 = "1"
|
||||
input_libretro_device_p2 = "1"
|
||||
input_libretro_device_p3 = "1"
|
||||
input_libretro_device_p4 = "1"
|
||||
input_libretro_device_p5 = "1"
|
||||
input_player1_analog_dpad_mode = "0"
|
||||
input_player1_btn_a = "22"
|
||||
input_player1_btn_down = "18"
|
||||
input_player1_btn_l = "12"
|
||||
input_player1_btn_l2 = "21"
|
||||
input_player1_btn_left = "17"
|
||||
input_player1_btn_r2 = "20"
|
||||
input_player1_btn_right = "16"
|
||||
input_player1_btn_up = "19"
|
||||
input_player1_btn_x = "23"
|
||||
input_player1_stk_l_x+ = "-1"
|
||||
input_player1_stk_l_x- = "-1"
|
||||
input_player1_stk_l_y+ = "-1"
|
||||
input_player1_stk_l_y- = "-1"
|
||||
input_player1_stk_r_x+ = "-1"
|
||||
input_player1_stk_r_x- = "-1"
|
||||
input_player1_stk_r_y+ = "-1"
|
||||
input_player1_stk_r_y- = "-1"
|
||||
input_player2_analog_dpad_mode = "0"
|
||||
input_player3_analog_dpad_mode = "0"
|
||||
input_player4_analog_dpad_mode = "0"
|
||||
input_player5_analog_dpad_mode = "0"
|
||||
input_remap_port_p1 = "0"
|
||||
input_remap_port_p2 = "1"
|
||||
input_remap_port_p3 = "2"
|
||||
input_remap_port_p4 = "3"
|
||||
input_remap_port_p5 = "4
|
||||
EOF
|
||||
fi
|
|
@ -15,7 +15,7 @@ fi
|
|||
|
||||
function set_led() {
|
||||
case $1 in
|
||||
red)
|
||||
red|off)
|
||||
echo out >/sys/class/gpio/gpio${DEVICE_PWR_LED_GPIO}/direction
|
||||
echo 1 >/sys/class/gpio/gpio${DEVICE_PWR_LED_GPIO}/value
|
||||
;;
|
||||
|
@ -34,31 +34,37 @@ while true
|
|||
do
|
||||
CAP=$(cat /sys/class/power_supply/battery/capacity)
|
||||
STAT=$(cat /sys/class/power_supply/battery/status)
|
||||
if [[ ${STAT} == "Discharging" ]]
|
||||
ISDISABLED=$(get_setting powerled.disabled)
|
||||
if [ "${ISDISABLED}" == "1" ]
|
||||
then
|
||||
#if (( ${CAP} <= 50 ))
|
||||
#then
|
||||
# for ctr in $(seq 1 1 5)
|
||||
# do
|
||||
# set_led orange
|
||||
# sleep .5
|
||||
# set_led red
|
||||
# sleep .5
|
||||
# done
|
||||
# continue
|
||||
#elif (( ${CAP} <= 20 ))
|
||||
if (( ${CAP} <= 20 ))
|
||||
set_led off
|
||||
else
|
||||
if [[ ${STAT} == "Discharging" ]]
|
||||
then
|
||||
set_led red
|
||||
elif (( ${CAP} <= 30 ))
|
||||
#if (( ${CAP} <= 50 ))
|
||||
#then
|
||||
# for ctr in $(seq 1 1 5)
|
||||
# do
|
||||
# set_led orange
|
||||
# sleep .5
|
||||
# set_led red
|
||||
# sleep .5
|
||||
# done
|
||||
# continue
|
||||
#elif (( ${CAP} <= 20 ))
|
||||
if (( ${CAP} <= 20 ))
|
||||
then
|
||||
set_led red
|
||||
elif (( ${CAP} <= 30 ))
|
||||
then
|
||||
set_led orange
|
||||
else
|
||||
set_led green
|
||||
fi
|
||||
elif (( ${CAP} >= 95 ))
|
||||
then
|
||||
set_led orange
|
||||
else
|
||||
set_led green
|
||||
fi
|
||||
elif (( ${CAP} >= 95 ))
|
||||
then
|
||||
set_led green
|
||||
sleep 15
|
||||
fi
|
||||
sleep 15
|
||||
done
|
||||
|
|
|
@ -1294,4 +1294,21 @@
|
|||
<input name="x" type="button" id="3" value="1" />
|
||||
<input name="y" type="button" id="0" value="1" />
|
||||
</inputConfig>
|
||||
<inputConfig type="joystick" deviceName="r33s_joypad" deviceGUID="190014b3010000009178000000050000">
|
||||
<input name="a" type="button" id="1" value="1" />
|
||||
<input name="b" type="button" id="0" value="1" />
|
||||
<input name="down" type="button" id="11" value="1" />
|
||||
<input name="hotkeyenable" type="button" id="8" value="1" />
|
||||
<input name="left" type="button" id="12" value="1" />
|
||||
<input name="leftshoulder" type="button" id="4" value="1" />
|
||||
<input name="lefttrigger" type="button" id="6" value="1" />
|
||||
<input name="right" type="button" id="13" value="1" />
|
||||
<input name="rightshoulder" type="button" id="5" value="1" />
|
||||
<input name="righttrigger" type="button" id="7" value="1" />
|
||||
<input name="select" type="button" id="8" value="1" />
|
||||
<input name="start" type="button" id="9" value="1" />
|
||||
<input name="up" type="button" id="10" value="1" />
|
||||
<input name="x" type="button" id="2" value="1" />
|
||||
<input name="y" type="button" id="3" value="1" />
|
||||
</inputConfig>
|
||||
</inputList>
|
||||
|
|
|
@ -23,8 +23,8 @@ elif test ${hwrev} = 'v10'; then
|
|||
load mmc 1:1 ${dtb_loadaddr} rk3326-odroid-go2.dtb
|
||||
elif test ${hwrev} = 'rg351v'; then
|
||||
load mmc 1:1 ${dtb_loadaddr} rk3326-anbernic-rg351v.dtb
|
||||
elif test ${hwrev} = 'rg351mp'; then
|
||||
load mmc 1:1 ${dtb_loadaddr} rk3326-anbernic-rg351mp.dtb
|
||||
elif test ${hwrev} = 'r33s'; then
|
||||
load mmc 1:1 ${dtb_loadaddr} rk3326-gameconsole-r33s.dtb
|
||||
elif test ${hwrev} = 'xu10'; then
|
||||
load mmc 1:1 ${dtb_loadaddr} rk3326-magicx-xu10.dtb
|
||||
fi
|
||||
|
|
|
@ -2508,7 +2508,7 @@ CONFIG_GPIOLIB=y
|
|||
CONFIG_GPIOLIB_FASTPATH_LIMIT=512
|
||||
CONFIG_OF_GPIO=y
|
||||
CONFIG_GPIOLIB_IRQCHIP=y
|
||||
CONFIG_DEBUG_GPIO=y
|
||||
# CONFIG_DEBUG_GPIO is not set
|
||||
CONFIG_GPIO_SYSFS=y
|
||||
CONFIG_GPIO_CDEV=y
|
||||
CONFIG_GPIO_CDEV_V1=y
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
BOOTLOADER="u-boot"
|
||||
TRUST_LABEL="trust"
|
||||
PARTITION_TABLE="msdos"
|
||||
DEVICE_DTB=("rk3326-anbernic-rg351m" "rk3326-anbernic-rg351v" "rk3326-odroid-go2" "rk3326-odroid-go2-v11" "rk3326-odroid-go3" "rk3326-powkiddy-rgb10" "rk3326-magicx-xu10")
|
||||
DEVICE_DTB=("rk3326-anbernic-rg351m" "rk3326-anbernic-rg351v" "rk3326-gameconsole-r33s" "rk3326-odroid-go2" "rk3326-odroid-go2-v11" "rk3326-odroid-go3" "rk3326-powkiddy-rgb10" "rk3326-magicx-xu10")
|
||||
UBOOT_DTB="${DEVICE_DTB[0]}"
|
||||
UBOOT_CONFIG="odroidgoa_defconfig"
|
||||
PKG_SOC="px30"
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/Makefile linux/arch/arm64/boot/dts/rockchip/Makefile
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/Makefile 2024-01-22 23:55:56.423256979 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/Makefile 2024-01-23 03:05:55.471049048 +0000
|
||||
@@ -9,9 +9,12 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-ro
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/Makefile 2024-01-25 20:47:44.834049019 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/Makefile 2024-01-26 00:04:00.800624582 +0000
|
||||
@@ -9,9 +9,13 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-ro
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-rock-pi-s.dtb
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3318-a95x-z2.dtb
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-anbernic-rg351m.dtb
|
||||
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-anbernic-rg351v.dtb
|
||||
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-gameconsole-r33s.dtb
|
||||
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-magicx-xu10.dtb
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go2.dtb
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go2-v11.dtb
|
||||
|
@ -15,8 +16,8 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/Makefile linux/arch/arm64/boo
|
|||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-evb.dtb
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-nanopi-r2c.dtb
|
||||
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/px30.dtsi linux/arch/arm64/boot/dts/rockchip/px30.dtsi
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/px30.dtsi 2024-01-22 23:55:56.427257071 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/px30.dtsi 2024-01-23 18:01:18.953774998 +0000
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/px30.dtsi 2024-01-25 20:47:44.834049019 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/px30.dtsi 2024-01-25 20:50:16.937337992 +0000
|
||||
@@ -114,32 +114,22 @@
|
||||
compatible = "operating-points-v2";
|
||||
opp-shared;
|
||||
|
@ -115,8 +116,8 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/px30.dtsi linux/arch/arm64/bo
|
|||
};
|
||||
|
||||
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts linux/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts 2024-01-22 23:55:56.427257071 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts 2024-01-23 03:05:55.471049048 +0000
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts 2024-01-25 20:47:44.834049019 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts 2024-01-25 20:50:16.937337992 +0000
|
||||
@@ -12,6 +12,25 @@
|
||||
model = "Anbernic RG351M";
|
||||
compatible = "anbernic,rg351m", "rockchip,rk3326";
|
||||
|
@ -169,7 +170,7 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts li
|
|||
+};
|
||||
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts linux/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts 2024-01-23 03:05:55.471049048 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts 2024-01-25 20:50:16.937337992 +0000
|
||||
@@ -0,0 +1,124 @@
|
||||
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
+/*
|
||||
|
@ -295,8 +296,658 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts li
|
|||
+ };
|
||||
+ };
|
||||
+};
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-magicx-xu10.dts 1969-12-31 19:00:00.000000000 -0500
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-magicx-xu10.dts 2024-01-24 14:29:39.760826750 -0500
|
||||
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-gameconsole-r33s.dts linux/arch/arm64/boot/dts/rockchip/rk3326-gameconsole-r33s.dts
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-gameconsole-r33s.dts 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-gameconsole-r33s.dts 2024-01-27 13:47:36.892115722 +0000
|
||||
@@ -0,0 +1,645 @@
|
||||
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
+/*
|
||||
+ * Copyright (c) 2019 Hardkernel Co., Ltd
|
||||
+ * Copyright (c) 2020 Theobroma Systems Design und Consulting GmbH
|
||||
+ * Copyright (c) 2022 Maya Matuszczyk <maccraft123mc@gmail.com>
|
||||
+ */
|
||||
+
|
||||
+/dts-v1/;
|
||||
+#include <dt-bindings/gpio/gpio.h>
|
||||
+#include <dt-bindings/input/input.h>
|
||||
+#include <dt-bindings/leds/common.h>
|
||||
+#include <dt-bindings/pinctrl/rockchip.h>
|
||||
+#include "rk3326.dtsi"
|
||||
+
|
||||
+/ {
|
||||
+ model = "Game Console R33S";
|
||||
+ compatible = "gameconsolec,r33s", "rockchip,rk3326";
|
||||
+
|
||||
+ aliases {
|
||||
+ mmc0 = &sdio;
|
||||
+ mmc1 = &sdmmc;
|
||||
+ };
|
||||
+
|
||||
+ chosen {
|
||||
+ stdout-path = "serial2:115200n8";
|
||||
+ };
|
||||
+
|
||||
+ backlight: backlight {
|
||||
+ compatible = "pwm-backlight";
|
||||
+ power-supply = <&vcc_bl>;
|
||||
+ pwms = <&pwm1 0 25000 0>;
|
||||
+ brightness-levels = <
|
||||
+ 0 1 2 3 4 5 6 7
|
||||
+ 8 9 10 11 12 13 14 15
|
||||
+ 16 17 18 19 20 21 22 23
|
||||
+ 24 25 26 27 28 29 30 31
|
||||
+ 32 33 34 35 36 37 38 39
|
||||
+ 40 41 42 43 44 45 46 47
|
||||
+ 48 49 50 51 52 53 54 55
|
||||
+ 56 57 58 59 60 61 62 63
|
||||
+ 64 65 66 67 68 69 70 71
|
||||
+ 72 73 74 75 76 77 78 79
|
||||
+ 80 81 82 83 84 85 86 87
|
||||
+ 88 89 90 91 92 93 94 95
|
||||
+ 96 97 98 99 100 101 102 103
|
||||
+ 104 105 106 107 108 109 110 111
|
||||
+ 112 113 114 115 116 117 118 119
|
||||
+ 120 121 122 123 124 125 126 127
|
||||
+ 128 129 130 131 132 133 134 135
|
||||
+ 136 137 138 139 140 141 142 143
|
||||
+ 144 145 146 147 148 149 150 151
|
||||
+ 152 153 154 155 156 157 158 159
|
||||
+ 160 161 162 163 164 165 166 167
|
||||
+ 168 169 170 171 172 173 174 175
|
||||
+ 176 177 178 179 180 181 182 183
|
||||
+ 184 185 186 187 188 189 190 191
|
||||
+ 192 193 194 195 196 197 198 199
|
||||
+ 200 201 202 203 204 205 206 207
|
||||
+ 208 209 210 211 212 213 214 215
|
||||
+ 216 217 218 219 220 221 222 223
|
||||
+ 224 225 226 227 228 229 230 231
|
||||
+ 232 233 234 235 236 237 238 239
|
||||
+ 240 241 242 243 244 245 246 247
|
||||
+ 248 249 250 251 252 253 254 255>;
|
||||
+ default-brightness-level = <128>;
|
||||
+ };
|
||||
+
|
||||
+ gpio-keys-vol {
|
||||
+ compatible = "gpio-keys";
|
||||
+ autorepeat;
|
||||
+ pinctrl-0 = <&btn_pins_vol>;
|
||||
+ pinctrl-names = "default";
|
||||
+
|
||||
+ button-vol-down {
|
||||
+ gpios = <&gpio2 RK_PA1 GPIO_ACTIVE_LOW>;
|
||||
+ label = "VOLUMEDOWN";
|
||||
+ linux,code = <KEY_VOLUMEDOWN>;
|
||||
+ };
|
||||
+
|
||||
+ button-volume-up {
|
||||
+ gpios = <&gpio2 RK_PA0 GPIO_ACTIVE_LOW>;
|
||||
+ label = "VOLUMEUP";
|
||||
+ linux,code = <KEY_VOLUMEUP>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ builtin_gamepad: r33s_joypad {
|
||||
+ compatible = "gpio-keys";
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&btn_pins>;
|
||||
+
|
||||
+ button-sw1 {
|
||||
+ gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_LOW>;
|
||||
+ label = "DPAD-UP";
|
||||
+ linux,code = <BTN_DPAD_UP>;
|
||||
+ };
|
||||
+ button-sw2 {
|
||||
+ gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_LOW>;
|
||||
+ label = "DPAD-DOWN";
|
||||
+ linux,code = <BTN_DPAD_DOWN>;
|
||||
+ };
|
||||
+ button-sw3 {
|
||||
+ gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>;
|
||||
+ label = "DPAD-LEFT";
|
||||
+ linux,code = <BTN_DPAD_LEFT>;
|
||||
+ };
|
||||
+ button-sw4 {
|
||||
+ gpios = <&gpio1 RK_PB7 GPIO_ACTIVE_LOW>;
|
||||
+ label = "DPAD-RIGHT";
|
||||
+ linux,code = <BTN_DPAD_RIGHT>;
|
||||
+ };
|
||||
+ button-sw5 {
|
||||
+ gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_LOW>;
|
||||
+ label = "BTN-A";
|
||||
+ linux,code = <BTN_EAST>;
|
||||
+ };
|
||||
+ button-sw6 {
|
||||
+ gpios = <&gpio1 RK_PA5 GPIO_ACTIVE_LOW>;
|
||||
+ label = "BTN-B";
|
||||
+ linux,code = <BTN_SOUTH>;
|
||||
+ };
|
||||
+ button-sw7 {
|
||||
+ gpios = <&gpio1 RK_PA6 GPIO_ACTIVE_LOW>;
|
||||
+ label = "BTN-Y";
|
||||
+ linux,code = <BTN_WEST>;
|
||||
+ };
|
||||
+ button-sw8 {
|
||||
+ gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_LOW>;
|
||||
+ label = "BTN-X";
|
||||
+ linux,code = <BTN_NORTH>;
|
||||
+ };
|
||||
+ button-sw9 {
|
||||
+ gpios = <&gpio2 RK_PA6 GPIO_ACTIVE_LOW>;
|
||||
+ label = "TOP-LEFT";
|
||||
+ linux,code = <BTN_TL>;
|
||||
+ };
|
||||
+ button-sw10 {
|
||||
+ gpios = <&gpio2 RK_PA7 GPIO_ACTIVE_LOW>;
|
||||
+ label = "TOP-RIGHT";
|
||||
+ linux,code = <BTN_TR>;
|
||||
+ };
|
||||
+ button-sw11 {
|
||||
+ gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_LOW>;
|
||||
+ label = "SELECT";
|
||||
+ linux,code = <BTN_SELECT>;
|
||||
+ };
|
||||
+ button-sw12 {
|
||||
+ gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
|
||||
+ label = "TOP-RIGHT 2";
|
||||
+ linux,code = <BTN_TR2>;
|
||||
+ };
|
||||
+ button-sw13 {
|
||||
+ gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_LOW>;
|
||||
+ label = "TOP-LEFT 2";
|
||||
+ linux,code = <BTN_TL2>;
|
||||
+ };
|
||||
+ button-sw14 {
|
||||
+ gpios = <&gpio3 RK_PB4 GPIO_ACTIVE_LOW>;
|
||||
+ label = "START";
|
||||
+ linux,code = <BTN_START>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ battery: battery {
|
||||
+ compatible = "simple-battery";
|
||||
+ charge-full-design-microamp-hours = <3500000>;
|
||||
+ charge-term-current-microamp = <350000>;
|
||||
+ constant-charge-current-max-microamp = <2000000>;
|
||||
+ constant-charge-voltage-max-microvolt = <4200000>;
|
||||
+ factory-internal-resistance-micro-ohms = <180000>;
|
||||
+ voltage-max-design-microvolt = <4100000>;
|
||||
+ voltage-min-design-microvolt = <3500000>;
|
||||
+
|
||||
+ ocv-capacity-celsius = <20>;
|
||||
+ ocv-capacity-table-0 = <4046950 100>, <4001920 95>, <3967900 90>, <3919950 85>,
|
||||
+ <3888450 80>, <3861850 75>, <3831540 70>, <3799130 65>,
|
||||
+ <3768190 60>, <3745650 55>, <3726610 50>, <3711630 45>,
|
||||
+ <3696720 40>, <3685660 35>, <3674950 30>, <3663050 25>,
|
||||
+ <3649470 20>, <3635260 15>, <3616920 10>, <3592440 5>,
|
||||
+ <3574170 0>;
|
||||
+ };
|
||||
+
|
||||
+ vibrator {
|
||||
+ compatible = "pwm-vibrator";
|
||||
+ pwms = <&pwm0 0 1000000 0>;
|
||||
+ pwm-names = "enable";
|
||||
+ };
|
||||
+
|
||||
+ rk817-sound {
|
||||
+ compatible = "simple-audio-card";
|
||||
+ simple-audio-card,name = "rk817_int";
|
||||
+ simple-audio-card,format = "i2s";
|
||||
+ simple-audio-card,hp-det-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
+ simple-audio-card,mclk-fs = <256>;
|
||||
+ simple-audio-card,widgets =
|
||||
+ "Microphone", "Mic Jack",
|
||||
+ "Headphone", "Headphones",
|
||||
+ "Speaker", "Speaker";
|
||||
+ simple-audio-card,routing =
|
||||
+ "MICL", "Mic Jack",
|
||||
+ "Headphones", "HPOL",
|
||||
+ "Headphones", "HPOR",
|
||||
+ "Speaker", "SPKO";
|
||||
+
|
||||
+ simple-audio-card,codec {
|
||||
+ sound-dai = <&rk817>;
|
||||
+ };
|
||||
+
|
||||
+ simple-audio-card,cpu {
|
||||
+ sound-dai = <&i2s1_2ch>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ vccsys: vccsys {
|
||||
+ compatible = "regulator-fixed";
|
||||
+ regulator-name = "vcc3v8_sys";
|
||||
+ regulator-always-on;
|
||||
+ regulator-min-microvolt = <3800000>;
|
||||
+ regulator-max-microvolt = <3800000>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&dmc {
|
||||
+ center-supply = <&vdd_logic>;
|
||||
+};
|
||||
+
|
||||
+&cpu0 {
|
||||
+ cpu-supply = <&vdd_arm>;
|
||||
+};
|
||||
+
|
||||
+&cpu1 {
|
||||
+ cpu-supply = <&vdd_arm>;
|
||||
+};
|
||||
+
|
||||
+&cpu2 {
|
||||
+ cpu-supply = <&vdd_arm>;
|
||||
+};
|
||||
+
|
||||
+&cpu3 {
|
||||
+ cpu-supply = <&vdd_arm>;
|
||||
+};
|
||||
+
|
||||
+&cru {
|
||||
+ assigned-clocks = <&cru PLL_NPLL>,
|
||||
+ <&cru ACLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
|
||||
+ <&cru HCLK_BUS_PRE>, <&cru HCLK_PERI_PRE>,
|
||||
+ <&cru PCLK_BUS_PRE>, <&cru SCLK_GPU>;
|
||||
+
|
||||
+ assigned-clock-rates = <1188000000>,
|
||||
+ <200000000>, <200000000>,
|
||||
+ <150000000>, <150000000>,
|
||||
+ <100000000>, <200000000>;
|
||||
+};
|
||||
+
|
||||
+&display_subsystem {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&dsi {
|
||||
+ status = "okay";
|
||||
+
|
||||
+ ports {
|
||||
+ mipi_out: port@1 {
|
||||
+ reg = <1>;
|
||||
+
|
||||
+ mipi_out_panel: endpoint {
|
||||
+ remote-endpoint = <&mipi_in_panel>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ internal_display: panel@0 {
|
||||
+ reg = <0>;
|
||||
+ backlight = <&backlight>;
|
||||
+ reset-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
|
||||
+
|
||||
+ port {
|
||||
+ mipi_in_panel: endpoint {
|
||||
+ remote-endpoint = <&mipi_out_panel>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&dsi_dphy {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&gpu {
|
||||
+ mali-supply = <&vdd_logic>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&internal_display {
|
||||
+ compatible = "gameconsole,r36s-panel", "sitronix,st7703";
|
||||
+ iovcc-supply = <&vcc_lcd>;
|
||||
+ vdd-supply = <&vcc_lcd>;
|
||||
+};
|
||||
+
|
||||
+&i2c0 {
|
||||
+ clock-frequency = <400000>;
|
||||
+ i2c-scl-falling-time-ns = <16>;
|
||||
+ i2c-scl-rising-time-ns = <280>;
|
||||
+ status = "okay";
|
||||
+
|
||||
+ rk817: pmic@20 {
|
||||
+ compatible = "rockchip,rk817";
|
||||
+ reg = <0x20>;
|
||||
+ interrupt-parent = <&gpio0>;
|
||||
+ interrupts = <RK_PB2 IRQ_TYPE_LEVEL_LOW>;
|
||||
+ clock-output-names = "rk808-clkout1", "xin32k";
|
||||
+ clock-names = "mclk";
|
||||
+ clocks = <&cru SCLK_I2S1_OUT>;
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&pmic_int>, <&i2s1_2ch_mclk>;
|
||||
+ rockchip,system-power-controller;
|
||||
+ wakeup-source;
|
||||
+ #clock-cells = <1>;
|
||||
+ #sound-dai-cells = <0>;
|
||||
+
|
||||
+ vcc1-supply = <&vccsys>;
|
||||
+ vcc2-supply = <&vccsys>;
|
||||
+ vcc3-supply = <&vccsys>;
|
||||
+ vcc4-supply = <&vccsys>;
|
||||
+ vcc5-supply = <&vccsys>;
|
||||
+ vcc6-supply = <&vccsys>;
|
||||
+ vcc7-supply = <&vccsys>;
|
||||
+ vcc8-supply = <&vccsys>;
|
||||
+
|
||||
+ regulators {
|
||||
+ vdd_logic: DCDC_REG1 {
|
||||
+ regulator-name = "vdd_logic";
|
||||
+ regulator-min-microvolt = <950000>;
|
||||
+ regulator-max-microvolt = <1150000>;
|
||||
+ regulator-ramp-delay = <6001>;
|
||||
+ regulator-always-on;
|
||||
+ regulator-boot-on;
|
||||
+
|
||||
+ regulator-state-mem {
|
||||
+ regulator-on-in-suspend;
|
||||
+ regulator-suspend-microvolt = <950000>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ vdd_arm: DCDC_REG2 {
|
||||
+ regulator-name = "vdd_arm";
|
||||
+ regulator-min-microvolt = <950000>;
|
||||
+ regulator-max-microvolt = <1350000>;
|
||||
+ regulator-ramp-delay = <6001>;
|
||||
+ regulator-always-on;
|
||||
+ regulator-boot-on;
|
||||
+
|
||||
+ regulator-state-mem {
|
||||
+ regulator-off-in-suspend;
|
||||
+ regulator-suspend-microvolt = <950000>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ vcc_ddr: DCDC_REG3 {
|
||||
+ regulator-name = "vcc_ddr";
|
||||
+ regulator-always-on;
|
||||
+ regulator-boot-on;
|
||||
+
|
||||
+ regulator-state-mem {
|
||||
+ regulator-on-in-suspend;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ vcc_3v3: DCDC_REG4 {
|
||||
+ regulator-name = "vcc_3v3";
|
||||
+ regulator-min-microvolt = <3300000>;
|
||||
+ regulator-max-microvolt = <3300000>;
|
||||
+ regulator-always-on;
|
||||
+ regulator-boot-on;
|
||||
+
|
||||
+ regulator-state-mem {
|
||||
+ regulator-off-in-suspend;
|
||||
+ regulator-suspend-microvolt = <3300000>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ vcc_1v8: LDO_REG2 {
|
||||
+ regulator-name = "vcc_1v8";
|
||||
+ regulator-min-microvolt = <1800000>;
|
||||
+ regulator-max-microvolt = <1800000>;
|
||||
+ regulator-always-on;
|
||||
+ regulator-boot-on;
|
||||
+
|
||||
+ regulator-state-mem {
|
||||
+ regulator-on-in-suspend;
|
||||
+ regulator-suspend-microvolt = <1800000>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ vdd_1v0: LDO_REG3 {
|
||||
+ regulator-name = "vdd_1v0";
|
||||
+ regulator-min-microvolt = <1000000>;
|
||||
+ regulator-max-microvolt = <1000000>;
|
||||
+ regulator-always-on;
|
||||
+ regulator-boot-on;
|
||||
+
|
||||
+ regulator-state-mem {
|
||||
+ regulator-on-in-suspend;
|
||||
+ regulator-suspend-microvolt = <1000000>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ vcc3v3_pmu: LDO_REG4 {
|
||||
+ regulator-name = "vcc3v3_pmu";
|
||||
+ regulator-min-microvolt = <3300000>;
|
||||
+ regulator-max-microvolt = <3300000>;
|
||||
+ regulator-always-on;
|
||||
+ regulator-boot-on;
|
||||
+
|
||||
+ regulator-state-mem {
|
||||
+ regulator-on-in-suspend;
|
||||
+ regulator-suspend-microvolt = <3300000>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ vccio_sd: LDO_REG5 {
|
||||
+ regulator-name = "vccio_sd";
|
||||
+ regulator-min-microvolt = <1800000>;
|
||||
+ regulator-max-microvolt = <1800000>;
|
||||
+ regulator-always-on;
|
||||
+ regulator-boot-on;
|
||||
+
|
||||
+ regulator-state-mem {
|
||||
+ regulator-on-in-suspend;
|
||||
+ regulator-suspend-microvolt = <1800000>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ vcc_sd: LDO_REG6 {
|
||||
+ regulator-name = "vcc_sd";
|
||||
+ regulator-min-microvolt = <1800000>;
|
||||
+ regulator-max-microvolt = <3000000>;
|
||||
+ regulator-boot-on;
|
||||
+
|
||||
+ regulator-state-mem {
|
||||
+ regulator-on-in-suspend;
|
||||
+ regulator-suspend-microvolt = <3000000>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ vcc_bl: LDO_REG7 {
|
||||
+ regulator-name = "vcc_bl";
|
||||
+ regulator-min-microvolt = <3300000>;
|
||||
+ regulator-max-microvolt = <3300000>;
|
||||
+
|
||||
+ regulator-state-mem {
|
||||
+ regulator-off-in-suspend;
|
||||
+ regulator-suspend-microvolt = <3300000>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ vcc_lcd: LDO_REG8 {
|
||||
+ regulator-name = "vcc_lcd";
|
||||
+ regulator-min-microvolt = <2800000>;
|
||||
+ regulator-max-microvolt = <2800000>;
|
||||
+
|
||||
+ regulator-state-mem {
|
||||
+ regulator-off-in-suspend;
|
||||
+ regulator-suspend-microvolt = <2800000>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ LDO_REG9 {
|
||||
+ /* unused */
|
||||
+ };
|
||||
+
|
||||
+ usb_midu: BOOST {
|
||||
+ regulator-name = "usb_midu";
|
||||
+ regulator-min-microvolt = <5000000>;
|
||||
+ regulator-max-microvolt = <5400000>;
|
||||
+ regulator-always-on;
|
||||
+ regulator-boot-on;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ rk817_charger: charger {
|
||||
+ rockchip,resistor-sense-micro-ohms = <10000>;
|
||||
+ rockchip,sleep-enter-current-microamp = <300000>;
|
||||
+ rockchip,sleep-filter-current-microamp = <100000>;
|
||||
+ };
|
||||
+
|
||||
+ rk817_codec: codec {
|
||||
+ rockchip,mic-in-differential;
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&i2s1_2ch {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&io_domains {
|
||||
+ vccio1-supply = <&vccio_sd>;
|
||||
+ vccio2-supply = <&vccio_sd>;
|
||||
+ vccio3-supply = <&vcc_3v3>;
|
||||
+ vccio4-supply = <&vcc_3v3>;
|
||||
+ vccio5-supply = <&vcc_3v3>;
|
||||
+ vccio6-supply = <&vcc_3v3>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&pmu_io_domains {
|
||||
+ pmuio1-supply = <&vcc3v3_pmu>;
|
||||
+ pmuio2-supply = <&vcc3v3_pmu>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&pwm0 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&pwm1 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&saradc {
|
||||
+ vref-supply = <&vcc_1v8>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&sdmmc {
|
||||
+ bus-width = <4>;
|
||||
+ cap-sd-highspeed;
|
||||
+ card-detect-delay = <800>;
|
||||
+ cd-gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_LOW>; /*[> CD GPIO <]*/
|
||||
+ disable-wp;
|
||||
+ sd-uhs-sdr12;
|
||||
+ sd-uhs-sdr25;
|
||||
+ sd-uhs-sdr50;
|
||||
+ sd-uhs-sdr104;
|
||||
+ vmmc-supply = <&vcc_sd>;
|
||||
+ vqmmc-supply = <&vccio_sd>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&sdio {
|
||||
+ bus-width = <4>;
|
||||
+ cap-sd-highspeed;
|
||||
+ card-detect-delay = <800>;
|
||||
+ cd-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>; /*[> CD GPIO <]*/
|
||||
+ disable-wp;
|
||||
+ sd-uhs-sdr12;
|
||||
+ sd-uhs-sdr25;
|
||||
+ sd-uhs-sdr50;
|
||||
+ sd-uhs-sdr104;
|
||||
+ vmmc-supply = <&vcc_sd>;
|
||||
+ vqmmc-supply = <&vccio_sd>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&tsadc {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&u2phy {
|
||||
+ status = "okay";
|
||||
+
|
||||
+ u2phy_host: host-port {
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+
|
||||
+ u2phy_otg: otg-port {
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&usb20_otg {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&uart2 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart2m1_xfer>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&vopb {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&vopb_mmu {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&rk817_charger {
|
||||
+ monitored-battery = <&battery>;
|
||||
+};
|
||||
+
|
||||
+&pinctrl {
|
||||
+ btns {
|
||||
+ btn_pins: btn-pins {
|
||||
+ rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
+ <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
+ <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
+ <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
+ <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
+ <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
+ <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
+ <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
+ <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
+ <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
+ <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
+ <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
+ <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
+ <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||
+ };
|
||||
+ btn_pins_vol: btn-pins-vol {
|
||||
+ rockchip,pins = <2 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
+ <2 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ headphone {
|
||||
+ hp_det: hp-det {
|
||||
+ rockchip,pins = <2 RK_PC6 RK_FUNC_GPIO &pcfg_pull_down>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ pmic {
|
||||
+ dc_det: dc-det {
|
||||
+ rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
+ };
|
||||
+
|
||||
+ pmic_int: pmic-int {
|
||||
+ rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||
+ };
|
||||
+
|
||||
+ soc_slppin_gpio: soc_slppin_gpio {
|
||||
+ rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_output_low>;
|
||||
+ };
|
||||
+
|
||||
+ soc_slppin_rst: soc_slppin_rst {
|
||||
+ rockchip,pins = <0 RK_PA4 2 &pcfg_pull_none>;
|
||||
+ };
|
||||
+
|
||||
+ soc_slppin_slp: soc_slppin_slp {
|
||||
+ rockchip,pins = <0 RK_PA4 1 &pcfg_pull_none>;
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-magicx-xu10.dts linux/arch/arm64/boot/dts/rockchip/rk3326-magicx-xu10.dts
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-magicx-xu10.dts 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-magicx-xu10.dts 2024-01-25 20:50:16.937337992 +0000
|
||||
@@ -0,0 +1,835 @@
|
||||
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
+/*
|
||||
|
@ -1134,8 +1785,8 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts li
|
|||
+ };
|
||||
+};
|
||||
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi 2024-01-22 23:55:56.427257071 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi 2024-01-23 03:05:55.471049048 +0000
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi 2024-01-25 20:47:44.834049019 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi 2024-01-25 20:50:16.937337992 +0000
|
||||
@@ -25,93 +25,40 @@
|
||||
compatible = "pwm-backlight";
|
||||
power-supply = <&vcc_bl>;
|
||||
|
@ -1292,8 +1943,8 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi linux/a
|
|||
#clock-cells = <1>;
|
||||
#sound-dai-cells = <0>;
|
||||
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts 2024-01-22 23:55:56.427257071 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts 2024-01-23 03:05:55.471049048 +0000
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts 2024-01-25 20:47:44.834049019 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts 2024-01-25 20:50:16.937337992 +0000
|
||||
@@ -16,31 +16,187 @@
|
||||
mmc1 = &sdio;
|
||||
};
|
||||
|
@ -1575,8 +2226,8 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts lin
|
|||
<2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
<2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts 2024-01-22 23:55:56.427257071 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts 2024-01-23 03:05:55.471049048 +0000
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts 2024-01-25 20:47:44.834049019 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts 2024-01-25 20:50:16.937337992 +0000
|
||||
@@ -12,30 +12,175 @@
|
||||
model = "ODROID-GO Advance";
|
||||
compatible = "hardkernel,rk3326-odroid-go2", "rockchip,rk3326";
|
||||
|
@ -1809,8 +2460,8 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts linux/a
|
|||
+ };
|
||||
+};
|
||||
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts 2024-01-22 23:55:56.427257071 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts 2024-01-23 03:05:55.471049048 +0000
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts 2024-01-25 20:47:44.834049019 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts 2024-01-25 20:50:16.937337992 +0000
|
||||
@@ -12,67 +12,196 @@
|
||||
model = "ODROID-GO Super";
|
||||
compatible = "hardkernel,rk3326-odroid-go3", "rockchip,rk3326";
|
||||
|
@ -2120,7 +2771,7 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts linux/a
|
|||
};
|
||||
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-powkiddy-rgb10.dts linux/arch/arm64/boot/dts/rockchip/rk3326-powkiddy-rgb10.dts
|
||||
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-powkiddy-rgb10.dts 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-powkiddy-rgb10.dts 2024-01-23 03:05:55.471049048 +0000
|
||||
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-powkiddy-rgb10.dts 2024-01-25 20:50:16.937337992 +0000
|
||||
@@ -0,0 +1,280 @@
|
||||
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
+/*
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
diff -rupN linux.orig/drivers/input/keyboard/gpio_keys.c linux/drivers/input/keyboard/gpio_keys.c
|
||||
--- linux.orig/drivers/input/keyboard/gpio_keys.c 2024-01-25 20:47:47.094097973 +0000
|
||||
+++ linux/drivers/input/keyboard/gpio_keys.c 2024-01-26 04:17:54.663672057 +0000
|
||||
@@ -847,8 +847,8 @@ static int gpio_keys_probe(struct platfo
|
||||
|
||||
input->id.bustype = BUS_HOST;
|
||||
input->id.vendor = 0x0001;
|
||||
- input->id.product = 0x0001;
|
||||
- input->id.version = 0x0100;
|
||||
+ input->id.product = 0x7891;
|
||||
+ input->id.version = 0x0500;
|
||||
|
||||
input->keycode = ddata->keymap;
|
||||
input->keycodesize = sizeof(ddata->keymap[0]);
|
|
@ -10,10 +10,10 @@ diff -rupN uboot.orig/cmd/hwrev.c uboot/cmd/hwrev.c
|
|||
+ env_set("hwrev", "rg351v");
|
||||
+ env_set("dtb_name", "rk3326-anbernic-rg351v.dtb");
|
||||
+ }
|
||||
+ /* RG351MP */
|
||||
+ /* R33S */
|
||||
+ else if (check_range(140, 190, hwrev_adc)) {
|
||||
+ env_set("hwrev", "rg351mp");
|
||||
+ env_set("dtb_name", "rk3326-anbernic-rg351mp.dtb");
|
||||
+ env_set("hwrev", "r33s");
|
||||
+ env_set("dtb_name", "rk3326-gameconsole-r33s.dtb");
|
||||
+ }
|
||||
+ /* XU10 */
|
||||
+ else if (check_range(1000, 1050, hwrev_adc)) {
|
||||
|
|
Loading…
Reference in a new issue