From patchwork Mon Jan 14 13:07:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomer Maimon X-Patchwork-Id: 1024549 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43dZHF3935z9s3q for ; Tue, 15 Jan 2019 00:35:53 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 43dZHF1pjczDqNT for ; Tue, 15 Jan 2019 00:35:53 +1100 (AEDT) X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=nuvoton.com (client-ip=212.199.177.27; helo=herzl.nuvoton.co.il; envelope-from=tomer.maimon@nuvoton.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Received: from herzl.nuvoton.co.il (212.199.177.27.static.012.net.il [212.199.177.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 43dYfh2GhKzDqVL for ; Tue, 15 Jan 2019 00:07:39 +1100 (AEDT) Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id x0ECbMNh019017; Mon, 14 Jan 2019 14:37:22 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id DBC8262DA4; Mon, 14 Jan 2019 15:07:19 +0200 (IST) From: Tomer Maimon To: joel@jms.id.au Subject: [linux dev-4.19 15/15] dts: npcm7xx: Modify NPCM7xx device tree Date: Mon, 14 Jan 2019 15:07:10 +0200 Message-Id: <20190114130710.427600-16-tmaimon77@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190114130710.427600-1-tmaimon77@gmail.com> References: <20190114130710.427600-1-tmaimon77@gmail.com> 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: openbmc@lists.ozlabs.org, Tomer Maimon Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" Modify NPCM7xx device tree FIU, ADC, RST, VCD and SPI nodes Add regulator and HGPIO pins nodes. Signed-off-by: Tomer Maimon --- arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi | 199 +++++++++++++++----------- arch/arm/boot/dts/nuvoton-npcm750-evb.dts | 165 +++++++++++++++------ arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi | 18 +-- arch/arm/boot/dts/nuvoton-npcm750.dtsi | 10 +- 4 files changed, 249 insertions(+), 143 deletions(-) diff --git a/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi b/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi index afe0d3cb516d..a24a06170660 100644 --- a/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi +++ b/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi @@ -5,6 +5,7 @@ #include "skeleton.dtsi" #include #include +#include / { #address-cells = <1>; @@ -74,7 +75,7 @@ rst: rst@f0801000 { compatible = "nuvoton,npcm750-rst", "syscon", "simple-mfd"; - reg = <0x801000 0x1000>; + reg = <0x801000 0x6C>; }; scu: scu@3fe000 { @@ -128,7 +129,7 @@ clock-names = "stmmaceth", "clk_gmac"; pinctrl-names = "default"; pinctrl-0 = <&rg1_pins - &rg1mdio_pins>; + &rg1mdio_pins>; status = "disabled"; }; @@ -142,8 +143,9 @@ clock-names = "clk_emc"; pinctrl-names = "default"; pinctrl-0 = <&r1_pins - &r1err_pins - &r1md_pins>; + &r1err_pins + &r1md_pins>; + status = "disabled"; }; ehci1:usb@f0806000 { @@ -213,52 +215,38 @@ interrupts = ; }; - spi0: spi@fb000000 { - compatible = "nuvoton,npcm750-spi"; + fiu0: fiu@fb000000 { + compatible = "nuvoton,npcm750-fiu"; #address-cells = <1>; #size-cells = <0>; reg = <0xfb000000 0x1000>, <0x80000000 0x10000000>; reg-names = "control", "memory"; - chip-max-address-map = <0x8000000>; clocks = <&clk NPCM7XX_CLK_AHB>; clock-names = "clk_ahb"; - spi-nor@0 { - compatible = "jedec,spi-nor"; - #address-cells = <1>; - #size-cells = <1>; - reg = <0>; - }; + status = "disabled"; }; - spi3: spi@c0000000 { - compatible = "nuvoton,npcm750-spi"; + + fiu3: fiu@c0000000 { + compatible = "nuvoton,npcm750-fiu"; #address-cells = <1>; #size-cells = <0>; reg = <0xc0000000 0x1000>, <0xA0000000 0x20000000>; reg-names = "control", "memory"; - chip-max-address-map = <0x8000000>; clocks = <&clk NPCM7XX_CLK_AHB>; clock-names = "clk_ahb"; pinctrl-names = "default"; - pinctrl-0 = <&spi3_pins &spi3quad_pins>; - spi-nor@0 { - compatible = "jedec,spi-nor"; - #address-cells = <1>; - #size-cells = <1>; - reg = <0>; - }; + pinctrl-0 = <&spi3_pins>; + status = "disabled"; }; - pci_rc: axi-pcie@e1000000 { - #address-cells = <3>; - #size-cells = <2>; - #interrupt-cells = <1>; - compatible = "nuvoton,npcm750-pcirc"; - reg = <0xe1000000 0x1000>; - device_type = "pci"; - interrupts = ; - bus-range = <0x00 0xff>; - ranges = <0x02000000 0 0xea000000 - 0xea000000 0 0x02000000>; + fiux: fiu@fb001000 { + compatible = "nuvoton,npcm750-fiu"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xfb001000 0x1000>, <0xf8000000 0x2000000>; + reg-names = "control", "memory"; + clocks = <&clk NPCM7XX_CLK_AHB>; + clock-names = "clk_ahb"; status = "disabled"; }; @@ -271,17 +259,18 @@ vcd: vcd@f0810000 { compatible = "nuvoton,npcm750-vcd"; reg = <0xf0810000 0x10000>; - phy-memory = <0x3e200000 0x600000>; - de-mode = /bits/ 8 <1>; - interrupts = <0 22 4>; + mem-addr = <0x3e200000>; + mem-size = <0x600000>; + interrupts = ; status = "disabled"; }; ece: ece@f0820000 { compatible = "nuvoton,npcm750-ece"; reg = <0xf0820000 0x2000>; - phy-memory = <0x3e800000 0x600000>; - interrupts = <0 24 4>; + mem-addr = <0x3e800000>; + mem-size = <0x600000>; + interrupts = ; status = "disabled"; }; @@ -352,13 +341,30 @@ }; }; - pspi: pspi@0 { + spi0: spi@200000 { compatible = "nuvoton,npcm750-pspi"; - reg = <0x200000 0x2000>; - interrupts = , - ; + reg = <0x200000 0x1000>; + pinctrl-names = "default"; + pinctrl-0 = <&pspi1_pins>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; clocks = <&clk NPCM7XX_CLK_APB5>; clock-names = "clk_apb5"; + status = "disabled"; + }; + + spi1: spi@201000 { + compatible = "nuvoton,npcm750-pspi"; + reg = <0x201000 0x1000>; + pinctrl-names = "default"; + pinctrl-0 = <&pspi2_pins>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clk NPCM7XX_CLK_APB5>; + clock-names = "clk_apb5"; + status = "disabled"; }; timer0: timer@8000 { @@ -438,10 +444,10 @@ adc: adc@c000 { compatible = "nuvoton,npcm750-adc"; - reg = <0xc000 0x1000>; + reg = <0xc000 0x8>; + interrupts = ; clocks = <&clk NPCM7XX_CLK_ADC>; - clock-names = "clk_adc"; - vref = <2048>; + status = "disabled"; }; otp:otp@189000 { @@ -453,7 +459,7 @@ clock-names = "clk_apb4"; }; - pwm_fan:pwm-fan-controller@103000 { + pwm_fan:pwm-fan-controller@103000 { #address-cells = <1>; #size-cells = <0>; compatible = "nuvoton,npcm750-pwm-fan"; @@ -487,9 +493,9 @@ status = "disabled"; }; - i2c0: i2c-bus@80000 { + i2c0: i2c@80000 { reg = <0x80000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -498,9 +504,9 @@ status = "disabled"; }; - i2c1: i2c-bus@81000 { + i2c1: i2c@81000 { reg = <0x81000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -509,9 +515,9 @@ status = "disabled"; }; - i2c2: i2c-bus@82000 { + i2c2: i2c@82000 { reg = <0x82000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -520,9 +526,9 @@ status = "disabled"; }; - i2c3: i2c-bus@83000 { + i2c3: i2c@83000 { reg = <0x83000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -531,9 +537,9 @@ status = "disabled"; }; - i2c4: i2c-bus@84000 { + i2c4: i2c@84000 { reg = <0x84000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -542,9 +548,9 @@ status = "disabled"; }; - i2c5: i2c-bus@85000 { + i2c5: i2c@85000 { reg = <0x85000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -553,9 +559,9 @@ status = "disabled"; }; - i2c6: i2c-bus@86000 { + i2c6: i2c@86000 { reg = <0x86000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -564,9 +570,9 @@ status = "disabled"; }; - i2c7: i2c-bus@87000 { + i2c7: i2c@87000 { reg = <0x87000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -575,9 +581,9 @@ status = "disabled"; }; - i2c8: i2c-bus@88000 { + i2c8: i2c@88000 { reg = <0x88000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -586,9 +592,9 @@ status = "disabled"; }; - i2c9: i2c-bus@89000 { + i2c9: i2c@89000 { reg = <0x89000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -597,9 +603,9 @@ status = "disabled"; }; - i2c10: i2c-bus@8a000 { + i2c10: i2c@8a000 { reg = <0x8a000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -608,9 +614,9 @@ status = "disabled"; }; - i2c11: i2c-bus@8b000 { + i2c11: i2c@8b000 { reg = <0x8b000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -619,9 +625,9 @@ status = "disabled"; }; - i2c12: i2c-bus@8c000 { + i2c12: i2c@8c000 { reg = <0x8c000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -630,9 +636,9 @@ status = "disabled"; }; - i2c13: i2c-bus@8d000 { + i2c13: i2c@8d000 { reg = <0x8d000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -641,9 +647,9 @@ status = "disabled"; }; - i2c14: i2c-bus@8e000 { + i2c14: i2c@8e000 { reg = <0x8e000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -652,9 +658,9 @@ status = "disabled"; }; - i2c15: i2c-bus@8f000 { + i2c15: i2c@8f000 { reg = <0x8f000 0x1000>; - compatible = "nuvoton,npcm750-i2c-bus"; + compatible = "nuvoton,npcm750-i2c"; clocks = <&clk NPCM7XX_CLK_APB2>; bus-frequency = <100000>; interrupts = ; @@ -664,7 +670,8 @@ }; gfxi: gfxi@f000e000 { - compatible = "nuvoton,npcm750-gfxi", "syscon", "simple-mfd"; + compatible = "nuvoton,npcm750-gfxi", "syscon", + "simple-mfd"; reg = <0xf000e000 0x100>; }; @@ -1202,5 +1209,37 @@ groups = "clkreq"; function = "clkreq"; }; + hgpio0_pins: hgpio0-pins { + groups = "hgpio0"; + function = "hgpio0"; + }; + hgpio1_pins: hgpio1-pins { + groups = "hgpio1"; + function = "hgpio1"; + }; + hgpio2_pins: hgpio2-pins { + groups = "hgpio2"; + function = "hgpio2"; + }; + hgpio3_pins: hgpio3-pins { + groups = "hgpio3"; + function = "hgpio3"; + }; + hgpio4_pins: hgpio4-pins { + groups = "hgpio4"; + function = "hgpio4"; + }; + hgpio5_pins: hgpio5-pins { + groups = "hgpio5"; + function = "hgpio5"; + }; + hgpio6_pins: hgpio6-pins { + groups = "hgpio6"; + function = "hgpio6"; + }; + hgpio7_pins: hgpio7-pins { + groups = "hgpio7"; + function = "hgpio7"; + }; }; }; diff --git a/arch/arm/boot/dts/nuvoton-npcm750-evb.dts b/arch/arm/boot/dts/nuvoton-npcm750-evb.dts index 8c568b380706..d951ac997872 100644 --- a/arch/arm/boot/dts/nuvoton-npcm750-evb.dts +++ b/arch/arm/boot/dts/nuvoton-npcm750-evb.dts @@ -46,6 +46,11 @@ i2c13 = &i2c13; i2c14 = &i2c14; i2c15 = &i2c15; + spi0 = &spi0; + spi1 = &spi1; + fiu0 = &fiu0; + fiu1 = &fiu3; + fiu2 = &fiux; }; chosen { @@ -56,8 +61,29 @@ reg = <0 0x40000000>; }; + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + reg_vref1_2: regulator@0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "vref_1_2v"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + reg_vref3_3: regulator@1 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "vref_3_3v"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + }; + ahb { - gmac0: eth@f0802000 { + gmac0: eth@f0802000 { phy-mode = "rgmii-id"; status = "okay"; }; @@ -135,8 +161,14 @@ status = "okay"; }; - spi0: spi@fb000000 { + fiu0: fiu@fb000000 { + status = "okay"; spi-nor@0 { + compatible = "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + spi-rx-bus-width = <2>; + reg = <0>; partitions@80000000 { compatible = "fixed-partitions"; #address-cells = <1>; @@ -188,24 +220,31 @@ }; }; - spi3: spi@c0000000 { - spi-nor@0 { + fiu3: fiu@c0000000 { + 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>; partitions@A0000000 { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; system1@0 { label = "spi3-system1"; - reg = <0x0 0x800000>; - }; - system2@800000 { - label = "spi3-system2"; - reg = <0x800000 0x0>; + reg = <0x0 0x0>; }; }; }; }; + fiux: fiu@fb001000 { + spix-mode; + }; + sdhci0: sdhci@f0842000 { status = "okay"; }; @@ -252,6 +291,12 @@ status = "okay"; }; + adc: adc@c000 { + /* enable external vref */ + /*vref-supply = <®_vref1_2>;*/ + status = "okay"; + }; + otp:otp@189000 { status = "okay"; }; @@ -278,7 +323,7 @@ }; /* lm75 on SVB */ - i2c0: i2c-bus@80000 { + i2c0: i2c@80000 { #address-cells = <1>; #size-cells = <0>; bus-frequency = <100000>; @@ -292,7 +337,7 @@ }; /* lm75 on EB */ - i2c1: i2c-bus@81000 { + i2c1: i2c@81000 { #address-cells = <1>; #size-cells = <0>; bus-frequency = <100000>; @@ -306,7 +351,7 @@ }; /* tmp100 on EB */ - i2c2: i2c-bus@82000 { + i2c2: i2c@82000 { #address-cells = <1>; #size-cells = <0>; bus-frequency = <100000>; @@ -320,7 +365,7 @@ }; /* tmp100 on SVB */ - i2c6: i2c-bus@86000 { + i2c6: i2c@86000 { #address-cells = <1>; #size-cells = <0>; bus-frequency = <100000>; @@ -332,74 +377,75 @@ status = "okay"; }; }; - i2c3: i2c-bus@83000 { + i2c3: i2c@83000 { #address-cells = <1>; #size-cells = <0>; bus-frequency = <100000>; status = "okay"; }; - i2c4: i2c-bus@84000 { + i2c4: i2c@84000 { #address-cells = <1>; #size-cells = <0>; bus-frequency = <100000>; status = "disabled"; }; - i2c5: i2c-bus@85000 { + i2c5: i2c@85000 { #address-cells = <1>; #size-cells = <0>; bus-frequency = <100000>; - status = "disabled"; + status = "okay"; }; - i2c7: i2c-bus@87000 { + i2c7: i2c@87000 { #address-cells = <1>; #size-cells = <0>; bus-frequency = <100000>; - status = "disabled"; + status = "okay"; }; - i2c8: i2c-bus@88000 { + i2c8: i2c@88000 { #address-cells = <1>; #size-cells = <0>; bus-frequency = <100000>; - status = "disabled"; + status = "okay"; }; - i2c9: i2c-bus@89000 { + i2c9: i2c@89000 { #address-cells = <1>; #size-cells = <0>; bus-frequency = <100000>; - status = "disabled"; + status = "okay"; }; - i2c10: i2c-bus@8a000 { + i2c10: i2c@8a000 { #address-cells = <1>; #size-cells = <0>; bus-frequency = <100000>; - status = "disabled"; + status = "okay"; }; - i2c11: i2c-bus@8b000 { + i2c11: i2c@8b000 { #address-cells = <1>; #size-cells = <0>; bus-frequency = <100000>; - status = "disabled"; + status = "okay"; }; - i2c14: i2c-bus@8e000 { + i2c14: i2c@8e000 { #address-cells = <1>; #size-cells = <0>; bus-frequency = <100000>; - status = "disabled"; + status = "okay"; }; - i2c15: i2c-bus@8f000 { + i2c15: i2c@8f000 { #address-cells = <1>; #size-cells = <0>; bus-frequency = <100000>; - status = "disabled"; /* SVB conflict with pspi2 cs gpio20o_pins */ + /* SVB conflict with pspi2 cs gpio20o_pins */ + status = "disabled"; }; pwm_fan:pwm-fan-controller@103000 { @@ -446,16 +492,47 @@ }; }; - /* example for future pspi binding */ - /* - pspi: pspi@0 { - pinctrl-names = "default"; - pinctrl-0 = <&pspi1_pins &pspi2_pins - &gpio20o_pins &gpio203o_pins>; - cs-gpios = <&gpio 20 1>, <&gpio 203 1>; + spi0: spi@200000 { + 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 = "spi_spare1"; + reg = <0x0000000 0x800000>; + }; + partition@1 { + label = "spi_spare2"; + reg = <0x800000 0x0>; + }; + }; + }; + + spi1: spi@201000 { + 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 = "spi_spare1"; + reg = <0x0000000 0x800000>; + }; + partition@1 { + label = "spi_spare2"; + reg = <0x800000 0x0>; + }; + }; }; - */ }; }; @@ -480,7 +557,7 @@ &gpio82_pins &gpio83_pins &lpc_pins - &gpio132o_pins + &gpio132_pins &gpio133_pins &gpio134_pins &gpio135_pins @@ -514,10 +591,10 @@ &gcr { serial_port_mux: mux-controller { - compatible = "mmio-mux"; - #mux-control-cells = <1>; + compatible = "mmio-mux"; + #mux-control-cells = <1>; - mux-reg-masks = <0x38 0x07>; - idle-states = <2>; /* Serial port mode 3 (takeover) */ + mux-reg-masks = <0x38 0x07>; + idle-states = <2>; /* Serial port mode 3 (takeover) */ }; }; diff --git a/arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi b/arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi index b9675fbce4e6..a912910bc7ec 100644 --- a/arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi +++ b/arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi @@ -1,15 +1,5 @@ -/* - * DTSi file for the NPCM750 pin controller - * - * Copyright (c) 2014-2017 Nuvoton Technology corporation. - * - * Released under the GPLv2 only. - * SPDX-License-Identifier: GPL-2.0 - * - * http://www.opensource.org/licenses/gpl-license.html - * http://www.gnu.org/copyleft/gpl.html - */ - +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2018 Nuvoton Technology tomer.maimon@nuvoton.com / { pinctrl: pinctrl@f0800000 { @@ -1107,10 +1097,10 @@ bias-disable; input-enable; }; - gpio132o_pins: gpio132o-pins { + gpio132_pins: gpio132-pins { pins = "GPIO132/SMB10SCL"; bias-disable; - output-high; + input-enable; }; gpio133_pins: gpio133-pins { pins = "GPIO133/SMB10SDA"; diff --git a/arch/arm/boot/dts/nuvoton-npcm750.dtsi b/arch/arm/boot/dts/nuvoton-npcm750.dtsi index 421a4ed54bad..14b3d5b1206f 100644 --- a/arch/arm/boot/dts/nuvoton-npcm750.dtsi +++ b/arch/arm/boot/dts/nuvoton-npcm750.dtsi @@ -44,7 +44,6 @@ }; }; - ahb { gmac1: eth@f0804000 { device_type = "network"; @@ -56,8 +55,8 @@ clocks = <&clk_rg2refck>, <&clk NPCM7XX_CLK_AHB>; clock-names = "stmmaceth", "clk_gmac"; pinctrl-names = "default"; - /*pinctrl-0 = <&rg2_pins - &rg2mdio_pins>;*/ + pinctrl-0 = <&rg2_pins + &rg2mdio_pins>; status = "disabled"; }; @@ -71,8 +70,9 @@ clock-names = "clk_emc"; pinctrl-names = "default"; pinctrl-0 = <&r2_pins - &r2err_pins - &r2md_pins>; + &r2err_pins + &r2md_pins>; + status = "disabled"; }; udc0:udc@f0830000 {