Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp224053pxf; Wed, 31 Mar 2021 01:30:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMHNu2t0MOfKRrfebXM13s7dLBmkZ8hBaaq6Ozn7ScN9MiVnmCWEWUIXr9lwp+cA47rB9U X-Received: by 2002:a05:6402:4395:: with SMTP id o21mr2298996edc.22.1617179431850; Wed, 31 Mar 2021 01:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617179431; cv=none; d=google.com; s=arc-20160816; b=JtzaPN4+rGiL5A9XJ+P/Fa6lpLlXUYOW+ZQgFeQ96wyvUooaMzY2a/TMag9U0QjXvv 9QoroDFCO6x+9jslhZyKmxnxA4lhw/dXkufQ8Zknwn9TmEMH19p+uOH0WYkhNRK8cO6j A+jq+8tvA9w+EU+OD/a4HC97b2l8YBw1HKXO2FyU6jlHYAugkX2fNyG7IxiCSpASuHOV 5uDQlt6ypK4rZJOdspqTtaUV6WIoJXfo+EcmYNL7Nwrk09Ro/4GQMQWreAUsr0eVstbj 0FLdrMitiTICDrxK6IT6fFRP45D369A44dm6XKQ4ICtEGXMNXKfSuDdOa4Ms7wBefNzE wMCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=LSOlkAz8jg+syisUb5+J8kiWofFRTKNdtiq801zgT0k=; b=lQuirZeNCTDm2KbyXE1wY3AdTUAmDEqhGJSe0vbnCkdtCt8nwdUreL1fLOFavLcErw uA2STwox6GO60zVtbvA/3KRxBqqhESedpqjdMlYPKMBAgVFC+AXblA4uHjqmqdWxE0tH 52Cn79C5tbQAmGkBtdwgU6JUg+mhYKO+GBWFdK3TWVNavI7bCZ6fGsfQgY6Aq9CTe/lL RxrU029dfjVU1yNZCNHHrgdOGv9Az1KOA9eSALxPtV3VU7L5P/CzKBez/vcZBmktXM8S ZzfRgArvudO/3bw4cf3LTiOM/s3bT9NYs6XOlx+I7I931Qj2KjkOknLbEUkoviMvExM0 j/Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AdWe8HdL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp39si1104269ejc.182.2021.03.31.01.30.08; Wed, 31 Mar 2021 01:30:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AdWe8HdL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231818AbhCaI3C (ORCPT + 99 others); Wed, 31 Mar 2021 04:29:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230350AbhCaI24 (ORCPT ); Wed, 31 Mar 2021 04:28:56 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4D7FC061574; Wed, 31 Mar 2021 01:28:55 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id g10so7523203plt.8; Wed, 31 Mar 2021 01:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=LSOlkAz8jg+syisUb5+J8kiWofFRTKNdtiq801zgT0k=; b=AdWe8HdLue+b9OjCYYZHRuxs8xgRUeCnsxLgC61NH4vg9tAkiiUaLaJXkX0aBOLwR6 ktyl6FNfM/2413NGnm4AvMyrtUj59BlQM4kGo+5jdusSzQi/NlsrF5yR6NS0wbKKfm/U A4cxM8cInzydCMG65qilnf75cF3nvBuhM0UqYIrO2MXDTWMW8R1Ht/CsLt0LSg6s4kbf MA1oPM4ld9I95FhN9KKSMVwjtrCRtY2akgEm0scvkvJ5n/3fFV0lQHnlDkZtryoUe8Rt q9MxtMmyrrHLQSVG1CFXOabAgmMquO14GJL+R8b/fFoCGcFwSTBuOI5MxcwqXivdPZpM 7zEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=LSOlkAz8jg+syisUb5+J8kiWofFRTKNdtiq801zgT0k=; b=CTBr086abnsM/qqzdpm3DKljU8Am6n3mSRK7RwmArBbeqGODy4xYozhGDPF/U9IwCD bOXbi5hpEcmJg1r6xLqR4VVK+h6CzQq8ccqPqiS7fm10H933yT/Ncb47c1Ro5fHUxmkN Wdb56rKxcutbkt5Qgc832lYjuWGNiCmu53vv266CtsWRXWtHE//tD9akb6lF3JwV5lQ2 45akfeKO0yZ/U7SyD+m8vtL9i2Vnm7Av42RZFXaaXVf2hym5ytU1KmU3OzUc4eRwpcxt QkOaAENvxrxmrEs60S7d1FX47ONX2dSh9XGJhPnUc+cZ9r9tyGVSbV7FPOriJGJsy3GG PcBg== X-Gm-Message-State: AOAM532DcnSiDNIRJUUyOh1cu9VtU+SZ90+We9fhRLRQ8lXsfIOiy7Mr WMOMoivg5S1zNEHmXY8gBUc= X-Received: by 2002:a17:90a:e2ca:: with SMTP id fr10mr2390380pjb.154.1617179335231; Wed, 31 Mar 2021 01:28:55 -0700 (PDT) Received: from fmin-OptiPlex-7060.nreal.work ([137.59.103.165]) by smtp.gmail.com with ESMTPSA id v1sm1420991pjt.1.2021.03.31.01.28.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Mar 2021 01:28:54 -0700 (PDT) From: dillon.minfei@gmail.com To: robh@kernel.org, valentin.caron@foss.st.com, Alexandre.torgue@foss.st.com, rong.a.chen@intel.com, a.fatoum@pengutronix.de, mcoquelin.stm32@gmail.com, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux@armlinux.org.uk, afzal.mohd.ma@gmail.com, gregkh@linuxfoundation.org, erwan.leray@foss.st.com, erwan.leray@st.com, linux-serial@vger.kernel.org, lkp@intel.com, patrice.chotard@foss.st.com, corbet@lwn.net, linux-doc@vger.kernel.org, pali@kernel.org, mchehab+huawei@kernel.org, andrew@lunn.ch Cc: dillon min Subject: [PATCH v9 0/6] ARM: STM32: add art-pi(stm32h750xbh6) board support Date: Wed, 31 Mar 2021 16:28:39 +0800 Message-Id: <1617179325-6383-1-git-send-email-dillon.minfei@gmail.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: dillon min This patchset intend to add art-pi board support, this board developed by rt-thread(https://www.rt-thread.org/). Board resources: 8MiB QSPI flash 16MiB SPI flash 32MiB SDRAM AP6212 wifi,bt,fm comb sw context: - as stm32h750 just has 128k bytes internal flash, so running a fw on internal flash to download u-boot/kernel to qspi flash, boot u-boot/kernel from qspi flash. this fw is based on rt-thread. - kernel can be xip on qspi flash or load to sdram - root filesystem is jffs2(created by buildroot), stored on spi flash to support the boad, add following changes. - fix r0-r3, r12 register restore failed after svc call, - add dts binding - update yaml doc --- changes in v9: - move gpio{a..k} entries from stm32h7-pinctrl.dtsi to stm32h743.dtsi v8 link: https://lore.kernel.org/lkml/1617094704-10040-1-git-send-email-dillon.minfei@gmail.com/ changes in v8: - drop '[PATCH v7 3/6] ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h750' - stm32h743-pinctrl.dtsi file - move compatible string "st,stm32h743-pinctrl" from stm32h7-pinctrl.dtsi to stm32h743.dtsi - update stm32h743i-{dico/eval}.dtsi to include stm32h7-pinctrl.dtsi - move file stm32h743.dtsi submit position to [PATCH V8 3/6] v7 link: https://lore.kernel.org/lkml/1617071338-9436-1-git-send-email-dillon.minfei@gmail.com/ changes in v7: - remove changes in Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml Hi Rob Herring as you has already ack this patch, please ignore it. thanks history link: https://lore.kernel.org/lkml/1614758717-18223-4-git-send-email-dillon.minfei@gmail.com/ https://lore.kernel.org/lkml/20210308195033.GA2855292@robh.at.kernel.org/ - remove "[PATCH v6 8/9] pinctrl: stm32: Add STM32H750 MCU pinctrl support" remove "[PATCH v6 5/9] ARM: dts: stm32: add stm32h750-pinctrl.dtsi" - reference to stm32h743-pinctrl.dtsi in stm32h750i-art-pi.dts v6 link: https://lore.kernel.org/lkml/1616757302-7889-1-git-send-email-dillon.minfei@gmail.com/ changes in v6: - add gpiox{gpio-ranges, ngpios} in stm32h7-pinctrl.dtsi - add status="disabled" in stm32h743.dtsi changes in v5: - accroding to rob's suggestion, replace false with 'type: object' of 'additionalProperties'. - add Tested-by: Valentin Caron changes in v4: - use unevaluatedProperties: false to fix dtbs_check warrnings instead of add 'bluetooth' in st,stm32-uart.yaml changes in v3: - fix dtbs_check warrning: (8002cbd78fd5 and 4bc21d3dd678) >> arch/arm/boot/dts/stm32h743i-eval.dt.yaml: soc: pin-controller: {'type': 'object'} is not allowed for {'#address-cells': [[1]], '#size-cells': [[1]], 'ranges': [[0, >> arch/arm/boot/dts/stm32h743i-eval.dt.yaml: soc: 'i2c@40005C00', 'i2c@58001C00' do not match any of the regexes: '@(0|[1-9a-f][0-9a-f]*)$', '^[^@]+$', 'pinctrl-[0-9]+' >> arch/arm/boot/dts/stm32h750i-art-pi.dt.yaml: serial@40004800: 'bluetooth' does not match any of the regexes: 'pinctrl-[0-9]+' changes in v2: - reorganize the pinctrl device tree about stm32h7-pinctrl/stm32h743/750-pinctrl stm32h7-pinctrl.dtsi --> stm32h743-pinctrl.dtsi --> stm32h743i-disco.dts | |-> stm32h743i-eval.dts |-> stm32h750-pinctrl.dtsi --> stm32h750i-art-pi.dts same to the stm32f7/f4's pinctrl style - fix author name/copyright mistake - add compatible string st,stm32h750-pinctrl to pinctl-stm32h743.c as they have same pin alternate functions, update Kconfig description - make item in stm32h750i-art-pi.dts sort by letter *** BLURB HERE *** dillon min (6): Documentation: arm: stm32: Add stm32h750 value line doc dt-bindings: arm: stm32: Add compatible strings for ART-PI board ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h750 ARM: dts: stm32: add support for art-pi board based on stm32h750xbh6 ARM: stm32: Add a new SOC - STM32H750 dt-bindings: serial: stm32: Use 'type: object' instead of false for 'additionalProperties' Documentation/arm/index.rst | 1 + Documentation/arm/stm32/stm32h750-overview.rst | 34 +++ .../devicetree/bindings/arm/stm32/stm32.yaml | 4 + .../devicetree/bindings/serial/st,stm32-uart.yaml | 3 +- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/stm32h7-pinctrl.dtsi | 275 ++++++++++++++++++ arch/arm/boot/dts/stm32h743-pinctrl.dtsi | 306 --------------------- arch/arm/boot/dts/stm32h743.dtsi | 176 +++++++++++- arch/arm/boot/dts/stm32h743i-disco.dts | 2 +- arch/arm/boot/dts/stm32h743i-eval.dts | 2 +- arch/arm/boot/dts/stm32h750.dtsi | 6 + arch/arm/boot/dts/stm32h750i-art-pi.dts | 229 +++++++++++++++ arch/arm/mach-stm32/board-dt.c | 1 + 13 files changed, 729 insertions(+), 311 deletions(-) create mode 100644 Documentation/arm/stm32/stm32h750-overview.rst create mode 100644 arch/arm/boot/dts/stm32h7-pinctrl.dtsi delete mode 100644 arch/arm/boot/dts/stm32h743-pinctrl.dtsi create mode 100644 arch/arm/boot/dts/stm32h750.dtsi create mode 100644 arch/arm/boot/dts/stm32h750i-art-pi.dts -- 2.7.4