From patchwork Thu Mar 25 06:19:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dillon Min X-Patchwork-Id: 409231 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=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 6C131C433E1 for ; Thu, 25 Mar 2021 06:20:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 34D0061A1F for ; Thu, 25 Mar 2021 06:20:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229576AbhCYGTt (ORCPT ); Thu, 25 Mar 2021 02:19:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbhCYGT3 (ORCPT ); Thu, 25 Mar 2021 02:19:29 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B90B7C06174A; Wed, 24 Mar 2021 23:19:28 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id 11so955459pfn.9; Wed, 24 Mar 2021 23:19:28 -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=/kmlPkyo71FWJnthOEG8OfBY+DU0oUwUoSQ3xvASTfk=; b=GIKHpj2X/w0aWtK/cCT3zMxFDuVHKqLEjZhSsTAJ30LMmNHSzry1QilCbSE924dopM Okq1CU7Za3XkrvqmJ2jVMPJxtGuN6P4uiNn5jq4jDTvQI2M6prGdh5A6g699pT00IsQA I+Wae1knfuoaiJDDZO9SXOiOUjEzaUvuuBjeK37Ffs2TkhMZn7O8RXANA5r3K/an3b5t PdU3DTmaTPwdfWceL/Q7FM7YpHtIr75+WZv0J2rAtpnwQxq1dxM06vnJ+JKvEcI25j2q 9dC3KuI/VHaN5u8GdrLrlNMSYVNIrmFeC2ECgUCCAU0QMVKFDW+PPiKmvDXjLMPIZHYn IRUA== 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=/kmlPkyo71FWJnthOEG8OfBY+DU0oUwUoSQ3xvASTfk=; b=FOT7i9XdXKrgdUBakjY32cKU+yIDA63ZuRH9cpGYoiL4sL+PHFsSjF1QokrCNz0wnP CdcMLBayZ0ql+JYNtgZAK1nQajjblth5lJRobxssckBg5e3DOEWlR/O0yLnOQxTy6LXg m2Va1dwsRGhG94jbBMB6TDFyIGaitxEsxSpgPpoJwPCzfAz9ZYY945FNgrQPl/+VbNvK 28qp2KA/xR+LDaI2APn3wXcqKOXaj0SuFRGAPLKaoubznf6iLhGuMJAH2MIm72gkHO+8 tLNeeU3f87QYz+FAfRXDjwOamgC0jqLgQNPSfx6zK3LfTjj4OH301WzSud+QDR94ezNV ty/g== X-Gm-Message-State: AOAM530XvjdKdPgFqce1o1CFYOCxVP49F3s4T4COs3g2hH07BKopHrjV r2L+3AfppmFfOUJFSt5WSEg= X-Google-Smtp-Source: ABdhPJwHicJzgcq3LsgBgQWVv44//t4VL9VjGkair/7dfJHxAt0qlCqbU4D7yY94haoQpDk3WoP8/Q== X-Received: by 2002:a17:902:7404:b029:e4:503b:f83d with SMTP id g4-20020a1709027404b02900e4503bf83dmr7751615pll.35.1616653168212; Wed, 24 Mar 2021 23:19:28 -0700 (PDT) Received: from fmin-OptiPlex-7060.nreal.work ([137.59.103.165]) by smtp.gmail.com with ESMTPSA id b19sm4393086pfo.7.2021.03.24.23.19.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Mar 2021 23:19:27 -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, vladimir.murzin@arm.com, 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 Cc: dillon min Subject: [PATCH v5 0/9] ARM: STM32: add art-pi(stm32h750xbh6) board support Date: Thu, 25 Mar 2021 14:19:15 +0800 Message-Id: <1616653162-19954-1-git-send-email-dillon.minfei@gmail.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-serial@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 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 (9): Documentation: arm: stm32: Add stm32h750 value line doc dt-bindings: arm: stm32: Add compatible strings for ART-PI board dt-bindings: pinctrl: stm32: Add stm32h750 pinctrl ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h750 ARM: dts: stm32: add stm32h750-pinctrl.dtsi ARM: dts: stm32: add support for art-pi board based on stm32h750xbh6 ARM: stm32: Add a new SOC - STM32H750 pinctrl: stm32: Add STM32H750 MCU pinctrl support 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 + .../bindings/pinctrl/st,stm32-pinctrl.yaml | 1 + .../devicetree/bindings/serial/st,stm32-uart.yaml | 3 +- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/stm32h7-pinctrl.dtsi | 274 ++++++++++++++++++ arch/arm/boot/dts/stm32h743-pinctrl.dtsi | 307 +-------------------- arch/arm/boot/dts/stm32h743.dtsi | 153 +++++++++- arch/arm/boot/dts/stm32h750-pinctrl.dtsi | 12 + arch/arm/boot/dts/stm32h750.dtsi | 6 + arch/arm/boot/dts/stm32h750i-art-pi.dts | 229 +++++++++++++++ arch/arm/mach-stm32/board-dt.c | 1 + drivers/pinctrl/stm32/Kconfig | 2 +- drivers/pinctrl/stm32/pinctrl-stm32h743.c | 3 + 15 files changed, 726 insertions(+), 305 deletions(-) create mode 100644 Documentation/arm/stm32/stm32h750-overview.rst create mode 100644 arch/arm/boot/dts/stm32h7-pinctrl.dtsi create mode 100644 arch/arm/boot/dts/stm32h750-pinctrl.dtsi create mode 100644 arch/arm/boot/dts/stm32h750.dtsi create mode 100644 arch/arm/boot/dts/stm32h750i-art-pi.dts