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=-9.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 EB7B1C4363C for ; Wed, 7 Oct 2020 11:40:10 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (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 A8C5020782 for ; Wed, 7 Oct 2020 11:40:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=jms.id.au header.i=@jms.id.au header.b="Q7oD6bWA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A8C5020782 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4C5sny52fjzDqNC for ; Wed, 7 Oct 2020 22:40:06 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::144; helo=mail-il1-x144.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=jms.id.au header.i=@jms.id.au header.a=rsa-sha256 header.s=google header.b=Q7oD6bWA; dkim-atps=neutral Received: from mail-il1-x144.google.com (mail-il1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4C5slf1HB6zDqMK for ; Wed, 7 Oct 2020 22:38:05 +1100 (AEDT) Received: by mail-il1-x144.google.com with SMTP id b2so1970606ilr.1 for ; Wed, 07 Oct 2020 04:38:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LCypVPIr/PAEm/EIfUln/wKkAeALNd/oXaopzMpxMUc=; b=Q7oD6bWA3KwEZQwYCryLEkB4v8Ws8kbmYs28mCnGnc/Yic87vf+odJewXGtBHYczmx BIBR1h804lL5xnba4MFvMcPEv5k2nMutvGRq7+MdVVwZ8KwbGvwfdyvpcmCTHaTGsVWL s/kO7DAz2UtJ+D8y3/2RKegfBiK9VWgBUhPgU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LCypVPIr/PAEm/EIfUln/wKkAeALNd/oXaopzMpxMUc=; b=kNkLtSWsFn8j7zWgIbc7Ca545vk+l9O0qm5Q/Iy8HwesDUy6ZXPvaGqirFstceFLmh tzrX3eF3+fJf1E1YhmKQP2oH93iOLoEfEi+Z7amwQRo0Pn+WhX+1ieTMsFF0Iilw6s5Q woskpKdgdpoINum80gKybiN9fUQ+hwTqC0WoznEgGmmMWv8249d/znLVFQqzLVkLeQR+ T1fB5kJ7jXWjBeRSj3BUn9QoAJgvNOwpN1P0z4GGu7ZCYP9pWFnjUdKefvtQi84NGx4N pfhy6s+Z62uyEJwt67b2SWd9RLBVCWaMgEdj1QEqbjiWInRJGYTyiTLqcdko7u9yBHNX C9qA== X-Gm-Message-State: AOAM533jUsWdQ7MBn8n6WzV2JejWgf6GM7QkGrWVg8DYAOQJQiqhzT/y /hwvRs08WiLtveDG6depfFSIGNdLVUtoWJhmpKg= X-Google-Smtp-Source: ABdhPJyhaQ4u+xkyQpmGxqenp45qNG/chq5Qx5Tko8Qskj1XQAk0OQgjANaVIuslweHIy1II2byhhBfHQvJrYMtdzw4= X-Received: by 2002:a05:6e02:13e2:: with SMTP id w2mr2294131ilj.55.1602070683069; Wed, 07 Oct 2020 04:38:03 -0700 (PDT) MIME-Version: 1.0 References: <20200929131807.15378-1-tmaimon77@gmail.com> <20200929131807.15378-6-tmaimon77@gmail.com> In-Reply-To: <20200929131807.15378-6-tmaimon77@gmail.com> From: Joel Stanley Date: Wed, 7 Oct 2020 11:37:48 +0000 Message-ID: Subject: Re: [PATCH v8 5/5] arm: dts: add new device nodes to NPCM750 device tree EVB To: Tomer Maimon Content-Type: text/plain; charset="UTF-8" X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree , Benjamin Fair , Avi Fishman , Patrick Venture , OpenBMC Maillist , Linux Kernel Mailing List , Tali Perry , Rob Herring Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On Tue, 29 Sep 2020 at 13:18, Tomer Maimon wrote: > > Add the following new device nodes to > NPCM750 evolution board device tree: > > - NPCM7xx Pin controller and GPIO > - NPCM7xx PWM and FAN. > - NPCM7xx EHCI USB. > - NPCM7xx KCS. > - NPCM Reset. > - NPCM Peripheral SPI. > - NPCM FIU SPI. > - NPCM HWRNG. > - NPCM I2C. > - STMicro STMMAC. > > Signed-off-by: Tomer Maimon Reviewed-by: Joel Stanley > --- > arch/arm/boot/dts/nuvoton-npcm750-evb.dts | 367 +++++++++++++++++- > .../boot/dts/nuvoton-npcm750-pincfg-evb.dtsi | 157 ++++++++ > 2 files changed, 523 insertions(+), 1 deletion(-) > create mode 100644 arch/arm/boot/dts/nuvoton-npcm750-pincfg-evb.dtsi > > diff --git a/arch/arm/boot/dts/nuvoton-npcm750-evb.dts b/arch/arm/boot/dts/nuvoton-npcm750-evb.dts > index 15f744f1beea..9f13d08f5804 100644 > --- a/arch/arm/boot/dts/nuvoton-npcm750-evb.dts > +++ b/arch/arm/boot/dts/nuvoton-npcm750-evb.dts > @@ -4,24 +4,161 @@ > > /dts-v1/; > #include "nuvoton-npcm750.dtsi" > +#include "dt-bindings/gpio/gpio.h" > +#include "nuvoton-npcm750-pincfg-evb.dtsi" > > / { > model = "Nuvoton npcm750 Development Board (Device Tree)"; > compatible = "nuvoton,npcm750"; > > + aliases { > + ethernet2 = &gmac0; > + ethernet3 = &gmac1; > + serial0 = &serial0; > + serial1 = &serial1; > + serial2 = &serial2; > + serial3 = &serial3; > + i2c0 = &i2c0; > + i2c1 = &i2c1; > + i2c2 = &i2c2; > + i2c3 = &i2c3; > + i2c4 = &i2c4; > + i2c5 = &i2c5; > + i2c6 = &i2c6; > + i2c7 = &i2c7; > + i2c8 = &i2c8; > + i2c9 = &i2c9; > + i2c10 = &i2c10; > + i2c11 = &i2c11; > + i2c12 = &i2c12; > + i2c13 = &i2c13; > + i2c14 = &i2c14; > + i2c15 = &i2c15; > + spi0 = &spi0; > + spi1 = &spi1; > + fiu0 = &fiu0; > + fiu1 = &fiu3; > + fiu2 = &fiux; > + }; > + > chosen { > stdout-path = &serial3; > }; > > memory { > - reg = <0 0x40000000>; > + device_type = "memory"; > + reg = <0x0 0x20000000>; > + }; > +}; > + > +&gmac0 { > + phy-mode = "rgmii-id"; > + status = "okay"; > +}; > + > +&gmac1 { > + phy-mode = "rgmii-id"; > + status = "okay"; > +}; > + > +&ehci1 { > + status = "okay"; > +}; > + > +&fiu0 { > + status = "okay"; > + spi-nor@0 { > + compatible = "jedec,spi-nor"; > + #address-cells = <1>; > + #size-cells = <1>; > + spi-rx-bus-width = <2>; > + reg = <0>; > + spi-max-frequency = <5000000>; > + partitions@80000000 { > + compatible = "fixed-partitions"; > + #address-cells = <1>; > + #size-cells = <1>; > + bbuboot1@0 { > + label = "bb-uboot-1"; > + reg = <0x0000000 0x80000>; > + read-only; > + }; > + bbuboot2@80000 { > + label = "bb-uboot-2"; > + reg = <0x0080000 0x80000>; > + read-only; > + }; > + envparam@100000 { > + label = "env-param"; > + reg = <0x0100000 0x40000>; > + read-only; > + }; > + spare@140000 { > + label = "spare"; > + reg = <0x0140000 0xC0000>; > + }; > + kernel@200000 { > + label = "kernel"; > + reg = <0x0200000 0x400000>; > + }; > + rootfs@600000 { > + label = "rootfs"; > + reg = <0x0600000 0x700000>; > + }; > + spare1@D00000 { > + label = "spare1"; > + reg = <0x0D00000 0x200000>; > + }; > + spare2@0F00000 { > + label = "spare2"; > + reg = <0x0F00000 0x200000>; > + }; > + spare3@1100000 { > + label = "spare3"; > + reg = <0x1100000 0x200000>; > + }; > + spare4@1300000 { > + label = "spare4"; > + reg = <0x1300000 0x0>; > + }; > + }; > + }; > +}; > + > +&fiu3 { > + pinctrl-0 = <&spi3_pins>, <&spi3quad_pins>; > + status = "okay"; > + spi-nor@0 { > + compatible = "jedec,spi-nor"; > + #address-cells = <1>; > + #size-cells = <1>; > + spi-rx-bus-width = <2>; > + reg = <0>; > + spi-max-frequency = <5000000>; > + partitions@A0000000 { > + compatible = "fixed-partitions"; > + #address-cells = <1>; > + #size-cells = <1>; > + system1@0 { > + label = "spi3-system1"; > + reg = <0x0 0x0>; > + }; > + }; > }; > }; > > +&fiux { > + spix-mode; > +}; > + > &watchdog1 { > status = "okay"; > }; > > +&rng { > + status = "okay"; > +}; > + > &serial0 { > status = "okay"; > }; > @@ -37,3 +174,231 @@ > &serial3 { > status = "okay"; > }; > + > +&adc { > + status = "okay"; > +}; > + > +&lpc_kcs { > + kcs1: kcs1@0 { > + status = "okay"; > + }; > + > + kcs2: kcs2@0 { > + status = "okay"; > + }; > + > + kcs3: kcs3@0 { > + status = "okay"; > + }; > +}; > + > +/* lm75 on SVB */ > +&i2c0 { > + clock-frequency = <100000>; > + status = "okay"; > + lm75@48 { > + compatible = "lm75"; > + reg = <0x48>; > + status = "okay"; > + }; > +}; > + > +/* lm75 on EB */ > +&i2c1 { > + clock-frequency = <100000>; > + status = "okay"; > + lm75@48 { > + compatible = "lm75"; > + reg = <0x48>; > + status = "okay"; > + }; > +}; > + > +/* tmp100 on EB */ > +&i2c2 { > + clock-frequency = <100000>; > + status = "okay"; > + tmp100@48 { > + compatible = "tmp100"; > + reg = <0x48>; > + status = "okay"; > + }; > +}; > + > +&i2c3 { > + clock-frequency = <100000>; > + status = "okay"; > +}; > + > +&i2c5 { > + clock-frequency = <100000>; > + status = "okay"; > +}; > + > +/* tmp100 on SVB */ > +&i2c6 { > + clock-frequency = <100000>; > + status = "okay"; > + tmp100@48 { > + compatible = "tmp100"; > + reg = <0x48>; > + status = "okay"; > + }; > +}; > + > +&i2c7 { > + clock-frequency = <100000>; > + status = "okay"; > +}; > + > +&i2c8 { > + clock-frequency = <100000>; > + status = "okay"; > +}; > + > +&i2c9 { > + clock-frequency = <100000>; > + status = "okay"; > +}; > + > +&i2c10 { > + clock-frequency = <100000>; > + status = "okay"; > +}; > + > +&i2c11 { > + clock-frequency = <100000>; > + status = "okay"; > +}; > + > +&i2c14 { > + clock-frequency = <100000>; > + status = "okay"; > +}; > + > +&pwm_fan { > + status = "okay"; > + fan@0 { > + reg = <0x00>; > + fan-tach-ch = /bits/ 8 <0x00 0x01>; > + cooling-levels = <127 255>; > + }; > + fan@1 { > + reg = <0x01>; > + fan-tach-ch = /bits/ 8 <0x02 0x03>; > + cooling-levels = /bits/ 8 <127 255>; > + }; > + fan@2 { > + reg = <0x02>; > + fan-tach-ch = /bits/ 8 <0x04 0x05>; > + cooling-levels = /bits/ 8 <127 255>; > + }; > + fan@3 { > + reg = <0x03>; > + fan-tach-ch = /bits/ 8 <0x06 0x07>; > + cooling-levels = /bits/ 8 <127 255>; > + }; > + fan@4 { > + reg = <0x04>; > + fan-tach-ch = /bits/ 8 <0x08 0x09>; > + cooling-levels = /bits/ 8 <127 255>; > + }; > + fan@5 { > + reg = <0x05>; > + fan-tach-ch = /bits/ 8 <0x0A 0x0B>; > + cooling-levels = /bits/ 8 <127 255>; > + }; > + fan@6 { > + reg = <0x06>; > + fan-tach-ch = /bits/ 8 <0x0C 0x0D>; > + cooling-levels = /bits/ 8 <127 255>; > + }; > + fan@7 { > + reg = <0x07>; > + fan-tach-ch = /bits/ 8 <0x0E 0x0F>; > + cooling-levels = /bits/ 8 <127 255>; > + }; > +}; > + > +&spi0 { > + cs-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>; > + status = "okay"; > + Flash@0 { > + compatible = "winbond,w25q128", > + "jedec,spi-nor"; > + reg = <0x0>; > + #address-cells = <1>; > + #size-cells = <1>; > + spi-max-frequency = <5000000>; > + partition@0 { > + label = "spi0_spare1"; > + reg = <0x0000000 0x800000>; > + }; > + partition@1 { > + label = "spi0_spare2"; > + reg = <0x800000 0x0>; > + }; > + }; > +}; > + > +&spi1 { > + cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; > + status = "okay"; > + Flash@0 { > + compatible = "winbond,w25q128fw", > + "jedec,spi-nor"; > + reg = <0x0>; > + #address-cells = <1>; > + #size-cells = <1>; > + spi-max-frequency = <5000000>; > + partition@0 { > + label = "spi1_spare1"; > + reg = <0x0000000 0x800000>; > + }; > + partition@1 { > + label = "spi1_spare2"; > + reg = <0x800000 0x0>; > + }; > + }; > +}; > + > +&pinctrl { > + pinctrl-names = "default"; > + pinctrl-0 = < &iox1_pins > + &pin8_input > + &pin9_output_high > + &pin10_input > + &pin11_output_high > + &pin16_input > + &pin24_output_high > + &pin25_output_low > + &pin32_output_high > + &jtag2_pins > + &pin61_output_high > + &pin62_output_high > + &pin63_output_high > + &lpc_pins > + &pin160_input > + &pin162_input > + &pin168_input > + &pin169_input > + &pin170_input > + &pin187_output_high > + &pin190_input > + &pin191_output_high > + &pin192_output_high > + &pin197_output_low > + &ddc_pins > + &pin218_input > + &pin219_output_low > + &pin220_output_low > + &pin221_output_high > + &pin222_input > + &pin223_output_low > + &spix_pins > + &pin228_output_low > + &pin231_output_high > + &pin255_input>; > +}; > + > diff --git a/arch/arm/boot/dts/nuvoton-npcm750-pincfg-evb.dtsi b/arch/arm/boot/dts/nuvoton-npcm750-pincfg-evb.dtsi > new file mode 100644 > index 000000000000..3b3806274adf > --- /dev/null > +++ b/arch/arm/boot/dts/nuvoton-npcm750-pincfg-evb.dtsi > @@ -0,0 +1,157 @@ > +// SPDX-License-Identifier: GPL-2.0 > +// Copyright (c) 2018 Nuvoton Technology > + > +/ { > + pinctrl: pinctrl@f0800000 { > + pin8_input: pin8-input { > + pins = "GPIO8/LKGPO1"; > + bias-disable; > + input-enable; > + }; > + pin9_output_high: pin9-output-high { > + pins = "GPIO9/LKGPO2"; > + bias-disable; > + output-high; > + }; > + pin10_input: pin10-input { > + pins = "GPIO10/IOXHLD"; > + bias-disable; > + input-enable; > + }; > + pin11_output_high: pin11-output-high { > + pins = "GPIO11/IOXHCK"; > + bias-disable; > + output-high; > + }; > + pin16_input: pin16-input { > + pins = "GPIO16/LKGPO0"; > + bias-disable; > + input-enable; > + }; > + pin24_output_high: pin24-output-high { > + pins = "GPIO24/IOXHDO"; > + bias-disable; > + output-high; > + }; > + pin25_output_low: pin25-output-low { > + pins = "GPIO25/IOXHDI"; > + bias-disable; > + output-low; > + }; > + pin32_output_high: pin32-output-high { > + pins = "GPIO32/nSPI0CS1"; > + bias-disable; > + output-high; > + }; > + pin61_output_high: pin61-output-high { > + pins = "GPO61/nDTR1_BOUT1/STRAP6"; > + bias-disable; > + output-high; > + }; > + pin62_output_high: pin62-output-high { > + pins = "GPO62/nRTST1/STRAP5"; > + bias-disable; > + output-high; > + }; > + pin63_output_high: pin63-output-high { > + pins = "GPO63/TXD1/STRAP4"; > + bias-disable; > + output-high; > + }; > + pin160_input: pin160-input { > + pins = "GPIO160/CLKOUT/RNGOSCOUT"; > + bias-disable; > + input-enable; > + }; > + pin162_input: pin162-input { > + pins = "GPIO162/SERIRQ"; > + bias-disable; > + input-enable; > + }; > + pin168_input: pin168-input { > + pins = "GPIO168/nCLKRUN/nESPIALERT"; > + bias-disable; > + input-enable; > + }; > + pin169_input: pin169-input { > + pins = "GPIO169/nSCIPME"; > + bias-disable; > + input-enable; > + }; > + pin170_input: pin170-input { > + pins = "GPIO170/nSMI"; > + bias-disable; > + input-enable; > + }; > + pin187_output_high: pin187-output-high { > + pins = "GPIO187/nSPI3CS1"; > + bias-disable; > + output-high; > + }; > + pin190_input: pin190-input { > + pins = "GPIO190/nPRD_SMI"; > + bias-disable; > + input-enable; > + }; > + pin191_output_high: pin191-output-high { > + pins = "GPIO191"; > + bias-disable; > + output-high; > + }; > + pin192_output_high: pin192-output-high { > + pins = "GPIO192"; > + bias-disable; > + output-high; > + }; > + pin197_output_low: pin197-output-low { > + pins = "GPIO197/SMB0DEN"; > + bias-disable; > + output-low; > + }; > + pin218_input: pin218-input { > + pins = "GPIO218/nWDO1"; > + bias-disable; > + input-enable; > + }; > + pin219_output_low: pin219-output-low { > + pins = "GPIO219/nWDO2"; > + bias-disable; > + output-low; > + }; > + pin220_output_low: pin220-output-low { > + pins = "GPIO220/SMB12SCL"; > + bias-disable; > + output-low; > + }; > + pin221_output_high: pin221-output-high { > + pins = "GPIO221/SMB12SDA"; > + bias-disable; > + output-high; > + }; > + pin222_input: pin222-input { > + pins = "GPIO222/SMB13SCL"; > + bias-disable; > + input-enable; > + }; > + pin223_output_low: pin223-output-low { > + pins = "GPIO223/SMB13SDA"; > + bias-disable; > + output-low; > + }; > + pin228_output_low: pin228-output-low { > + pins = "GPIO228/nSPIXCS1"; > + bias-disable; > + output-low; > + }; > + pin231_output_high: pin231-output-high { > + pins = "GPIO230/SPIXD3"; > + bias-disable; > + output-high; > + }; > + pin255_input: pin255-input { > + pins = "GPI255/DACOSEL"; > + bias-disable; > + input-enable; > + }; > + }; > +}; > -- > 2.22.0 >