From nobody Sun Apr 19 05:32:13 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DB25C43334 for ; Tue, 5 Jul 2022 21:52:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231791AbiGEVwi (ORCPT ); Tue, 5 Jul 2022 17:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231703AbiGEVw3 (ORCPT ); Tue, 5 Jul 2022 17:52:29 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB3D5140BC for ; Tue, 5 Jul 2022 14:52:26 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id b26so19409040wrc.2 for ; Tue, 05 Jul 2022 14:52:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=I3BjWvucdRFvohacwJ3jYd8p0VPrMYvEd2khIu7aHRc=; b=AVC32Xgv3rjyXT5pJFSx3LvOc6t7VkeJNrcAYwZ+GUdVf+5/sApO4tvdxLsbFiZdAD 5AoPLMow5tHJqk3SwzpH/oKNaXNZKvLK8tOYwiGgEmneamdwZTLS/8FuJe2ww1CPpItH gULoWBzsUosnwI0pYWhE0+34l6FUDchOZ3gObKcfNn6FIoVHyqexaoOj4e83t+lHpyRa itVJseTDOe3v8oUbES0rdY1qjhrWxSFeZG7BcSb8xrAhvcZp0ONvt1Bm/Q2GGgWE3fHg uxPTH0lUbDPqpdqCZOcMyCG1jLIeXDTGY8EZa3TQ93s+LVyxMQzMZsXbiNYmvMfxB4rv wV+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=I3BjWvucdRFvohacwJ3jYd8p0VPrMYvEd2khIu7aHRc=; b=EGU+bVpUArk+ppVbl/d/EkLgS9ZIEcZUbxE9nPErV45cC51aJVdfC60CsruNIoro7X eUO+C1J7KQJhE4zbZuuJx10D9qokUGWwTroaH7ICFFJBt6344HLoZDJ1BMX0R57oJP0V FpH6wFS39QBPot0d3XEvhZK8YEoXfarDbq1izh2a+Z0p2ukiEmWTUSzE7U2fr6JqDxwO cDF8wYtcaXOvYjCnbsbTVKvx9joBipkheiHUrmoIGnu9k6OSfCKgUqE00EERGX5Qy2G+ sBj26aJRT4UhuXRHcqqv9/MAz1IkS/HRnmYkzmKVrav3gE8ulCU1Aj5Rtsx8JChketCt btwQ== X-Gm-Message-State: AJIora+TGc5vHasax6JZHD9UIrpc3YrmEZ/2SgewLuSYDPFdzkalQa9b 0Ufiec1v8iPiBO9QUT4Ioi1oKA== X-Google-Smtp-Source: AGRyM1ucMKMSRmGlh9FqNyhH2728/ALCXILByIUnLxXbuxkj3cZlvPD3T95oxg6qoIA4h+0C8V2AAw== X-Received: by 2002:adf:ec07:0:b0:21d:669c:6a78 with SMTP id x7-20020adfec07000000b0021d669c6a78mr14716491wrn.401.1657057945251; Tue, 05 Jul 2022 14:52:25 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id g34-20020a05600c4ca200b0039c7dbafa7asm18353920wmp.19.2022.07.05.14.52.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:52:24 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org, Rob Herring Subject: [PATCH v5 01/13] dt-bindings: display: convert ilitek,ili9341.txt to dt-schema Date: Tue, 5 Jul 2022 22:52:02 +0100 Message-Id: <20220705215213.1802496-2-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705215213.1802496-1-mail@conchuod.ie> References: <20220705215213.1802496-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Conor Dooley A dt-schema binding for the Ilitek ili9341 was created as panel/ilitek,ili9341.yaml but the txt binding was ignored in the process. Move the remaining items in the txt binding to the yaml one & delete it. The example in the txt binding has a spi-max-frequency which disagrees with the yaml replacement (and its own documentation) so change that to conform with the binding. There are no users in tree of the Adafruit yx240qv29 to check against. Link: https://cdn-learn.adafruit.com/assets/assets/000/046/879/original/SPE= C-YX240QV29-T_Rev.A__1_.pdf Reviewed-by: Rob Herring Signed-off-by: Conor Dooley Tested-by: Geert Uytterhoeven --- .../bindings/display/ilitek,ili9341.txt | 27 ----------- .../display/panel/ilitek,ili9341.yaml | 48 +++++++++++++------ 2 files changed, 34 insertions(+), 41 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/ilitek,ili934= 1.txt diff --git a/Documentation/devicetree/bindings/display/ilitek,ili9341.txt b= /Documentation/devicetree/bindings/display/ilitek,ili9341.txt deleted file mode 100644 index 169b32e4ee4e..000000000000 --- a/Documentation/devicetree/bindings/display/ilitek,ili9341.txt +++ /dev/null @@ -1,27 +0,0 @@ -Ilitek ILI9341 display panels - -This binding is for display panels using an Ilitek ILI9341 controller in S= PI -mode. - -Required properties: -- compatible: "adafruit,yx240qv29", "ilitek,ili9341" -- dc-gpios: D/C pin -- reset-gpios: Reset pin - -The node for this driver must be a child node of a SPI controller, hence -all mandatory properties described in ../spi/spi-bus.txt must be specified. - -Optional properties: -- rotation: panel rotation in degrees counter clockwise (0,90,180,270) -- backlight: phandle of the backlight device attached to the panel - -Example: - display@0{ - compatible =3D "adafruit,yx240qv29", "ilitek,ili9341"; - reg =3D <0>; - spi-max-frequency =3D <32000000>; - dc-gpios =3D <&gpio0 9 GPIO_ACTIVE_HIGH>; - reset-gpios =3D <&gpio0 8 GPIO_ACTIVE_HIGH>; - rotation =3D <270>; - backlight =3D <&backlight>; - }; diff --git a/Documentation/devicetree/bindings/display/panel/ilitek,ili9341= .yaml b/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml index 6058948a9764..c5571391ca28 100644 --- a/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml +++ b/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml @@ -21,6 +21,7 @@ properties: compatible: items: - enum: + - adafruit,yx240qv29 # ili9341 240*320 Color on stm32f429-disco board - st,sf-tc240t-9370-t - const: ilitek,ili9341 @@ -47,31 +48,50 @@ properties: vddi-led-supply: description: Voltage supply for the LED driver (1.65 .. 3.3 V) =20 -additionalProperties: false +unevaluatedProperties: false =20 required: - compatible - reg - dc-gpios - - port + +if: + properties: + compatible: + contains: + enum: + - st,sf-tc240t-9370-t +then: + required: + - port =20 examples: - |+ + #include spi { #address-cells =3D <1>; #size-cells =3D <0>; panel: display@0 { - compatible =3D "st,sf-tc240t-9370-t", - "ilitek,ili9341"; - reg =3D <0>; - spi-3wire; - spi-max-frequency =3D <10000000>; - dc-gpios =3D <&gpiod 13 0>; - port { - panel_in: endpoint { - remote-endpoint =3D <&display_out>; - }; - }; - }; + compatible =3D "st,sf-tc240t-9370-t", + "ilitek,ili9341"; + reg =3D <0>; + spi-3wire; + spi-max-frequency =3D <10000000>; + dc-gpios =3D <&gpiod 13 0>; + port { + panel_in: endpoint { + remote-endpoint =3D <&display_out>; + }; + }; + }; + display@1{ + compatible =3D "adafruit,yx240qv29", "ilitek,ili9341"; + reg =3D <1>; + spi-max-frequency =3D <10000000>; + dc-gpios =3D <&gpio0 9 GPIO_ACTIVE_HIGH>; + reset-gpios =3D <&gpio0 8 GPIO_ACTIVE_HIGH>; + rotation =3D <270>; + backlight =3D <&backlight>; }; + }; ... --=20 2.37.0 From nobody Sun Apr 19 05:32:13 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD60FCCA47B for ; Tue, 5 Jul 2022 21:52:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229655AbiGEVwg (ORCPT ); Tue, 5 Jul 2022 17:52:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232243AbiGEVw3 (ORCPT ); Tue, 5 Jul 2022 17:52:29 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14224766A for ; Tue, 5 Jul 2022 14:52:28 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id a5so4697962wrx.12 for ; Tue, 05 Jul 2022 14:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8/fojUw0EeEcK+rqcJSp3I2q4GoLWZt/YWa+Regpf2w=; b=Jr18FWZSzSRSneVObsSjnVJxBEUXAHsbqU/4W10bboXeXN2L2pGC6VHQ4lgo/UBYrp J0CMP0GRKp8dUKbMzK9I1qdn1rq3wK26lnd4XTIQ0sX7h71LptFUbULc6iaAnW6WGhm/ okjirNplhv/WA9IcoywKUcGHw+BXG46zwI2GDKyZOkmqjyOn04Z5BJhC7yJplgdtIB49 wuTwK1SUud924+xRGcyrhru3Yn2If8/5ynnTC895rXmhv7F9KKS2ySwpJDiF/o/a0tk6 AVZPaubBcC4eXqg35e2ngXfchcbpzRQnzCgaBYEME++JqIp0fl9txiaPCPAGuTEtjsUi YJFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8/fojUw0EeEcK+rqcJSp3I2q4GoLWZt/YWa+Regpf2w=; b=JGXlCxm9ztWx/G8fnHirDBuAUXg7YpSQwGkYZ2x2fY2u6CXq+GFr98YNtPP4RdVW1z /our0DxM2Xq+bbEo5asSaETW5GBOYjAbO782ljj32Y6HdYPh5RGDFaaBwhifIXdlz5QT mREjcNMIri1j/T95CGfupF18DJ2TuVRtlGfGx43rdnhJurtMZTNZXeMO9kOLIk/dwvJi IsTl3GSxamA1BFQLrMNar44+YZH5/MLRODnVFMxC4rL4L46fZQbkYoGG6EFXEaJLIIcc DAzx8TnUsKpFClrm57m2xhHkkDiAso0oljvZLOFxtOshwt+immwxAHRPYS1uRwNOZeb+ uJzw== X-Gm-Message-State: AJIora/NzFGff1iX0LudWrZeM9tzJKzHV/9K4p0DzvGIXSCyB/vdlPir xoGVuBYs8TtaclyYmWsOGSwZQw== X-Google-Smtp-Source: AGRyM1tX5bERlh6TaveO6GrgyXdZI+WLqirgKBhUqp4y28CVn8caA9+OntupBTJIPlHx+MDpz9T9Gg== X-Received: by 2002:a5d:5985:0:b0:21b:c74b:5a7 with SMTP id n5-20020a5d5985000000b0021bc74b05a7mr31952683wri.242.1657057946655; Tue, 05 Jul 2022 14:52:26 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id g34-20020a05600c4ca200b0039c7dbafa7asm18353920wmp.19.2022.07.05.14.52.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:52:26 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org, Rob Herring Subject: [PATCH v5 02/13] dt-bindings: display: ili9341: document canaan kd233's lcd Date: Tue, 5 Jul 2022 22:52:03 +0100 Message-Id: <20220705215213.1802496-3-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705215213.1802496-1-mail@conchuod.ie> References: <20220705215213.1802496-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Conor Dooley The Canaan KD233 development board has a built in LCD. Add a specific compatible for it. Reviewed-by: Rob Herring Signed-off-by: Conor Dooley Tested-by: Geert Uytterhoeven --- .../devicetree/bindings/display/panel/ilitek,ili9341.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/panel/ilitek,ili9341= .yaml b/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml index c5571391ca28..99e0cb9440cf 100644 --- a/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml +++ b/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml @@ -24,6 +24,7 @@ properties: - adafruit,yx240qv29 # ili9341 240*320 Color on stm32f429-disco board - st,sf-tc240t-9370-t + - canaan,kd233-tft - const: ilitek,ili9341 =20 reg: true --=20 2.37.0 From nobody Sun Apr 19 05:32:13 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E53E2CCA47C for ; Tue, 5 Jul 2022 21:52:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232634AbiGEVwk (ORCPT ); Tue, 5 Jul 2022 17:52:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231922AbiGEVwa (ORCPT ); Tue, 5 Jul 2022 17:52:30 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BE6C140F8 for ; Tue, 5 Jul 2022 14:52:29 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id d16so13065865wrv.10 for ; Tue, 05 Jul 2022 14:52:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bn7NMU6i2JipaHjilcDVj2dVJzF0Mozbq5+lea1OdzA=; b=Slkpsl7r9Kp451ZNey0oEZzxjuQF0suIIjxL9cZ2NQwn/t1lFAU9Tnh+suky4eMS1h YUmFPg8cYA3FAofnfJJV8ocNpuN2u1BAa+fQ35PTOkwttnxQ1zDR1Qc8de64sYsXnBUH ajLI4JkOsiOJ4FmFcWefB6nrvs/7GyrBRKYz+6/eOYVP/BE+xSu4DAnMoA7m08+pWwaW ELJHDcXeFjTZU4OrOCwONiswxxTNfceAQzWy+UcN47rs6g67curC4Asuc1MmU70KlF/V nasOCrdsJTNHCfg3y67UHtpYybbM7aKBZTTjA/5NNdVuWhbOCRNbKDRc0WOCbLp1OcZd jA6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bn7NMU6i2JipaHjilcDVj2dVJzF0Mozbq5+lea1OdzA=; b=yn04XLCw6HXycLS9Jd5Usndu94Rg+1bTKMX1Z2zr8AUM2ceR8rZjoDYHhrrhkITAQI C6tPVOcyWpTcHsOEvU184GqiL+OQWbgjf6NRskhKt926VR3bcMmnWiT7Bc+1Uw7K+eIe y/o1FwX1Czlo1BB9XidzLenPng3o0Vwu8YZPs2Zq1uhb8ACddl106BlOriXeaRgORGHS oviyqNer8aYXg74mb5S5We0xl+5ctjPjzJzvn4RcAAGzrqP7XCsT25MEMPmXn4Fv+fkT oCne4lrlprBOs9wudEjwOv8uC4WntUGNldWKlwwpySxiosTmIA3UgdWmNu9TLhThD6te yi3A== X-Gm-Message-State: AJIora+WinXWC2skiXRp7bHyOgLKJkfQv2LG/jp4CB3hHLmOAMF2LLXF cg3XhqTKNkd87lOZxxee8HYyvw== X-Google-Smtp-Source: AGRyM1uDlF2/DUTmOv95q9ml3VpkOLRHZuDe6OmNqYM6t+SWDXd/DCAq3Jod5QPF4ItOmxcBKE2/jA== X-Received: by 2002:a05:6000:1888:b0:21c:9a16:5cdd with SMTP id a8-20020a056000188800b0021c9a165cddmr34342146wri.562.1657057948113; Tue, 05 Jul 2022 14:52:28 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id g34-20020a05600c4ca200b0039c7dbafa7asm18353920wmp.19.2022.07.05.14.52.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:52:27 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org, Rob Herring Subject: [PATCH v5 03/13] dt-bindings: dma: dw-axi-dmac: extend the number of interrupts Date: Tue, 5 Jul 2022 22:52:04 +0100 Message-Id: <20220705215213.1802496-4-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705215213.1802496-1-mail@conchuod.ie> References: <20220705215213.1802496-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Conor Dooley The Canaan k210 apparently has a Sysnopsys Designware AXI DMA controller, but according to the documentation & devicetree it has 6 interrupts rather than the standard one. Support the 6 interrupt configuration by unconditionally extending the binding to a maximum of 8 per-channel interrupts thereby matching the number of possible channels. Link: https://canaan-creative.com/wp-content/uploads/2020/03/kendryte_stand= alone_programming_guide_20190311144158_en.pdf #Page 51 Reviewed-by: Serge Semin Reviewed-by: Rob Herring Signed-off-by: Conor Dooley Tested-by: Geert Uytterhoeven --- .../devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml b/= Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml index 4324a94b26b2..67aa7bb6d36a 100644 --- a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml +++ b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml @@ -34,7 +34,12 @@ properties: - const: axidma_apb_regs =20 interrupts: - maxItems: 1 + description: + If the IP-core synthesis parameter DMAX_INTR_IO_TYPE is set to 1, th= is + will be per-channel interrupts. Otherwise, this is a single combined= IRQ + for all channels. + minItems: 1 + maxItems: 8 =20 clocks: items: --=20 2.37.0 From nobody Sun Apr 19 05:32:13 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDBF0CCA47C for ; Tue, 5 Jul 2022 21:52:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231922AbiGEVwo (ORCPT ); Tue, 5 Jul 2022 17:52:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232596AbiGEVwc (ORCPT ); Tue, 5 Jul 2022 17:52:32 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9E2C140ED for ; Tue, 5 Jul 2022 14:52:30 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id t17-20020a1c7711000000b003a0434b0af7so8016735wmi.0 for ; Tue, 05 Jul 2022 14:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2GzPXU6fxlhRLcLCzHAtBw9aqp9IODNCeRsuQO5lcpY=; b=XT7ASFf1nIxEfdXiclNYpFSfVq9s4C412d1OLgO/lRLR31n5QoYTHi2w0+p6vqybbX L8rsroWGHmISyxXwTMLY5Pxl0TOG8uaNtgvh3ABkRgQei276FZRvd10cHmCHvrO97nSs X1TOJ070+O3zWigaRb5S9HsAQ7feSkeZGigRifEXpzQYhOCweEjRkKfebf8ovWlSg9Sm MATg8gxg3oOtY6sR8l+nawtwKUugNgrjxosw3dX9AbAQmizt8wGPJ0C0+p2XxxuR4VYQ cB+b97WOaIvDgK7CYap6O6H46outSUnrjdgeLqMg7CbGejFauZTBHZWOALqxV0SFuBD2 cSQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2GzPXU6fxlhRLcLCzHAtBw9aqp9IODNCeRsuQO5lcpY=; b=70QFUQ2ADVgiaR2w35PoR6wcp2dbxFjWKQyzC14fbGfkKZI/Iy9TXZ/P67bHGmdvAy yUCHgePXTRSU/YB+SEBZGz6b+fPvqBLqMeUKBrjTh+O1Qx2VlG6soy9hmVAYAEyIqOKF q1SzlFsYgVeh8Gr8ENkKHg/bWkIzCYjOUrtNLRBQZ4cBHOY2iLlstvC/KiqLq9hCVrR9 7sbiFVtT7Wvyw83TWe4LFPLpSIeFVWGHQx12MnLIxLc8m4u3TsNkp9B8JveFICJePC4o 0uSP/SpgZYndDO1SUM4QM9F0gHMXEcTkd9sgUMnVHE11W4+MGGVpGTL5iZcfUl9E6QcE Yo2g== X-Gm-Message-State: AJIora9KvyqifhaWwTqvobwLFwgRmmnb/QMCaWAsm3lofDy6/A1Ck4sF gHXuNv8re7MYAQRvZ4zVV2wCZQ== X-Google-Smtp-Source: AGRyM1uhOixFRoKPZ9r+xlFuyTA+0x5iwS5mflmn1FfFUubL8NnF+MTFXr4CI29OWbYvLWfq3Ui0Iw== X-Received: by 2002:a7b:ce0e:0:b0:3a0:4623:86b7 with SMTP id m14-20020a7bce0e000000b003a0462386b7mr39641466wmc.62.1657057949473; Tue, 05 Jul 2022 14:52:29 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id g34-20020a05600c4ca200b0039c7dbafa7asm18353920wmp.19.2022.07.05.14.52.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:52:29 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v5 04/13] dt-bindings: memory-controllers: add canaan k210 sram controller Date: Tue, 5 Jul 2022 22:52:05 +0100 Message-Id: <20220705215213.1802496-5-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705215213.1802496-1-mail@conchuod.ie> References: <20220705215213.1802496-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Conor Dooley The k210 U-Boot port has been using the clocks defined in the devicetree to bring up the board's SRAM, but this violates the dt-schema. As such, move the clocks to a dedicated node with the same compatible string & document it. Signed-off-by: Conor Dooley Reviewed-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Tested-by: Geert Uytterhoeven --- .../memory-controllers/canaan,k210-sram.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/memory-controllers/ca= naan,k210-sram.yaml diff --git a/Documentation/devicetree/bindings/memory-controllers/canaan,k2= 10-sram.yaml b/Documentation/devicetree/bindings/memory-controllers/canaan,= k210-sram.yaml new file mode 100644 index 000000000000..f81fb866e319 --- /dev/null +++ b/Documentation/devicetree/bindings/memory-controllers/canaan,k210-sram= .yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/canaan,k210-sram.yam= l# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Canaan K210 SRAM memory controller + +description: + The Canaan K210 SRAM memory controller is responsible for the system's 8= MiB + of SRAM. The controller is initialised by the bootloader, which configur= es + its clocks, before OS bringup. + +maintainers: + - Conor Dooley + +properties: + compatible: + enum: + - canaan,k210-sram + + clocks: + minItems: 1 + items: + - description: sram0 clock + - description: sram1 clock + - description: aisram clock + + clock-names: + minItems: 1 + items: + - const: sram0 + - const: sram1 + - const: aisram + +required: + - compatible + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + memory-controller { + compatible =3D "canaan,k210-sram"; + clocks =3D <&sysclk K210_CLK_SRAM0>, + <&sysclk K210_CLK_SRAM1>, + <&sysclk K210_CLK_AI>; + clock-names =3D "sram0", "sram1", "aisram"; + }; --=20 2.37.0 From nobody Sun Apr 19 05:32:13 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25880CCA47F for ; Tue, 5 Jul 2022 21:52:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232662AbiGEVws (ORCPT ); Tue, 5 Jul 2022 17:52:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231714AbiGEVwd (ORCPT ); Tue, 5 Jul 2022 17:52:33 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 820E9140F8 for ; Tue, 5 Jul 2022 14:52:31 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id z12so9786908wrq.7 for ; Tue, 05 Jul 2022 14:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RIjyo+v4SVWXgjNDfjVuAJAWZ8Bxe92vN1FxyPqfbiA=; b=HqLk5zcJWf6yjk0sm6LnL2fNfSHxlMYcx2NwuUldwgNT7LBQbNK8U+CHNU22ohSZfX jfsOHnehMji+CkgBY81zgji8jbKG0uw9RDIRgMLentiuJYYOTmn4nVjRS8OlckRy5WTc aX7ZxCMNVzNmvoEFSO/1DsXl9LYItNkpj43Am1GvNm/28n8AUqF+L4SddAB0dE0UISfW OTEm1sYYtkE0SainnUlBfSPT2PNzJ8nj5JUUbWlj2bCJAtBeTjiQXgsP840dxXt/sT4U VAXXJ1jT0os0tnSlMnOAkFvKzIeMM2ToW1M5kBy5hxQ8nGJ29djq+DavH3lQBSjizXUT gUYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RIjyo+v4SVWXgjNDfjVuAJAWZ8Bxe92vN1FxyPqfbiA=; b=kCo7deFVSJYsa4f6WCncbyyp2MsVaGuNrnFJ7thK7UqDxKyRfc1nHBKAy/1jXh4WEw ID6RXXZRKx/q7ZL/+NEnNEkgAIcV1EIIAOkNdP0hbes46tiHQ3YgiOdgUL926Kuwnb8l YwMGXkG4t1yu7hxmJt2G9YlSHPfErvynw04WmmX8jV6b7syvqVrCjMhsJW1sdImxyxP7 7BsZ9NYwqKY7tTpn3iqUgLVo1uWH3huwRaJE8U1+pgmBKvmNtVox7NkeqWry5TSOSkvb CQNQhK+uiHbrXV8EB0NQ54CpNwD+of/ydJh3t2PyPJR9I2oUjiGoJKSGI4RHTwtYKXZp zEvA== X-Gm-Message-State: AJIora/0zAFdmJ2FPu7RrlqC8eOlQETjmWujXV8sZ6VeOiZCRi2NTKmO vESqNn4sBoG7+QJA3/RAS/JLmw== X-Google-Smtp-Source: AGRyM1vJjQMyrNGX7U/FSTka+YYEasXPf4fPHcSV9Pyiex5jqMICTkfId8wmcqmwizt28warzAehaQ== X-Received: by 2002:a05:6000:1acc:b0:21c:439c:7074 with SMTP id i12-20020a0560001acc00b0021c439c7074mr32321649wry.686.1657057950904; Tue, 05 Jul 2022 14:52:30 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id g34-20020a05600c4ca200b0039c7dbafa7asm18353920wmp.19.2022.07.05.14.52.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:52:30 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v5 05/13] riscv: dts: canaan: fix the k210's memory node Date: Tue, 5 Jul 2022 22:52:06 +0100 Message-Id: <20220705215213.1802496-6-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705215213.1802496-1-mail@conchuod.ie> References: <20220705215213.1802496-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Conor Dooley The k210 U-Boot port has been using the clocks defined in the devicetree to bring up the board's SRAM, but this violates the dt-schema. As such, move the clocks to a dedicated node with the same compatible string. The regs property does not fit in either node, so is replaced by comments. Tested-by: Niklas Cassel Signed-off-by: Conor Dooley Tested-by: Geert Uytterhoeven --- arch/riscv/boot/dts/canaan/k210.dtsi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/riscv/boot/dts/canaan/k210.dtsi b/arch/riscv/boot/dts/can= aan/k210.dtsi index 44d338514761..cd4eae82d8b2 100644 --- a/arch/riscv/boot/dts/canaan/k210.dtsi +++ b/arch/riscv/boot/dts/canaan/k210.dtsi @@ -69,11 +69,13 @@ cpu1_intc: interrupt-controller { =20 sram: memory@80000000 { device_type =3D "memory"; + reg =3D <0x80000000 0x400000>, /* sram0 4 MiB */ + <0x80400000 0x200000>, /* sram1 2 MiB */ + <0x80600000 0x200000>; /* aisram 2 MiB */ + }; + + sram_controller: memory-controller { compatible =3D "canaan,k210-sram"; - reg =3D <0x80000000 0x400000>, - <0x80400000 0x200000>, - <0x80600000 0x200000>; - reg-names =3D "sram0", "sram1", "aisram"; clocks =3D <&sysclk K210_CLK_SRAM0>, <&sysclk K210_CLK_SRAM1>, <&sysclk K210_CLK_AI>; --=20 2.37.0 From nobody Sun Apr 19 05:32:13 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7D37CCA47C for ; Tue, 5 Jul 2022 21:52:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232644AbiGEVwv (ORCPT ); Tue, 5 Jul 2022 17:52:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232525AbiGEVwe (ORCPT ); Tue, 5 Jul 2022 17:52:34 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C58B3A462 for ; Tue, 5 Jul 2022 14:52:33 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id v16so7946842wrd.13 for ; Tue, 05 Jul 2022 14:52:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oqL0tHq3yutxZ8W44fi30XmUjbkhUDTMtwglXCEjHME=; b=TUD6u63i7P5kQA0tnLQjnxdzGdOqtSUW2eq4KqCx6pcbCMXUPWKNUj6YsetPT7YpfH /lKPlH2c+aILPHcMN+I7U2pkHsahJeoNYsD8BHnczcTzFzn1rBKqCJJ1sHZVQKckdOUV C1vMht16NUB2XhkbGAIgF560SO+H5q+u2ITntpWIcEuYmFqJUYeCZylaQkNH0DfdMH8o l4JU7weKZOktwSkx0fr1qsLtna94Sezgdu3IielxiXD2b6tY+l2rIT2sICejdRztjM75 7hcOt9iqgxnp9PCshmE6ZwAvCe5LTKMI+sgYK/F/ex3c7FbCUOJ15AfA67GwkIiem2bF 0qvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oqL0tHq3yutxZ8W44fi30XmUjbkhUDTMtwglXCEjHME=; b=XAmAP4s9oR4GuiQ/djz8UUmwmg7s+8lcR9d4OvIiXUO3vOoBwoYira7Lq7umtbVALT Fma9UMkfUC/t4U+ohLfoqXCCu3MBEHa9f/F8MT4x/9C178nR1mlsq0M9G/Fp3pnbovR3 DlRGOsYVP7vsmX1mXeguYb56kMy1HOeIOR0+C2gSBd6IQPduqr2wn2nhKZnnUH16TWiJ oeeGtVua7bkHjMt90FsunIZi55tmf+HrOnpbOIpR/RdiOV8oGYmKV3M/fRToYhhYeOhP cxBCNQl4RnKkQz3bft+QCno1Ew+977lCoT+SG5mFip8MyizseAVc8cAxZWx3+NQgZ3ad Iw/g== X-Gm-Message-State: AJIora9PxMn/kNxwHjgJ5kAHxFo3Vy/clmnHOzOHe5SaBT4EF4AY3toU 1pTSLpjcnoA14DDGpOePKotVgA== X-Google-Smtp-Source: AGRyM1t75bZl88GDvO4WahOzUUxgWngI0hl2R4SCexxJGzyeHIswkpPqzcGl4w65l4Bi7Mmu9kKLHA== X-Received: by 2002:a05:6000:1701:b0:21b:bfd5:c910 with SMTP id n1-20020a056000170100b0021bbfd5c910mr34193799wrc.363.1657057952380; Tue, 05 Jul 2022 14:52:32 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id g34-20020a05600c4ca200b0039c7dbafa7asm18353920wmp.19.2022.07.05.14.52.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:52:31 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v5 06/13] riscv: dts: canaan: fix the k210's timer nodes Date: Tue, 5 Jul 2022 22:52:07 +0100 Message-Id: <20220705215213.1802496-7-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705215213.1802496-1-mail@conchuod.ie> References: <20220705215213.1802496-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Conor Dooley The timers on the k210 have non standard interrupt configurations, which leads to dtbs_check warnings: k210_generic.dtb: timer@502d0000: interrupts: [[14], [15]] is too long From schema: Documentation/devicetree/bindings/timer/snps,dw-apb-timer.yaml Split the timer nodes in two, so that the second timer in the IP block can actually be accessed & in the process solve the dtbs_check warning. Reviewed-by: Serge Semin Signed-off-by: Conor Dooley Tested-by: Geert Uytterhoeven --- arch/riscv/boot/dts/canaan/k210.dtsi | 46 +++++++++++++++++++++++----- 1 file changed, 38 insertions(+), 8 deletions(-) diff --git a/arch/riscv/boot/dts/canaan/k210.dtsi b/arch/riscv/boot/dts/can= aan/k210.dtsi index cd4eae82d8b2..72f70128d751 100644 --- a/arch/riscv/boot/dts/canaan/k210.dtsi +++ b/arch/riscv/boot/dts/canaan/k210.dtsi @@ -319,28 +319,58 @@ fpioa: pinmux@502b0000 { =20 timer0: timer@502d0000 { compatible =3D "snps,dw-apb-timer"; - reg =3D <0x502D0000 0x100>; - interrupts =3D <14>, <15>; + reg =3D <0x502D0000 0x14>; + interrupts =3D <14>; clocks =3D <&sysclk K210_CLK_TIMER0>, <&sysclk K210_CLK_APB0>; clock-names =3D "timer", "pclk"; resets =3D <&sysrst K210_RST_TIMER0>; }; =20 - timer1: timer@502e0000 { + timer1: timer@502d0014 { compatible =3D "snps,dw-apb-timer"; - reg =3D <0x502E0000 0x100>; - interrupts =3D <16>, <17>; + reg =3D <0x502D0014 0x14>; + interrupts =3D <15>; + clocks =3D <&sysclk K210_CLK_TIMER0>, + <&sysclk K210_CLK_APB0>; + clock-names =3D "timer", "pclk"; + resets =3D <&sysrst K210_RST_TIMER0>; + }; + + timer2: timer@502e0000 { + compatible =3D "snps,dw-apb-timer"; + reg =3D <0x502E0000 0x14>; + interrupts =3D <16>; clocks =3D <&sysclk K210_CLK_TIMER1>, <&sysclk K210_CLK_APB0>; clock-names =3D "timer", "pclk"; resets =3D <&sysrst K210_RST_TIMER1>; }; =20 - timer2: timer@502f0000 { + timer3: timer@502e0014 { + compatible =3D "snps,dw-apb-timer"; + reg =3D <0x502E0014 0x114>; + interrupts =3D <17>; + clocks =3D <&sysclk K210_CLK_TIMER1>, + <&sysclk K210_CLK_APB0>; + clock-names =3D "timer", "pclk"; + resets =3D <&sysrst K210_RST_TIMER1>; + }; + + timer4: timer@502f0000 { + compatible =3D "snps,dw-apb-timer"; + reg =3D <0x502F0000 0x14>; + interrupts =3D <18>; + clocks =3D <&sysclk K210_CLK_TIMER2>, + <&sysclk K210_CLK_APB0>; + clock-names =3D "timer", "pclk"; + resets =3D <&sysrst K210_RST_TIMER2>; + }; + + timer5: timer@502f0014 { compatible =3D "snps,dw-apb-timer"; - reg =3D <0x502F0000 0x100>; - interrupts =3D <18>, <19>; + reg =3D <0x502F0014 0x14>; + interrupts =3D <19>; clocks =3D <&sysclk K210_CLK_TIMER2>, <&sysclk K210_CLK_APB0>; clock-names =3D "timer", "pclk"; --=20 2.37.0 From nobody Sun Apr 19 05:32:13 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB970CCA47B for ; Tue, 5 Jul 2022 21:52:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232036AbiGEVwx (ORCPT ); Tue, 5 Jul 2022 17:52:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232270AbiGEVwi (ORCPT ); Tue, 5 Jul 2022 17:52:38 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 239AD18B02 for ; Tue, 5 Jul 2022 14:52:35 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id k129so7822398wme.0 for ; Tue, 05 Jul 2022 14:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=M74NHYWFVlubiyzjgBD3mtVBmUu/qEzBrtkUN6AlacI=; b=LbsmErJNj1SSPN0AV+Q9z9lT2N70/Up5BN2W8NH0wehmNKWQlNFrk5OqDzZYsXhdTQ Hls2B8wQmS6GVJiUmKU+y+yaAJc7rgO6Ud5AhtZzvidys3JAlk3J/1edTCp+TvTD957T 42dzwHznCiQRrS/MgCgQeJ09qasxSpiV8miztZ7pEhH6qGce7h/pR1qJUNII4mzRjcPq g8TwWvnNrgB//oOp/UvWsKxjTFwctFHKdUfT4ZpyIYsUSVZYSvwFretmizy5s1OLt8wb YnUIbT3XDNd6vPA5xwOWmzcguEwV6zvMahHkg5IH0SkZmGb2HXJrkR3W9FnRywLNWmxh bGtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=M74NHYWFVlubiyzjgBD3mtVBmUu/qEzBrtkUN6AlacI=; b=qkBqABFlON/b9jgKZvNzSwvABNjG0zPanM3Wog7BkZxPw8eup3chnZixRFt9pd0SFO DcRK9QfrWu0RuEp/z4TbLxVvDrBgRmInOJl29xIEoz+SFj2cJ0+TRu/s8+4NaiBUdCf3 3AFUannrz1g+/fisxdILQXIkz0bWzVG7CFNwFJVT+lCVPEaxTaTZLQpsKFtu3Qw8z/Rc 2N+TPAO+PMWP+vx2djZDWx5rcih59Ih+B3wVxchGkOhK/9WN+0VuyeM2/tzCPdJKFyn+ wmArNIk1HBzpuJUg3glmG31x9sdUkq880GkZGp48Uh59/8K+ZmL8eeLWbubd2Sn+0nAz gIGQ== X-Gm-Message-State: AJIora88WuPryhhTQrQlyFtgiVFJDI5MxXqTMXZlWO0siEfTwL9tW6MU gCABvY1ixpHx0JrFwLOSsJSw9g== X-Google-Smtp-Source: AGRyM1uO7vMG/o91hp3+JmOnC/LWvd4jQWu7ahaOiYX0BCambKOIE9rOv6ReR4Y7BVC7IcBtd6QPxw== X-Received: by 2002:a05:600c:3788:b0:3a0:4279:5142 with SMTP id o8-20020a05600c378800b003a042795142mr36273470wmr.21.1657057953730; Tue, 05 Jul 2022 14:52:33 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id g34-20020a05600c4ca200b0039c7dbafa7asm18353920wmp.19.2022.07.05.14.52.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:52:33 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v5 07/13] riscv: dts: canaan: fix mmc node names Date: Tue, 5 Jul 2022 22:52:08 +0100 Message-Id: <20220705215213.1802496-8-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705215213.1802496-1-mail@conchuod.ie> References: <20220705215213.1802496-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Conor Dooley The newly-converted-to-dt-schema binding expects the mmc node name to be '^mmc(@.*)?$' so align the devicetree with the schema. Tested-by: Niklas Cassel Signed-off-by: Conor Dooley Tested-by: Geert Uytterhoeven --- arch/riscv/boot/dts/canaan/canaan_kd233.dts | 2 +- arch/riscv/boot/dts/canaan/sipeed_maix_bit.dts | 2 +- arch/riscv/boot/dts/canaan/sipeed_maix_dock.dts | 2 +- arch/riscv/boot/dts/canaan/sipeed_maix_go.dts | 2 +- arch/riscv/boot/dts/canaan/sipeed_maixduino.dts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/riscv/boot/dts/canaan/canaan_kd233.dts b/arch/riscv/boot/= dts/canaan/canaan_kd233.dts index 039b92abf046..40992d495aa8 100644 --- a/arch/riscv/boot/dts/canaan/canaan_kd233.dts +++ b/arch/riscv/boot/dts/canaan/canaan_kd233.dts @@ -142,7 +142,7 @@ &spi1 { cs-gpios =3D <&gpio0 16 GPIO_ACTIVE_LOW>; status =3D "okay"; =20 - slot@0 { + mmc@0 { compatible =3D "mmc-spi-slot"; reg =3D <0>; voltage-ranges =3D <3300 3300>; diff --git a/arch/riscv/boot/dts/canaan/sipeed_maix_bit.dts b/arch/riscv/bo= ot/dts/canaan/sipeed_maix_bit.dts index b9e30df127fe..5e809d0e11fb 100644 --- a/arch/riscv/boot/dts/canaan/sipeed_maix_bit.dts +++ b/arch/riscv/boot/dts/canaan/sipeed_maix_bit.dts @@ -189,7 +189,7 @@ &spi1 { cs-gpios =3D <&gpio0 13 GPIO_ACTIVE_LOW>; status =3D "okay"; =20 - slot@0 { + mmc@0 { compatible =3D "mmc-spi-slot"; reg =3D <0>; voltage-ranges =3D <3300 3300>; diff --git a/arch/riscv/boot/dts/canaan/sipeed_maix_dock.dts b/arch/riscv/b= oot/dts/canaan/sipeed_maix_dock.dts index 8d23401b0bbb..4be5ffac6b4a 100644 --- a/arch/riscv/boot/dts/canaan/sipeed_maix_dock.dts +++ b/arch/riscv/boot/dts/canaan/sipeed_maix_dock.dts @@ -191,7 +191,7 @@ &spi1 { cs-gpios =3D <&gpio0 13 GPIO_ACTIVE_LOW>; status =3D "okay"; =20 - slot@0 { + mmc@0 { compatible =3D "mmc-spi-slot"; reg =3D <0>; voltage-ranges =3D <3300 3300>; diff --git a/arch/riscv/boot/dts/canaan/sipeed_maix_go.dts b/arch/riscv/boo= t/dts/canaan/sipeed_maix_go.dts index 24fd83b43d9d..5c63f79b18ec 100644 --- a/arch/riscv/boot/dts/canaan/sipeed_maix_go.dts +++ b/arch/riscv/boot/dts/canaan/sipeed_maix_go.dts @@ -199,7 +199,7 @@ &spi1 { cs-gpios =3D <&gpio0 13 GPIO_ACTIVE_LOW>; status =3D "okay"; =20 - slot@0 { + mmc@0 { compatible =3D "mmc-spi-slot"; reg =3D <0>; voltage-ranges =3D <3300 3300>; diff --git a/arch/riscv/boot/dts/canaan/sipeed_maixduino.dts b/arch/riscv/b= oot/dts/canaan/sipeed_maixduino.dts index 25341f38292a..59f7eaf74655 100644 --- a/arch/riscv/boot/dts/canaan/sipeed_maixduino.dts +++ b/arch/riscv/boot/dts/canaan/sipeed_maixduino.dts @@ -164,7 +164,7 @@ &spi1 { cs-gpios =3D <&gpio1_0 2 GPIO_ACTIVE_LOW>; status =3D "okay"; =20 - slot@0 { + mmc@0 { compatible =3D "mmc-spi-slot"; reg =3D <0>; voltage-ranges =3D <3300 3300>; --=20 2.37.0 From nobody Sun Apr 19 05:32:13 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6436CCA47B for ; Tue, 5 Jul 2022 21:52:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232270AbiGEVw6 (ORCPT ); Tue, 5 Jul 2022 17:52:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232596AbiGEVwp (ORCPT ); Tue, 5 Jul 2022 17:52:45 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A447618E1E for ; Tue, 5 Jul 2022 14:52:35 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id r14so13594543wrg.1 for ; Tue, 05 Jul 2022 14:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=16q/8fFGCPAcRAarL+3aLoNygoSrExqmYVpC1bRjl2o=; b=YYFaUee7gy1W5prTWT0BCaYi4Agi4K/fZPz3HzSu/Bx3zMLRlN6iPr3QbkHb8nmHa1 OB4MbShSJ6pV3jSxnG3fgJKUgLhGQ98A6yUS6Hr1g5f9oo/CqzYerhyHeDMtY/8/V6h2 SNh8FrwHsBKxWQIetyAjLLN19P4VrMSyseVBVDmhxS7g75q2gULyOALP1sxruDhkHN2N 35BCcbcEZn0ZTeLrU+J2Zfur2nhAuZcdZvyFXbL1ZSzObDc51rZ3/tBedaYwAr+Csgr2 2BkluY0+l9Tx3ndW35NGgpStoxtOrR+02ao1YhadHBLpWQbGp6cMjwnv6DxdGW1rVIR0 V4Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=16q/8fFGCPAcRAarL+3aLoNygoSrExqmYVpC1bRjl2o=; b=EwBB/F6bjXnoGXq/W0CoGB3os+N2XoD0jvxueOjHXmjNWPPSpd3lHocSEtdUCkW8qi JHnQsI9D8LX/uEaLzB/vGmc7RzVPjW+Xpp8mqjncMJFkWgtOMeqlMULw0Tv09MHSFGRr 8G5XMH53Fx04yJIAXfdCwrxTaxvRhUjWFXgXGOydif/SyCRdRmT/vy+JblxpuxR4sRkf xuN0yNVZ6z/NjqfEZ/r8m+2YgZYAzxAiSxHj0n5j+TrLL4g49OiVSF28ct1jvFH2O7m/ y1iQPs6mDPaPZPXHp43MlPAoN9/DxtCaz9llSwzgltb4zjk4d0VwifjjBpE8dAbhPAr3 QuwA== X-Gm-Message-State: AJIora8jxye4q2doUTyzfmVQO1rMULYYWD2Xiuvqsa+k3wItGPVs5pb4 yr4d57J+1ITw/TbvU+yyM8w80w== X-Google-Smtp-Source: AGRyM1t6QNd/sm2WCxNG6Wr6I2YHwVTbjh9TXka92SSnVrAIhc+jsCS3/FhjvWlhLqMVSAqFGD6QKg== X-Received: by 2002:a05:6000:381:b0:21b:9a20:6543 with SMTP id u1-20020a056000038100b0021b9a206543mr32493151wrf.127.1657057955085; Tue, 05 Jul 2022 14:52:35 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id g34-20020a05600c4ca200b0039c7dbafa7asm18353920wmp.19.2022.07.05.14.52.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:52:34 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v5 08/13] riscv: dts: canaan: fix kd233 display spi frequency Date: Tue, 5 Jul 2022 22:52:09 +0100 Message-Id: <20220705215213.1802496-9-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705215213.1802496-1-mail@conchuod.ie> References: <20220705215213.1802496-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Conor Dooley The binding for the ili9341 specifies a const spi-max-frequency of 10 MHz but the kd233 devicetree entry has it listed at 15 Mhz. Align the devicetree with the value in the binding. Signed-off-by: Conor Dooley Tested-by: Geert Uytterhoeven --- arch/riscv/boot/dts/canaan/canaan_kd233.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/canaan/canaan_kd233.dts b/arch/riscv/boot/= dts/canaan/canaan_kd233.dts index 40992d495aa8..4a540158f287 100644 --- a/arch/riscv/boot/dts/canaan/canaan_kd233.dts +++ b/arch/riscv/boot/dts/canaan/canaan_kd233.dts @@ -130,7 +130,7 @@ panel@0 { compatible =3D "ilitek,ili9341"; reg =3D <0>; dc-gpios =3D <&gpio0 21 GPIO_ACTIVE_HIGH>; - spi-max-frequency =3D <15000000>; + spi-max-frequency =3D <10000000>; status =3D "disabled"; }; }; --=20 2.37.0 From nobody Sun Apr 19 05:32:13 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DF0FC43334 for ; Tue, 5 Jul 2022 21:53:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232683AbiGEVxC (ORCPT ); Tue, 5 Jul 2022 17:53:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232678AbiGEVws (ORCPT ); Tue, 5 Jul 2022 17:52:48 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FB66193DA for ; Tue, 5 Jul 2022 14:52:38 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 205-20020a1c02d6000000b003a03567d5e9so10086494wmc.1 for ; Tue, 05 Jul 2022 14:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=btfD2ddLZTsrkxXM+5X0SlRWCSAFkc3crudlByDnEUI=; b=R2ZH0gVpmULNTv6IJcLMhpWIi94ZX23K1txij23UvjFeSzC3TosPXLd2Xl8x/lj8HQ 9Y+0cd3VifBNPS8rtQtjRQbPZHdvl/w4dhwDPWCg0IXB58BUR6JYHlX9ZP1O+AhRmMgu B8d/QnrymSEjCT1MzHxmsr77lUPEBwyrqAC5UCUuROQwCAY/g7zB8dSBkrmbVIZd8gTU LjBB8oMchg8USlhrITWohYgE19TDziCHl77VuySNrjC2NTXP/bzmxACDHZEouWmEiU0B 1v7K3pQ5V1polgAp3q7tYlG4glWe6iedMPE5oJAkp24Ur4XhLIAuE8ditoMQgWPaJojK TtAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=btfD2ddLZTsrkxXM+5X0SlRWCSAFkc3crudlByDnEUI=; b=WGCTnzQ5TabsxElP1IAd7uFOv9rXkrPH6V6n0uviyeSjMBXHgOmIyPmhpGpoo7zhxk pkAy7zt6olzEUnuplBB7+qzhkADgegQRH1JsQ4lMqqSYxtfwKFKQaaNz2f9qNkKR2ghX W+Aufrp37F0xfU/a11RfUSW3kiyeDJM98Ura/ysoAa3tV6EROSyao4EglA4hAm+e4OZo 9bI56hR+EfZDSkysgyi8JUdcPGwXozHfKgFFKhxNjbVbZdzQVZkKMvfHV9kb7V+6mhMS GIgITzNE8yv5+inWeuqW/Z/JZ6OT8BK0o/YOvzsixv/zA2Wm1FPyNUDkniH70qx5f0Xn f9ew== X-Gm-Message-State: AJIora/a3wNbjSa0mxMAz2yml1+xRUHCkclyJKwyeOI63fSJM+Zn1V8F vEEytY10IJ1LZNWTeLARtJxXRg== X-Google-Smtp-Source: AGRyM1uXxyzForUKTAh74BBZRKGne5xPz5YmmHzkkj1xxpM+GNVio6fhXm02YyxzMkM3fk0zBgZL5g== X-Received: by 2002:a7b:cd0d:0:b0:3a1:8f1e:cb2f with SMTP id f13-20020a7bcd0d000000b003a18f1ecb2fmr24066595wmj.10.1657057956434; Tue, 05 Jul 2022 14:52:36 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id g34-20020a05600c4ca200b0039c7dbafa7asm18353920wmp.19.2022.07.05.14.52.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:52:36 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v5 09/13] riscv: dts: canaan: use custom compatible for k210 i2s Date: Tue, 5 Jul 2022 22:52:10 +0100 Message-Id: <20220705215213.1802496-10-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705215213.1802496-1-mail@conchuod.ie> References: <20220705215213.1802496-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Conor Dooley The devicetrees using the Canaan k210 all have a sound-dai-cells value of 1, whereas the standard binding example for the DesignWare i2s and other use cases suggest 0. Use a k210 specific compatible which supports this difference. Signed-off-by: Conor Dooley Tested-by: Geert Uytterhoeven --- arch/riscv/boot/dts/canaan/k210.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/riscv/boot/dts/canaan/k210.dtsi b/arch/riscv/boot/dts/can= aan/k210.dtsi index 72f70128d751..900dc629a945 100644 --- a/arch/riscv/boot/dts/canaan/k210.dtsi +++ b/arch/riscv/boot/dts/canaan/k210.dtsi @@ -251,7 +251,7 @@ spi2: spi@50240000 { }; =20 i2s0: i2s@50250000 { - compatible =3D "snps,designware-i2s"; + compatible =3D "canaan,k210-i2s", "snps,designware-i2s"; reg =3D <0x50250000 0x200>; interrupts =3D <5>; clocks =3D <&sysclk K210_CLK_I2S0>; @@ -260,7 +260,7 @@ i2s0: i2s@50250000 { }; =20 i2s1: i2s@50260000 { - compatible =3D "snps,designware-i2s"; + compatible =3D "canaan,k210-i2s", "snps,designware-i2s"; reg =3D <0x50260000 0x200>; interrupts =3D <6>; clocks =3D <&sysclk K210_CLK_I2S1>; @@ -269,7 +269,7 @@ i2s1: i2s@50260000 { }; =20 i2s2: i2s@50270000 { - compatible =3D "snps,designware-i2s"; + compatible =3D "canaan,k210-i2s", "snps,designware-i2s"; reg =3D <0x50270000 0x200>; interrupts =3D <7>; clocks =3D <&sysclk K210_CLK_I2S2>; --=20 2.37.0 From nobody Sun Apr 19 05:32:13 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4FBEC433EF for ; Tue, 5 Jul 2022 21:53:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232596AbiGEVxR (ORCPT ); Tue, 5 Jul 2022 17:53:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232271AbiGEVwu (ORCPT ); Tue, 5 Jul 2022 17:52:50 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CC22193F5 for ; Tue, 5 Jul 2022 14:52:39 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id v67-20020a1cac46000000b003a1888b9d36so8085430wme.0 for ; Tue, 05 Jul 2022 14:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UPBn59oLWa4WN0TM+d54cWfp0e3Yu26JBz3nIt6z28k=; b=Fy14/PvPj9PtUJSEWAsIoJtFk/QLAh+zpJW/GcdBuZm50Q5pLRFJxjVDsTQKO0jlNY wJEhEFKcJ5jxv6DRNmvwQzfS2yJogdZFiP8ZdIrNQl6Bottomg6ONQGpr/VfsdGYeB/N ND5Ib9C8J0JM8tXLAOqtqq8gufvNQQl45ZsHqL4Uj7+WAIQPsLAbZqQFWRiE0rUHtqzP becDXpKRWZUyde0rVYxaUYFI2eG27lKUswHmHJCDuX/QVyN3tS9z6hbfBG61zxiJlXb7 2JG3cOJS+O+N5O45JGX8/QxjmcaDKeRngl+PnlPwot8S54C/CJA9gNgldo5hidh9YXiG RGFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UPBn59oLWa4WN0TM+d54cWfp0e3Yu26JBz3nIt6z28k=; b=Pp+s1xfNDN6PDDVUpsLLiHVjW4CSc9byJIgxQLg3fXBqY/Ls01+YXmcpmeBSxpaINK vDz8yfArV1HeGc06ojS/pJmic8xnS8rru6L8XVZ0efy7XEaxu7f4fvSBqBUPHUhSOXxD rSG7P02GIiN+TYXUhHFWzr+ENKabTT6iTXSZqsRD3EzWFDY160kKEKoHNmaSha2yLA6P r6+iQd6ocV6MnrTEMbw12wfzLp/avslV1eWBJWGu1FqThFUDqY4KYv18Z4Aq23njdgSJ VHtFczQG4RDA7oAjS7yokIK3Mlny0YUsfTUgRmzUjLQxSttv2LjPcMGqm982rSLH4/qn rlDQ== X-Gm-Message-State: AJIora8hcqyyZnaJKO6udTY2iUrNpqgyzCU8dzzQwRIL0IRzpkCEFjPx tpayf8xUcrMfaqcDfQQIj8PkAw== X-Google-Smtp-Source: AGRyM1tsCEz43LIslI9FUHHd/xucvxD7qU2yykMq/Seu+ezPnUEgazknOGEg2oVZ51mnn77ZaJweNw== X-Received: by 2002:a05:600c:34ce:b0:3a0:3b4b:9022 with SMTP id d14-20020a05600c34ce00b003a03b4b9022mr40062698wmq.66.1657057957885; Tue, 05 Jul 2022 14:52:37 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id g34-20020a05600c4ca200b0039c7dbafa7asm18353920wmp.19.2022.07.05.14.52.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:52:37 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v5 10/13] riscv: dts: canaan: remove spi-max-frequency from controllers Date: Tue, 5 Jul 2022 22:52:11 +0100 Message-Id: <20220705215213.1802496-11-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705215213.1802496-1-mail@conchuod.ie> References: <20220705215213.1802496-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Conor Dooley spi-max-frequency is a device, not a controller property and should be removed. Link: https://lore.kernel.org/lkml/20220526014141.2872567-1-robh@kernel.org/ Tested-by: Niklas Cassel Signed-off-by: Conor Dooley Tested-by: Geert Uytterhoeven --- arch/riscv/boot/dts/canaan/k210.dtsi | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/riscv/boot/dts/canaan/k210.dtsi b/arch/riscv/boot/dts/can= aan/k210.dtsi index 900dc629a945..948dc235e39d 100644 --- a/arch/riscv/boot/dts/canaan/k210.dtsi +++ b/arch/riscv/boot/dts/canaan/k210.dtsi @@ -451,7 +451,6 @@ spi0: spi@52000000 { clock-names =3D "ssi_clk", "pclk"; resets =3D <&sysrst K210_RST_SPI0>; reset-names =3D "spi"; - spi-max-frequency =3D <25000000>; num-cs =3D <4>; reg-io-width =3D <4>; }; @@ -467,7 +466,6 @@ spi1: spi@53000000 { clock-names =3D "ssi_clk", "pclk"; resets =3D <&sysrst K210_RST_SPI1>; reset-names =3D "spi"; - spi-max-frequency =3D <25000000>; num-cs =3D <4>; reg-io-width =3D <4>; }; @@ -483,8 +481,7 @@ spi3: spi@54000000 { clock-names =3D "ssi_clk", "pclk"; resets =3D <&sysrst K210_RST_SPI3>; reset-names =3D "spi"; - /* Could possibly go up to 200 MHz */ - spi-max-frequency =3D <100000000>; + num-cs =3D <4>; reg-io-width =3D <4>; }; --=20 2.37.0 From nobody Sun Apr 19 05:32:13 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D49AC43334 for ; Tue, 5 Jul 2022 21:53:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231351AbiGEVxZ (ORCPT ); Tue, 5 Jul 2022 17:53:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232641AbiGEVwu (ORCPT ); Tue, 5 Jul 2022 17:52:50 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E26A319C37 for ; Tue, 5 Jul 2022 14:52:39 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id s1so19375222wra.9 for ; Tue, 05 Jul 2022 14:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j2Z7TaOJeXWEtVLR0e0XhsP1PHcFQhAlsDhisuCTI68=; b=XggLeeA/WTS9mEYdccjis5lFemn3ADc/NC/Rio0Njit6fDYwe4KqULiDHCG1BZE6D7 xE1+PrCMW9skQC1G33FqTwwPeBVBm/URrT/J92o4sQSWXYea58XJ8ipPVetQcYT5JnKf mZMGjP9ep5bFp6GU9hORlbtT4huMBIwRMdf0/KPbAZpcIRuPjVBV3UH8TZOhacY8n4dM PAM8XYn2VU8Fb8hzhh1pfmCjiAz+jbVzQe5YMIidd2uNKPz+nr7Nw2qaI4Snuqv4SzxU fRbg2ISKK9sV333yjUBDG+pIjyUIkQl6puDYlat0+7RJr6DyNpJs9468VUk0tOPfCyhB qhSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=j2Z7TaOJeXWEtVLR0e0XhsP1PHcFQhAlsDhisuCTI68=; b=nR/736XlPkAe9CQvg+kU33lh0opQXVgrIcosYIwLHjvgwZlO/pzg0XyDFzMZuW+HlY YloqbgrugjPurRyOHz0k28sQkvFAh/CvBhl8FhALznFDt3cCh78hJdEZYcilZmdaDkhH LXXK3A0ZE8QE5l2QC69e0cibowOg8JwMBw20AaV3pBSBvzU5ZSC0ow3+8Z1fk61lKsu+ vcgEnEXjvC0y5xIQW4udwYskWgk+80SBiBxmUQ2vGi3cBEulRrK27mEKzrphaG9hB6wK +wIYEeDpTcA+IkeGK1oUIlt/jAHnqZcxEuHX1fO0aL9Gio7o+3UET4xSsdyuVO+EMVii 5naw== X-Gm-Message-State: AJIora/rsNFVZlTXSqIaUZqzv5IG6kfHMrUN5j7GI6Fc7nSlWGtvaGHC HG6jUnhu4IrJ3THBcBEaoOqhXg== X-Google-Smtp-Source: AGRyM1tF/SegsE28614QkBK2sYVrZTXXYKFS981VORFpPqAQkmqnt12b3RBEdHc9eSvsFhzUnB+QyQ== X-Received: by 2002:a5d:5292:0:b0:21d:6c3b:a30a with SMTP id c18-20020a5d5292000000b0021d6c3ba30amr10584330wrv.602.1657057959345; Tue, 05 Jul 2022 14:52:39 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id g34-20020a05600c4ca200b0039c7dbafa7asm18353920wmp.19.2022.07.05.14.52.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:52:38 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v5 11/13] riscv: dts: canaan: fix bus {ranges,reg} warnings Date: Tue, 5 Jul 2022 22:52:12 +0100 Message-Id: <20220705215213.1802496-12-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705215213.1802496-1-mail@conchuod.ie> References: <20220705215213.1802496-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Conor Dooley The k210 devicetrees warn about missing/empty reg and/or ranges properties: arch/riscv/boot/dts/canaan/k210.dtsi:408.22-460.5: Warning (unit_address_vs= _reg): /soc/bus@52000000: node has a unit name, but no reg or ranges proper= ty arch/riscv/boot/dts/canaan/k210.dtsi:352.22-406.5: Warning (simple_bus_reg)= : /soc/bus@50400000: missing or empty reg/ranges property Add a ranges properties that naively caps the buses after the allocation of their last devices. Tested-by: Niklas Cassel Signed-off-by: Conor Dooley Tested-by: Geert Uytterhoeven --- arch/riscv/boot/dts/canaan/k210.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/riscv/boot/dts/canaan/k210.dtsi b/arch/riscv/boot/dts/can= aan/k210.dtsi index 948dc235e39d..a515e5fb1af3 100644 --- a/arch/riscv/boot/dts/canaan/k210.dtsi +++ b/arch/riscv/boot/dts/canaan/k210.dtsi @@ -163,7 +163,7 @@ apb0: bus@50200000 { #address-cells =3D <1>; #size-cells =3D <1>; compatible =3D "simple-pm-bus"; - ranges; + ranges =3D <0x50200000 0x50200000 0x200000>; clocks =3D <&sysclk K210_CLK_APB0>; =20 gpio1: gpio@50200000 { @@ -382,7 +382,7 @@ apb1: bus@50400000 { #address-cells =3D <1>; #size-cells =3D <1>; compatible =3D "simple-pm-bus"; - ranges; + ranges =3D <0x50400000 0x50400000 0x40100>; clocks =3D <&sysclk K210_CLK_APB1>; =20 wdt0: watchdog@50400000 { @@ -437,7 +437,7 @@ apb2: bus@52000000 { #address-cells =3D <1>; #size-cells =3D <1>; compatible =3D "simple-pm-bus"; - ranges; + ranges =3D <0x52000000 0x52000000 0x2000200>; clocks =3D <&sysclk K210_CLK_APB2>; =20 spi0: spi@52000000 { --=20 2.37.0 From nobody Sun Apr 19 05:32:13 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F43CC43334 for ; Tue, 5 Jul 2022 21:53:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232711AbiGEVxd (ORCPT ); Tue, 5 Jul 2022 17:53:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbiGEVw7 (ORCPT ); Tue, 5 Jul 2022 17:52:59 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33B5B1A04B for ; Tue, 5 Jul 2022 14:52:41 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id v14so19386382wra.5 for ; Tue, 05 Jul 2022 14:52:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nWVsoJ84nebg5qEzx/IyFZjNfcxxChmP9JWxkkGh06M=; b=bNjVpXzmlR/oWM523pD7Hne1AQQQiJuJz7eymu4r8tKUB0QnUyvNkL1aZIAxqUooj1 7ihDvcph+Hv85n2NhhFyIcvChV6ZYHBSuL0TfLXBN28IINhNsV8hUqQz/SlKfVTjTsb7 LknjMoulh7s2k46gfpL15T51BpP11SIJPktkH4UR9iuaLkRyzjbYSadCvPzXbLcBjhoB tDXWYHDOa57EAjaRLpeFhmKYG2PSTbvCNdceBjvnTYwGHKteRI+1wFGI640cAeey0kmB IOuARbRZuqQW3V3qs8fqjCY+OmQ8YhPuJW4/bE1xcuBIY3hi1nCOP0qRr6w884X/VAxd dbkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nWVsoJ84nebg5qEzx/IyFZjNfcxxChmP9JWxkkGh06M=; b=yVAHdL2CbFOfXg1LZfE6B6rQjsqjIlUr0COX4rfX2RO7sWeSiuFvv0CowTGYb7rvIu q1oEm5wJBId7ooYs6LjpF+BdTiLgfwZqZH+JYvzeBwsezMHDc0Pb07zSPAOWuOH9EJss T9m33HkDf4ky5BD00DR2zQ9OKdngp6RpObrTCdDPnRBOC+ewUwiAVq/8ObJtzO3lc5qC hBL/UKinS0D1IJ+24N0mtDA9jvQdTVm/wzKheTkUmUVnUuz9ScDtE8qQSIUWbawwOnUc cVu0DeH707M9aACfq81EXEnDZp/HB5pHWPEz7HWcbnjzoQMfjTUgE7Xwydx4B9Zd8sUK iSVg== X-Gm-Message-State: AJIora+P9r2bY9qRCQs++x8h3lO4/OTt5wXRr8sw1ZGpDV0QpWw1VERt WgfrSwWHHrxtzdI/fh0riczTQw== X-Google-Smtp-Source: AGRyM1tU1s0Kd36TQuvH5KjPiRqTOb3JL0g6qqv8u238NyO/YXr5MyXJLGr8xZQuXd4xQnYkdnCjzg== X-Received: by 2002:adf:9cc7:0:b0:21d:642b:85f2 with SMTP id h7-20020adf9cc7000000b0021d642b85f2mr16256358wre.21.1657057960735; Tue, 05 Jul 2022 14:52:40 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id g34-20020a05600c4ca200b0039c7dbafa7asm18353920wmp.19.2022.07.05.14.52.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:52:40 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v5 12/13] riscv: dts: canaan: add specific compatible for kd233's LCD Date: Tue, 5 Jul 2022 22:52:13 +0100 Message-Id: <20220705215213.1802496-13-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705215213.1802496-1-mail@conchuod.ie> References: <20220705215213.1802496-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Conor Dooley Add the recently introduced compatible for the LCD on the Canaan KD233. Signed-off-by: Conor Dooley Tested-by: Geert Uytterhoeven --- arch/riscv/boot/dts/canaan/canaan_kd233.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/canaan/canaan_kd233.dts b/arch/riscv/boot/= dts/canaan/canaan_kd233.dts index 4a540158f287..b0cd0105a5bd 100644 --- a/arch/riscv/boot/dts/canaan/canaan_kd233.dts +++ b/arch/riscv/boot/dts/canaan/canaan_kd233.dts @@ -127,7 +127,7 @@ &spi0 { cs-gpios =3D <&gpio0 20 GPIO_ACTIVE_HIGH>; =20 panel@0 { - compatible =3D "ilitek,ili9341"; + compatible =3D "canaan,kd233-tft", "ilitek,ili9341"; reg =3D <0>; dc-gpios =3D <&gpio0 21 GPIO_ACTIVE_HIGH>; spi-max-frequency =3D <10000000>; --=20 2.37.0 From nobody Sun Apr 19 05:32:13 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C33BC433EF for ; Tue, 5 Jul 2022 21:53:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230398AbiGEVxj (ORCPT ); Tue, 5 Jul 2022 17:53:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232784AbiGEVxN (ORCPT ); Tue, 5 Jul 2022 17:53:13 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22CA01A82E for ; Tue, 5 Jul 2022 14:52:42 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id b26so19409775wrc.2 for ; Tue, 05 Jul 2022 14:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lj8lQBl+rzKhHnZ+Xd+ZIX70dBba4zQ87/hMtZKztKo=; b=SWBLyNd34TD/mZu6n2FRfmU1HE1CDonJi13qsFyhAyqnSyEQ/KmdR1UWXQSWh8Lc4S wboztDYyEl0cB6dNxkPhLH8Vut8eQklDlAzLAba8wD+ncpM0c/ss1G9HZw6iwywvQYDc Wp4EiJ8gFj2NtEhHkoHzq6BO5iZJQV8yqDNi/hV+TI3EdwxWa8PyiRtclVAhofmrQMv1 O4MgZCyDw4sYc3gDgn4HyTIQC0OgktoApwqj7hpRysjTLfmxTwmhIL9038u47rfi3QnR TEsjdMTU0aXj0ZC25wthUzJnFtFa+8G8sy0GbjfRv+uUUgqNTVhurKapbgEb8iTWOR1w qZPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lj8lQBl+rzKhHnZ+Xd+ZIX70dBba4zQ87/hMtZKztKo=; b=oRLfjNhMIyzm0asobyspj70KKk/mFdUgvaPY3TlbGvEi+kWvfFfzmmviLlXuVM3HdG gJFHYXjKb8FjJXMFjLPckuGdIPzpeYJPXz04W91oxnBZVU666L9+Aem5XfyEVmvguCPp 2MWNCLVsc6VO2Yucayespj8MWsmwMtfHwGF6PYTC0F83gPhevZJNfExdwDTXBwlKcazx 6A4tP6oqUCx3JlzgWACpUsTsq7RJCdED7voOR2G2RaId2s/FZmGFaLD44agrU6xtd6eD EulSv9Cj7Fyp8BbPGy9TPvktz/umVV8r+4bqQIBWuRbPnDjePh5+srYzW/10fswhJoZq Iebg== X-Gm-Message-State: AJIora9JUX5Flxq6+Yc4slbgaBLwwzlfnOKB4TmkutHA1zwoxG15107B Hg4N7Dfm2gvZdXHjST40ekG3ZA== X-Google-Smtp-Source: AGRyM1tr0mSvjiKuETZ7gcWxREDHaUXAsNoHFiE497jvmcwKxLKMvl+jTlZGzJe6mijwSzLjNBUwQQ== X-Received: by 2002:a5d:64aa:0:b0:21b:c38b:bb81 with SMTP id m10-20020a5d64aa000000b0021bc38bbb81mr33626354wrp.666.1657057962100; Tue, 05 Jul 2022 14:52:42 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id g34-20020a05600c4ca200b0039c7dbafa7asm18353920wmp.19.2022.07.05.14.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:52:41 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v5 13/13] riscv: dts: canaan: build all devicetress if SOC_CANAAN Date: Tue, 5 Jul 2022 22:52:14 +0100 Message-Id: <20220705215213.1802496-14-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705215213.1802496-1-mail@conchuod.ie> References: <20220705215213.1802496-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Conor Dooley Testing & checking the Canaan devicetrees is inconvenient as only the devicetree corresponding to SOC_CANAAN_K210_DTB_BUILTIN will be built. Change the Makefile so that all devicetrees are built by default if SOC_CANAAN but only the one specified by SOC_CANAAN_K210_DTB_BUILTIN gets built as an object. Signed-off-by: Conor Dooley Tested-by: Geert Uytterhoeven --- arch/riscv/boot/dts/canaan/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/riscv/boot/dts/canaan/Makefile b/arch/riscv/boot/dts/cana= an/Makefile index c61b08ac8554..befe4eb7527b 100644 --- a/arch/riscv/boot/dts/canaan/Makefile +++ b/arch/riscv/boot/dts/canaan/Makefile @@ -1,3 +1,9 @@ # SPDX-License-Identifier: GPL-2.0 -dtb-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) +=3D $(addsuffix .dtb, $(CONFIG_= SOC_CANAAN_K210_DTB_SOURCE)) -obj-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) +=3D $(addsuffix .o, $(dtb-y)) +dtb-$(CONFIG_SOC_CANAAN) +=3D canaan_kd233.dtb +dtb-$(CONFIG_SOC_CANAAN) +=3D k210_generic.dtb +dtb-$(CONFIG_SOC_CANAAN) +=3D sipeed_maix_bit.dtb +dtb-$(CONFIG_SOC_CANAAN) +=3D sipeed_maix_dock.dtb +dtb-$(CONFIG_SOC_CANAAN) +=3D sipeed_maix_go.dtb +dtb-$(CONFIG_SOC_CANAAN) +=3D sipeed_maixduino.dtb + +obj-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) +=3D $(addsuffix .dtb.o, $(CONFI= G_SOC_CANAAN_K210_DTB_SOURCE)) --=20 2.37.0