mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-30 18:07:52 +00:00 
			
		
		
		
	ipq40xx: add status led support on udaya board
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| From 0ba581456826a6ddffafcceb4c672450a3fa7a86 Mon Sep 17 00:00:00 2001 | ||||
| From 0ac463ea1512a9db9ec8fefeff9e9663dd0afa82 Mon Sep 17 00:00:00 2001 | ||||
| From: John Crispin <john@phrozen.org> | ||||
| Date: Thu, 24 Mar 2022 12:43:36 +0100 | ||||
| Subject: [PATCH] ipq40xx: add support for udaya a5-id2 | ||||
| @@ -10,11 +10,10 @@ Signed-off-by: John Crispin <john@phrozen.org> | ||||
|  package/network/services/umdns/Makefile       |   2 +- | ||||
|  .../ipq40xx/base-files/etc/board.d/02_network |   1 + | ||||
|  .../etc/hotplug.d/firmware/11-ath10k-caldata  |   2 + | ||||
|  .../base-files/lib/upgrade/platform.sh        |   1 + | ||||
|  .../boot/dts/qcom-ipq4018-udaya-a5-id2.dts    |  98 ++++++++++++++++++ | ||||
|  target/linux/ipq40xx/image/generic.mk         |  13 +++ | ||||
|  .../boot/dts/qcom-ipq4018-udaya-a5-id2.dts    | 114 ++++++++++++++++++ | ||||
|  target/linux/ipq40xx/image/generic.mk         |  14 +++ | ||||
|  .../ipq40xx/patches-5.4/999-hfcl_ion.patch    |  16 ++- | ||||
|  9 files changed, 130 insertions(+), 5 deletions(-) | ||||
|  8 files changed, 146 insertions(+), 5 deletions(-) | ||||
|  create mode 100644 package/firmware/ipq-wifi/board-udaya-a5-id2.qca4019 | ||||
|  create mode 100644 target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-udaya-a5-id2.dts | ||||
|  | ||||
| @@ -877,24 +876,12 @@ index 3a22a6faab..3f32308f3e 100644 | ||||
|  	qcom,ap-dk01.1-c1) | ||||
|  		caldata_extract "ART" 0x5000 0x2f20 | ||||
|  		;; | ||||
| diff --git a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh | ||||
| index d44a57c62a..34554e3f8e 100644 | ||||
| --- a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh | ||||
| +++ b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh | ||||
| @@ -66,6 +66,7 @@ platform_do_upgrade() { | ||||
|  	avm,fritzrepeater-3000 |\ | ||||
|  	buffalo,wtr-m2133hp |\ | ||||
|  	cilab,meshpoint-one |\ | ||||
| +	udaya,a5-id2 |\ | ||||
|  	edgecore,ecw5211 |\ | ||||
|  	edgecore,oap100 |\ | ||||
|  	engenius,eap2200 |\ | ||||
| diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-udaya-a5-id2.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-udaya-a5-id2.dts | ||||
| new file mode 100644 | ||||
| index 0000000000..aa96647409 | ||||
| index 0000000000..ee2d4ac374 | ||||
| --- /dev/null | ||||
| +++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-udaya-a5-id2.dts | ||||
| @@ -0,0 +1,98 @@ | ||||
| @@ -0,0 +1,114 @@ | ||||
| +/* Copyright (c) 2015, The Linux Foundation. All rights reserved. | ||||
| + * | ||||
| + * Permission to use, copy, modify, and/or distribute this software for any | ||||
| @@ -919,6 +906,13 @@ index 0000000000..aa96647409 | ||||
| +	model = "udaya A5-ID2"; | ||||
| +	compatible = "udaya,a5-id2", "qcom,ap-dk01.1-c1", "qcom,ap-dk01.2-c1"; | ||||
| + | ||||
| +	aliases { | ||||
| +		led-boot = &led_power; | ||||
| +		led-failsafe = &led_power; | ||||
| +		led-running = &led_power; | ||||
| +		led-upgrade = &led_power; | ||||
| +	}; | ||||
| + | ||||
| +	memory { | ||||
| +		device_type = "memory"; | ||||
| +		reg = <0x80000000 0x10000000>; | ||||
| @@ -933,6 +927,15 @@ index 0000000000..aa96647409 | ||||
| +			linux,code = <KEY_RESTART>; | ||||
| +		}; | ||||
| +	}; | ||||
| + | ||||
| +	leds { | ||||
| +		compatible = "gpio-leds"; | ||||
| + | ||||
| +		led_power: power { | ||||
| +			label = "green:power"; | ||||
| +			gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>; | ||||
| +		}; | ||||
| +	}; | ||||
| +}; | ||||
| + | ||||
| +&blsp1_spi1 { | ||||
| @@ -994,10 +997,10 @@ index 0000000000..aa96647409 | ||||
| +	}; | ||||
| +}; | ||||
| diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk | ||||
| index 5c8f51ad98..9dac454381 100644 | ||||
| index 5c8f51ad98..526f20528f 100644 | ||||
| --- a/target/linux/ipq40xx/image/generic.mk | ||||
| +++ b/target/linux/ipq40xx/image/generic.mk | ||||
| @@ -904,3 +904,16 @@ define Device/um-325ac | ||||
| @@ -904,3 +904,17 @@ define Device/um-325ac | ||||
|  	IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata | ||||
|  endef | ||||
|  TARGET_DEVICES += um-325ac | ||||
| @@ -1012,6 +1015,7 @@ index 5c8f51ad98..9dac454381 100644 | ||||
| +	IMAGE_SIZE := 26624k | ||||
| +	DEVICE_PACKAGES := ipq-wifi-udaya-a5-id2 | ||||
| +	$(call Device/FitImage) | ||||
| +	IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata | ||||
| +endef | ||||
| +TARGET_DEVICES += udaya_a5-id2 | ||||
| diff --git a/target/linux/ipq40xx/patches-5.4/999-hfcl_ion.patch b/target/linux/ipq40xx/patches-5.4/999-hfcl_ion.patch | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin