riscv: dts: sifive unmatched: Name gpio lines
Subsystems (4)
PATCH v3 1/6 riscv: dts: sifive unmatched: Name gpio lines
Follow the pin descriptions given in the version 3 of the board schematics.
---
Changes since v2:
- Fix end-of-commit-message separator so change lists do not end up in them. Changes since v1:
- Remove trailing "." on subject line.
--- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +4 -0
@@ -245,4 +245,8 @@ &pwm1 { &gpio { status = "okay"; + gpio-line-names = "J29.1", "PMICNTB", "PMICSHDN", "J8.1", "J8.3", + "PCIe_PWREN", "THERM", "UBRDG_RSTN", "PCIe_PERSTN", + "ULPI_RSTN", "J8.2", "UHUB_RSTN", "GEMGXL_RST", "J8.4", + "EN_VDD_SD", "SD_CD"; };
Signature · 1 line
2.33.1
PATCH v3 2/6 riscv: dts: sifive unmatched: Expose the board ID eeprom
Mark it as read-only as it is factory-programmed with identifying information, and no executable nor configuration:
- eth MAC address
- board model (PCB version, BoM version)
- board serial number
Accidental modification would cause misidentification which could brick the board, so marking read-only seem like both a safe and non-constraining choice.
---
Changes since v2:
- Fix end-of-commit-message separator so change lists do not end up in them. Changes since v1:
- Remove trailing "." on subject line.
--- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +10 -0
@@ -58,6 +58,16 @@ temperature-sensor@4c { interrupts = <6 IRQ_TYPE_LEVEL_LOW>; }; + eeprom@54 { + compatible = "microchip,24c02", "atmel,24c02"; + reg = <0x54>; + vcc-supply = <&vdd_bpro>; + label = "board-id"; + pagesize = <16>; + read-only; + size = <256>; + }; + pmic@58 { compatible = "dlg,da9063"; reg = <0x58>;
Signature · 1 line
2.33.1
Re: [PATCH v3 2/6] riscv: dts: sifive unmatched: Expose the board ID eeprom
Quoted 11 lines · Vincent Pelletier
Mark it as read-only as it is factory-programmed with identifying information, and no executable nor configuration:
- eth MAC address
- board model (PCB version, BoM version)
- board serial number
Accidental modification would cause misidentification which could brick the board, so marking read-only seem like both a safe and non-constraining choice.Signed-off-by Vincent Pelletier <[email protected]>
Quoted 9 lines
---
Changes since v2:
- Fix end-of-commit-message separator so change lists do not end up in them. Changes since v1:
- Remove trailing "." on subject line.--- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 10 ++++++++++ 1 file changed, 10 insertions(+)
Best regards,
Krzysztof
PATCH v3 3/6 riscv: dts: sifive unmatched: Expose the PMIC sub-functions
In reply to Vincent PelletierThese sub-functions are available in the chip revision on this board, so expose them.
---
Changes since v2:
- Fix end-of-commit-message separator so change lists do not end up in them. Changes since v1:
- Remove trailing "." on subject line.
--- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +12 -0
@@ -75,6 +75,18 @@ pmic@58 { interrupts = <1 IRQ_TYPE_LEVEL_LOW>; interrupt-controller; + onkey { + compatible = "dlg,da9063-onkey"; + }; + + rtc { + compatible = "dlg,da9063-rtc"; + }; + + wdt { + compatible = "dlg,da9063-watchdog"; + }; + regulators { vdd_bcore1: bcore1 { regulator-min-microvolt = <900000>;
Signature · 1 line
2.33.1
PATCH v3 4/6 riscv: dts: sifive unmatched: Expose the FU740 core supply regulator
In reply to Vincent PelletierProvides monitoring of core voltage and current:
tps544b20-i2c-0-1e
Adapter: i2c-ocores vout1: 906.00 mV temp1: -40.0°C (high = +125.0°C, crit = +150.0°C) iout1: 5.06 A (max = +20.00 A, crit max = +26.00 A)
---
Note: checkpatch.pl complains about undocumented devicetree binding, which is fixed by:
https://lore.kernel.org/linux-devicetree/[email protected]/T/#u
Changes since v2:
- Fix end-of-commit-message separator so change lists do not end up in them. Changes since v1:
- Added missing "ti," prefix in compatible string.
- Remove trailing "." on subject line.
- Rename tree node.
--- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 5 +++++ 1 file changed, 5 insertions(+)
arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +5 -0
@@ -51,6 +51,11 @@ &uart1 { &i2c0 { status = "okay"; + regulator@1e { + compatible = "ti,tps544b20"; + reg = <0x1e>; + }; + temperature-sensor@4c { compatible = "ti,tmp451"; reg = <0x4c>;
Signature · 1 line
2.33.1
Re: [PATCH v3 4/6] riscv: dts: sifive unmatched: Expose the FU740 core supply regulator
Quoted 20 lines · Vincent Pelletier
Provides monitoring of core voltage and current:
tps544b20-i2c-0-1eAdapter: i2c-ocores vout1: 906.00 mV temp1: -40.0°C (high = +125.0°C, crit = +150.0°C) iout1: 5.06 A (max = +20.00 A, crit max = +26.00 A)Signed-off-by Vincent Pelletier <[email protected]>---
Note: checkpatch.pl complains about undocumented devicetree binding, which is fixed by:
https://lore.kernel.org/linux-devicetree/[email protected]/T/#uChanges since v2:
- Fix end-of-commit-message separator so change lists do not end up in them. Changes since v1:
- Added missing "ti," prefix in compatible string.
- Remove trailing "." on subject line.
- Rename tree node.
Quoted 4 lines
--- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 5 +++++ 1 file changed, 5 insertions(+)
Best regards,
Krzysztof
Palmer Dabbelt
maintainerRe: [PATCH v3 4/6] riscv: dts: sifive unmatched: Expose the FU740 core supply regulator
In reply to Vincent PelletierQuoted 14 lines · On Fri, 19 Nov 2021 14:55:40 PST (-0800), [email protected] wrote:
Provides monitoring of core voltage and current:
tps544b20-i2c-0-1eAdapter: i2c-ocores vout1: 906.00 mV temp1: -40.0°C (high = +125.0°C, crit = +150.0°C) iout1: 5.06 A (max = +20.00 A, crit max = +26.00 A)Signed-off-by Vincent Pelletier <[email protected]>---
Note: checkpatch.pl complains about undocumented devicetree binding, which is fixed by:
https://lore.kernel.org/linux-devicetree/[email protected]/T/#u
Quoted 6 lines
Changes since v2:
- Fix end-of-commit-message separator so change lists do not end up in them. Changes since v1:
- Added missing "ti," prefix in compatible string.
- Remove trailing "." on subject line.
- Rename tree node.
I see this in Rob's for-next as 761de79adc2c ("dt-bindings: hwmon: add TI DC-DC converters"), so I'm going to hold off on this one until the bindings land.
I've put the others on fixes.
Thanks!
Quoted 20 lines
--- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 5 +++++ 1 file changed, 5 insertions(+)arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +5
-0@@ -51,6 +51,11 @@ &uart1 { &i2c0 { status = "okay"; + regulator@1e { + compatible = "ti,tps544b20"; + reg = <0x1e>; + }; + temperature-sensor@4c { compatible = "ti,tmp451"; reg = <0x4c>;
Re: [PATCH v3 4/6] riscv: dts: sifive unmatched: Expose the FU740 core supply regulator
Am Freitag, 17. Dezember 2021, 06:35:00 CET schrieb Palmer Dabbelt:
Quoted 22 lines · On Fri, 19 Nov 2021 14:55:40 PST (-0800), [email protected] wrote:
Quoted 14 lines
Provides monitoring of core voltage and current:
tps544b20-i2c-0-1eAdapter: i2c-ocores vout1: 906.00 mV temp1: -40.0°C (high = +125.0°C, crit = +150.0°C) iout1: 5.06 A (max = +20.00 A, crit max = +26.00 A)Signed-off-by Vincent Pelletier <[email protected]>---
Note: checkpatch.pl complains about undocumented devicetree binding, which is fixed by:
https://lore.kernel.org/linux-devicetree/[email protected]/T/#uQuoted 6 lines
Changes since v2:
- Fix end-of-commit-message separator so change lists do not end up in them. Changes since v1:
- Added missing "ti," prefix in compatible string.
- Remove trailing "." on subject line.
- Rename tree node.
Quoted 3 lines
I see this in Rob's for-next as
761de79adc2c("dt-bindings: hwmon: add TI DC-DC converters"), so I'm going to hold off on this one until the bindings land.
Can't this patch then simply go into your for-next branch then?
The split is most times binding goes through the driver-tree (or Rob's dt tree) and the dts patch through an arch or soc tree.
But in general once a maintainer accepts the binding it is ok to also apply the dts patch for the same cycle (aka merge window) the binding will be in.
Heiko
Quoted 31 lines
I've put the others on fixes.
Thanks!
Quoted 10 lines
--- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 5 +++++ 1 file changed, 5 insertions(+)arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +0
-0@@ -51,6 +51,11 @@ &uart1 { &i2c0 {arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts &uart1 { · line 61
Quoted 10 lines
arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +5
-0status = "okay"; + regulator@1e { + compatible = "ti,tps544b20"; + reg = <0x1e>; + }; + temperature-sensor@4c { compatible = "ti,tmp451"; reg = <0x4c>;_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Re: [PATCH v3 4/6] riscv: dts: sifive unmatched: Expose the FU740 core supply regulator
Quoted 24 lines · Heiko Stübner
Am Freitag, 17. Dezember 2021, 06:35:00 CET schrieb Palmer Dabbelt:
Quoted 22 lines · On Fri, 19 Nov 2021 14:55:40 PST (-0800), [email protected] wrote:
Quoted 20 lines
Provides monitoring of core voltage and current:
tps544b20-i2c-0-1eAdapter: i2c-ocores vout1: 906.00 mV temp1: -40.0°C (high = +125.0°C, crit = +150.0°C) iout1: 5.06 A (max = +20.00 A, crit max = +26.00 A)Signed-off-by Vincent Pelletier <[email protected]>---
Note: checkpatch.pl complains about undocumented devicetree binding, which is fixed by:
https://lore.kernel.org/linux-devicetree/[email protected]/T/#uChanges since v2:
- Fix end-of-commit-message separator so change lists do not end up in them. Changes since v1:
- Added missing "ti," prefix in compatible string.
- Remove trailing "." on subject line.
- Rename tree node.
Quoted 5 lines
Quoted 3 lines
I see this in Rob's for-next as
761de79adc2c("dt-bindings: hwmon: add TI DC-DC converters"), so I'm going to hold off on this one until the bindings land.Can't this patch then simply go into your for-next branch then?
Yes.
Quoted 6 lines
The split is most times binding goes through the driver-tree (or Rob's dt tree) and the dts patch through an arch or soc tree.
But in general once a maintainer accepts the binding it is ok to also apply the dts patch for the same cycle (aka merge window) the binding will be in.
Until there's issues with schema warnings showing up in specific branches, going thru different trees isn't an issue. There's a lot of warnings to fix first.
Rob
PATCH v3 5/6 riscv: dts: sifive unmatched: Fix regulator for board rev3
In reply to Vincent PelletierThe existing values are rejected by the da9063 regulator driver, as they are unachievable with the declared chip setup (non-merged vcore and bmem are unable to provide the declared curent).
Fix voltages to match rev3 schematics, which also matches their boot-up configuration within the chip's available precision.
Declare bcore1/bcore2 and bmem/bio as merged.
Set ldo09 and ldo10 as always-on as their consumers are not declared but exist.
Drop ldo current limits as there is no current limit feature for these regulators in the DA9063. Fixes warnings like:
DA9063_LDO3: Operation of current configuration missing
---
Changes since v2:
- Fix end-of-commit-message separator so change lists do not end up in them. Changes since v1:
- Remove trailing "." on subject line.
--- .../boot/dts/sifive/hifive-unmatched-a00.dts | 84 ++++++------------- 1 file changed, 24 insertions(+), 60 deletions(-)
arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +24 -60
@@ -93,47 +93,31 @@ wdt { }; regulators { - vdd_bcore1: bcore1 { - regulator-min-microvolt = <900000>; - regulator-max-microvolt = <900000>; - regulator-min-microamp = <5000000>; - regulator-max-microamp = <5000000>; - regulator-always-on; - }; - - vdd_bcore2: bcore2 { - regulator-min-microvolt = <900000>; - regulator-max-microvolt = <900000>; - regulator-min-microamp = <5000000>; - regulator-max-microamp = <5000000>; + vdd_bcore: bcores-merged { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + regulator-min-microamp = <4800000>; + regulator-max-microamp = <4800000>; regulator-always-on; }; vdd_bpro: bpro { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-min-microamp = <2500000>; - regulator-max-microamp = <2500000>; + regulator-min-microamp = <2400000>; + regulator-max-microamp = <2400000>; regulator-always-on; }; vdd_bperi: bperi { - regulator-min-microvolt = <1050000>; - regulator-max-microvolt = <1050000>; + regulator-min-microvolt = <1060000>; + regulator-max-microvolt = <1060000>; regulator-min-microamp = <1500000>; regulator-max-microamp = <1500000>; regulator-always-on; }; - vdd_bmem: bmem { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-min-microamp = <3000000>; - regulator-max-microamp = <3000000>; - regulator-always-on; - }; - - vdd_bio: bio { + vdd_bmem_bio: bmem-bio-merged { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-min-microamp = <3000000>;
@@ -144,86 +128,66 @@ vdd_bio: bio { vdd_ldo1: ldo1 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-min-microamp = <100000>; - regulator-max-microamp = <100000>; regulator-always-on; }; vdd_ldo2: ldo2 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; regulator-always-on; }; vdd_ldo3: ldo3 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ldo4: ldo4 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; regulator-always-on; }; vdd_ldo5: ldo5 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <100000>; - regulator-max-microamp = <100000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ldo6: ldo6 { - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; regulator-always-on; }; vdd_ldo7: ldo7 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ldo8: ldo8 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ld09: ldo9 { regulator-min-microvolt = <1050000>; regulator-max-microvolt = <1050000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-always-on; }; vdd_ldo10: ldo10 { regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; - regulator-min-microamp = <300000>; - regulator-max-microamp = <300000>; + regulator-always-on; }; vdd_ldo11: ldo11 { regulator-min-microvolt = <2500000>; regulator-max-microvolt = <2500000>; - regulator-min-microamp = <300000>; - regulator-max-microamp = <300000>; regulator-always-on; }; };
Signature · 1 line
2.33.1
Palmer Dabbelt
maintainerRe: [PATCH v3 5/6] riscv: dts: sifive unmatched: Fix regulator for board rev3
Quoted 5 lines · On Fri, 19 Nov 2021 14:55:41 PST (-0800), [email protected] wrote:
The existing values are rejected by the da9063 regulator driver, as they are unachievable with the declared chip setup (non-merged vcore and bmem are unable to provide the declared curent).
Fix voltages to match rev3 schematics, which also matches their boot-up
There's a few references to rev 3 here. I'm not sure if that means we should have multiple device trees -- this one seems pretty benign, but some of the regulator stuff worries me there, where anything rev 3 specific might not be safe on other revisions.
Did any previous revisions make it out of the lab?
Quoted 182 lines
configuration within the chip's available precision.
Declare bcore1/bcore2 and bmem/bio as merged.
Set ldo09 and ldo10 as always-on as their consumers are not declared but exist.
Drop ldo current limits as there is no current limit feature for these regulators in the DA9063. Fixes warnings like:
DA9063_LDO3: Operation of current configuration missingSigned-off-by Vincent Pelletier <[email protected]>---
Changes since v2:
- Fix end-of-commit-message separator so change lists do not end up in them. Changes since v1:
- Remove trailing "." on subject line.--- .../boot/dts/sifive/hifive-unmatched-a00.dts | 84 ++++++------------- 1 file changed, 24 insertions(+), 60 deletions(-)arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +24
-60@@ -93,47 +93,31 @@ wdt { }; regulators { - vdd_bcore1: bcore1 { - regulator-min-microvolt = <900000>; - regulator-max-microvolt = <900000>; - regulator-min-microamp = <5000000>; - regulator-max-microamp = <5000000>; - regulator-always-on; - }; - - vdd_bcore2: bcore2 { - regulator-min-microvolt = <900000>; - regulator-max-microvolt = <900000>; - regulator-min-microamp = <5000000>; - regulator-max-microamp = <5000000>; + vdd_bcore: bcores-merged { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + regulator-min-microamp = <4800000>; + regulator-max-microamp = <4800000>; regulator-always-on; }; vdd_bpro: bpro { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-min-microamp = <2500000>; - regulator-max-microamp = <2500000>; + regulator-min-microamp = <2400000>; + regulator-max-microamp = <2400000>; regulator-always-on; }; vdd_bperi: bperi { - regulator-min-microvolt = <1050000>; - regulator-max-microvolt = <1050000>; + regulator-min-microvolt = <1060000>; + regulator-max-microvolt = <1060000>; regulator-min-microamp = <1500000>; regulator-max-microamp = <1500000>; regulator-always-on; }; - vdd_bmem: bmem { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-min-microamp = <3000000>; - regulator-max-microamp = <3000000>; - regulator-always-on; - }; - - vdd_bio: bio { + vdd_bmem_bio: bmem-bio-merged { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-min-microamp = <3000000>;@@ -144,86 +128,66 @@ vdd_bio: bio { vdd_ldo1: ldo1 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-min-microamp = <100000>; - regulator-max-microamp = <100000>; regulator-always-on; }; vdd_ldo2: ldo2 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; regulator-always-on; }; vdd_ldo3: ldo3 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ldo4: ldo4 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; regulator-always-on; }; vdd_ldo5: ldo5 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <100000>; - regulator-max-microamp = <100000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ldo6: ldo6 { - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; regulator-always-on; }; vdd_ldo7: ldo7 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ldo8: ldo8 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ld09: ldo9 { regulator-min-microvolt = <1050000>; regulator-max-microvolt = <1050000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-always-on; }; vdd_ldo10: ldo10 { regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; - regulator-min-microamp = <300000>; - regulator-max-microamp = <300000>; + regulator-always-on; }; vdd_ldo11: ldo11 { regulator-min-microvolt = <2500000>; regulator-max-microvolt = <2500000>; - regulator-min-microamp = <300000>; - regulator-max-microamp = <300000>; regulator-always-on; }; };
Re: [PATCH v3 5/6] riscv: dts: sifive unmatched: Fix regulator for board rev3
"
Quoted 6 lines · Palmer Dabbelt
Quoted 4 lines · On Fri, 19 Nov 2021 14:55:41 PST (-0800), [email protected] wrote:
The existing values are rejected by the da9063 regulator driver, as they are unachievable with the declared chip setup (non-merged vcore and bmem are unable to provide the declared curent).
Quoted 6 lines
Quoted 1 line
Fix voltages to match rev3 schematics, which also matches their boot-up
There's a few references to rev 3 here. I'm not sure if that means we should have multiple device trees -- this one seems pretty benign, but some of the regulator stuff worries me there, where anything rev 3 specific might not be safe on other revisions.
As I mentioned some time before there is no such thing as Unmatched "A00".
The production boards is:
PCB revision: 3
BOM revision: B
BOM variant: 0
Or "3B0".
There are a few "3A0" boards out in the wild, but the changes are minimal and the same DT applies.
Quoted 190 lines
Did any previous revisions make it out of the lab?
Quoted 172 lines
configuration within the chip's available precision.
Declare bcore1/bcore2 and bmem/bio as merged.
Set ldo09 and ldo10 as always-on as their consumers are not declared but exist.
Drop ldo current limits as there is no current limit feature for these regulators in the DA9063. Fixes warnings like:
DA9063_LDO3: Operation of current configuration missingSigned-off-by Vincent Pelletier <[email protected]>---
Changes since v2:
- Fix end-of-commit-message separator so change lists do not end up in them. Changes since v1:
- Remove trailing "." on subject line.--- .../boot/dts/sifive/hifive-unmatched-a00.dts | 84 ++++++------------- 1 file changed, 24 insertions(+), 60 deletions(-)arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +24
-58@@ -93,47 +93,31 @@ wdt { }; regulators { - vdd_bcore1: bcore1 { - regulator-min-microvolt = <900000>; - regulator-max-microvolt = <900000>; - regulator-min-microamp = <5000000>; - regulator-max-microamp = <5000000>; - regulator-always-on; - }; - - vdd_bcore2: bcore2 { - regulator-min-microvolt = <900000>; - regulator-max-microvolt = <900000>; - regulator-min-microamp = <5000000>; - regulator-max-microamp = <5000000>; + vdd_bcore: bcores-merged { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + regulator-min-microamp = <4800000>; + regulator-max-microamp = <4800000>; regulator-always-on; }; vdd_bpro: bpro { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-min-microamp = <2500000>; - regulator-max-microamp = <2500000>; + regulator-min-microamp = <2400000>; + regulator-max-microamp = <2400000>; regulator-always-on; }; vdd_bperi: bperi { - regulator-min-microvolt = <1050000>; - regulator-max-microvolt = <1050000>; + regulator-min-microvolt = <1060000>; + regulator-max-microvolt = <1060000>; regulator-min-microamp = <1500000>; regulator-max-microamp = <1500000>; regulator-always-on; }; - vdd_bmem: bmem { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-min-microamp = <3000000>; - regulator-max-microamp = <3000000>; - regulator-always-on; - }; - - vdd_bio: bio { + vdd_bmem_bio: bmem-bio-merged { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-min-microamp = <3000000>;@@ -144,86 +128,66 @@ vdd_bio: bio { vdd_ldo1: ldo1 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-min-microamp = <100000>; - regulator-max-microamp = <100000>; regulator-always-on; }; vdd_ldo2: ldo2 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; regulator-always-on; }; vdd_ldo3: ldo3 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ldo4: ldo4 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; regulator-always-on; }; vdd_ldo5: ldo5 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <100000>; - regulator-max-microamp = <100000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ldo6: ldo6 { - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; regulator-always-on; }; vdd_ldo7: ldo7 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ldo8: ldo8 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ld09: ldo9 { regulator-min-microvolt = <1050000>; regulator-max-microvolt = <1050000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-always-on; }; vdd_ldo10: ldo10 { regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; - regulator-min-microamp = <300000>; - regulator-max-microamp = <300000>; + regulator-always-on;arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts vdd_bio: bio { · line 193
Quoted 10 lines
arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +0
-2}; vdd_ldo11: ldo11 { regulator-min-microvolt = <2500000>; regulator-max-microvolt = <2500000>; - regulator-min-microamp = <300000>; - regulator-max-microamp = <300000>; regulator-always-on; }; };_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
PATCH v3 6/6 riscv: dts: sifive unmatched: Link the tmp451 with its power supply
In reply to Vincent PelletierFixes the following probe warning:
lm90 0-004c: Looking up vcc-supply from device tree
lm90 0-004c: Looking up vcc-supply property in node /soc/i2c@10030000/temperature-sensor@4c failed lm90 0-004c: supply vcc not found, using dummy regulator
---
Changes since v2:
- Fix end-of-commit-message separator so change lists do not end up in them. Changes since v1:
- Remove trailing "." on subject line.
- Added a commit description.
--- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 1 + 1 file changed, 1 insertion(+)
arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +1 -0
@@ -59,6 +59,7 @@ regulator@1e { temperature-sensor@4c { compatible = "ti,tmp451"; reg = <0x4c>; + vcc-supply = <&vdd_bpro>; interrupt-parent = <&gpio>; interrupts = <6 IRQ_TYPE_LEVEL_LOW>; };
Signature · 1 line
2.33.1
Re: [PATCH v3 6/6] riscv: dts: sifive unmatched: Link the tmp451 with its power supply
Quoted 13 lines · Vincent Pelletier
Fixes the following probe warning:
lm90 0-004c: Looking up vcc-supply from device tree
lm90 0-004c: Looking up vcc-supply property in node /soc/i2c@10030000/temperature-sensor@4c failed lm90 0-004c: supply vcc not found, using dummy regulatorSigned-off-by Vincent Pelletier <[email protected]>---
Changes since v2:
- Fix end-of-commit-message separator so change lists do not end up in them. Changes since v1:
- Remove trailing "." on subject line.
- Added a commit description.
Quoted 4 lines
--- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 1 + 1 file changed, 1 insertion(+)
Best regards,
Krzysztof