riscv: dts: minor beaglev-fire improvements
Subsystems (3)
cover riscv: dts: minor beaglev-fire improvements
From: Conor Dooley <[email protected]>
Yo,
Some minor improvements etc for the BeagleV Fire, spotted while updating our downstream stuff to the latest lts.
Produces errors at the moment, as it depends on changing the interrupt-cells in the gpio binding.
Cheers,
Conor.
Conor Dooley (5):
riscv: dts: microchip: gpio controllers on mpfs need 2 interrupt cells
riscv: dts: microchip: remove gpio hogs from beaglev-fire
riscv: dts: microchip: clean up beaglev-fire regulator node names
riscv: dts: microchip: add adc interrupt on beaglev-fire
riscv: dts: microchip: add gpio line names on beaglev-fire
.../boot/dts/microchip/mpfs-beaglev-fire.dts | 36 ++++++++++--------- arch/riscv/boot/dts/microchip/mpfs.dtsi | 6 ++-- 2 files changed, 22 insertions(+), 20 deletions(-)
Signature · 1 line
2.51.0
PATCH 1/5 riscv: dts: microchip: gpio controllers on mpfs need 2 interrupt cells
From: Conor Dooley <[email protected]>
The platform has variable interrupt types for GPIO interrupts, in addition to having multiple lines per GPIO controller. Two interrupt cells are required.
--- arch/riscv/boot/dts/microchip/mpfs.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/riscv/boot/dts/microchip/mpfs.dtsi +3 -3
@@ -473,7 +473,7 @@ gpio0: gpio@20120000 { reg = <0x0 0x20120000 0x0 0x1000>; interrupt-parent = <&plic>; interrupt-controller; - #interrupt-cells = <1>; + #interrupt-cells = <2>; clocks = <&clkcfg CLK_GPIO0>; gpio-controller; #gpio-cells = <2>;
@@ -485,7 +485,7 @@ gpio1: gpio@20121000 { reg = <0x0 0x20121000 0x0 0x1000>; interrupt-parent = <&plic>; interrupt-controller; - #interrupt-cells = <1>; + #interrupt-cells = <2>; clocks = <&clkcfg CLK_GPIO1>; gpio-controller; #gpio-cells = <2>;
@@ -497,7 +497,7 @@ gpio2: gpio@20122000 { reg = <0x0 0x20122000 0x0 0x1000>; interrupt-parent = <&plic>; interrupt-controller; - #interrupt-cells = <1>; + #interrupt-cells = <2>; clocks = <&clkcfg CLK_GPIO2>; gpio-controller; #gpio-cells = <2>;
Signature · 1 line
2.51.0
PATCH 2/5 riscv: dts: microchip: remove gpio hogs from beaglev-fire
In reply to Conor DooleyFrom: Conor Dooley <[email protected]>
sd-det-hog should be cd-gpios, but when the mmc-spi-slot was added, the "cd-" prefix was omitted and the collision with the hog was not noticed.
vio-enable-hog is just a regulator that can be modelled as such.
--- .../boot/dts/microchip/mpfs-beaglev-fire.dts | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-)
arch/riscv/boot/dts/microchip/mpfs-beaglev-fire.dts +10 -15
@@ -77,6 +77,15 @@ imx219_vddl: fixedregulator-2 { regulator-max-microvolt = <1200000>; }; + regulator-1v8-syzygy { + compatible = "regulator-fixed"; + gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>; + regulator-name = "syzygy_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + enable-active-high; + }; }; &gpio0 {
@@ -118,20 +127,6 @@ &gpio2 { "P8_PIN27", "P8_PIN28", "P8_PIN29", "P8_PIN30", "M2_W_DISABLE1", "M2_W_DISABLE2", "VIO_ENABLE", "SD_DET"; status = "okay"; - - vio-enable-hog { - gpio-hog; - gpios = <30 30>; - output-high; - line-name = "VIO_ENABLE"; - }; - - sd-det-hog { - gpio-hog; - gpios = <31 31>; - input; - line-name = "SD_DET"; - }; }; &i2c0 {
@@ -287,7 +282,7 @@ channel@7 { mmc@1 { compatible = "mmc-spi-slot"; reg = <1>; - gpios = <&gpio2 31 1>; + cd-gpios = <&gpio2 31 GPIO_ACTIVE_LOW>; voltage-ranges = <3300 3300>; spi-max-frequency = <5000000>; disable-wp;
Signature · 1 line
2.51.0
PATCH 3/5 riscv: dts: microchip: clean up beaglev-fire regulator node names
In reply to Conor DooleyFrom: Conor Dooley <[email protected]>
Recently the binding for regulator-fixed introduced preferred naming, in the regulator-XvY format. Change the existing regulators to match this pattern.
--- arch/riscv/boot/dts/microchip/mpfs-beaglev-fire.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/riscv/boot/dts/microchip/mpfs-beaglev-fire.dts +2 -2
@@ -63,14 +63,14 @@ imx219_vana: fixedregulator-0 { regulator-max-microvolt = <2800000>; }; - imx219_vdig: fixedregulator-1 { + imx219_vdig: regulator-1v8 { compatible = "regulator-fixed"; regulator-name = "imx219_vdig"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; }; - imx219_vddl: fixedregulator-2 { + imx219_vddl: regulator-1v2 { compatible = "regulator-fixed"; regulator-name = "imx219_vddl"; regulator-min-microvolt = <1200000>;
Signature · 1 line
2.51.0
PATCH 4/5 riscv: dts: microchip: add adc interrupt on beaglev-fire
In reply to Conor DooleyFrom: Conor Dooley <[email protected]>
The mcp3464r on the beaglev-fire has its interrupt wired up, but not present in the devicetree. Add it.
--- arch/riscv/boot/dts/microchip/mpfs-beaglev-fire.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/riscv/boot/dts/microchip/mpfs-beaglev-fire.dts +2 -0
@@ -4,6 +4,7 @@ /dts-v1/; #include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/interrupt-controller/irq.h> #include "mpfs.dtsi" #include "mpfs-beaglev-fire-fabric.dtsi"
@@ -226,6 +227,7 @@ adc@0 { spi-cpha; spi-max-frequency = <5000000>; microchip,hw-device-address = <1>; + interrupts-extended = <&gpio1 20 IRQ_TYPE_LEVEL_LOW>; #address-cells = <1>; #size-cells = <0>; status = "okay";
Signature · 1 line
2.51.0
PATCH 5/5 riscv: dts: microchip: add gpio line names on beaglev-fire
In reply to Conor DooleyFrom: Conor Dooley <[email protected]>
GPIO controller 2 has the gpio-line-names property, but the two other controllers do not. Add the property for these controllers too.
--- arch/riscv/boot/dts/microchip/mpfs-beaglev-fire.dts | 5 +++++ 1 file changed, 5 insertions(+)
arch/riscv/boot/dts/microchip/mpfs-beaglev-fire.dts +5 -0
@@ -95,6 +95,8 @@ &gpio0 { <21>, <22>, <23>, <24>, <25>, <26>; ngpios = <14>; + gpio-line-names = "", "", "", "", "", "", "", + "", "", "", "", "", "SD_CARD_CS", "USER_BUTTON"; status = "okay"; };
@@ -106,6 +108,9 @@ &gpio1 { <43>, <44>, <45>, <46>, <47>, <48>, <49>, <50>; ngpios = <24>; + gpio-line-names = "", "", "", "", "", "", "", "", "", "", + "", "", "", "", "", "", "", "", "", "", + "ADC_IRQn", "", "", "USB_OCn"; status = "okay"; };
Signature · 1 line
2.51.0
Quoted 9 lines · Conor Dooley
From: Conor Dooley <[email protected]>
Yo,
Some minor improvements etc for the BeagleV Fire, spotted while updating our downstream stuff to the latest lts.
Produces errors at the moment, as it depends on changing the interrupt-cells in the gpio binding.
This has been merged as part of 7.1-rc1, so I've applied this series.