From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DEAAC433DF for ; Thu, 14 May 2020 05:18:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B7F9B206F1 for ; Thu, 14 May 2020 05:18:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hMnQnU6p"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FmesEGel" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B7F9B206F1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=asjQp7EG/J3BSluHPOZdctYCnLnv2fPKioEJhq6HGUc=; b=hMnQnU6pezezLE Yjqq1W1pjQAoXRsjFuvUg5v+E9CJAf/vltHb2mRdcdaTnhUDbaLekIvkwx99uZ5Qww7bTshiXkQ6s XTYLlqU9Py9wJSTJEdSTVv1EdRvGe18E6dEjxNYCY5TiAcE5Ch5wOYVE0eznWGHwIlmwa78D/dN4M vNHFr/F3jgsgNoYk15RNbPZVK99A4w9JQ5cK+b7n4dx96nNNDuvH/crphtVltBPytc1TPSOzY6qUw 3JQocSrmbBauQ5YAqc61T3DCSPqmTT+fl3xYRSveersFURo4Akk61iPgBJyYFwpSYUwqY8Hor/3Ee UrB01EN3own+fdhpT68A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jZ6GR-0008RO-ER; Thu, 14 May 2020 05:18:35 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jZ6GM-0008Ql-1O for linux-arm-kernel@lists.infradead.org; Thu, 14 May 2020 05:18:33 +0000 Received: by mail-pf1-x444.google.com with SMTP id 23so802068pfy.8 for ; Wed, 13 May 2020 22:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=kZBZK2P/+84IoaEHOb8CAY8NQ5IRKPWN4NNwXmRyKew=; b=FmesEGellKXZ4qa9SY8Lr9xxinFy7TuyEXCMKLwJGOD00lYEiay6N/BoJmzoTMUk0u MGNxYix3pqRcwJuwnP/i7bQ4p0QziNyVMWmCsS5HONzHlnoFpLli6oO9zjD7zhVr/qBB K+gm1PGM4XzYLvp4xct3CPaw+7CZd+Ec7DplzD/kPPyrE3H/sDq8eASuwae0orQyTD1G RV/a+veLrgHkuJF3AkhlV+lML0arxpm8yyByCketmLJrwuXRvOuAP+JYXsE1+Sx/WWpH Sj4VZh4BA8aHSMMwSYALFQLvWjRffq4d2dZDGj+U2fd4I8vFNRQU6WMxS1ZvRTau9BNp y4qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=kZBZK2P/+84IoaEHOb8CAY8NQ5IRKPWN4NNwXmRyKew=; b=fzZj3bX2pVV+1j++VIbDopryG0Hp45aWvvN7zKxydATRabH17L9e7cLmumJjSKWxVm q325aLblVDffSRLAupHbEUQenyzpwsWAfCUyfr27+4l1pjfbXUpDM6Nj3MtugOKFSRWU 9mhk1uFMRlt1TFtaGdruh7ykd5giXUSXd7tauUkCov3DAOQzLBr1I5n6Jm6emgVkS/67 oIFKgaeyDeydGqpV9fFg0lJSiUrQyucC723+1EkuSy00QAxEPuSGwyHDp++8CDQ9gi9F 0B0JnHwXMO6VMXT37/wz30/7JhDlCMpVrKeCCuLiYqc17H2/SbjK2DrXUf981WojzKNi kVFQ== X-Gm-Message-State: AOAM530pVIExPSq20aVN8FexoKPDx90RusO0p91XIMASsb3CnkpkytVC uzYkgm56r0oWvSX57CIST6k2 X-Google-Smtp-Source: ABdhPJwda5IhHxQkRNgqRAe1b+aI+7FlVu5EJ6QHFOKjJeOc9LP0R9var3Atr5+MrKJ/M0uWJj0tmA== X-Received: by 2002:aa7:80cf:: with SMTP id a15mr2918701pfn.124.1589433508792; Wed, 13 May 2020 22:18:28 -0700 (PDT) Received: from Mani-XPS-13-9360 ([2409:4072:406:efde:ac17:556c:1ce3:639f]) by smtp.gmail.com with ESMTPSA id e21sm1134616pga.71.2020.05.13.22.18.23 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 May 2020 22:18:28 -0700 (PDT) Date: Thu, 14 May 2020 10:48:20 +0530 From: Manivannan Sadhasivam To: Marek Vasut Subject: Re: [PATCH V3 4/4] ARM: dts: stm32: Split Avenger96 into DHCOR SoM and Avenger96 board Message-ID: <20200514051820.GB2877@Mani-XPS-13-9360> References: <20200513181020.8225-1-marex@denx.de> <20200513181020.8225-4-marex@denx.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200513181020.8225-4-marex@denx.de> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200513_221830_094329_A65034E6 X-CRM114-Status: GOOD ( 20.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Torgue , Patrice Chotard , Patrick Delaunay , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, May 13, 2020 at 08:10:20PM +0200, Marek Vasut wrote: > The Avenger96 is in fact an assembly of DH Electronics DHCOR SoM on top > of an Avenger96 reference board. The DHCOR SoM can be populated with any > STM32MP15xx. Split the DTs to reflect this such that the common SoM and > Avenger96 parts are now in stm32mp15xx-dhcor-*dtsi and a specific example > implementation of STM32MP157A SoM and Avenger96 board is separated into > stm32mp157a-dhcor-*dts* . The stm32mp157a-avenger96.dts is retained for > the sake of backward naming compatibility. > > Signed-off-by: Marek Vasut LGTM. Reviewed-by: Manivannan Sadhasivam Thanks, Mani > Cc: Alexandre Torgue > Cc: Manivannan Sadhasivam > Cc: Maxime Coquelin > Cc: Patrice Chotard > Cc: Patrick Delaunay > Cc: linux-stm32@st-md-mailman.stormreply.com > To: linux-arm-kernel@lists.infradead.org > --- > V2: - Drop the stm32mp157a-dhcor-som.dtsi , as it was just include statements > - Add comment about what SoM+Board combination is currently supported > V3: No change > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/stm32mp157a-avenger96.dts | 618 +----------------- > .../boot/dts/stm32mp157a-dhcor-avenger96.dts | 38 ++ > .../boot/dts/stm32mp15xx-dhcor-avenger96.dtsi | 401 ++++++++++++ > .../arm/boot/dts/stm32mp15xx-dhcor-io1v8.dtsi | 23 + > arch/arm/boot/dts/stm32mp15xx-dhcor-som.dtsi | 209 ++++++ > 6 files changed, 675 insertions(+), 615 deletions(-) > create mode 100644 arch/arm/boot/dts/stm32mp157a-dhcor-avenger96.dts > create mode 100644 arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi > create mode 100644 arch/arm/boot/dts/stm32mp15xx-dhcor-io1v8.dtsi > create mode 100644 arch/arm/boot/dts/stm32mp15xx-dhcor-som.dtsi > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index f43467b02bcd..d0f6c5838568 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1029,6 +1029,7 @@ dtb-$(CONFIG_ARCH_STM32) += \ > stm32h743i-eval.dtb \ > stm32h743i-disco.dtb \ > stm32mp157a-avenger96.dtb \ > + stm32mp157a-dhcor-avenger96.dtb \ > stm32mp157a-dk1.dtb \ > stm32mp157c-dhcom-pdk2.dtb \ > stm32mp157c-dk2.dtb \ > diff --git a/arch/arm/boot/dts/stm32mp157a-avenger96.dts b/arch/arm/boot/dts/stm32mp157a-avenger96.dts > index a9f3ba9da170..8a6eaca994d1 100644 > --- a/arch/arm/boot/dts/stm32mp157a-avenger96.dts > +++ b/arch/arm/boot/dts/stm32mp157a-avenger96.dts > @@ -2,622 +2,10 @@ > /* > * Copyright (C) Linaro Ltd 2019 - All Rights Reserved > * Author: Manivannan Sadhasivam > + * Copyright (C) 2020 Marek Vasut > */ > > /dts-v1/; > > -#include "stm32mp157.dtsi" > -#include "stm32mp15-pinctrl.dtsi" > -#include "stm32mp15xxac-pinctrl.dtsi" > -#include > -#include > - > -/ { > - model = "Arrow Electronics STM32MP157A Avenger96 board"; > - compatible = "arrow,stm32mp157a-avenger96", "st,stm32mp157"; > - > - aliases { > - ethernet0 = ðernet0; > - mmc0 = &sdmmc1; > - serial0 = &uart4; > - serial1 = &uart7; > - serial2 = &usart2; > - spi0 = &qspi; > - }; > - > - /* XTal Q1 */ > - cec_clock: clk-cec-fixed { > - #clock-cells = <0>; > - compatible = "fixed-clock"; > - clock-frequency = <24000000>; > - }; > - > - chosen { > - stdout-path = "serial0:115200n8"; > - }; > - > - hdmi-out { > - compatible = "hdmi-connector"; > - type = "a"; > - > - port { > - hdmi_con: endpoint { > - remote-endpoint = <&adv7513_out>; > - }; > - }; > - }; > - > - memory@c0000000 { > - device_type = "memory"; > - reg = <0xc0000000 0x40000000>; > - }; > - > - led { > - compatible = "gpio-leds"; > - led1 { > - label = "green:user0"; > - gpios = <&gpioz 7 GPIO_ACTIVE_HIGH>; > - linux,default-trigger = "heartbeat"; > - default-state = "off"; > - }; > - > - led2 { > - label = "green:user1"; > - gpios = <&gpiof 3 GPIO_ACTIVE_HIGH>; > - linux,default-trigger = "mmc0"; > - default-state = "off"; > - }; > - > - led3 { > - label = "green:user2"; > - gpios = <&gpiog 0 GPIO_ACTIVE_HIGH>; > - linux,default-trigger = "mmc1"; > - default-state = "off"; > - }; > - > - led4 { > - label = "green:user3"; > - gpios = <&gpiog 1 GPIO_ACTIVE_HIGH>; > - linux,default-trigger = "none"; > - default-state = "off"; > - panic-indicator; > - }; > - }; > - > - sd_switch: regulator-sd_switch { > - compatible = "regulator-gpio"; > - regulator-name = "sd_switch"; > - regulator-min-microvolt = <1800000>; > - regulator-max-microvolt = <2900000>; > - regulator-type = "voltage"; > - regulator-always-on; > - > - gpios = <&gpioi 5 GPIO_ACTIVE_HIGH>; > - gpios-states = <0>; > - states = <1800000 0x1>, > - <2900000 0x0>; > - }; > - > - sound { > - compatible = "audio-graph-card"; > - label = "STM32MP1-AV96-HDMI"; > - dais = <&sai2a_port>; > - status = "okay"; > - }; > - > - /* Enpirion EP3A8LQI U2 on the DHCOR */ > - vdd_io: regulator-buck-io { > - compatible = "regulator-fixed"; > - regulator-name = "buck-io"; > - regulator-min-microvolt = <1800000>; > - regulator-max-microvolt = <1800000>; > - regulator-always-on; > - regulator-boot-on; > - vin-supply = <&vdd>; > - }; > - > - wlan_pwr: regulator-wlan { > - compatible = "regulator-fixed"; > - > - regulator-name = "wl-reg"; > - regulator-min-microvolt = <3300000>; > - regulator-max-microvolt = <3300000>; > - > - gpios = <&gpioz 3 GPIO_ACTIVE_HIGH>; > - enable-active-high; > - }; > -}; > - > -&adc { > - pinctrl-names = "default"; > - pinctrl-0 = <&adc12_ain_pins_b>; > - vdd-supply = <&vdd>; > - vdda-supply = <&vdda>; > - vref-supply = <&vdda>; > - status = "okay"; > - > - adc1: adc@0 { > - st,adc-channels = <0 1 6>; > - st,min-sample-time-nsecs = <5000>; > - status = "okay"; > - }; > - > - adc2: adc@100 { > - st,adc-channels = <0 1 2>; > - st,min-sample-time-nsecs = <5000>; > - status = "okay"; > - }; > -}; > - > -ðernet0 { > - status = "okay"; > - pinctrl-0 = <ðernet0_rgmii_pins_c>; > - pinctrl-1 = <ðernet0_rgmii_sleep_pins_c>; > - pinctrl-names = "default", "sleep"; > - phy-mode = "rgmii"; > - max-speed = <1000>; > - phy-handle = <&phy0>; > - > - mdio0 { > - #address-cells = <1>; > - #size-cells = <0>; > - compatible = "snps,dwmac-mdio"; > - reset-gpios = <&gpioz 2 GPIO_ACTIVE_LOW>; > - reset-delay-us = <1000>; > - > - phy0: ethernet-phy@7 { > - reg = <7>; > - > - rxc-skew-ps = <1500>; > - rxdv-skew-ps = <540>; > - rxd0-skew-ps = <420>; > - rxd1-skew-ps = <420>; > - rxd2-skew-ps = <420>; > - rxd3-skew-ps = <420>; > - > - txc-skew-ps = <1440>; > - txen-skew-ps = <540>; > - txd0-skew-ps = <420>; > - txd1-skew-ps = <420>; > - txd2-skew-ps = <420>; > - txd3-skew-ps = <420>; > - }; > - }; > -}; > - > -&i2c1 { /* X6 I2C1 */ > - pinctrl-names = "default"; > - pinctrl-0 = <&i2c1_pins_b>; > - i2c-scl-rising-time-ns = <185>; > - i2c-scl-falling-time-ns = <20>; > - status = "okay"; > - /delete-property/dmas; > - /delete-property/dma-names; > -}; > - > -&i2c2 { /* X6 I2C2 */ > - pinctrl-names = "default"; > - pinctrl-0 = <&i2c2_pins_c>; > - i2c-scl-rising-time-ns = <185>; > - i2c-scl-falling-time-ns = <20>; > - status = "okay"; > - /delete-property/dmas; > - /delete-property/dma-names; > -}; > - > -&i2c4 { > - pinctrl-names = "default"; > - pinctrl-0 = <&i2c4_pins_a>; > - i2c-scl-rising-time-ns = <185>; > - i2c-scl-falling-time-ns = <20>; > - status = "okay"; > - /delete-property/dmas; > - /delete-property/dma-names; > - > - pmic: stpmic@33 { > - compatible = "st,stpmic1"; > - reg = <0x33>; > - interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>; > - interrupt-controller; > - #interrupt-cells = <2>; > - status = "okay"; > - > - regulators { > - compatible = "st,stpmic1-regulators"; > - > - ldo1-supply = <&v3v3>; > - ldo2-supply = <&v3v3>; > - ldo3-supply = <&vdd_ddr>; > - ldo5-supply = <&v3v3>; > - ldo6-supply = <&v3v3>; > - pwr_sw1-supply = <&bst_out>; > - pwr_sw2-supply = <&bst_out>; > - > - vddcore: buck1 { > - regulator-name = "vddcore"; > - regulator-min-microvolt = <1200000>; > - regulator-max-microvolt = <1350000>; > - regulator-always-on; > - regulator-initial-mode = <0>; > - regulator-over-current-protection; > - }; > - > - vdd_ddr: buck2 { > - regulator-name = "vdd_ddr"; > - regulator-min-microvolt = <1350000>; > - regulator-max-microvolt = <1350000>; > - regulator-always-on; > - regulator-initial-mode = <0>; > - regulator-over-current-protection; > - }; > - > - vdd: buck3 { > - regulator-name = "vdd"; > - regulator-min-microvolt = <2900000>; > - regulator-max-microvolt = <2900000>; > - regulator-always-on; > - regulator-initial-mode = <0>; > - regulator-over-current-protection; > - }; > - > - v3v3: buck4 { > - regulator-name = "v3v3"; > - regulator-min-microvolt = <3300000>; > - regulator-max-microvolt = <3300000>; > - regulator-always-on; > - regulator-over-current-protection; > - regulator-initial-mode = <0>; > - }; > - > - vdda: ldo1 { > - regulator-name = "vdda"; > - regulator-min-microvolt = <2900000>; > - regulator-max-microvolt = <2900000>; > - interrupts = ; > - }; > - > - v2v8: ldo2 { > - regulator-name = "v2v8"; > - regulator-min-microvolt = <2800000>; > - regulator-max-microvolt = <2800000>; > - interrupts = ; > - }; > - > - vtt_ddr: ldo3 { > - regulator-name = "vtt_ddr"; > - regulator-min-microvolt = <500000>; > - regulator-max-microvolt = <750000>; > - regulator-always-on; > - regulator-over-current-protection; > - }; > - > - vdd_usb: ldo4 { > - regulator-name = "vdd_usb"; > - interrupts = ; > - }; > - > - vdd_sd: ldo5 { > - regulator-name = "vdd_sd"; > - regulator-min-microvolt = <2900000>; > - regulator-max-microvolt = <2900000>; > - interrupts = ; > - regulator-boot-on; > - }; > - > - v1v8: ldo6 { > - regulator-name = "v1v8"; > - regulator-min-microvolt = <1800000>; > - regulator-max-microvolt = <1800000>; > - interrupts = ; > - regulator-enable-ramp-delay = <300000>; > - }; > - > - vref_ddr: vref_ddr { > - regulator-name = "vref_ddr"; > - regulator-always-on; > - }; > - > - bst_out: boost { > - regulator-name = "bst_out"; > - interrupts = ; > - }; > - > - vbus_otg: pwr_sw1 { > - regulator-name = "vbus_otg"; > - interrupts = ; > - regulator-active-discharge = <1>; > - }; > - > - vbus_sw: pwr_sw2 { > - regulator-name = "vbus_sw"; > - interrupts = ; > - regulator-active-discharge = <1>; > - }; > - }; > - > - onkey { > - compatible = "st,stpmic1-onkey"; > - interrupts = , ; > - interrupt-names = "onkey-falling", "onkey-rising"; > - status = "okay"; > - }; > - > - watchdog { > - compatible = "st,stpmic1-wdt"; > - status = "disabled"; > - }; > - }; > - > - hdmi-transmitter@3d { > - compatible = "adi,adv7513"; > - reg = <0x3d>, <0x2d>, <0x4d>, <0x5d>; > - reg-names = "main", "cec", "edid", "packet"; > - clocks = <&cec_clock>; > - clock-names = "cec"; > - > - avdd-supply = <&v3v3>; > - dvdd-supply = <&v3v3>; > - pvdd-supply = <&v3v3>; > - dvdd-3v-supply = <&v3v3>; > - bgvdd-supply = <&v3v3>; > - > - interrupts = <9 IRQ_TYPE_EDGE_FALLING>; > - interrupt-parent = <&gpiog>; > - > - status = "okay"; > - > - adi,input-depth = <8>; > - adi,input-colorspace = "rgb"; > - adi,input-clock = "1x"; > - adi,input-style = <1>; > - adi,input-justification = "evenly"; > - > - ports { > - #address-cells = <1>; > - #size-cells = <0>; > - > - port@0 { > - reg = <0>; > - adv7513_in: endpoint { > - remote-endpoint = <<dc_ep0_out>; > - }; > - }; > - > - port@1 { > - reg = <1>; > - adv7513_out: endpoint { > - remote-endpoint = <&hdmi_con>; > - }; > - }; > - > - port@2 { > - reg = <2>; > - adv7513_i2s0: endpoint { > - remote-endpoint = <&sai2a_endpoint>; > - }; > - }; > - }; > - }; > - > - eeprom@53 { > - compatible = "atmel,24c02"; > - reg = <0x53>; > - pagesize = <16>; > - }; > -}; > - > -&iwdg2 { > - timeout-sec = <32>; > - status = "okay"; > -}; > - > -<dc { > - pinctrl-names = "default", "sleep"; > - pinctrl-0 = <<dc_pins_d>; > - pinctrl-1 = <<dc_sleep_pins_d>; > - status = "okay"; > - > - port { > - #address-cells = <1>; > - #size-cells = <0>; > - > - ltdc_ep0_out: endpoint@0 { > - reg = <0>; > - remote-endpoint = <&adv7513_in>; > - }; > - }; > -}; > - > -&m_can1 { > - pinctrl-names = "default", "sleep"; > - pinctrl-0 = <&m_can1_pins_b>; > - pinctrl-1 = <&m_can1_sleep_pins_b>; > - status = "disabled"; > -}; > - > -&m_can2 { > - pinctrl-names = "default", "sleep"; > - pinctrl-0 = <&m_can2_pins_a>; > - pinctrl-1 = <&m_can2_sleep_pins_a>; > - status = "disabled"; > -}; > - > -&pwr_regulators { > - vdd-supply = <&vdd_io>; > - vdd_3v3_usbfs-supply = <&vdd_usb>; > -}; > - > -&qspi { > - pinctrl-names = "default", "sleep"; > - pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>; > - pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a>; > - reg = <0x58003000 0x1000>, <0x70000000 0x200000>; > - #address-cells = <1>; > - #size-cells = <0>; > - status = "okay"; > - > - flash0: spi-flash@0 { > - compatible = "jedec,spi-nor"; > - reg = <0>; > - spi-rx-bus-width = <4>; > - spi-max-frequency = <108000000>; > - #address-cells = <1>; > - #size-cells = <1>; > - }; > -}; > - > -&rng1 { > - status = "okay"; > -}; > - > -&rtc { > - status = "okay"; > -}; > - > -&sai2 { > - clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>; > - pinctrl-names = "default", "sleep"; > - pinctrl-0 = <&sai2a_pins_c>; > - pinctrl-1 = <&sai2a_sleep_pins_c>; > - clock-names = "pclk", "x8k", "x11k"; > - status = "okay"; > - > - sai2a: audio-controller@4400b004 { > - #clock-cells = <0>; > - dma-names = "tx"; > - clocks = <&rcc SAI2_K>; > - clock-names = "sai_ck"; > - status = "okay"; > - > - sai2a_port: port { > - sai2a_endpoint: endpoint { > - remote-endpoint = <&adv7513_i2s0>; > - format = "i2s"; > - mclk-fs = <256>; > - }; > - }; > - }; > -}; > - > -&sdmmc1 { > - pinctrl-names = "default", "opendrain", "sleep"; > - pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_b>; > - pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_b>; > - pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_b>; > - cd-gpios = <&gpioi 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; > - disable-wp; > - st,sig-dir; > - st,neg-edge; > - st,use-ckin; > - bus-width = <4>; > - vmmc-supply = <&vdd_sd>; > - vqmmc-supply = <&sd_switch>; > - status = "okay"; > -}; > - > -&sdmmc2 { > - pinctrl-names = "default", "opendrain", "sleep"; > - pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_b>; > - pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_b>; > - pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_b>; > - bus-width = <8>; > - mmc-ddr-1_8v; > - no-sd; > - no-sdio; > - non-removable; > - st,neg-edge; > - vmmc-supply = <&v3v3>; > - vqmmc-supply = <&vdd_io>; > - status = "okay"; > -}; > - > -&sdmmc3 { > - pinctrl-names = "default", "opendrain", "sleep"; > - pinctrl-0 = <&sdmmc3_b4_pins_b>; > - pinctrl-1 = <&sdmmc3_b4_od_pins_b>; > - pinctrl-2 = <&sdmmc3_b4_sleep_pins_b>; > - broken-cd; > - non-removable; > - st,neg-edge; > - bus-width = <4>; > - vmmc-supply = <&wlan_pwr>; > - status = "okay"; > - > - #address-cells = <1>; > - #size-cells = <0>; > - brcmf: bcrmf@1 { > - reg = <1>; > - compatible = "brcm,bcm4329-fmac"; > - }; > -}; > - > -&spi2 { > - pinctrl-names = "default"; > - pinctrl-0 = <&spi2_pins_a>; > - cs-gpios = <&gpioi 0 0>; > - status = "disabled"; > - /delete-property/dmas; > - /delete-property/dma-names; > -}; > - > -&uart4 { > - /* On Low speed expansion header */ > - label = "LS-UART1"; > - pinctrl-names = "default"; > - pinctrl-0 = <&uart4_pins_b>; > - status = "okay"; > -}; > - > -&uart7 { > - /* On Low speed expansion header */ > - label = "LS-UART0"; > - pinctrl-names = "default"; > - pinctrl-0 = <&uart7_pins_a>; > - status = "okay"; > -}; > - > -/* Bluetooth */ > -&usart2 { > - pinctrl-names = "default", "sleep"; > - pinctrl-0 = <&usart2_pins_a>; > - pinctrl-1 = <&usart2_sleep_pins_a>; > - st,hw-flow-ctrl; > - status = "okay"; > - > - bluetooth { > - compatible = "brcm,bcm43438-bt"; > - max-speed = <3000000>; > - shutdown-gpios = <&gpioz 6 GPIO_ACTIVE_HIGH>; > - }; > -}; > - > -&usbh_ehci { > - phys = <&usbphyc_port0>; > - phy-names = "usb"; > - status = "okay"; > -}; > - > -&usbotg_hs { > - pinctrl-0 = <&usbotg_hs_pins_a>; > - pinctrl-names = "default"; > - phy-names = "usb2-phy"; > - phys = <&usbphyc_port1 0>; > - status = "okay"; > - vbus-supply = <&vbus_otg>; > -}; > - > -&usbphyc { > - status = "okay"; > -}; > - > -&usbphyc_port0 { > - phy-supply = <&vdd_usb>; > - vdda1v1-supply = <®11>; > - vdda1v8-supply = <®18>; > -}; > - > -&usbphyc_port1 { > - phy-supply = <&vdd_usb>; > - vdda1v1-supply = <®11>; > - vdda1v8-supply = <®18>; > -}; > +/* This DT is here only for backward compatibility */ > +#include "stm32mp157a-dhcor-avenger96.dts" > diff --git a/arch/arm/boot/dts/stm32mp157a-dhcor-avenger96.dts b/arch/arm/boot/dts/stm32mp157a-dhcor-avenger96.dts > new file mode 100644 > index 000000000000..2e3c9fbb4eb3 > --- /dev/null > +++ b/arch/arm/boot/dts/stm32mp157a-dhcor-avenger96.dts > @@ -0,0 +1,38 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) > +/* > + * Copyright (C) Linaro Ltd 2019 - All Rights Reserved > + * Author: Manivannan Sadhasivam > + * Copyright (C) 2020 Marek Vasut > + * > + * DHCOR STM32MP1 variant: > + * DHCR-STM32MP157A-C065-R102-V18-SPI-C-01LG > + * DHCOR PCB number: 586-100 or newer > + * Avenger96 PCB number: 588-200 or newer > + */ > + > +/dts-v1/; > + > +#include "stm32mp157.dtsi" > +#include "stm32mp15xc.dtsi" > +#include "stm32mp15xx-dhcor-som.dtsi" > +#include "stm32mp15xx-dhcor-avenger96.dtsi" > + > +/ { > + model = "Arrow Electronics STM32MP157A Avenger96 board"; > + compatible = "arrow,stm32mp157a-avenger96", "dh,stm32mp157a-dhcor-som", > + "st,stm32mp157"; > +}; > + > +&m_can1 { > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&m_can1_pins_b>; > + pinctrl-1 = <&m_can1_sleep_pins_b>; > + status = "disabled"; > +}; > + > +&m_can2 { > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&m_can2_pins_a>; > + pinctrl-1 = <&m_can2_sleep_pins_a>; > + status = "disabled"; > +}; > diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi b/arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi > new file mode 100644 > index 000000000000..930202742a3f > --- /dev/null > +++ b/arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi > @@ -0,0 +1,401 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) > +/* > + * Copyright (C) Linaro Ltd 2019 - All Rights Reserved > + * Author: Manivannan Sadhasivam > + * Copyright (C) 2020 Marek Vasut > + */ > + > +/* Avenger96 uses DHCOR SoM configured for 1V8 IO operation */ > +#include "stm32mp15xx-dhcor-io1v8.dtsi" > + > +/ { > + aliases { > + ethernet0 = ðernet0; > + mmc0 = &sdmmc1; > + serial0 = &uart4; > + serial1 = &uart7; > + serial2 = &usart2; > + spi0 = &qspi; > + }; > + > + /* XTal Q1 */ > + cec_clock: clk-cec-fixed { > + #clock-cells = <0>; > + compatible = "fixed-clock"; > + clock-frequency = <24000000>; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + hdmi-out { > + compatible = "hdmi-connector"; > + type = "a"; > + > + port { > + hdmi_con: endpoint { > + remote-endpoint = <&adv7513_out>; > + }; > + }; > + }; > + > + led { > + compatible = "gpio-leds"; > + led1 { > + label = "green:user0"; > + gpios = <&gpioz 7 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "heartbeat"; > + default-state = "off"; > + }; > + > + led2 { > + label = "green:user1"; > + gpios = <&gpiof 3 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "mmc0"; > + default-state = "off"; > + }; > + > + led3 { > + label = "green:user2"; > + gpios = <&gpiog 0 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "mmc1"; > + default-state = "off"; > + }; > + > + led4 { > + label = "green:user3"; > + gpios = <&gpiog 1 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "none"; > + default-state = "off"; > + panic-indicator; > + }; > + }; > + > + sd_switch: regulator-sd_switch { > + compatible = "regulator-gpio"; > + regulator-name = "sd_switch"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <2900000>; > + regulator-type = "voltage"; > + regulator-always-on; > + > + gpios = <&gpioi 5 GPIO_ACTIVE_HIGH>; > + gpios-states = <0>; > + states = <1800000 0x1>, > + <2900000 0x0>; > + }; > + > + sound { > + compatible = "audio-graph-card"; > + label = "STM32MP1-AV96-HDMI"; > + dais = <&sai2a_port>; > + status = "okay"; > + }; > + > + wlan_pwr: regulator-wlan { > + compatible = "regulator-fixed"; > + > + regulator-name = "wl-reg"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + > + gpios = <&gpioz 3 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > +}; > + > +&adc { > + pinctrl-names = "default"; > + pinctrl-0 = <&adc12_ain_pins_b>; > + vdd-supply = <&vdd>; > + vdda-supply = <&vdda>; > + vref-supply = <&vdda>; > + status = "okay"; > + > + adc1: adc@0 { > + st,adc-channels = <0 1 6>; > + st,min-sample-time-nsecs = <5000>; > + status = "okay"; > + }; > + > + adc2: adc@100 { > + st,adc-channels = <0 1 2>; > + st,min-sample-time-nsecs = <5000>; > + status = "okay"; > + }; > +}; > + > +ðernet0 { > + status = "okay"; > + pinctrl-0 = <ðernet0_rgmii_pins_c>; > + pinctrl-1 = <ðernet0_rgmii_sleep_pins_c>; > + pinctrl-names = "default", "sleep"; > + phy-mode = "rgmii"; > + max-speed = <1000>; > + phy-handle = <&phy0>; > + > + mdio0 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "snps,dwmac-mdio"; > + reset-gpios = <&gpioz 2 GPIO_ACTIVE_LOW>; > + reset-delay-us = <1000>; > + > + phy0: ethernet-phy@7 { > + reg = <7>; > + > + rxc-skew-ps = <1500>; > + rxdv-skew-ps = <540>; > + rxd0-skew-ps = <420>; > + rxd1-skew-ps = <420>; > + rxd2-skew-ps = <420>; > + rxd3-skew-ps = <420>; > + > + txc-skew-ps = <1440>; > + txen-skew-ps = <540>; > + txd0-skew-ps = <420>; > + txd1-skew-ps = <420>; > + txd2-skew-ps = <420>; > + txd3-skew-ps = <420>; > + }; > + }; > +}; > + > +&i2c1 { /* X6 I2C1 */ > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c1_pins_b>; > + i2c-scl-rising-time-ns = <185>; > + i2c-scl-falling-time-ns = <20>; > + status = "okay"; > + /delete-property/dmas; > + /delete-property/dma-names; > +}; > + > +&i2c2 { /* X6 I2C2 */ > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c2_pins_c>; > + i2c-scl-rising-time-ns = <185>; > + i2c-scl-falling-time-ns = <20>; > + status = "okay"; > + /delete-property/dmas; > + /delete-property/dma-names; > +}; > + > +&i2c4 { > + hdmi-transmitter@3d { > + compatible = "adi,adv7513"; > + reg = <0x3d>, <0x2d>, <0x4d>, <0x5d>; > + reg-names = "main", "cec", "edid", "packet"; > + clocks = <&cec_clock>; > + clock-names = "cec"; > + > + avdd-supply = <&v3v3>; > + dvdd-supply = <&v3v3>; > + pvdd-supply = <&v3v3>; > + dvdd-3v-supply = <&v3v3>; > + bgvdd-supply = <&v3v3>; > + > + interrupts = <9 IRQ_TYPE_EDGE_FALLING>; > + interrupt-parent = <&gpiog>; > + > + status = "okay"; > + > + adi,input-depth = <8>; > + adi,input-colorspace = "rgb"; > + adi,input-clock = "1x"; > + adi,input-style = <1>; > + adi,input-justification = "evenly"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + adv7513_in: endpoint { > + remote-endpoint = <<dc_ep0_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + adv7513_out: endpoint { > + remote-endpoint = <&hdmi_con>; > + }; > + }; > + > + port@2 { > + reg = <2>; > + adv7513_i2s0: endpoint { > + remote-endpoint = <&sai2a_endpoint>; > + }; > + }; > + }; > + }; > +}; > + > +<dc { > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <<dc_pins_d>; > + pinctrl-1 = <<dc_sleep_pins_d>; > + status = "okay"; > + > + port { > + #address-cells = <1>; > + #size-cells = <0>; > + > + ltdc_ep0_out: endpoint@0 { > + reg = <0>; > + remote-endpoint = <&adv7513_in>; > + }; > + }; > +}; > + > +&sai2 { > + clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&sai2a_pins_c>; > + pinctrl-1 = <&sai2a_sleep_pins_c>; > + clock-names = "pclk", "x8k", "x11k"; > + status = "okay"; > + > + sai2a: audio-controller@4400b004 { > + #clock-cells = <0>; > + dma-names = "tx"; > + clocks = <&rcc SAI2_K>; > + clock-names = "sai_ck"; > + status = "okay"; > + > + sai2a_port: port { > + sai2a_endpoint: endpoint { > + remote-endpoint = <&adv7513_i2s0>; > + format = "i2s"; > + mclk-fs = <256>; > + }; > + }; > + }; > +}; > + > +&sdmmc1 { > + pinctrl-names = "default", "opendrain", "sleep"; > + pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_b>; > + pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_b>; > + pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_b>; > + cd-gpios = <&gpioi 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; > + disable-wp; > + st,sig-dir; > + st,neg-edge; > + st,use-ckin; > + bus-width = <4>; > + vmmc-supply = <&vdd_sd>; > + vqmmc-supply = <&sd_switch>; > + status = "okay"; > +}; > + > +&sdmmc2 { > + pinctrl-names = "default", "opendrain", "sleep"; > + pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_b>; > + pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_b>; > + pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_b>; > + bus-width = <8>; > + mmc-ddr-1_8v; > + no-sd; > + no-sdio; > + non-removable; > + st,neg-edge; > + vmmc-supply = <&v3v3>; > + vqmmc-supply = <&vdd_io>; > + status = "okay"; > +}; > + > +&sdmmc3 { > + pinctrl-names = "default", "opendrain", "sleep"; > + pinctrl-0 = <&sdmmc3_b4_pins_b>; > + pinctrl-1 = <&sdmmc3_b4_od_pins_b>; > + pinctrl-2 = <&sdmmc3_b4_sleep_pins_b>; > + broken-cd; > + non-removable; > + st,neg-edge; > + bus-width = <4>; > + vmmc-supply = <&wlan_pwr>; > + status = "okay"; > + > + #address-cells = <1>; > + #size-cells = <0>; > + brcmf: bcrmf@1 { > + reg = <1>; > + compatible = "brcm,bcm4329-fmac"; > + }; > +}; > + > +&spi2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&spi2_pins_a>; > + cs-gpios = <&gpioi 0 0>; > + status = "disabled"; > + /delete-property/dmas; > + /delete-property/dma-names; > +}; > + > +&uart4 { > + /* On Low speed expansion header */ > + label = "LS-UART1"; > + pinctrl-names = "default"; > + pinctrl-0 = <&uart4_pins_b>; > + status = "okay"; > +}; > + > +&uart7 { > + /* On Low speed expansion header */ > + label = "LS-UART0"; > + pinctrl-names = "default"; > + pinctrl-0 = <&uart7_pins_a>; > + status = "okay"; > +}; > + > +/* Bluetooth */ > +&usart2 { > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&usart2_pins_a>; > + pinctrl-1 = <&usart2_sleep_pins_a>; > + st,hw-flow-ctrl; > + status = "okay"; > + > + bluetooth { > + compatible = "brcm,bcm43438-bt"; > + max-speed = <3000000>; > + shutdown-gpios = <&gpioz 6 GPIO_ACTIVE_HIGH>; > + }; > +}; > + > +&usbh_ehci { > + phys = <&usbphyc_port0>; > + phy-names = "usb"; > + status = "okay"; > +}; > + > +&usbotg_hs { > + pinctrl-0 = <&usbotg_hs_pins_a>; > + pinctrl-names = "default"; > + phy-names = "usb2-phy"; > + phys = <&usbphyc_port1 0>; > + status = "okay"; > + vbus-supply = <&vbus_otg>; > +}; > + > +&usbphyc { > + status = "okay"; > +}; > + > +&usbphyc_port0 { > + phy-supply = <&vdd_usb>; > + vdda1v1-supply = <®11>; > + vdda1v8-supply = <®18>; > +}; > + > +&usbphyc_port1 { > + phy-supply = <&vdd_usb>; > + vdda1v1-supply = <®11>; > + vdda1v8-supply = <®18>; > +}; > diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcor-io1v8.dtsi b/arch/arm/boot/dts/stm32mp15xx-dhcor-io1v8.dtsi > new file mode 100644 > index 000000000000..75172314d7af > --- /dev/null > +++ b/arch/arm/boot/dts/stm32mp15xx-dhcor-io1v8.dtsi > @@ -0,0 +1,23 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) > +/* > + * Copyright (C) Linaro Ltd 2019 - All Rights Reserved > + * Author: Manivannan Sadhasivam > + * Copyright (C) 2020 Marek Vasut > + */ > + > +/ { > + /* Enpirion EP3A8LQI U2 on the DHCOR */ > + vdd_io: regulator-buck-io { > + compatible = "regulator-fixed"; > + regulator-name = "buck-io"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-always-on; > + regulator-boot-on; > + vin-supply = <&vdd>; > + }; > +}; > + > +&pwr_regulators { > + vdd-supply = <&vdd_io>; > +}; > diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcor-som.dtsi b/arch/arm/boot/dts/stm32mp15xx-dhcor-som.dtsi > new file mode 100644 > index 000000000000..04fbb324a541 > --- /dev/null > +++ b/arch/arm/boot/dts/stm32mp15xx-dhcor-som.dtsi > @@ -0,0 +1,209 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) > +/* > + * Copyright (C) Linaro Ltd 2019 - All Rights Reserved > + * Author: Manivannan Sadhasivam > + * Copyright (C) 2020 Marek Vasut > + */ > + > +#include "stm32mp15-pinctrl.dtsi" > +#include "stm32mp15xxac-pinctrl.dtsi" > +#include > +#include > + > +/ { > + aliases { > + spi0 = &qspi; > + }; > + > + memory@c0000000 { > + device_type = "memory"; > + reg = <0xc0000000 0x40000000>; > + }; > +}; > + > +&i2c4 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c4_pins_a>; > + i2c-scl-rising-time-ns = <185>; > + i2c-scl-falling-time-ns = <20>; > + status = "okay"; > + /delete-property/dmas; > + /delete-property/dma-names; > + > + pmic: stpmic@33 { > + compatible = "st,stpmic1"; > + reg = <0x33>; > + interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>; > + interrupt-controller; > + #interrupt-cells = <2>; > + status = "okay"; > + > + regulators { > + compatible = "st,stpmic1-regulators"; > + > + ldo1-supply = <&v3v3>; > + ldo2-supply = <&v3v3>; > + ldo3-supply = <&vdd_ddr>; > + ldo5-supply = <&v3v3>; > + ldo6-supply = <&v3v3>; > + pwr_sw1-supply = <&bst_out>; > + pwr_sw2-supply = <&bst_out>; > + > + vddcore: buck1 { > + regulator-name = "vddcore"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1350000>; > + regulator-always-on; > + regulator-initial-mode = <0>; > + regulator-over-current-protection; > + }; > + > + vdd_ddr: buck2 { > + regulator-name = "vdd_ddr"; > + regulator-min-microvolt = <1350000>; > + regulator-max-microvolt = <1350000>; > + regulator-always-on; > + regulator-initial-mode = <0>; > + regulator-over-current-protection; > + }; > + > + vdd: buck3 { > + regulator-name = "vdd"; > + regulator-min-microvolt = <2900000>; > + regulator-max-microvolt = <2900000>; > + regulator-always-on; > + regulator-initial-mode = <0>; > + regulator-over-current-protection; > + }; > + > + v3v3: buck4 { > + regulator-name = "v3v3"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-always-on; > + regulator-over-current-protection; > + regulator-initial-mode = <0>; > + }; > + > + vdda: ldo1 { > + regulator-name = "vdda"; > + regulator-min-microvolt = <2900000>; > + regulator-max-microvolt = <2900000>; > + interrupts = ; > + }; > + > + v2v8: ldo2 { > + regulator-name = "v2v8"; > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + interrupts = ; > + }; > + > + vtt_ddr: ldo3 { > + regulator-name = "vtt_ddr"; > + regulator-min-microvolt = <500000>; > + regulator-max-microvolt = <750000>; > + regulator-always-on; > + regulator-over-current-protection; > + }; > + > + vdd_usb: ldo4 { > + regulator-name = "vdd_usb"; > + interrupts = ; > + }; > + > + vdd_sd: ldo5 { > + regulator-name = "vdd_sd"; > + regulator-min-microvolt = <2900000>; > + regulator-max-microvolt = <2900000>; > + interrupts = ; > + regulator-boot-on; > + }; > + > + v1v8: ldo6 { > + regulator-name = "v1v8"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + interrupts = ; > + regulator-enable-ramp-delay = <300000>; > + }; > + > + vref_ddr: vref_ddr { > + regulator-name = "vref_ddr"; > + regulator-always-on; > + }; > + > + bst_out: boost { > + regulator-name = "bst_out"; > + interrupts = ; > + }; > + > + vbus_otg: pwr_sw1 { > + regulator-name = "vbus_otg"; > + interrupts = ; > + regulator-active-discharge = <1>; > + }; > + > + vbus_sw: pwr_sw2 { > + regulator-name = "vbus_sw"; > + interrupts = ; > + regulator-active-discharge = <1>; > + }; > + }; > + > + onkey { > + compatible = "st,stpmic1-onkey"; > + interrupts = , ; > + interrupt-names = "onkey-falling", "onkey-rising"; > + status = "okay"; > + }; > + > + watchdog { > + compatible = "st,stpmic1-wdt"; > + status = "disabled"; > + }; > + }; > + > + eeprom@53 { > + compatible = "atmel,24c02"; > + reg = <0x53>; > + pagesize = <16>; > + }; > +}; > + > +&iwdg2 { > + timeout-sec = <32>; > + status = "okay"; > +}; > + > +&pwr_regulators { > + vdd-supply = <&vdd>; > + vdd_3v3_usbfs-supply = <&vdd_usb>; > +}; > + > +&qspi { > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>; > + pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a>; > + reg = <0x58003000 0x1000>, <0x70000000 0x200000>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "okay"; > + > + flash0: spi-flash@0 { > + compatible = "jedec,spi-nor"; > + reg = <0>; > + spi-rx-bus-width = <4>; > + spi-max-frequency = <108000000>; > + #address-cells = <1>; > + #size-cells = <1>; > + }; > +}; > + > +&rng1 { > + status = "okay"; > +}; > + > +&rtc { > + status = "okay"; > +}; > -- > 2.25.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel