Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI check for StarFive platform #108

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Maintainers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -421,3 +421,10 @@ R: dahogn <[email protected]>
R: meng-cz <[email protected]>
R: caiyuqing379 <[email protected]>
R: USER0FISH <[email protected]>

StarFive platforms and silicon
F: Platform/StarFive/
F: Silicon/StarFive/
M: Sunil V L <[email protected]>
M: Minda Chen <[email protected]>
M: John Chew <[email protected]>
42 changes: 42 additions & 0 deletions Platform/StarFive/VisionFive2/DeviceTree/Gpio.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/** @file
This header provide all the general purpose input/output device tree bindings

Copyright (c) 2023, StarFive Technology Co., Ltd. All rights reserved.<BR>

SPDX-License-Identifier: BSD-2-Clause-Patent

**/

#ifndef __DT_BINDINGS_GPIO_H__
#define __DT_BINDINGS_GPIO_H__

/* Bit 0 express polarity */
#define GPIO_ACTIVE_HIGH 0
#define GPIO_ACTIVE_LOW 1

/* Bit 1 express single-endedness */
#define GPIO_PUSH_PULL 0
#define GPIO_SINGLE_ENDED 2

/* Bit 2 express Open drain or open source */
#define GPIO_LINE_OPEN_SOURCE 0
#define GPIO_LINE_OPEN_DRAIN 4

/*
* Open Drain/Collector is the combination of single-ended open drain interface.
* Open Source/Emitter is the combination of single-ended open source interface.
*/
#define GPIO_OPEN_DRAIN (GPIO_SINGLE_ENDED | GPIO_LINE_OPEN_DRAIN)
#define GPIO_OPEN_SOURCE (GPIO_SINGLE_ENDED | GPIO_LINE_OPEN_SOURCE)

/* Bit 3 express GPIO suspend/resume and reset persistence */
#define GPIO_PERSISTENT 0
#define GPIO_TRANSITORY 8

/* Bit 4 express pull up */
#define GPIO_PULL_UP 16

/* Bit 5 express pull down */
#define GPIO_PULL_DOWN 32

#endif /* __DT_BINDINGS_GPIO_H__ */
20 changes: 20 additions & 0 deletions Platform/StarFive/VisionFive2/DeviceTree/Irq.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/** @file
This header provide all the interrupt device tree bindings

Copyright (c) 2023, StarFive Technology Co., Ltd. All rights reserved.<BR>

SPDX-License-Identifier: BSD-2-Clause-Patent

**/

#ifndef __DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H__
#define __DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H__

#define IRQ_TYPE_NONE 0
#define IRQ_TYPE_EDGE_RISING 1
#define IRQ_TYPE_EDGE_FALLING 2
#define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)
#define IRQ_TYPE_LEVEL_HIGH 4
#define IRQ_TYPE_LEVEL_LOW 8

#endif /* __DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H__ */
Loading