Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * GPIOs and interrupts for Palm Treo smartphones
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * currently supported:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *     Palm Treo 680 (GSM)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  *     Palm Centro 685 (GSM)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  * Author:     Tomas Cech <sleep_walker@suse.cz>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)  * find more info at www.hackndev.com
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #ifndef _INCLUDE_TREO_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define _INCLUDE_TREO_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) /* GPIOs */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define GPIO_NR_TREO_POWER_DETECT	0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define GPIO_NR_TREO_AMP_EN		27
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define GPIO_NR_TREO_GREEN_LED	20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define GPIO_NR_TREO_RED_LED		79
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define GPIO_NR_TREO_SD_DETECT_N	113
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #define GPIO_NR_TREO_EP_DETECT_N	116
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define GPIO_NR_TREO_USB_DETECT	1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #define GPIO_NR_TREO_USB_PULLUP	114
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #define GPIO_NR_TREO_GSM_POWER	40
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define GPIO_NR_TREO_GSM_RESET	87
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define GPIO_NR_TREO_GSM_WAKE	57
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define GPIO_NR_TREO_GSM_HOST_WAKE	14
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define GPIO_NR_TREO_GSM_TRIGGER	10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define GPIO_NR_TREO_IR_EN		115
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define GPIO_NR_TREO_IR_TXD		47
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define GPIO_NR_TREO_BL_POWER	38
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #define GPIO_NR_TREO_LCD_POWER	25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) /* Treo680 specific GPIOs */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #define GPIO_NR_TREO680_SD_READONLY	33
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #define GPIO_NR_TREO680_SD_POWER	42
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #define GPIO_NR_TREO680_VIBRATE_EN	44
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #define GPIO_NR_TREO680_KEYB_BL		24
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #define GPIO_NR_TREO680_BT_EN		43
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #define GPIO_NR_TREO680_LCD_POWER	77
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #define GPIO_NR_TREO680_LCD_EN		86
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #define GPIO_NR_TREO680_LCD_EN_N	25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) /* Centro685 specific GPIOs */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #define GPIO_NR_CENTRO_SD_POWER		21
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #define GPIO_NR_CENTRO_VIBRATE_EN	22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) #define GPIO_NR_CENTRO_KEYB_BL		33
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) #define GPIO_NR_CENTRO_BT_EN		80
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) /* Various addresses  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) #define TREO_PHYS_RAM_START	0xa0000000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #define TREO_PHYS_IO_START	0x40000000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) #define TREO_STR_BASE	0xa2000000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) /* BACKLIGHT */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) #define TREO_MAX_INTENSITY		254
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #define TREO_DEFAULT_INTENSITY	160
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) #define TREO_LIMIT_MASK		0x7F
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) #define TREO_PRESCALER		63
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) #define TREO_PERIOD_NS		3500
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) #endif