|
+-2 Mass Storage (480 Mb/s, 200mA)
SanDisk Cruzer Blade 03003432021922011407
Signed-off-by: Fabrice Gasnier
---
drivers/usb/host/ehci-generic.c | 24
1 file changed, 24 insertions(+)
diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c
i
Make usage of clock and reset bulk API in order to simplify the code
Signed-off-by: Fabrice Gasnier
---
drivers/usb/host/ohci-generic.c | 92 +++--
1 file changed, 29 insertions(+), 63 deletions(-)
diff --git a/drivers/usb/host/ohci-generic.c b/drivers/usb/host
On 8/30/23 17:12, Marek Vasut wrote:
> On 8/30/23 10:00, Fabrice Gasnier wrote:
>> EHCI is usually used with companion controller (like OHCI) as companion
>> controller. This information on the companion is missing currently in
>> companion drivers.
>> So, if the usb
0 Mb/s, 200mA)
SanDisk Cruzer Blade 03003432021922011407
Signed-off-by: Fabrice Gasnier
---
Changes in v2:
- move companion probing from generic ehci driver to usb-uclass, after
Marek's questions on design choice.
- rename commit title to follow this change
---
drivers/usb/host/usb-uclass.c | 36
On 8/30/23 17:18, Marek Vasut wrote:
> On 8/30/23 10:01, Fabrice Gasnier wrote:
>> Make usage of clock and reset bulk API in order to simplify the code
>>
>> Signed-off-by: Fabrice Gasnier
>> ---
>>
>> drivers/usb/host/ohci-generic.c | 92 +++---
On 9/1/23 12:48, Marek Vasut wrote:
> On 9/1/23 11:52, Fabrice Gasnier wrote:
>> EHCI is usually used with companion controller (like OHCI) as companion
>> controller. This information on the companion is missing currently in
>> companion drivers.
>> So, if the usb-ucla
On 9/2/23 11:06, Xavier Drudis Ferran wrote:
> Is the change of behaviour intended when a clock or reset is not found ?
> (see below)
Hi Xavier,
I'd say yes, although I haven't seen that... please find my answers below.
>
> El Wed, Aug 30, 2023 at 10:01:49AM +0200
Make usage of clock and reset bulk API in order to simplify the code
Reviewed-by: Marek Vasut
Signed-off-by: Fabrice Gasnier
---
Changes in v2:
- fix copy/paste on dev_err message since Marek's review comment
- add Marek's review tag
---
drivers/usb/host/ohci-gene
On 9/1/23 18:00, Marek Vasut wrote:
> On 9/1/23 14:12, Fabrice Gasnier wrote:
>> On 9/1/23 12:48, Marek Vasut wrote:
>>> On 9/1/23 11:52, Fabrice Gasnier wrote:
>>>> EHCI is usually used with companion controller (like OHCI) as companion
>>>> contro
On 9/4/23 15:54, Marek Vasut wrote:
> On 9/4/23 14:34, Fabrice Gasnier wrote:
>> On 9/1/23 18:00, Marek Vasut wrote:
>>> On 9/1/23 14:12, Fabrice Gasnier wrote:
>>>> On 9/1/23 12:48, Marek Vasut wrote:
>>>>> On 9/1/23 11:52, Fabrice Gasnier wrot
phy-stm32-usbphyc bindings uses a connector node with vbus-supply
property.
[backport from linux 43e55d778a6b]
Signed-off-by: Fabrice Gasnier
---
arch/arm/dts/stm32mp157c-ev1.dts | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/dts/stm32mp157c-ev1.dts b/arch/arm/dts/stm32mp157c
B device tree:
1 Hub (480 Mb/s, 0mA)
| u-boot EHCI Host Controller
|
+-2 Hub (480 Mb/s, 2mA)
Signed-off-by: Fabrice Gasnier
---
common/Makefile | 1 +
common/usb_onboard_hub.c | 62 +++
drivers/usb/Kconfig | 10 ++
driv
Activate the USB onboard HUB driver, that is used to enable the HUB supply
on STM32MP15 EVAL, DK1 and DK2 boards.
This avoids marking the 3v3 corresponding regulator as always-on.
Signed-off-by: Fabrice Gasnier
---
configs/stm32mp15_basic_defconfig | 1 +
configs/stm32mp15_defconfig
always-on regulator.
It aligns the relevant DT part from emerging Linux v6.2. It also adds the
relevant default configuration on stm32mp15.
Fabrice Gasnier (3):
usb: onboard-hub: add driver to manage onboard hub supplies
configs: stm32: enable USB onboard HUB driver
ARM: dts: stm32: add support
Add support for USB2514B onboard hub on stm32mp157c EV1 board. The HUB
is supplied by a 3v3 PMIC regulator.
[backport from linux ad9591b01d24]
Signed-off-by: Fabrice Gasnier
---
arch/arm/dts/stm32mp157c-ev1.dts | 8
1 file changed, 8 insertions(+)
diff --git a/arch/arm/dts
ant like stm32-adc provide its own
'vref-supply'.
Signed-off-by: Fabrice Gasnier
---
drivers/adc/adc-uclass.c | 21 +
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/drivers/adc/adc-uclass.c b/drivers/adc/adc-uclass.c
index 17c1a4e..70f4cde 100644
---
Enable ADC on stm32mp15.
- CONFIG_CMD_ADC
- CONFIG_STM32_ADC
Signed-off-by: Fabrice Gasnier
---
configs/stm32mp15_basic_defconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configs/stm32mp15_basic_defconfig
b/configs/stm32mp15_basic_defconfig
index 3a94db5..bbb65b5
add clk_valid() to check for optional clocks are valid.
Signed-off-by: Fabrice Gasnier
---
include/clk.h | 10 ++
1 file changed, 10 insertions(+)
diff --git a/include/clk.h b/include/clk.h
index 9a35764..71679a9 100644
--- a/include/clk.h
+++ b/include/clk.h
@@ -294,4 +294,14 @@ int
This patch adds documentation of device tree bindings for the STM32 ADC.
It's based on linux-v4.18-rc* dt-bindings, at the time of writing:
- Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
Signed-off-by: Fabrice Gasnier
---
doc/device-tree-bindings/adc/st,stm32-adc.txt
Add ADC device tree node. This allows to get analog conversions on
stm32mp157.
Signed-off-by: Fabrice Gasnier
---
arch/arm/dts/stm32mp157.dtsi | 32
1 file changed, 32 insertions(+)
diff --git a/arch/arm/dts/stm32mp157.dtsi b/arch/arm/dts/stm32mp157.dtsi
index
clare each ADC, channels and handle
conversions.
This driver currently supports STM32H7 and STM32MP1 ADC.
Signed-off-by: Fabrice Gasnier
---
drivers/adc/Kconfig | 16 +++
drivers/adc/Makefile | 1 +
drivers/adc/stm32-adc-core.c | 209 +++
d
ly to be provided directly from
uc_pdata, e.g dt-binding variant like stm32-adc provide its own
'vref-supply'.
Signed-off-by: Fabrice Gasnier
---
Changes in v2:
- move device_get_supply_regulator() call to pre_probe() routine
---
drivers/adc/adc-uclass.c | 35 +
This patch adds documentation of device tree bindings for the STM32 ADC.
It's based on linux-v4.18-rc* dt-bindings, at the time of writing:
- Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
Signed-off-by: Fabrice Gasnier
Reviewed-by: Simon Glass
---
Changes in v2: None
doc/d
Add clk_valid() to check for optional clocks are valid.
Call clk_valid() in test/dm/clk.c and add relevant test routine to
sandbox clk tests.
Signed-off-by: Fabrice Gasnier
---
Changes in v2:
- add test case for 'clk_valid()', e.g. in test/dm/clk.c and sandbox.
- Update TRUE/FALSE c
Enable ADC on stm32mp15.
- CONFIG_CMD_ADC
- CONFIG_STM32_ADC
Signed-off-by: Fabrice Gasnier
Reviewed-by: Simon Glass
---
Changes in v2: None
configs/stm32mp15_basic_defconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configs/stm32mp15_basic_defconfig
b/configs
clare each ADC, channels and handle
conversions.
This driver currently supports STM32H7 and STM32MP1 ADC.
Signed-off-by: Fabrice Gasnier
Reviewed-by: Simon Glass
---
Changes in v2: None
drivers/adc/Kconfig | 16 +++
drivers/adc/Makefile | 1 +
drivers/adc/stm32-adc-co
Add ADC device tree node. This allows to get analog conversions on
stm32mp157.
Signed-off-by: Fabrice Gasnier
---
Changes in v2: None
---
arch/arm/dts/stm32mp157.dtsi | 32
1 file changed, 32 insertions(+)
diff --git a/arch/arm/dts/stm32mp157.dtsi b/arch/arm
On 07/24/2018 01:48 AM, Simon Glass wrote:
> Hi Fabrice,
>
> On 23 July 2018 at 06:35, Fabrice Gasnier wrote:
>> device_get_supply_regulator() only needs to be called once.
>> But each time there's call to adc_vxx_value() for instance, it calls
config and DT on stm32mp15
Changes in v2:
- add test case for 'clk_valid()', e.g. in test/dm/clk.c and sandbox.
- Update TRUE/FALSE comments to lower case: true/false
- move device_get_supply_regulator() call to pre_probe() routine
Fabrice Gasnier (6):
clk: add clk_valid()
dm: adc: u
Add two functions to ADC uclass's:
- adc_raw_to_uV() to ease ADC raw value conversion to microvolts
- adc_channel_mask() to get channels on consumer side
Signed-off-by: Fabrice Gasnier
---
drivers/adc/adc-uclass.c | 37 +
include/adc.h
Enhance adc info command to report also the channel mask.
Signed-off-by: Fabrice Gasnier
---
cmd/adc.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/cmd/adc.c b/cmd/adc.c
index c8857ed..39f61c1 100644
--- a/cmd/adc.c
+++ b/cmd/adc.c
@@ -35,7 +35,7 @@ static int
enhance 'adc' command to scan once several or all channels
Fabrice Gasnier (4):
dm: adc: add uclass's mask and conversion helpers
cmd: adc: add info on channel mask
cmd: adc: print single conversion also in uV
cmd: adc: add an option to scan some or all available
Add new option to 'adc' command to do a single scan of:
- some channel(s), using mask argument
- all channels available on an ADC device (when optional mask is omitted).
Signed-off-by: Fabrice Gasnier
---
cmd/adc.c | 55 ++-
1 fi
Use newly introduced adc_raw_to_uV() API to print conversion result
both as raw value and micro-volts by default.
Signed-off-by: Fabrice Gasnier
---
cmd/adc.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/cmd/adc.c b/cmd/adc.c
index 39f61c1..7360a96 100644
--- a
On 10/19/2018 05:25 AM, Simon Glass wrote:
> Hi Fabrice,
>
> On 11 October 2018 at 10:00, Fabrice Gasnier wrote:
>> Enhance adc info command to report also the channel mask.
>>
>> Signed-off-by: Fabrice Gasnier
>> ---
>>
>> cmd/adc.c | 6 +-
&g
Use newly introduced adc_raw_to_uV() API to print conversion result
both as raw value and micro-volts by default.
Signed-off-by: Fabrice Gasnier
---
Changes in v2: None
cmd/adc.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/cmd/adc.c b/cmd/adc.c
index 39f61c1
Add two functions to ADC uclass's:
- adc_raw_to_uV() to ease ADC raw value conversion to microvolts
- adc_channel_mask() to get channels on consumer side
Signed-off-by: Fabrice Gasnier
---
Changes in v2:
- Add calls to the new functions in test/dm/adc.c as suggested by Simon
drivers/ad
Enhance adc info command to report also the channel mask.
Signed-off-by: Fabrice Gasnier
---
Changes in v2: None
cmd/adc.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/cmd/adc.c b/cmd/adc.c
index c8857ed..39f61c1 100644
--- a/cmd/adc.c
+++ b/cmd/adc.c
@@ -35,7
Add new option to 'adc' command to do a single scan of:
- some channel(s), using mask argument
- all channels available on an ADC device (when optional mask is omitted).
Signed-off-by: Fabrice Gasnier
---
Changes in v2: None
cmd/
enhance 'adc' command to scan once several or all channels
Changes in v2:
- Add calls to the new functions in test/dm/adc.c as suggested by Simon
Fabrice Gasnier (4):
dm: adc: add uclass's mask and conversion helpers
cmd: adc: add info on channel mask
cmd: adc: print single
els > adc->cfg->max_channels) {
>^
> Signed-off-by: Patrice Chotard
>
> Signed-off-by: Patrick Delaunay
Hi Patrick,
Acked-by: Fabrice Gasnier
Thanks,
Fabrice
> ---
>
> drivers/adc/stm32-adc.c | 13 +++--
> 1 file changed, 7 insertions(+
rd
>
> Signed-off-by: Patrick Delaunay
Hi Patrick,
Acked-by: Fabrice Gasnier
Thanks,
Fabrice
> ---
>
> drivers/adc/stm32-adc-core.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/adc/stm32-adc-core.c b/drivers/adc/stm32-adc-core.c
Linux dwc2 driver.
Signed-off-by: Fabrice Gasnier
---
drivers/usb/gadget/dwc2_udc_otg_regs.h | 6 +-
drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c | 14 --
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/gadget/dwc2_udc_otg_regs.h
b/drivers/usb/gadget
82 +
> 4 files changed, 144 insertions(+)
> create mode 100644 arch/arm/mach-stm32mp/include/mach/timers.h
> create mode 100644 arch/arm/mach-stm32mp/timers.c
Hi Cheick,
Reviewed-by: Fabrice Gasnier
Thanks,
Best Regards,
Fabrice
>
> diff --git a/arch/arm/m
: Cheick Traore
> ---
>
> drivers/pwm/Kconfig | 8 ++
> drivers/pwm/Makefile| 1 +
> drivers/pwm/pwm-stm32.c | 202
> 3 files changed, 211 insertions(+)
> create mode 100644 drivers/pwm/pwm-stm32.c
Hi Cheick,
Reviewed-by: Fabrice Gas
> (no changes since v1)
>
> arch/arm/dts/stm32mp13-pinctrl.dtsi | 15 +++
> arch/arm/dts/stm32mp135f-dk.dts | 14 ++
> 2 files changed, 29 insertions(+)
Hi Cheick,
Reviewed-by: Fabrice Gasnier
Thanks,
Best Regards,
Fabrice
>
> diff --git a/arch
d, 214 insertions(+)
> create mode 100644 drivers/pwm/pwm-stm32.c
Hi Cheick,
Reviewed-by: Fabrice Gasnier
Thanks,
Best Regards,
Fabrice
>
> diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
> index 6e79868d0ef..de312656746 100644
> --- a/drivers/pwm/Kconfig
> +++ b
47 matches
Mail list logo