mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: <Conor.Dooley@microchip.com>
To: <Shravan.Chippa@microchip.com>
Cc: <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>,
	<Daire.McNamara@microchip.com>, <Shravan.Chippa@microchip.com>,
	<paul.walmsley@sifive.com>, <palmer@dabbelt.com>,
	<aou@eecs.berkeley.edu>, <Cyril.Jean@microchip.com>,
	<Lewis.Hanly@microchip.com>, <Praveen.Kumar@microchip.com>,
	<wg@aries-embedded.de>, <Hugh.Breslin@microchip.com>,
	<devicetree@vger.kernel.org>, <linux-riscv@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4 10/10] riscv: dts: microchip: add a devicetree for aries' m100pfsevp
Date: Thu, 8 Sep 2022 12:05:37 +0000	[thread overview]
Message-ID: <f5eab239-3814-c2ce-e0b5-42397e8c1755@microchip.com> (raw)
In-Reply-To: <CO6PR11MB5604046550E3D74CBBC8E94681409@CO6PR11MB5604.namprd11.prod.outlook.com>

Hey Shravan,
Please don't drop the lists etc from CC.

On 08/09/2022 12:29, shravan Chippa - I35088 wrote:>
>> -----Original Message-----
>> From: Conor Dooley <conor.dooley@microchip.com>
>> Sent: 08 September 2022 04:47 PM
>> To: Rob Herring <robh+dt@kernel.org>; Krzysztof Kozlowski
>> <krzysztof.kozlowski+dt@linaro.org>; Conor Dooley - M52691
>> <Conor.Dooley@microchip.com>; Daire McNamara - X61553
>> <Daire.McNamara@microchip.com>; shravan Chippa - I35088
>> <Shravan.Chippa@microchip.com>
>> Cc: Paul Walmsley <paul.walmsley@sifive.com>; Palmer Dabbelt
>> <palmer@dabbelt.com>; Albert Ou <aou@eecs.berkeley.edu>; Cyril Jean -
>> M31571 <Cyril.Jean@microchip.com>; Lewis Hanly - M34782
>> <Lewis.Hanly@microchip.com>; Praveen Kumar - I30718
>> <Praveen.Kumar@microchip.com>; Wolfgang Grandegger <wg@aries-
>> embedded.de>; Hugh Breslin - M31864 <Hugh.Breslin@microchip.com>;
>> devicetree@vger.kernel.org; linux-riscv@lists.infradead.org; linux-
>> kernel@vger.kernel.org
>> Subject: [PATCH v4 10/10] riscv: dts: microchip: add a devicetree for aries'
>> m100pfsevp
>>
>> Add device trees for both configs used by the Aries Embedded M100PFSEVP.
>> The M100OFSEVP consists of a MPFS250T on a SOM,
>> featuring:
>> - 2GB DDR4 SDRAM dedicated to the HMS
>> - 512MB DDR4 SDRAM dedicated to the FPGA
>> - 32 MB SPI NOR Flash
>> - 4 GByte eMMC
>>
>> and a carrier board with:
>> - 2x Gigabit Ethernet
>> - USB
>> - 2x UART
>> - 2x CAN
>> - TFT connector
>> - HSMC extension connector
>> - 3x PMOD extension connectors
>> - microSD-card slot
>>
>> Link: https://www.aries-embedded.com/polarfire-soc-fpga-microsemi-
>> m100pfs-som-mpfs025t-pcie-serdes
>> Link: https://www.aries-embedded.com/evaluation-kit/fpga/polarfire-
>> microchip-soc-fpga-m100pfsevp-riscv-hsmc-pmod
>> Link: https://downloads.aries-
>> embedded.de/products/M100PFS/Hardware/M100PFSEVP-Schematics.pdf
>> Co-developed-by: Wolfgang Grandegger <wg@aries-embedded.de>
>> Signed-off-by: Wolfgang Grandegger <wg@aries-embedded.de>
>> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>

>> diff --git a/arch/riscv/boot/dts/microchip/mpfs-m100pfsevp.dts
>> b/arch/riscv/boot/dts/microchip/mpfs-m100pfsevp.dts
>> new file mode 100644
>> index 000000000000..184cb36a175e
>> --- /dev/null
>> +++ b/arch/riscv/boot/dts/microchip/mpfs-m100pfsevp.dts
>> @@ -0,0 +1,179 @@
>> +// SPDX-License-Identifier: GPL-2.0
>> +/*
>> + * Original all-in-one devicetree:
>> + * Copyright (C) 2021-2022 - Wolfgang Grandegger <wg@aries-
>> embedded.de>
>> + * Rewritten to use includes:
>> + * Copyright (C) 2022 - Conor Dooley <conor.dooley@microchip.com>  */
>> +/dts-v1/;
>> +
>> +#include "mpfs.dtsi"
>> +#include "mpfs-m100pfs-fabric.dtsi"
>> +
>> +/* Clock frequency (in Hz) of the rtcclk */
>> +#define MTIMER_FREQ	1000000
>> +
>> +/ {
>> +	model = "Aries Embedded M100PFEVPS";
>> +	compatible = "aries,m100pfsevp", "microchip,mpfs";
>> +
>> +	aliases {
>> +		ethernet0 = &mac0;
>> +		ethernet1 = &mac1;
>> +		serial0 = &mmuart0;
>> +		serial1 = &mmuart1;
>> +		serial2 = &mmuart2;
>> +		serial3 = &mmuart3;
>> +		serial4 = &mmuart4;
>> +		gpio0 = &gpio0;
>> +		gpio1 = &gpio2;
>> +	};
>> +
>> +	chosen {
>> +		stdout-path = "serial1:115200n8";
>> +	};
>> +
>> +	cpus {
>> +		timebase-frequency = <MTIMER_FREQ>;
>> +	};
>> +
>> +	ddrc_cache_lo: memory@80000000 {
>> +		device_type = "memory";
>> +		reg = <0x0 0x80000000 0x0 0x40000000>;
>> +	};
>> +	ddrc_cache_hi: memory@1040000000 {
>> +		device_type = "memory";
>> +		reg = <0x10 0x40000000 0x0 0x40000000>;
>> +	};
>> +};
>> +
>> +&can0 {
>> +	status = "okay";
>> +};
>> +
>> +&i2c0 {
>> +	status = "okay";
>> +};
>> +
>> +&i2c1 {
>> +	status = "okay";
>> +};
>> +
>> +&gpio0 {
>> +	interrupts = <13>, <14>, <15>, <16>,
>> +		     <17>, <18>, <19>, <20>,
>> +		     <21>, <22>, <23>, <24>,
>> +		     <25>, <26>;
> 
> Commented bellow...
> 
>> +	ngpios = <14>;
>> +	status = "okay";
>> +
>> +	pmic-irq-hog {
>> +		gpio-hog;
>> +		gpios = <13 0>;
>> +		input;
>> +	};
>> +
>> +	/* Set to low for eMMC, high for SD-card */
>> +	mmc-sel-hog {
>> +		gpio-hog;
>> +		gpios = <12 0>;
>> +		output-high;
>> +	};
>> +};
>> +
>> +&gpio2 {
>> +	interrupts = <13>, <14>, <15>, <16>,
>> +		     <17>, <18>, <19>, <20>,
>> +		     <21>, <22>, <23>, <24>,
>> +		     <25>, <26>, <27>, <28>,
>> +		     <29>, <30>, <31>, <32>,
>> +		     <33>, <34>, <35>, <36>,
>> +		     <37>, <38>, <39>, <40>,
>> +		     <41>, <42>, <43>, <44>;
>> +	status = "okay";
>> +};
> 
> Same interrupt numbers GPIO2 and GPIO0?
> 
> As per my understanding, GPIO2 and GPIO0 are using maxed interrupt lines
> Only one bank GPIO0/GPIO2 can work in direct interrupt mode
> other should be in non-direct interrupt mode.

Yeah, good spot - this cannot be correct. I had a look in the HSS and there does
not appear to be anything setting the GPIO_INTERRUPT_FAB_CR for the m100pfsevp
target & therefore would be at its default value of 0 - so GPIO2 should be using
interrupt 53 for all GPIOs.
Thanks,
Conor.

  
>> +
>> +&mac0 {
>> +	status = "okay";
>> +	phy-mode = "gmii";
>> +	phy-handle = <&phy0>;
>> +	phy0: ethernet-phy@0 {
>> +		reg = <0>;
>> +	};
>> +};
>> +
>> +&mac1 {
>> +	status = "okay";
>> +	phy-mode = "gmii";
>> +	phy-handle = <&phy1>;
>> +	phy1: ethernet-phy@0 {
>> +		reg = <0>;
>> +	};
>> +};
>> +
>> +&mbox {
>> +	status = "okay";
>> +};
>> +
>> +&mmc {
>> +	max-frequency = <50000000>;
>> +	bus-width = <4>;
>> +	cap-mmc-highspeed;
>> +	cap-sd-highspeed;
>> +	no-1-8-v;
>> +	sd-uhs-sdr12;
>> +	sd-uhs-sdr25;
>> +	sd-uhs-sdr50;
>> +	sd-uhs-sdr104;
>> +	disable-wp;
>> +	status = "okay";
>> +};
>> +
>> +&mmuart1 {
>> +	status = "okay";
>> +};
>> +
>> +&mmuart2 {
>> +	status = "okay";
>> +};
>> +
>> +&mmuart3 {
>> +	status = "okay";
>> +};
>> +
>> +&mmuart4 {
>> +	status = "okay";
>> +};
>> +
>> +&pcie {
>> +	status = "okay";
>> +};
>> +
>> +&qspi {
>> +	status = "okay";
>> +};
>> +
>> +&refclk {
>> +	clock-frequency = <125000000>;
>> +};
>> +
>> +&rtc {
>> +	status = "okay";
>> +};
>> +
>> +&spi0 {
>> +	status = "okay";
>> +};
>> +
>> +&spi1 {
>> +	status = "okay";
>> +};
>> +
>> +&syscontroller {
>> +	status = "okay";
>> +};
>> +
>> +&usb {
>> +	status = "okay";
>> +	dr_mode = "host";
>> +};
>> --
>> 2.36.1
> 


      parent reply	other threads:[~2022-09-08 12:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-08 11:17 [PATCH v4 00/10] New PolarFire SoC devkit devicetrees & 22.09 reference design updates Conor Dooley
2022-09-08 11:17 ` [PATCH v4 01/10] dt-bindings: riscv: microchip: document icicle reference design Conor Dooley
2022-09-08 11:17 ` [PATCH v4 02/10] dt-bindings: riscv: microchip: document the aries m100pfsevp Conor Dooley
2022-09-08 11:17 ` [PATCH v4 03/10] dt-bindings: riscv: microchip: document the sev kit Conor Dooley
2022-09-08 11:17 ` [PATCH v4 04/10] riscv: dts: microchip: add pci dma ranges for the icicle kit Conor Dooley
2022-09-08 11:17 ` [PATCH v4 05/10] riscv: dts: microchip: move the mpfs' pci node to -fabric.dtsi Conor Dooley
2022-09-08 11:17 ` [PATCH v4 06/10] riscv: dts: microchip: icicle: update pci address properties Conor Dooley
2022-09-08 11:17 ` [PATCH v4 07/10] riscv: dts: microchip: icicle: re-jig fabric peripheral addresses Conor Dooley
2022-09-08 11:17 ` [PATCH v4 08/10] riscv: dts: microchip: reduce the fic3 clock rate Conor Dooley
2022-09-08 11:17 ` [PATCH v4 09/10] riscv: dts: microchip: add sevkit device tree Conor Dooley
2022-09-08 11:17 ` [PATCH v4 10/10] riscv: dts: microchip: add a devicetree for aries' m100pfsevp Conor Dooley
     [not found]   ` <CO6PR11MB5604046550E3D74CBBC8E94681409@CO6PR11MB5604.namprd11.prod.outlook.com>
2022-09-08 12:05     ` Conor.Dooley [this message]

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=f5eab239-3814-c2ce-e0b5-42397e8c1755@microchip.com \
    --to=conor.dooley@microchip.com \
    --cc=Cyril.Jean@microchip.com \
    --cc=Daire.McNamara@microchip.com \
    --cc=Hugh.Breslin@microchip.com \
    --cc=Lewis.Hanly@microchip.com \
    --cc=Praveen.Kumar@microchip.com \
    --cc=Shravan.Chippa@microchip.com \
    --cc=aou@eecs.berkeley.edu \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@dabbelt.com \
    --cc=paul.walmsley@sifive.com \
    --cc=robh+dt@kernel.org \
    --cc=wg@aries-embedded.de \
    /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

all inboxes | Powered by JetHome®