aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/oxnas/files
Commit message (Collapse)AuthorAgeFilesLines
* oxnas: some improvements for Shuttle KD20Daniel Golle2020-03-311-4/+50
| | | | | | | | | * install kmod-hwmon-drivetemp by default * wire up thermal zone * fix fan GPIO polarity * fix i2c-gpio GPIO_OPEN_DRAIN Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: fix warning in SATA driverDaniel Golle2020-03-311-1/+1
| | | | | | | | | drivers/ata/sata_oxnas.c: In function 'sata_oxnas_port_irq': drivers/ata/sata_oxnas.c:2126:25: warning: left shift count >= width of type [-Wshift-count-overflow] if (ap->qc_active & (1 << ATA_TAG_INTERNAL)) { ^~ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: enable sata on Pogoplug V3/ProSungbo Eo2020-03-171-0/+4
| | | | | | | | | Pogoplug V3/Pro has an interanl SATA port. To use it, DTS sata node should be enabled, and kmod-ata-oxnas-sata package needs to be installed. Fixes: FS#2542 Signed-off-by: Sungbo Eo <mans0n@gorani.run>
* oxnas: use dt-bindings macros for GPIOSungbo Eo2020-03-163-14/+19
| | | | Signed-off-by: Sungbo Eo <mans0n@gorani.run>
* oxnas: switch to kernel 5.4 and remove kernel 4.14Daniel Golle2020-03-122-0/+822
| | | | | | | Run-tested 5.4 on Shuttle KD20 for some days now, everything seems fine so far. Let's have snapshot builds based on 5.4. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: add 5.4 as testing kernel versionDaniel Golle2020-03-063-837/+17
| | | | | | | Add 5.4 kernel version as a new testing kernel option. Run-tested on Shuttle KD20, seems to work just as well as kernel 4.14. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: also akitio,mycloud uses PCIe apparentlyDaniel Golle2019-03-121-0/+4
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: enable pcie_phy on boards utilizing PCIeDaniel Golle2019-03-122-0/+8
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: replace oxnas-restart with version to be submitted to upstreamDaniel Golle2019-03-111-103/+136
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: use generic filenames for image and DTSDaniel Golle2019-03-112-0/+0
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: move PCIe controller outside of simple-busDaniel Golle2019-03-101-7/+24
| | | | | | | | Move PCIe controller outside down to SoC level to avoid resource mapping problems. Also add more detailed error handling when mapping registers. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: pcie: model shared resource as external pcie-phy driverDaniel Golle2019-03-042-67/+164
| | | | | | | Refactor pcie-oxnas to have shared resources in syscon and new pcie-phy driver. Hopefully this revives PCIe... Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: convert pcie to builtin_platform_driverDaniel Golle2019-03-041-21/+12
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: restart: use register definitions from dt-bindingsDaniel Golle2019-03-031-60/+27
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: cleanup and improve pcie driverDaniel Golle2019-03-031-274/+45
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: add SoC restart driver for rebootDaniel Golle2019-03-031-0/+229
| | | | | | Refresh oxnas kernel config while at it. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: cloudengines,pogoplug*: enable USB portsDaniel Golle2019-03-021-0/+4
| | | | | Reported-by: Jörg Fischer <fischer.loepsingen@yahoo.de> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: switch to DTS aliases for LEDs and use generic diag.shDaniel Golle2019-03-014-8/+24
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: fix forgotten MTD partition nameDaniel Golle2019-03-011-2/+2
| | | | | Fixes: 858aebc0ef ("oxnas: unify MTD partition names") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: switch to kmod-ledtrig-usb-portDaniel Golle2019-03-012-0/+4
| | | | | | | | Add port handles for both USB 2.0 ports so they can be used as trigger-source for USB LEDs. Suggestions for pogoplug and akitio,mycloud devices are welcome. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: unify MTD partition namesDaniel Golle2019-03-013-6/+11
| | | | | | | Use 'u-boot' and 'u-boot-env' like the majority of OpenWrt targets does... Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: add missing NAND partitionsDaniel Golle2019-02-282-4/+36
| | | | | | | | | | | | | | | | add kernel and other missing NAND flash partitions to allow booting using stock loader instead of the 2nd-stage bootloader. This will ease installation from stock firmware on pogoplugs as well as stg212 aka. medion nas. Existing users of OpenWrt on those boards will have to boot initramfs generated after this commit and subsequently flash first the ubinized image, then again run initramfs to flash sysupgrade.tar image, and then restore bootcmd in U-Boot environment back to the original setting ('nboot 60500000 0 440000' or something like that) instead of jumping into the now no longer used 2nd-stage loader. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: dts: Unify naming of gpio-led nodesPetr Štetiar2019-01-243-3/+3
| | | | | | | | | | | | | | In DTS Checklist[1] we're now demanding proper generic node names, as the name of a node should reflect the function of the device and use generic name for that[2]. Everybody seems to be copy&pasting from DTS files available in the repository today, so let's unify that naming there as well and provide proper examples. 1. https://openwrt.org/submitting-patches#dts_checklist 2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation Signed-off-by: Petr Štetiar <ynezz@true.cz> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
* oxnas: dts: Unify naming of gpio-keys nodesPetr Štetiar2019-01-243-3/+3
| | | | | | | | | | | | | | In DTS Checklist[1] we're now demanding proper generic node names, as the name of a node should reflect the function of the device and use generic name for that[2]. Everybody seems to be copy&pasting from DTS files available in the repository today, so let's unify that naming there as well and provide proper examples. 1. https://openwrt.org/submitting-patches#dts_checklist 2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation Signed-off-by: Petr Štetiar <ynezz@true.cz> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
* oxnas: kd20: correct memory size to 256MBDaniel Golle2018-11-081-2/+2
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: add console=ttyS0,115200 argument to bootargsDaniel Golle2018-11-044-4/+4
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* treewide: fix some cosmetic glitches in dts filesPaul Wassi2018-08-271-1/+0
| | | | | | | | | | | - fix single spaces hidden by a tab - replace indentation with spaces by tabs - make empty lines empty - drop trailing whitespace - drop unnecessary blank lines Signed-off-by: Mathias Kresin <dev@kresin.me> Signed-off-by: Paul Wassi <p.wassi@gmx.at>
* oxnas: bring in new oxnas targetDaniel Golle2018-06-018-0/+4409
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reboot the oxnas target based on Linux 4.14 by rebasing our support on top of the now-existing upstream kernel support. This commit brings oxnas support to the level of v4.17 having upstream drivers for Ethernet, Serial and NAND flash. Botch up OpenWrt's local drivers for EHCI, SATA and PCIe based on the new platform code and device-tree. Re-introduce base-files from old oxnas target which works for now but needs further clean-up towards generic board support. Functional issues: * PCIe won't come up (hence no USB3 on Shuttle KD20) * I2C bus of Akitio myCloud device is likely not to work (missing debounce support in new pinctrl driver) Code-style issues: * plla/pllb needs further cleanup -- currently their users or writing into the syscon regmap after acquireling the clk instead of using defined clk_*_*() functions to setup multipliers and dividors. * PCIe phy needs its own little driver. * SATA driver is a monster and should be split into an mfd having a raidctrl regmap, sata controller, sata ports and sata phy. Tested on MitraStar STG-212 aka. Medion Akoya MD86xxx and Shuttle KD20. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: kill old oxnas targetDaniel Golle2018-06-0132-8116/+0
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: remove some kprintf calls from NAND driverDaniel Golle2017-01-071-5/+0
| | | | | | They were added for debugging and I forgot to remove them. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: remove support for pre-4.4 kernels from driversDaniel Golle2017-01-044-63/+1
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: fix syntax in ox820-akitio.dtsHauke Mehrtens2017-01-021-0/+1
| | | | | | | | | | | | | | | | | This commit introduced a syntax error in ox820-akitio.dts which is fixed now: commit 5cde94d9ab577c5ab68fc71e15a05d1bda5041f2 Author: Daniel Golle <daniel@makrotopia.org> Date: Sat Sep 24 01:14:53 2016 +0200 oxnas: backport upstream NAND driver This caused the folowing error message in the build bot: Error: arch/arm/boot/dts/ox820-akitio.dts:146.3-147.1 syntax error FATAL ERROR: Unable to parse input tree scripts/Makefile.lib:293: recipe for target 'arch/arm/boot/dts/ox820-akitio.dtb' failed make[5]: *** [arch/arm/boot/dts/ox820-akitio.dtb] Error 1 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* oxnas: backport upstream NAND driverDaniel Golle2017-01-017-152/+313
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* treewide: dts: use keycode defines from input dt-bindingMathias Kresin2016-11-133-7/+13
| | | | | | | | | | | | | | | | | | | | | All compiled device tree files not mentioned are binary identical to the former ones. Fix the obvious decimal/hex confusion for the power key of ramips/M2M.dts. Due to the include of the input binding header, the BTN_* node names in: - ramips/GL-MT300A.dts - ramips/GL-MT300N.dts - ramips/GL-MT750.dts - ramips/Timecloud.dts will be changed by the compiler to the numerical equivalent. Move the binding include of lantiq boards to the file where they are used the first time to hint the user where the values do come from. Signed-off-by: Mathias Kresin <dev@kresin.me>
* treewide: dts: use C style includesMathias Kresin2016-11-121-1/+1
| | | | | | | No functional change but allows me to use one script to compile all device tree source files. Signed-off-by: Mathias Kresin <dev@kresin.me>
* oxnas: add mem=128M to stg-212 built-in cmdline for legacy u-bootDaniel Golle2016-09-041-1/+1
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: kd20: generate image compatible with stock firmwareDaniel Golle2016-09-041-5/+21
| | | | | | | | * adjust MTD partitions to match vendor's scheme * generate *factory.tar.gz image compatible with stock web-if firmware upgrade interface Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: revert to kernel 4.1Daniel Golle2016-07-185-1/+67
| | | | | | | | | A bug resulting in the NAND not being detected by newer kernels has kept me sleepless for months and yet I wasn't able to discover the cause. Bring back patches and files for 4.1 until this has been resolved. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: drop compatibility with old kernels from mach-ox820Daniel Golle2016-05-201-5/+0
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: drop compatibility with old kernels from pinctrlDaniel Golle2016-05-201-8/+0
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: drop compatibility with old kernels from irq-rpsDaniel Golle2016-05-201-23/+1
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: drop compatibility with old kernels from dwmac-oxnasDaniel Golle2016-05-201-27/+0
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: add missing semicolonLuka Perkov2016-04-241-1/+1
| | | | | | | | | A missing semicolon in the gpio-keys-polled section of ox820-akitio.dts caused the build to break. Add it. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 49219
* oxnas: add support for Akitio MyCloud miniHauke Mehrtens2016-04-191-0/+132
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 49197
* oxnas: sync cpu-hotplug with mach-realviewJohn Crispin2016-03-201-4/+3
| | | | | | | | | Make mach-oxnas/hotplug.c look more similar to mach-realview/hotplug.c, just cosmetics and maintainability concerns, no functional changes. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 49044
* oxnas: add spinlock in pinctrl driverJohn Crispin2016-03-201-2/+16
| | | | | | | | Try to address a race-condition in pinctrl-oxnas.c Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 49043
* oxnas: also reset GPIO B registers on bootJohn Crispin2016-03-201-6/+6
| | | | | | | | | | Clear both, SYS_CTRL_*_SEL and SEC_CTRL_*_SEL on boot instead of writing to SYS_CTRL_*_SEL twice which looks like a copy-paste error. Thanks to anonymous to bring this up in #21892! Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 49042
* oxnas: complete NAND driver clean-upJohn Crispin2016-03-101-4/+0
| | | | | | | | some bit rot was accidentally left-out in r48986, remove it. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 48997
* oxnas: clean-up NAND driver to fix probing issueJohn Crispin2016-03-101-13/+5
| | | | | | | | | | | A re-write of the driver based on xway_nand.c and constants as well as the cmd_ctrl() function from the original oxnas_nand.c resulted in a extremely similar looking file (see diffsize), and fixes the issue of NAND not being detected on newer kernels. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 48986
* oxnas: prepare platform and drivers for Linux 4.4Felix Fietkau2016-01-182-0/+9
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 48338