devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
To: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
Cc: "Rob Herring" <robh+dt@kernel.org>,
	"Andreas Färber" <afaerber@suse.de>,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 16/18] arm: dts: owl-s500-roseapplepi: Add uSD support
Date: Sat, 5 Dec 2020 11:31:25 +0530	[thread overview]
Message-ID: <20201205055901.GA3730@thinkpad> (raw)
In-Reply-To: <20201129183532.GA748744@BV030612LT>

On Sun, Nov 29, 2020 at 08:35:32PM +0200, Cristian Ciocaltea wrote:
> On Sat, Nov 28, 2020 at 01:08:51PM +0530, Manivannan Sadhasivam wrote:
> > On Fri, Nov 20, 2020 at 01:56:10AM +0200, Cristian Ciocaltea wrote:
> > > Add uSD support for RoseapplePi SBC using a fixed regulator as a
> > > temporary solution until PMIC support becomes available.
> > > 
> > > Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
> > > ---
> > >  arch/arm/boot/dts/owl-s500-roseapplepi.dts | 50 ++++++++++++++++++++++
> > >  1 file changed, 50 insertions(+)
> > > 
> > > diff --git a/arch/arm/boot/dts/owl-s500-roseapplepi.dts b/arch/arm/boot/dts/owl-s500-roseapplepi.dts
> > > index 800edf5d2d12..fe9ae3619422 100644
> > > --- a/arch/arm/boot/dts/owl-s500-roseapplepi.dts
> > > +++ b/arch/arm/boot/dts/owl-s500-roseapplepi.dts
> > > @@ -14,6 +14,7 @@ / {
> > >  	model = "Roseapple Pi";
> > >  
> > >  	aliases {
> > > +		mmc0 = &mmc0;
> > >  		serial2 = &uart2;
> > >  	};
> > >  
> > > @@ -25,6 +26,55 @@ memory@0 {
> > >  		device_type = "memory";
> > >  		reg = <0x0 0x80000000>; /* 2GB */
> > >  	};
> > > +
> > > +	/* Fixed regulator used in the absence of PMIC */
> > > +	sd_vcc: sd-vcc {
> > 
> > Is this the exact name in the schematics?
> 
> Yes, it is referred as "SD_VCC". Once the support for the ATC260x PMIC
> will be available, the following item will be present in the regulators
> list:
> 
>   sd_vcc: switchldo1 {
> 	regulator-name = "SD_VCC";
> 	regulator-min-microvolt = <3000000>;
> 	regulator-max-microvolt = <3300000>;
> 	regulator-always-on;
> 	regulator-boot-on;
>   };

okay, looks fine to me.

Thanks,
Mani

> 
> Thanks,
> Cristi
> 
> > Thanks,
> > Mani
> > 
> > > +		compatible = "regulator-fixed";
> > > +		regulator-name = "fixed-3.1V";
> > > +		regulator-min-microvolt = <3100000>;
> > > +		regulator-max-microvolt = <3100000>;
> > > +		regulator-always-on;
> > > +	};
> > > +};
> > > +
> > > +&pinctrl {
> > > +	mmc0_pins: mmc0-pins {
> > > +		pinmux {
> > > +			groups = "sd0_d0_mfp", "sd0_d1_mfp", "sd0_d2_d3_mfp",
> > > +				 "sd0_cmd_mfp", "sd0_clk_mfp";
> > > +			function = "sd0";
> > > +		};
> > > +
> > > +		drv-pinconf {
> > > +			groups = "sd0_d0_d3_drv", "sd0_cmd_drv", "sd0_clk_drv";
> > > +			drive-strength = <8>;
> > > +		};
> > > +
> > > +		bias0-pinconf {
> > > +			pins = "sd0_d0", "sd0_d1", "sd0_d2",
> > > +			       "sd0_d3", "sd0_cmd";
> > > +			bias-pull-up;
> > > +		};
> > > +
> > > +		bias1-pinconf {
> > > +			pins = "sd0_clk";
> > > +			bias-pull-down;
> > > +		};
> > > +	};
> > > +};
> > > +
> > > +/* uSD */
> > > +&mmc0 {
> > > +	status = "okay";
> > > +	pinctrl-names = "default";
> > > +	pinctrl-0 = <&mmc0_pins>;
> > > +	no-sdio;
> > > +	no-mmc;
> > > +	no-1-8-v;
> > > +	cd-gpios = <&pinctrl 117 GPIO_ACTIVE_LOW>;
> > > +	bus-width = <4>;
> > > +	vmmc-supply = <&sd_vcc>;
> > > +	vqmmc-supply = <&sd_vcc>;
> > >  };
> > >  
> > >  &twd_timer {
> > > -- 
> > > 2.29.2
> > > 

  reply	other threads:[~2020-12-05  6:02 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-19 23:55 [PATCH v2 00/18] Add CMU/RMU/DMA/MMC/I2C support for Actions Semi S500 SoCs Cristian Ciocaltea
2020-11-19 23:55 ` [PATCH v2 01/18] arm: dts: owl-s500: Add Clock Management Unit Cristian Ciocaltea
2020-11-28  7:22   ` Manivannan Sadhasivam
2020-11-29 17:55     ` Cristian Ciocaltea
2020-11-19 23:55 ` [PATCH v2 02/18] arm: dts: owl-s500: Set CMU clocks for UARTs Cristian Ciocaltea
2020-11-28  7:25   ` Manivannan Sadhasivam
2020-11-29 18:09     ` Cristian Ciocaltea
2020-11-19 23:55 ` [PATCH v2 03/18] arm: dts: owl-s500: Add Reset controller Cristian Ciocaltea
2020-11-28  7:25   ` Manivannan Sadhasivam
2020-11-19 23:55 ` [PATCH v2 04/18] dt-bindings: dma: owl: Add compatible string for Actions Semi S500 SoC Cristian Ciocaltea
2020-11-28  7:29   ` Manivannan Sadhasivam
2020-11-28  7:29   ` Manivannan Sadhasivam
2020-11-29 18:15     ` Cristian Ciocaltea
2020-12-07 22:11   ` Rob Herring
2020-12-07 22:56     ` Cristian Ciocaltea
2020-11-19 23:56 ` [PATCH v2 06/18] arm: dts: owl-s500: Add DMA controller Cristian Ciocaltea
2020-11-28  7:31   ` Manivannan Sadhasivam
2020-11-19 23:56 ` [PATCH v2 07/18] arm: dts: owl-s500: Add pinctrl & GPIO support Cristian Ciocaltea
2020-11-28  7:32   ` Manivannan Sadhasivam
2020-11-19 23:56 ` [PATCH v2 08/18] dt-bindings: mmc: owl: Add compatible string for Actions Semi S500 SoC Cristian Ciocaltea
2020-11-24 14:25   ` Ulf Hansson
2020-11-19 23:56 ` [PATCH v2 09/18] arm: dts: owl-s500: Add MMC support Cristian Ciocaltea
2020-11-24 14:25   ` Ulf Hansson
2020-11-24 14:53     ` Cristian Ciocaltea
2020-11-28  7:33   ` Manivannan Sadhasivam
2020-11-19 23:56 ` [PATCH v2 10/18] dt-bindings: i2c: owl: Convert Actions Semi Owl binding to a schema Cristian Ciocaltea
2020-12-07 22:12   ` Rob Herring
2020-12-07 22:58     ` Cristian Ciocaltea
2020-12-09 20:22   ` Wolfram Sang
2020-11-19 23:56 ` [PATCH v2 13/18] arm: dts: owl-s500: Add I2C support Cristian Ciocaltea
2020-11-28  7:35   ` Manivannan Sadhasivam
2020-12-09 20:25     ` Wolfram Sang
2020-12-10  3:33       ` Manivannan Sadhasivam
2020-11-19 23:56 ` [PATCH v2 14/18] arm: dts: owl-s500: Add SIRQ controller Cristian Ciocaltea
2020-11-28  7:35   ` Manivannan Sadhasivam
2020-11-19 23:56 ` [PATCH v2 15/18] arm: dts: owl-s500-roseapplepi: Use UART clock from CMU Cristian Ciocaltea
2020-11-28  7:36   ` Manivannan Sadhasivam
2020-11-29 18:26     ` Cristian Ciocaltea
2020-11-19 23:56 ` [PATCH v2 16/18] arm: dts: owl-s500-roseapplepi: Add uSD support Cristian Ciocaltea
2020-11-28  7:38   ` Manivannan Sadhasivam
2020-11-29 18:35     ` Cristian Ciocaltea
2020-12-05  6:01       ` Manivannan Sadhasivam [this message]
2020-11-19 23:56 ` [PATCH v2 17/18] arm: dts: owl-s500-roseapplepi: Add I2C pinctrl configuration Cristian Ciocaltea
2020-11-28  7:41   ` Manivannan Sadhasivam
2020-11-29 19:35     ` Cristian Ciocaltea
2020-12-05  6:11 ` [PATCH v2 00/18] Add CMU/RMU/DMA/MMC/I2C support for Actions Semi S500 SoCs Manivannan Sadhasivam
2020-12-05 16:29   ` Cristian Ciocaltea

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201205055901.GA3730@thinkpad \
    --to=manivannan.sadhasivam@linaro.org \
    --cc=afaerber@suse.de \
    --cc=cristian.ciocaltea@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-actions@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).