aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-11-02ARM: dts: sunxi: Add dtsi for AXP81x PMICChen-Yu Tsai1-0/+139
The AXP81x family of PMIC is used with the Allwinner A83T and H8 SoCs. This includes the AXP813 and AXP818. There is no discernible difference except the labeling. The AXP813 is paired with the A83T, while the AXP818 is paired with the H8. This patch adds a dtsi file for all the common bindings for these two PMICs. Currently this is just listing all the regulator nodes. The regulators are initialized based on their device node names. In the future this would be expanded to include power supplies and GPIO controllers. Signed-off-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-11-02arm64: dts: allwinner: H5: Restore EMAC changesCorentin Labbe3-0/+51
The original dwmac-sun8i DT bindings have some issue on how to handle integrated PHY and was reverted in last RC of 4.13. But now we have a solution so we need to get back that was reverted. This patch restore arm64 DT about dwmac-sun8i for H5 This reverts a part of commit 87e1f5e8bb4b ("arm64: dts: allwinner: Revert EMAC changes") Signed-off-by: Corentin Labbe <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-11-02ARM: dts: sunxi: Restore EMAC changes (boards)Corentin Labbe10-0/+131
The original dwmac-sun8i DT bindings have some issue on how to handle integrated PHY and was reverted in last RC of 4.13. But now we have a solution so we need to get back that was reverted. This patch restore all boards DT about dwmac-sun8i This reverts partially commit fe45174b72ae ("arm: dts: sunxi: Revert EMAC changes") Signed-off-by: Corentin Labbe <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-11-02ARM: dts: sunxi: h3/h5: represent the mdio switch used by sun8i-h3-emacCorentin Labbe1-4/+27
Since dwmac-sun8i could use either an integrated PHY or an external PHY (which could be at same MDIO address), we need to represent this selection by a MDIO switch. Signed-off-by: Corentin Labbe <[email protected]> Acked-by: Florian Fainelli <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-11-02arm: dts: sunxi: h3/h5: Restore EMAC changesCorentin Labbe1-0/+26
The original dwmac-sun8i DT bindings have some issue on how to handle integrated PHY and was reverted in last RC of 4.13. But now we have a solution so we need to get back that was reverted. This patch restore sunxi-h3-h5.dtsi This reverts partially commit fe45174b72ae ("arm: dts: sunxi: Revert EMAC changes") Signed-off-by: Corentin Labbe <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-11-02dt-bindings: net: dwmac-sun8i: update documentation about integrated PHYCorentin Labbe1-12/+135
This patch add documentation about the MDIO switch used on sun8i-h3-emac for integrated PHY. Signed-off-by: Corentin Labbe <[email protected]> Acked-by: Florian Fainelli <[email protected]> Acked-by: Rob Herring <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-31dt-bindings: net: Restore sun8i dwmac bindingCorentin Labbe1-0/+84
The original dwmac-sun8i DT bindings have some issue on how to handle integrated PHY and was reverted in last RC of 4.13. But now we have a solution so we need to get back that was reverted. This patch restore dt-bindings documentation about dwmac-sun8i This reverts commit 8aa33ec2f481 ("dt-bindings: net: Revert sun8i dwmac binding") Signed-off-by: Corentin Labbe <[email protected]> Acked-by: Rob Herring <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-20ARM: sun8i: r40: enable USB host for Banana Pi M2 UltraIcenowy Zheng1-0/+22
Banana Pi M2 Ultra board features two USB host ports, connected to the two USB host ports on the SoC. Add support for them. Signed-off-by: Icenowy Zheng <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Acked-by: Chen-Yu Tsai <[email protected]>
2017-10-20ARM: sun8i: v40: add 5V regulator for Banana Pi M2 BerryIcenowy Zheng1-0/+9
On the Banana Pi M2 Berry board, the 5V power output (used by HDMI, SATA and USB) is controlled via a GPIO. Add regulator node for it. Signed-off-by: Icenowy Zheng <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Acked-by: Chen-Yu Tsai <[email protected]>
2017-10-20ARM: sun8i: r40: add 5V regulator for Banana Pi M2 UltraIcenowy Zheng1-0/+9
On newer revisions of the Banana Pi M2 Ultra boards, the 5V power output (used by HDMI, SATA and USB) is controller via a GPIO. Add the regulator node for it. Older revisions just have the 5V power output always on, and the GPIO is reserved on these boards. So it won't affect the older revisions. Signed-off-by: Icenowy Zheng <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Acked-by: Chen-Yu Tsai <[email protected]>
2017-10-20ARM: sun8i: r40: add USB host port nodes for R40Icenowy Zheng1-0/+72
Allwinner R40 SoC features a USB OTG port and two USB HOST ports. Add support for the host ports in the DTSI file. The OTG controller still cannot work with existing compatibles, and needs more investigation. So it's not added yet. Signed-off-by: Icenowy Zheng <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Acked-by: Chen-Yu Tsai <[email protected]>
2017-10-18ARM: dts: sun4i: Enable HDMI support on some A10 devicesChen-Yu Tsai2-0/+50
Various A10-based development boards have standard HDMI connectors wired to the dedicated HDMI pins on the SoC. Enable the display pipeline and HDMI output on boards I have or have access to schematics: - Cubieboard - Olimex A10-OLinuXino-LIME Signed-off-by: Chen-Yu Tsai <[email protected]> Acked-by: Maxime Ripard <[email protected]>
2017-10-18ARM: dts: sun7i: Enable HDMI support on some A20 devicesChen-Yu Tsai7-0/+175
All the A20 devices I own have standard HDMI connectors wired to the dedicated HDMI pins on the SoC: - Bananapi M1+ - Cubieboard 2 - Cubietruck - Lamobo R1 (or Bananapi R1) Development boards from Olimex also have standard HDMI connectors. Schematics for them are publicly available. Enable HDMI on them as well. - Olimex A20-OLinuXino-LIME - Olimex A20-OLinuXino-LIME2 - Olimex A20-OLinuXino-MICRO Enable the display pipeline and HDMI output for them. Signed-off-by: Chen-Yu Tsai <[email protected]> Tested-by: Priit Laes <[email protected]> # Cubietruck, A20-OLinuXino-MICRO Tested-by: Olliver Schinagl <[email protected]> # A20-OLinuXino-LIME2 Tested-by: Jonathan Liu <[email protected]> # A20-OLinuXino-LIME Signed-off-by: Maxime Ripard <[email protected]>
2017-10-18ARM: dts: sun7i: Add device nodes for display pipelinesJonathan Liu1-0/+307
The A20 has two interconnected display pipelines, mirroring the A10. Add all the device nodes for them, including the downstream HDMI controller that we already support. Signed-off-by: Jonathan Liu <[email protected]> [[email protected]: Squashed in HDMI and provided commit message] Signed-off-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-18ARM: dts: sun4i: Add device nodes for display pipelinesChen-Yu Tsai1-0/+306
The A10 has two interconnected display pipelines, much like the A31, but without the DRCs between the backend and TCONs. Add all the device nodes for them, including the downstream HDMI controller that we already support. Signed-off-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-18ARM: dts: sun8i: r40: add watchdog device nodeIcenowy Zheng1-0/+5
The R40 SoC has a watchdog like the one on A20, in the timer memory zone (which is also the same on A20). Add the device tree node for it. Signed-off-by: Icenowy Zheng <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Chen-Yu Tsai <[email protected]>
2017-10-13ARM: dts: sun5i: reference-design-tablet: Enable AXP209 AC and batteryChen-Yu Tsai1-0/+8
The reference design tablet has the DC jack wired to AXP209's ACIN. As a tablet, it also has an internal LiPo battery, wired to the PMIC's battery charger. Enable both. Signed-off-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-13ARM: dts: sun9i: Change node names to remove underscoresMaxime Ripard2-2/+2
Some boards have had node names with underscores. Remove them in favour of hyphens in order to reduce the DTC warnings. Signed-off-by: Maxime Ripard <[email protected]>
2017-10-13ARM: dts: sun9i: Change node names to remove underscoresMaxime Ripard1-5/+5
Some node names in the A80 DTSI still have underscores in them. Remove them in favour of hyphens to remove DTC warnings. Signed-off-by: Maxime Ripard <[email protected]>
2017-10-13ARM: dts: sun4i: Remove underscores from nodes namesMaxime Ripard11-26/+26
Some GPIO pinctrl nodes cannot be easily removed, because they would also change the pin configuration, for example to add a pull resistor or change the current delivered by the pin. Those nodes still have underscores and unit-addresses in their node names in our DTs, so adjust their name to remove the warnings. Use that occasion to also fix some poorly chosen node-names. Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-13ARM: dts: sun4i: Provide default muxing for relevant controllersMaxime Ripard21-126/+12
The I2C's, MMC0 and EMAC controllers have only one muxing option in the SoC. In such a case, we can just move the muxing into the DTSI, and remove it from the DTS. Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-13ARM: dts: sun4i: Change pinctrl nodes to avoid warningMaxime Ripard21-132/+139
All our pinctrl nodes were using a node name convention with a unit-address to differentiate the different muxing options. However, since those nodes didn't have a reg property, they were generating warnings in DTC. In order to accomodate for this, convert the old nodes to the syntax we've been using for the new SoCs, including removing the letter suffix of the node labels to the bank of those pins to make things more readable. Signed-off-by: Maxime Ripard <[email protected]>
2017-10-11ARM: dts: sun6i: Enable HDMI support on some A31/A31s devicesChen-Yu Tsai3-0/+71
All the A31/A31s devices I own have some kind of HDMI connector wired to the dedicated HDMI pins on the SoC: - A31 Hummingbird (standard HDMI connector, display already enabled) - Sinlinx SinA31s (standard HDMI connector) - MSI Primo81 tablet (micro HDMI connector) Enable the display pipeline (if needed) and HDMI output for them. Signed-off-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-11ARM: dts: sun6i: Add device node for HDMI controllerChen-Yu Tsai1-0/+55
Now that we support the HDMI controller on the A31 SoC, we can add it to the device tree. This adds a device node for the HDMI controller, and the of_graph nodes connecting it to the 2 TCONs. Signed-off-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-09ARM: dts: sun4i: Change LRADC node names to avoid warningsMaxime Ripard7-23/+23
One of the usage of the LRADC is to implement buttons. The bindings define that we should have one subnode per button, with their associated voltage as a property. However, there was no reg property but we still used the voltage associated to the button as the unit-address, which eventually generated warnings in DTC. Rename the node names to avoid those warnings. Signed-off-by: Maxime Ripard <[email protected]>
2017-10-09ARM: dts: sun4i: Remove skeleton and memory to avoid warningsMaxime Ripard1-6/+2
Using skeleton.dtsi will create a memory node that will generate a warning in DTC. However, that node will be created by the bootloader, so we can just remove it entirely in order to remove that warning. Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-09ARM: dts: sun4i: Remove gpio-keys warningsMaxime Ripard2-23/+23
Some gpio-keys definitions in our DTs were having buttons defined with a unit-address and that would generate a DTC warning. Change the buttons node names to remove the warnings. Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-06ARM: dts: sun9i: cubieboard4: Remove card detect pull-upMaxime Ripard1-9/+1
The board has an external pull-up on the card-detect signal, so there's no need to add another one. This also removes a DTC warning. Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-06ARM: dts: sun9i: optimus: Remove card detect pull-upMaxime Ripard1-9/+1
The board has an external pull-up on the card-detect signal, so there's no need to add another one. This also removes a DTC warning. Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-06ARM: dts: sun9i: Rename pinctrl nodes to avoid warningsMaxime Ripard3-8/+8
Our pinctrl node names were containing unit-adresses without a reg property, resulting in a warning. Change the names for our new convention. Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-06ARM: dts: sun9i: Remove GPIO pinctrl nodes to avoid warningsMaxime Ripard2-50/+2
The A80 boards still define some GPIO pinctrl nodes that are not really useful, and redundant with the muxing already happening on gpio_request. Let's remove those nodes. This will also remove DTC warnings. Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-06ARM: dts: sun9i: Remove skeleton to avoid warningsMaxime Ripard1-7/+2
Using skeleton.dtsi will create a memory node that will generate a warning in DTC. However, that node will be created by the bootloader, so we can just remove it entirely in order to remove that warning. Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-06ARM: dts: sun4i: Remove all useless pinctrl nodesMaxime Ripard13-182/+0
The gpio pinctrl nodes are redundant and as such useless most of the times. Since they will also generate warnings in DTC, we can simply remove most of them. Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-06ARM: dts: sun4i: Rename thermal nodes to avoid warningsMaxime Ripard1-3/+3
The thermal-zone subnodes we defined for the A10 have underscores in them that will generate DTC warnings. Change those underscores for hyphens. Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-06ARM: dts: sun4i: Remove SoC node unit-name to avoid warningsMaxime Ripard1-1/+1
Our main node for all the in-SoC controllers used to have a unit name. The unit-name, in addition to being actually false, would not match any reg property, which generates a warning. Remove it in order to remove those warnings. Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-06ARM: dts: sun4i: Change clock node names to avoid warningsMaxime Ripard1-2/+2
Our oscillators clock names have a unit address, but no reg property, which generates a warning in DTC. Change these names to remove those unit addresses. Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-06ARM: dts: sun4i: Change framebuffer node names to avoid warningsMaxime Ripard1-4/+4
The simple-framebuffer nodes have a unit address, but no reg property which generates a warning when compiling it with DTC. Change the simple-framebuffer node names so that there is no warnings on this anymore. Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-06ARM: dts: axp209: Rename usb_power_supply node to avoid warningsMaxime Ripard1-1/+1
The USB power supply node in the AXP209 DTSI is using underscores in its node name, which is generating a warning. Change those underscores for hyphens. Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-06ARM: dts: sunxi: Remove leading zeros from unit-addressesMaxime Ripard12-323/+323
Most of our device trees have had leading zeros for padding as part of the nodes unit-addresses. Remove all these useless zeros that generate warnings Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-06ARM: dts: sun8i: Add board dts file for Banana Pi M2 BerryIcenowy Zheng2-1/+166
The Banana Pi M2 Ultra is an SBC based on the Allwinner V40 SoC (same as the R40 SoC). The form factor is similar to the Raspberry Pi series. It features: - X-Powers AXP221s PMIC connected to i2c0 - 1GiB DDR3 DRAM - microSD slot - MicroUSB Type-B port for power and connected to usb0 - HDMI output - MIPI DSI connector - 4 USB Type-A ports (connected to the usb1 controller via a hub) - gigabit ethernet with Realtek RTL8211E transceiver - WiFi/Bluetooth with AP6212 module, with external antenna connector - SATA and power connectors for native SATA support - camera sensor connector - audio out headphone jack - red and green LEDs - debug UART pins - Raspberry Pi B+ compatible GPIO header - power and reset buttons This patch adds a dts file that enables UART, MMC and PMIC support. Signed-off-by: Icenowy Zheng <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-06ARM: dts: sun8i: Add board dts file for Banana Pi M2 UltraChen-Yu Tsai2-0/+179
The Banana Pi M2 Ultra is an SBC based on the Allwinner R40 SoC. The form factor and position of various connectors, leds and buttons is similar to the Banana Pi M1+, Banana Pi M3, and is exactly the same as the latest Banana Pi M64. It features: - X-Powers AXP221s PMIC connected to i2c0 - 2 GB DDR3 DRAM - 8 GB eMMC - micro SD card slot - DC power jack - HDMI output - MIPI DSI connector - 2x USB 2.0 hosts - 1x USB 2.0 OTG - gigabit ethernet with Realtek RTL8211E transceiver - WiFi/Bluetooth with AP6212 chip, with external antenna connector - SATA and power connectors for native SATA support - camera sensor connector - consumer IR receiver - audio out headphone jack - onboard microphone - red, green, and blue LEDs - debug UART pins - Li-Po battery connector - Raspberry Pi B+ compatible GPIO header - power, reset, and boot control buttons This patch adds a dts file that enables UART, MMC and PMIC support. Signed-off-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Icenowy Zheng <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-10-06ARM: dts: sun8i: Add basic dtsi file for Allwinner R40Chen-Yu Tsai1-0/+396
The Allwinner R40 SoC is marketed as the successor to the A20 SoC. The R40 is a smaller chip than the A20, but features the same set of programmable pins, with a couple extra pins and some new pin functions. The chip features 4 Cortex-A7 cores and a Mali-400 MP2 GPU. It retains most if not all features from the A20, while adding some new features, such as MIPI DSI output, or updating various hardware blocks, such as DE 2.0. Signed-off-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Icenowy Zheng <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-09-27ARM: dts: sun8i: a83t: Fix simple-bus unit address format errorCorentin LABBE1-3/+3
This patch remove leading 0 of unit address and so remove lots of warning when building DT with W=1. Signed-off-by: Corentin Labbe <[email protected]> Acked-by: Maxime Ripard <[email protected]> Signed-off-by: Chen-Yu Tsai <[email protected]>
2017-09-27ARM: dts: sun8i: h3: Fix node with unit name and no reg propertyCorentin LABBE6-18/+18
This patch fixes the warning "xxx has a unit name, but no reg property" by removing "@0" from such node. 6 board files are fixed. Each has the same aforementioned issue in pinmux nodes. These include the Nano Pi family base dtsi file, the Orange Pi 2, Orange Pi Lite, Orange Pi One, Orange Pi PC, and Orange Pi Plus. Signed-off-by: Corentin Labbe <[email protected]> Acked-by: Maxime Ripard <[email protected]> [[email protected]: Squashed 6 patches together; boards named in commit log] Signed-off-by: Chen-Yu Tsai <[email protected]>
2017-09-26ARM: dts: sunxi: h3/h5: Fix node with unit name and no reg propertyCorentin LABBE1-6/+6
This patch fix the warning "xxx has a unit name, but no reg property" by removing "@0" from such node. Signed-off-by: Corentin Labbe <[email protected]> Acked-by: Maxime Ripard <[email protected]> Signed-off-by: Chen-Yu Tsai <[email protected]>
2017-09-26ARM: dts: sunxi: h3/h5: Fix i2c2 register addressCorentin LABBE1-1/+1
The unit address and register address does not match. This patch fix the register address with the good one. Acked-by: Maxime Ripard <[email protected]> Signed-off-by: Corentin Labbe <[email protected]> Signed-off-by: Chen-Yu Tsai <[email protected]>
2017-09-26ARM: dts: sunxi: h3/h5: Fix simple-bus unit address format errorCorentin LABBE1-37/+37
This patch remove leading 0 of unit address and so remove lots of warning when building DT with W=1. Signed-off-by: Corentin Labbe <[email protected]> Acked-by: Maxime Ripard <[email protected]> Signed-off-by: Chen-Yu Tsai <[email protected]>
2017-09-17ARM: sun7i: a20: enable ac/battery power supplies for Lamobo R1 boardIcenowy Zheng1-0/+8
The Lamobo R1 board connected the ACIN of the AXP209 PMIC to a MicroUSB port, and the battery input is connected to a generic connector. Enable these two power supplies in the device tree. Signed-off-by: Icenowy Zheng <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-09-17ARM: dts: sun6i: Add cross pipeline connections between DRCs and TCONsChen-Yu Tsai1-0/+20
The TCONs on A31/A31s can select either backend as its input. As there is no configurable mux in the backend or DRC to redirect their output, or for the DRC to select an input, the connections are presumably from the each DRC to each TCON, with the TCON having two input ports, like the following diagram: Backend 0 ------- DRC 0 ------- [0] TCON 0 -- -- [1] \ / X / \ -- -- [0] Backend 1 ------- DRC 1 ------- [1] TCON 1 Add these connection endpoints to the device tree. Signed-off-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
2017-09-17ARM: dts: sun8i: h3: Fix Pincrtl bindings on Bananapi M2 PlusPhilipp Rossak1-20/+0
There is no need for pincontrol nodes when the pin is set to a GPIO Signed-off-by: Philipp Rossak <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>