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) CSR SiRFatlas7 GPIO controller bindings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) - compatible	: "sirf,atlas7-gpio"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) - reg		: Address range of the pinctrl registers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) - interrupts	: Interrupts used by every GPIO group
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) - gpio-banks	: How many gpio banks on this controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) - gpio-controller : Indicates this device is a GPIO controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) - interrupt-controller  : Marks the device node as an interrupt controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) The GPIO controller also acts as an interrupt controller. It uses the default
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) two cells specifier as described in Documentation/devicetree/bindings/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) interrupt-controller/interrupts.txt.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	gpio_0: gpio_mediam@17040000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 		compatible = "sirf,atlas7-gpio";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 		reg = <0x17040000 0x1000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 		interrupts = <0 13 0>, <0 14 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 		#gpio-cells = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 		#interrupt-cells = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 		gpio-controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 		interrupt-controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 		gpio-banks = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 		gpio-ranges = <&pinctrl 0 0 0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 				<&pinctrl 32 0 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 		gpio-ranges-group-names = "lvds_gpio_grp",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 					"uart_nand_gpio_grp";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 	leds {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 		compatible = "gpio-leds";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 		led1 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 			gpios = <&gpio_1 15 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 			...
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 		};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 		led2 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 			gpios = <&gpio_2 34 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 			...
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 		};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 	};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) Please refer to gpio.txt in this directory for details of the common
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) gpio properties used by devices.