Skip to content

Commit

Permalink
Add I2C and GPIO drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
coolstar committed Oct 31, 2023
1 parent 358204f commit 03dd82d
Show file tree
Hide file tree
Showing 22 changed files with 4,831 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ This repository contains drivers for RK35xx-based platforms, with a focus on RK3
|CSI||🔴 Not working||
|GMAC Ethernet||🔴 Not working||
|UART||🔴 Not working|No OS driver but debugging does work on UART2, being configured by UEFI.|
|GPIO||🔴 Not working||
|I2C||🔴 Not working||
|GPIO|[rk3xgpio](https://github.com/worproject/Rockchip-Windows-Drivers/tree/master/drivers/gpio)|🟢 Working||
|I2C|[rk3xi2c](https://github.com/worproject/Rockchip-Windows-Drivers/tree/master/drivers/i2c)|🟢 Working||
|I2S||🔴 Not working||
|SPI||🔴 Not working||
|CAN bus||🔴 Not working||
Expand Down
16 changes: 16 additions & 0 deletions build/RockchipDrivers.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ VisualStudioVersion = 17.4.33205.214
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dwcsdhc", "..\drivers\sd\dwcsdhc\dwcsdhc.vcxproj", "{10452736-7C4F-4206-94F9-AD634213C9C4}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rk3xi2c", "..\drivers\i2c\rk3xi2c\rk3xi2c.vcxproj", "{B3E71397-9BE4-492B-AAED-4D056E59CB1F}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rk3xgpio", "..\drivers\gpio\rk3xgpio\rk3xgpio.vcxproj", "{A80FE9DD-C140-40F6-A3F4-55A2A55BFAD4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM64 = Debug|ARM64
Expand All @@ -17,6 +21,18 @@ Global
{10452736-7C4F-4206-94F9-AD634213C9C4}.Release|ARM64.ActiveCfg = Release|ARM64
{10452736-7C4F-4206-94F9-AD634213C9C4}.Release|ARM64.Build.0 = Release|ARM64
{10452736-7C4F-4206-94F9-AD634213C9C4}.Release|ARM64.Deploy.0 = Release|ARM64
{B3E71397-9BE4-492B-AAED-4D056E59CB1F}.Debug|ARM64.ActiveCfg = Debug|ARM64
{B3E71397-9BE4-492B-AAED-4D056E59CB1F}.Debug|ARM64.Build.0 = Debug|ARM64
{B3E71397-9BE4-492B-AAED-4D056E59CB1F}.Debug|ARM64.Deploy.0 = Debug|ARM64
{B3E71397-9BE4-492B-AAED-4D056E59CB1F}.Release|ARM64.ActiveCfg = Release|ARM64
{B3E71397-9BE4-492B-AAED-4D056E59CB1F}.Release|ARM64.Build.0 = Release|ARM64
{B3E71397-9BE4-492B-AAED-4D056E59CB1F}.Release|ARM64.Deploy.0 = Release|ARM64
{A80FE9DD-C140-40F6-A3F4-55A2A55BFAD4}.Debug|ARM64.ActiveCfg = Debug|ARM64
{A80FE9DD-C140-40F6-A3F4-55A2A55BFAD4}.Debug|ARM64.Build.0 = Debug|ARM64
{A80FE9DD-C140-40F6-A3F4-55A2A55BFAD4}.Debug|ARM64.Deploy.0 = Debug|ARM64
{A80FE9DD-C140-40F6-A3F4-55A2A55BFAD4}.Release|ARM64.ActiveCfg = Release|ARM64
{A80FE9DD-C140-40F6-A3F4-55A2A55BFAD4}.Release|ARM64.Build.0 = Release|ARM64
{A80FE9DD-C140-40F6-A3F4-55A2A55BFAD4}.Release|ARM64.Deploy.0 = Release|ARM64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
13 changes: 13 additions & 0 deletions drivers/gpio/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2023 CoolStar

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
12 changes: 12 additions & 0 deletions drivers/gpio/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Rockchip 3xxx GPIO Driver

Tested on RK3588S

Implements Windows GpioClx so most existing GPIO drivers should attach and work

Tested operations:
* Connect (I/O)
* Read
* Write
* Edge Interrupts
* Level Interrupts
Loading

0 comments on commit 03dd82d

Please sign in to comment.