aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/arm/boot/dts/sam9x60.dtsi
diff options
context:
space:
mode:
authorNicolas Ferre <nicolas.ferre@microchip.com>2021-03-10 16:20:06 +0100
committerNicolas Ferre <nicolas.ferre@microchip.com>2021-03-10 16:38:15 +0100
commit2c69c8a1736eace8de491d480e6e577a27c2087c (patch)
tree5ffd8e45eee030dcdfc37ada887c45a1809e1827 /arch/arm/boot/dts/sam9x60.dtsi
parentARM: dts: at91: sam9x60: fix mux-mask for PA7 so it can be set to A, B and C (diff)
downloadwireguard-linux-2c69c8a1736eace8de491d480e6e577a27c2087c.tar.xz
wireguard-linux-2c69c8a1736eace8de491d480e6e577a27c2087c.zip
ARM: dts: at91: sam9x60: fix mux-mask to match product's datasheet
Fix the whole mux-mask table according to datasheet for the sam9x60 product. Too much functions for pins were disabled leading to misunderstandings when enabling more peripherals or taking this table as an example for another board. Take advantage of this fix to move the mux-mask in the SoC file where it belongs and use lower case letters for hex numbers like everywhere in the file. Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> Fixes: 1e5f532c2737 ("ARM: dts: at91: sam9x60: add device tree for soc and board") Cc: <stable@vger.kernel.org> # 5.6+ Cc: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com> Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com> Link: https://lore.kernel.org/r/20210310152006.15018-1-nicolas.ferre@microchip.com
Diffstat (limited to 'arch/arm/boot/dts/sam9x60.dtsi')
-rw-r--r--arch/arm/boot/dts/sam9x60.dtsi9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sam9x60.dtsi b/arch/arm/boot/dts/sam9x60.dtsi
index 84066c1298df..ec45ced3cde6 100644
--- a/arch/arm/boot/dts/sam9x60.dtsi
+++ b/arch/arm/boot/dts/sam9x60.dtsi
@@ -606,6 +606,15 @@
compatible = "microchip,sam9x60-pinctrl", "atmel,at91sam9x5-pinctrl", "atmel,at91rm9200-pinctrl", "simple-bus";
ranges = <0xfffff400 0xfffff400 0x800>;
+ /* mux-mask corresponding to sam9x60 SoC in TFBGA228L package */
+ atmel,mux-mask = <
+ /* A B C */
+ 0xffffffff 0xffe03fff 0xef00019d /* pioA */
+ 0x03ffffff 0x02fc7e7f 0x00780000 /* pioB */
+ 0xffffffff 0xffffffff 0xf83fffff /* pioC */
+ 0x003fffff 0x003f8000 0x00000000 /* pioD */
+ >;
+
pioA: gpio@fffff400 {
compatible = "microchip,sam9x60-gpio", "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
reg = <0xfffff400 0x200>;