Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'gemini-dts-v5.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik into arm/dt

DTS updates for the Gemini platform:

- Fix up some pin config confusion

- Use redboot partition parsing on the SL93512r

- Mount root on mtdblock3 by default

* tag 'gemini-dts-v5.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik:
ARM: dts: gemini: Mount root from mtdblock3
ARM: dts: gemini: Switch to redboot partition parsing
ARM: dts: gemini: Fix up confused pin settings

Link: https://lore.kernel.org/r/CACRpkdarsQNfXgXMQKfYwOyiqhKY67gKd3ufQ+wexwO3v=LE5w@mail.gmail.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+21 -72
+5 -32
arch/arm/boot/dts/gemini-nas4220b.dts
··· 20 20 }; 21 21 22 22 chosen { 23 - bootargs = "console=ttyS0,19200n8"; 23 + bootargs = "console=ttyS0,19200n8 root=/dev/mtdblock3 rw rootfstype=squashfs,jffs2 rootwait"; 24 24 stdout-path = &uart0; 25 25 }; 26 26 ··· 81 81 /* 16MB of flash */ 82 82 reg = <0x30000000 0x01000000>; 83 83 84 - partition@0 { 85 - label = "RedBoot"; 86 - reg = <0x00000000 0x00020000>; 87 - read-only; 88 - }; 89 - partition@20000 { 90 - label = "Kernel"; 91 - reg = <0x00020000 0x00300000>; 92 - }; 93 - partition@320000 { 94 - label = "Ramdisk"; 95 - reg = <0x00320000 0x00600000>; 96 - }; 97 - partition@920000 { 98 - label = "Application"; 99 - reg = <0x00920000 0x00600000>; 100 - }; 101 - partition@f20000 { 102 - label = "VCTL"; 103 - reg = <0x00f20000 0x00020000>; 104 - read-only; 105 - }; 106 - partition@f40000 { 107 - label = "CurConf"; 108 - reg = <0x00f40000 0x000a0000>; 109 - read-only; 110 - }; 111 - partition@fe0000 { 112 - label = "FIS directory"; 113 - reg = <0x00fe0000 0x00020000>; 114 - read-only; 84 + partitions { 85 + compatible = "redboot-fis"; 86 + /* Eraseblock at 0xfe0000 */ 87 + fis-index-block = <0x1fc>; 115 88 }; 116 89 }; 117 90
+16 -40
arch/arm/boot/dts/gemini-sl93512r.dts
··· 24 24 }; 25 25 26 26 chosen { 27 - bootargs = "console=ttyS0,19200n8 root=/dev/sda1 rw rootwait"; 27 + bootargs = "console=ttyS0,19200n8 root=/dev/mtdblock3 rw rootfstype=squashfs,jffs2 rootwait"; 28 28 stdout-path = &uart0; 29 29 }; 30 30 ··· 36 36 wakeup-source; 37 37 linux,code = <KEY_WPS_BUTTON>; 38 38 label = "WPS"; 39 - /* Conflict with NAND flash */ 40 - gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; 39 + /* Conflicts with TVC and extended flash */ 40 + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; 41 41 }; 42 42 43 43 button-setup { ··· 143 143 /* 16MB of flash */ 144 144 reg = <0x30000000 0x01000000>; 145 145 146 - partition@0 { 147 - label = "BOOT"; 148 - reg = <0x00000000 0x00020000>; 149 - read-only; 150 - }; 151 - partition@120000 { 152 - label = "Kern"; 153 - reg = <0x00020000 0x00300000>; 154 - }; 155 - partition@320000 { 156 - label = "Ramdisk"; 157 - reg = <0x00320000 0x00600000>; 158 - }; 159 - partition@920000 { 160 - label = "Application"; 161 - reg = <0x00920000 0x00600000>; 162 - }; 163 - partition@f20000 { 164 - label = "VCTL"; 165 - reg = <0x00f20000 0x00020000>; 166 - read-only; 167 - }; 168 - partition@f40000 { 169 - label = "CurConf"; 170 - reg = <0x00f40000 0x000a0000>; 171 - read-only; 172 - }; 173 - partition@fe0000 { 174 - label = "FIS directory"; 175 - reg = <0x00fe0000 0x00020000>; 176 - read-only; 146 + partitions { 147 + compatible = "redboot-fis"; 148 + /* Eraseblock at 0xfe0000 */ 149 + fis-index-block = <0x1fc>; 177 150 }; 178 151 }; 179 152 180 153 syscon: syscon@40000000 { 181 154 pinctrl { 182 155 /* 183 - * gpio0egrp cover line 16 used by HD LED 184 - * gpio0fgrp cover line 17, 18 used by wireless LED and reset button 185 - * gpio0hgrp cover line 21, 22 used by MDIO for Marvell PHY 186 - * gpio0kgrp cover line 31 used by USB LED 156 + * gpio0agrp cover line 0, used by WPS button 157 + * gpio0fgrp cover line 16 used by HD LED 158 + * gpio0ggrp cover line 17, 18 used by wireless LAN LED and 159 + * reset button OR USB ID select on 17 and USB VBUS select 160 + * on 18. (Confusing.) 161 + * gpio0igrp cover line 21, 22 used by MDIO for Marvell PHY 187 162 */ 188 163 gpio0_default_pins: pinctrl-gpio0 { 189 164 mux { 190 165 function = "gpio0"; 191 - groups = "gpio0egrp", 166 + groups = "gpio0agrp", 192 167 "gpio0fgrp", 193 - "gpio0hgrp"; 168 + "gpio0ggrp", 169 + "gpio0igrp"; 194 170 }; 195 171 }; 196 172 /*